private void rep_sua_Click(object sender, EventArgs e) { if (IsAdd != null) { DataRow r = layoutView1.GetDataRow(layoutView1.FocusedRowHandle); if (r != null) { frmThemTaiLieu frm = new frmThemTaiLieu(HelpNumber.ParseInt64(r["ID"]), false, do_tl.ID, (long)LoaiTapTin.TapTinTaiLieu); try { HelpProtocolForm.ShowModalDialog(this, frm); Load_TapTin(_ID); } catch (Exception ex) { PLException.AddException(ex); HelpSysLog.AddException(ex, ""); } } } }
private void ThemTaiLieu(List<object> ids) { if (ids != null && ids.Count > 0) { DataRow row = gridViewMaster.GetDataRow(gridViewMaster.FocusedRowHandle); frmThemTaiLieu frm = new frmThemTaiLieu(-2, true, HelpNumber.ParseInt64(row["PCCV_ID"]), (long)LoaiTapTin.TapTinCongViec); HelpProtocolForm.ShowModalDialog(this, frm); LoadDataForSelectedTab(false); } }
private void btnThemTL_Click(object sender, EventArgs e) { frmThemTaiLieu frm = new frmThemTaiLieu(-2, true, do_tl.ID, (long)LoaiTapTin.TapTinTaiLieu); HelpProtocolForm.ShowModalDialog(this, frm); Load_TapTin(_ID); }
/// <summary> /// Sửa tập tin. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void rep_sua_Click(object sender, EventArgs e) { if (_IsAdd != null) { DataRow r = layoutView1.GetDataRow(layoutView1.FocusedRowHandle); if (r != null) { frmThemTaiLieu frm = new frmThemTaiLieu(HelpNumber.ParseInt64(r["ID"]), false, _KhachHang.KH_ID, (long)LoaiTapTin.KhachHangTaptin); HelpProtocolForm.ShowModalDialog(this, frm); LoadCardViewTapTin(); } } }
private void gridViewTaiLieu_DoubleClick(object sender, EventArgs e) { PLGridView grid = (PLGridView)sender; if (grid.RowCount <= 0) return; else if (!grid.IsGroupRow(grid.FocusedRowHandle)) { FWWaitingMsg m = new FWWaitingMsg(); frmThemTaiLieu frm = new frmThemTaiLieu(HelpNumber.ParseInt64(grid.GetDataRow(grid.FocusedRowHandle)["TAP_TIN_ID"]), (_IsAdd == null ? _IsAdd : false), _KhachHang.KH_ID, (long)LoaiTapTin.KhachHangTaptin); m.Finish(); HelpProtocolForm.ShowModalDialog(this, frm); } }
private void btnthemtailieu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmThemTaiLieu frm = new frmThemTaiLieu(-2, true, _KhachHang.KH_ID, (long)LoaiTapTin.KhachHangTaptin); HelpProtocolForm.ShowModalDialog(this, frm); LoadCardViewTapTin(); }
private void Them_Tai_Lieu(List<object> ids) { frmThemTaiLieu frm = new frmThemTaiLieu(-2, true, _KhachHang.KH_ID, (long)LoaiTapTin.KhachHangTaptin); HelpProtocolForm.ShowModalDialog(this, frm); LoadCardViewTaiLieu(); }