C# Class BKI_DichVuMatDat.CHRMCommon

Datei anzeigen Open project: assassinadal/BKIProject-DichVuMatDat

Public Methods

Method 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

Method 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 method

public static ExportExcel ( BandedGridView ip_grv ) : void
ip_grv BandedGridView
return void

ExportExcel() public static method

public static ExportExcel ( GridView ip_grv ) : void
ip_grv GridView
return void

ExportExcelWithFileName() public static method

public static ExportExcelWithFileName ( BandedGridView ip_grv, string ip_str_file_name ) : void
ip_grv BandedGridView
ip_str_file_name string
return void

ExportExcelWithFileName() public static method

public static ExportExcelWithFileName ( GridView ip_grv, string ip_str_file_name ) : void
ip_grv GridView
ip_str_file_name string
return void

SelectRowInGrid() public static method

public static SelectRowInGrid ( GridView pview, string pColumnName, decimal pValue ) : void
pview GridView
pColumnName string
pValue decimal
return void

TinhTuoi() public static method

public static TinhTuoi ( System.DateTime ip_dat_ngay_sinh ) : int
ip_dat_ngay_sinh System.DateTime
return int

format_text_2_money() public static method

public static format_text_2_money ( TextBox ip_m_txt ) : void
ip_m_txt System.Windows.Forms.TextBox
return void

gen_ma_nhan_vien() public static method

public static gen_ma_nhan_vien ( ) : string
return string

gen_version() public static method

public static gen_version ( ) : string
return string

get_first_day_of_month() public static method

public static get_first_day_of_month ( System.DateTime ip_dat_current_date ) : System.DateTime
ip_dat_current_date System.DateTime
return System.DateTime

get_first_day_of_month() public static method

public static get_first_day_of_month ( int ip_int_month ) : System.DateTime
ip_int_month int
return System.DateTime

get_last_day_of_month() public static method

public static get_last_day_of_month ( System.DateTime ip_dat_current_date ) : System.DateTime
ip_dat_current_date System.DateTime
return System.DateTime

get_last_day_of_month() public static method

public static get_last_day_of_month ( int ip_int_month ) : System.DateTime
ip_int_month int
return System.DateTime

make_stt() public static method

public static make_stt ( DevExpress ip_grv ) : void
ip_grv DevExpress
return void

make_stt_indicator() public static method

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
return void

thang_da_chot_bang_luong() public static method

public static thang_da_chot_bang_luong ( System.DateTime ip_dat ) : bool
ip_dat System.DateTime
return bool

thang_da_chot_bang_luong() public static method

public static thang_da_chot_bang_luong ( decimal ip_dc_thang, decimal ip_dc_nam ) : bool
ip_dc_thang decimal
ip_dc_nam decimal
return bool

validate_control_empty() public static method

public static validate_control_empty ( ) : bool
return bool