private void btnThemMoi_Click(object sender, EventArgs e) { //frmCongViec_Old frm = new frmCongViec_Old(); frmCongViec frm = new frmCongViec(); frm.StartPosition = FormStartPosition.CenterScreen; frm.ShowDialog(); if (frm.IsSaved) { Loadfg(); fg.ApplyFilters(); } }
private void fgDaXong_DoubleClick(object sender, EventArgs e) { if (fgDaXong.Row < fgDaXong.Rows.Fixed) { return; } int iID_Cv = fgDaXong.GetIntValue(fgDaXong.Row, "ID_CongViec"); frmCongViec frm = new frmCongViec(iID_Cv, true); frm.ShowDialog(); Load_fgDangLam(); Load_fgDaNhan(); Load_fgDaXong(); }
private void SendDataToFormThongTinCV() { int ID_CongViec = Convert.ToInt32(fg[fg.Row, "ID_CongViec"]); //frmCongViec_Old frm = new frmCongViec_Old(ID_CongViec, true); frmCongViec frm = new frmCongViec(ID_CongViec, true); frm.StartPosition = FormStartPosition.CenterScreen; frm.ShowDialog(); if (frm.IsSaved) { Loadfg(); fg.ApplyFilters(); } }
private void fgThongBao_DoubleClick(object sender, EventArgs e) { int ID_CongViec = fgThongBao.GetIntValue(fgThongBao.Row, "ID_CongViec"); frmCongViec congViec = new frmCongViec(ID_CongViec, true); congViec.ShowDialog(); clsThongBao thongBao = new clsThongBao(); thongBao.ID_ThongBao = fgThongBao.GetIntValue(fgThongBao.Row, "ID_ThongBao"); thongBao.SelectOne(); thongBao.TrangThai = 2; thongBao.Update(); Load_fgThongBao(); }
private void SendDataToFormThongTinCV(int id_CongViec, bool isThemMoi, DateTime dt) { if (isThemMoi) { //frmCongViec_Old frm = new frmCongViec_Old(id_CongViec,id_NhanVien_DangNhap, dt); frmCongViec frm = new frmCongViec(id_CongViec, id_NhanVien_DangNhap, dt); frm.ShowDialog(); } else { //frmCongViec_Old frm = new frmCongViec_Old(id_CongViec, true); frmCongViec frm = new frmCongViec(id_CongViec, true); frm.ShowDialog(); } LoadView(3); }
private void alertControl2_AlertClick(object sender, AlertClickEventArgs e) { switch (m_iCongViecTH) { case 0: break; case 1: var ID_CongViec = m_iID_CongViecDH; var frm = new frmCongViec(ID_CongViec, true); frm.ShowDialog(); break; default: break; } }
private void alertControl1_AlertClick(object sender, AlertClickEventArgs e) { switch (m_iCongViecTH) { case 0: break; case 1: var ID_CongViec = m_iID_CongViecTH; var frm = new frmCongViec(ID_CongViec, true); frm.ShowDialog(); break; default: //var frmDsCongViec = new frmDS_CongViec(GlobalVariables.GetID_NhanSu(), 1); //tabForms.OpenForm(frmDsCongViec, "Danh sách công việc"); break; } }