C# Class BKI_DichVuMatDat.CHRMCommon

Afficher le fichier Open project: assassinadal/BKIProject-DichVuMatDat

Méthodes publiques

Méthode Description
ExportExcel ( BandedGridView ip_grv ) : void
ExportExcel ( GridView ip_grv ) : void
ExportExcelWithFileName ( BandedGridView ip_grv, string ip_str_file_name ) : void
ExportExcelWithFileName ( GridView ip_grv, string ip_str_file_name ) : void
SelectRowInGrid ( GridView pview, string pColumnName, decimal pValue ) : void
TinhTuoi ( System.DateTime ip_dat_ngay_sinh ) : int
format_text_2_money ( TextBox ip_m_txt ) : void
gen_ma_nhan_vien ( ) : string
gen_version ( ) : string
get_first_day_of_month ( System.DateTime ip_dat_current_date ) : System.DateTime
get_first_day_of_month ( int ip_int_month ) : System.DateTime
get_last_day_of_month ( System.DateTime ip_dat_current_date ) : System.DateTime
get_last_day_of_month ( int ip_int_month ) : System.DateTime
make_stt ( DevExpress ip_grv ) : void
make_stt_indicator ( DevExpress ip_grv ) : void

Trả về danh sách các nhân viên được quyền chọn theo user người sử dụng

thang_da_chot_bang_luong ( System.DateTime ip_dat ) : bool
thang_da_chot_bang_luong ( decimal ip_dc_thang, decimal ip_dc_nam ) : bool
validate_control_empty ( ) : bool

Private Methods

Méthode Description
GetRowHandleByColumnValue ( GridView view, string ColumnFieldName, object value ) : int
ip_grv_CustomDrawRowIndicator ( object sender, DevExpress e ) : void
ip_grv_CustomUnboundColumnData ( object sender, DevExpress e ) : void

Method Details

ExportExcel() public static méthode

public static ExportExcel ( BandedGridView ip_grv ) : void
ip_grv BandedGridView
Résultat void

ExportExcel() public static méthode

public static ExportExcel ( GridView ip_grv ) : void
ip_grv GridView
Résultat void

ExportExcelWithFileName() public static méthode

public static ExportExcelWithFileName ( BandedGridView ip_grv, string ip_str_file_name ) : void
ip_grv BandedGridView
ip_str_file_name string
Résultat void

ExportExcelWithFileName() public static méthode

public static ExportExcelWithFileName ( GridView ip_grv, string ip_str_file_name ) : void
ip_grv GridView
ip_str_file_name string
Résultat void

SelectRowInGrid() public static méthode

public static SelectRowInGrid ( GridView pview, string pColumnName, decimal pValue ) : void
pview GridView
pColumnName string
pValue decimal
Résultat void

TinhTuoi() public static méthode

public static TinhTuoi ( System.DateTime ip_dat_ngay_sinh ) : int
ip_dat_ngay_sinh System.DateTime
Résultat int

format_text_2_money() public static méthode

public static format_text_2_money ( TextBox ip_m_txt ) : void
ip_m_txt System.Windows.Forms.TextBox
Résultat void

gen_ma_nhan_vien() public static méthode

public static gen_ma_nhan_vien ( ) : string
Résultat string

gen_version() public static méthode

public static gen_version ( ) : string
Résultat string

get_first_day_of_month() public static méthode

public static get_first_day_of_month ( System.DateTime ip_dat_current_date ) : System.DateTime
ip_dat_current_date System.DateTime
Résultat System.DateTime

get_first_day_of_month() public static méthode

public static get_first_day_of_month ( int ip_int_month ) : System.DateTime
ip_int_month int
Résultat System.DateTime

get_last_day_of_month() public static méthode

public static get_last_day_of_month ( System.DateTime ip_dat_current_date ) : System.DateTime
ip_dat_current_date System.DateTime
Résultat System.DateTime

get_last_day_of_month() public static méthode

public static get_last_day_of_month ( int ip_int_month ) : System.DateTime
ip_int_month int
Résultat System.DateTime

make_stt() public static méthode

public static make_stt ( DevExpress ip_grv ) : void
ip_grv DevExpress
Résultat void

make_stt_indicator() public static méthode

Trả về danh sách các nhân viên được quyền chọn theo user người sử dụng
public static make_stt_indicator ( DevExpress ip_grv ) : void
ip_grv DevExpress
Résultat void

thang_da_chot_bang_luong() public static méthode

public static thang_da_chot_bang_luong ( System.DateTime ip_dat ) : bool
ip_dat System.DateTime
Résultat bool

thang_da_chot_bang_luong() public static méthode

public static thang_da_chot_bang_luong ( decimal ip_dc_thang, decimal ip_dc_nam ) : bool
ip_dc_thang decimal
ip_dc_nam decimal
Résultat bool

validate_control_empty() public static méthode

public static validate_control_empty ( ) : bool
Résultat bool