Пример #1
0
 private void xem_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     DataRow r = gridViewDSCongviec.GetDataRow(gridViewDSCongviec.FocusedRowHandle);
     if (r != null)
     {
         frmAddFile frm = new frmAddFile(HelpNumber.ParseInt64(r["ID"]), null);
         HelpProtocolForm.ShowModalDialog(this, frm);
     }
 }
Пример #2
0
 private void Sua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     DataRow r = gridViewDSCongviec.GetDataRow(gridViewDSCongviec.FocusedRowHandle);
     if (r != null)
     {
         int row_indexed = gridViewDSCongviec.FocusedRowHandle;
         //DUYET: Kiểm tra quyền cập nhật trên tài nguyên
         //if (!LoaiTaiLieu_TaiLieu.I._checkPermissionRes(
         //    HelpNumber.ParseInt64(r["NGUOI_CAP_NHAT"]), PERMISSION_RES.UPDATE))
         //{
         //    HelpMsgBox.ShowNotificationMessage(
         //        "Bạn không có quyền cập nhật trên tài nguyên này!");
         //    return;
         //}
         //
         frmAddFile frm = new frmAddFile(HelpNumber.ParseInt64(r["ID"]), false);
         frm.RefreshUpdate += new frmAddFile.RefreshData(frm_RefreshUpdate);
         HelpProtocolForm.ShowModalDialog(this, frm);
         //Load_gridview(HelpNumber.ParseInt64(r["ID"]));
         //if (loaiTaiLieu != 0)
         //    gridDSCongviec.DataSource = DADocument.getDM_TAI_LIEU(loaiTaiLieu);
         //else
         //    gridDSCongviec.DataSource = DADocument.getDM_TAI_LIEU(-1);
         //gridViewDSCongviec.SelectRow(row_indexed);
     }
 }
Пример #3
0
 private void Them_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmAddFile frm = new frmAddFile(-2, true);
     HelpProtocolForm.ShowModalDialog(this, frm);
     if (loaiTaiLieu != 0)
         gridDSCongviec.DataSource = DADocument.getDM_TAI_LIEU(loaiTaiLieu);
     else
         gridDSCongviec.DataSource = null;//DADocument.getDM_TAI_LIEU(-1);
     DataRow r = gridViewDSCongviec.GetDataRow(gridViewDSCongviec.FocusedRowHandle);
     if (r != null)
     {
         Load_gridview(HelpNumber.ParseInt64(r[PLConst.FIELD_ID]));
         ButtonState(r);
     }
 }
Пример #4
0
 void gridViewDSCongviec_DoubleClick(object sender, EventArgs e)
 {
     DataRow r = gridViewDSCongviec.GetDataRow(gridViewDSCongviec.FocusedRowHandle);
     if (r != null)
     {
         frmAddFile frm = new frmAddFile(HelpNumber.ParseInt64(r["ID"]), null);
         HelpProtocolForm.ShowModalDialog(this, frm);
         Load_gridview(HelpNumber.ParseInt64(r["ID"]));
     }
 }