Exemplo n.º 1
0
 private void btEdits_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (gridView1.GetFocusedRow() == null)
         return;
     bdjl_sbqxjl czpdjb = gridView1.GetFocusedRow() as bdjl_sbqxjl;
     frm_sbqxjl frm = new frm_sbqxjl();
     frm.RowData = czpdjb;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         Client.ClientHelper.PlatformSqlMap.Update<bdjl_sbqxjl>(frm.RowData);
         RefreshGridData("");
     }
 }
Exemplo n.º 2
0
 private void btAdds_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (string.IsNullOrEmpty(parentID))
     {
         MsgBox.ShowWarningMessageBox("请先选择一个变电所!");
         return;
     }
     frm_sbqxjl frm = new frm_sbqxjl();
     bdjl_sbqxjl sbqxjl = new bdjl_sbqxjl();
     sbqxjl.OrgCode = parentID;
     sbqxjl.fxrq = DateTime.Now;
     sbqxjl.c1 = DateTime.Now.ToShortDateString();
     frm.RowData = sbqxjl;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         Client.ClientHelper.PlatformSqlMap.Create<bdjl_sbqxjl>(frm.RowData);
         RefreshGridData("");
     }
 }