コード例 #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);
         ProtocolForm.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;
         frmAddFile frm = new frmAddFile(HelpNumber.ParseInt64(r["ID"]), false);
         ProtocolForm.ShowModalDialog(this, frm);
         load_gridview(HelpNumber.ParseInt64(r["ID"]));
         if (node_ID != 0)
             gridDSCongviec.DataSource = DADocument.getDM_TAI_LIEU(node_ID);
         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);
     ProtocolForm.ShowModalDialog(this, frm);
     if (node_ID != 0)
         gridDSCongviec.DataSource = DADocument.getDM_TAI_LIEU(node_ID);
     else
         gridDSCongviec.DataSource = DADocument.getDM_TAI_LIEU(-1);
     DataRow r = gridViewDSCongviec.GetDataRow(gridViewDSCongviec.FocusedRowHandle);
     if (r != null)
         load_gridview(HelpNumber.ParseInt64(r[PLDBUtil.FIELD_ID]));
 }
コード例 #4
0
 private 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);
         ProtocolForm.ShowModalDialog(this, frm);
         load_gridview(HelpNumber.ParseInt64(r["ID"]));
     }
 }