Пример #1
0
 public override void ShowViewForm(long id)
 {
     frmMuonTra frm = new frmMuonTra(id, null);
     HelpProtocolForm.ShowModalDialog(this, frm);
 }
Пример #2
0
 public override void ShowUpdateForm(long id)
 {
     if (PhieuMuonTraPermission.I._CheckPerMuonTra(RES_PERMISSION_TYPE.UPDATE, id) == false)
     {
         HelpMsgBox.ShowNotificationMessage("Bạn không được phép sửa phiếu mượn/trả đang chọn!");
         return;
     }
     frmMuonTra frm = new frmMuonTra(id, false);
     HelpProtocolForm.ShowModalDialog(this, frm);
 }
Пример #3
0
 void gridViewMuonTra_RowClick(object sender, RowClickEventArgs e)
 {
     if (e.Clicks == 2 && e.Button == System.Windows.Forms.MouseButtons.Left)
     {
         if (e.RowHandle < 0) return;
         DataRow r = gridViewMuonTra.GetDataRow(e.RowHandle);
         frmMuonTra c = new frmMuonTra(HelpNumber.ParseInt64(r[PHIEU_MUON_TRA.PMT_ID]), null);
         HelpProtocolForm.ShowModalDialog(this, c);
     }
 }
Пример #4
0
 public override long[] ShowAddForm()
 {
     frmMuonTra frm = new frmMuonTra();
     HelpProtocolForm.ShowModalDialog(this, frm);
     return null;
 }
Пример #5
0
 public override void ShowViewForm(long id)
 {
     string sPage = xtraTabControlDetail.SelectedTabPage.Name;
     if (sPage == pageBanQuyen.Name)
     {
         DataRow r = gridViewMaster.GetFocusedDataRow();
         if (r != null)
         {
             FrmChuongTrinh frm = new FrmChuongTrinh(HelpNumber.ParseInt64(r[CHUONG_TRINH.CT_ID]), null);
             HelpProtocolForm.ShowModalDialog(this, frm);
         }
     }
     else if (sPage == pageSoRun.Name)
     {
         DataRow r = gridViewSoRun.GetFocusedDataRow();
         if (r != null)
         {
             FrmChuongTrinh frm = new FrmChuongTrinh(HelpNumber.ParseInt64(r[CHUONG_TRINH.CT_ID]), null);
             HelpProtocolForm.ShowModalDialog(this, frm);
         }
     }
     else if (sPage == pageMuonTra.Name)
     {
         DataRow r = gridViewMuonTra.GetFocusedDataRow();
         if (r != null)
         {
             frmMuonTra frm = new frmMuonTra(HelpNumber.ParseInt64(r[PHIEU_MUON_TRA.PMT_ID]), null);
             HelpProtocolForm.ShowModalDialog(this, frm);
         }
     }
 }