void InitObject_AfterSaving() { lstMaNV = new List <string>(); oTinhLuong = new Business.Luong.TinhLuong(); oFTP = new Business.FTP(); oFile = new Business.CNVC.CNVC_File(); oCNVC_QTr_CongTac_OU = new Business.CNVC.CNVC_QTr_CongTac_OU(); oBacHeSo = new Business.Luong.BacHeSo(); dtFile = new DataTable(); dtQtrCtac = new DataTable(); kvpLuongID = new List <KeyValuePair <string, int> >(); kvpDV = new List <KeyValuePair <string, string> >(); kvpCV = new List <KeyValuePair <string, string> >(); kvpBacCu = new List <KeyValuePair <string, int> >(); kvpNgachCu = new List <KeyValuePair <string, string> >(); kvpHSCu = new List <KeyValuePair <string, double> >(); kvpNgayHuongCu = new List <KeyValuePair <string, DateTime> >(); kvpBacMoi = new List <KeyValuePair <string, int> >(); kvpNgachMoi = new List <KeyValuePair <string, string> >(); kvpHSMoi = new List <KeyValuePair <string, double> >(); kvpNgayHuongMoi = new List <KeyValuePair <string, DateTime> >(); dtLuong = new DataTable(); oLoaiQuyetDinh = new Business.HDQD.LoaiQuyetDinh(); }
void fPop_FormClosed(object sender, FormClosedEventArgs e) { if (!bAddFile) { switch (UCName) { case "HopDong": HopDong.oFile = null; break; case "TiepNhan": TiepNhan.oFile = null; break; case "QDKhenThuong_ChuyenNgach": QDKhenThuong_ChuyenNgach.oFile = null; break; case "ChuyenNgachNhanh": ChuyenNgachNhanh.oFile = null; break; case "QLNS_TapTin": oCNVCFile.DisputeObject(); oCNVCFile = null; break; default: break; } } }
private void TimTheoLoaiFile() { oFile = new Business.CNVC.CNVC_File(); if (string.IsNullOrWhiteSpace(txt_MaTapTin.Text)) { oFile.Link = null; } else { oFile.Link.Add(txt_MaTapTin.Text); } oFile.Group.Add(Convert.ToInt16(cb_LoaiTapTin.SelectedValue)); try { dtFiles = oFile.GetData(); if (dtFiles != null && dtFiles.Rows.Count > 0) { bBinding = true; dtgv_DSTapTin.DataSource = dtFiles; SetupDTGV(); dtgv_DSTapTin.ClearSelection(); bBinding = false; } else { dtgv_DSTapTin.DataSource = null; } } catch (Exception) { } }
private void btn_Them_Click(object sender, EventArgs e) { if (HDQD.Program.ma_nv != "") { AddFlag = true; oFile = new Business.CNVC.CNVC_File(); HDQD.UCs.DSTapTin oDSTapTin = new HDQD.UCs.DSTapTin("QLNS_TapTin", oFile); oDSTapTin.txt_MaTapTin.Enabled = true; Form f = new Forms.Popup("QUẢN LÝ NHÂN SỰ - DANH SÁCH TẬP TIN", oDSTapTin); f.ShowDialog(); if (oFile != null && oFile.Path.Count >0) { try { pb_Status.Style = ProgressBarStyle.Blocks; UploadFile(); } catch (Exception) { throw; } } } else { MessageBox.Show("Xin vui lòng tìm và chọn nhân viên.", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btn_Them_Click(object sender, EventArgs e) { if (HDQD.Program.ma_nv != "") { AddFlag = true; oFile = new Business.CNVC.CNVC_File(); HDQD.UCs.DSTapTin oDSTapTin = new HDQD.UCs.DSTapTin("QLNS_TapTin", oFile); oDSTapTin.txt_MaTapTin.Enabled = true; Form f = new Forms.Popup("QUẢN LÝ NHÂN SỰ - DANH SÁCH TẬP TIN", oDSTapTin); f.ShowDialog(); if (oFile != null && oFile.Path.Count > 0) { try { pb_Status.Style = ProgressBarStyle.Blocks; UploadFile(); } catch (Exception) { throw; } } } else { MessageBox.Show("Xin vui lòng tìm và chọn nhân viên.", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btn_Luu_Click(object sender, EventArgs e) { if (!AddFlag) { int id = Convert.ToInt32(dtgv_DSTapTin.SelectedRows[0].Cells["id"].Value); oFile = new Business.CNVC.CNVC_File(); oFile.ID = id; oFile.Group.Add(Convert.ToInt32(cb_LoaiTT_Detail.SelectedValue)); oFile.Link.Add(txt_MaTapTin_Detail.Text); oFile.FileName.Add(txt_TenTapTin.Text); oFile.MoTa.Add(rtb_MoTa.Text); try { if (oFile.UpdateFile()) { MessageBox.Show("Cập nhật thành công.", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); ControlInterface(true); ClearDetailInfo(); dtgv_DSTapTin.ClearSelection(); RefreshDTFiles(); } else { MessageBox.Show("Cập nhật không thành công.", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } } catch (Exception) { MessageBox.Show("Cập nhật không thành công.", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } } }
private void InitObject() { lstMaNV = new List <string>(); oTinhLuong = new Business.Luong.TinhLuong(); oFTP = new Business.FTP(); oFile = new Business.CNVC.CNVC_File(); oCNVC_QTr_CongTac_OU = new Business.CNVC.CNVC_QTr_CongTac_OU(); oBacHeSo = new Business.Luong.BacHeSo(); dtBacHeSo = new DataTable(); dtFile = new DataTable(); dtQtrCtac = new DataTable(); kvpLuongID = new List <KeyValuePair <string, int> >(); kvpDV = new List <KeyValuePair <string, string> >(); kvpCV = new List <KeyValuePair <string, string> >(); kvpBacCu = new List <KeyValuePair <string, int> >(); kvpNgachCu = new List <KeyValuePair <string, string> >(); kvpHSCu = new List <KeyValuePair <string, double> >(); kvpNgayHuongCu = new List <KeyValuePair <string, DateTime> >(); kvpBacMoi = new List <KeyValuePair <string, int> >(); kvpNgachMoi = new List <KeyValuePair <string, string> >(); kvpHSMoi = new List <KeyValuePair <string, double> >(); kvpNgayHuongMoi = new List <KeyValuePair <string, DateTime> >(); dtLuong = new DataTable(); oLoaiQuyetDinh = new Business.HDQD.LoaiQuyetDinh(); thongTinCNVC1.txt_HoTen.KeyUp += new KeyEventHandler(txt_HoTen_KeyUp); }
public QLNS_TapTin() { InitializeComponent(); oCNVC = new Business.CNVC.CNVC(); oFile = new Business.CNVC.CNVC_File(); oFTP = new Business.FTP(); dtFileGroup = new DataTable(); dtFiles = new DataTable(); }
bool bAddFile; // bien de biet nguoi dung co bam save hay o public DSTapTin(string _UCName, Business.CNVC.CNVC_File _oCNVCFile) { InitializeComponent(); oFTP = new Business.FTP(); dtFileGroup = new DataTable(); oCNVCFile = _oCNVCFile; if (oCNVCFile != null) { AddFiles(); } else { oCNVCFile = new Business.CNVC.CNVC_File(); } UCName = _UCName; }
private void InitObject() { oHopdong = new Business.HDQD.CNVC_HopDong(); oChucdanh = new ChucDanh(); oChucvu = new ChucVu(); oDonvi = new DonVi(); oBacHeSo = new Business.Luong.BacHeSo(); dtBacHeSo = new DataTable(); oLoaiPC = new Business.HDQD.LoaiPhuCap(); oFile = new Business.CNVC.CNVC_File(); dtLoaiPC = new DataTable(); dtPhuCap = new DataTable(); oFTP = new Business.FTP(); dtLoaiPC = oLoaiPC.GetList_Cbo(); dtDSDonVi = new DataTable(); PreapreDataSource(); Prepare_Data_BacHeSo(); PrepareDataTablePhuCap(); thongTinQuyetDinh1.dTP_NgayHieuLuc.ValueChanged += dTP_NgayHieuLuc_ValueChanged; }
private void InitObject() { oHopdong = new Business.HDQD.CNVC_HopDong(); oLoaihopdong = new Business.HDQD.LoaiHopDong(); oChucdanh = new ChucDanh(); oChucvu = new ChucVu(); oDonvi = new DonVi(); oFTP = new Business.FTP(); oFile = new Business.CNVC.CNVC_File(); oBacHeSo = new Business.Luong.BacHeSo(); dtBacHeSo = new DataTable(); oLoaiPC = new Business.HDQD.LoaiPhuCap(); dtPhuCap = new DataTable(); dtLoaiPC = new DataTable(); dtDonVi = new DataTable(); oCNVCPhuCap = new Business.HDQD.CNVC_PhuCap(); dtLoaiPC = oLoaiPC.GetList_Cbo(); PreapreDataSource(); Prepare_Data_BacHeSo(); PrepareDataTablePhuCap(); }
string UCCallerName; // ten UC cha goi UC them tinh quoc gia public ThemLoaiFile(string m_Caller) { InitializeComponent(); oCNVC_File = new Business.CNVC.CNVC_File(); UCCallerName = m_Caller; }
private void TimTheoLoaiFile() { oFile = new Business.CNVC.CNVC_File(); if (string.IsNullOrWhiteSpace(txt_MaTapTin.Text)) oFile.Link = null; else oFile.Link.Add(txt_MaTapTin.Text); oFile.Group.Add(Convert.ToInt16(cb_LoaiTapTin.SelectedValue)); try { dtFiles = oFile.GetData(); if (dtFiles != null && dtFiles.Rows.Count > 0) { bBinding = true; dtgv_DSTapTin.DataSource = dtFiles; SetupDTGV(); dtgv_DSTapTin.ClearSelection(); bBinding = false; } else { dtgv_DSTapTin.DataSource = null; } } catch (Exception) { } }