예제 #1
0
 private void btAdds_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (string.IsNullOrEmpty(parentID))
     {
         MsgBox.ShowWarningMessageBox("请先选择一个变电所!");
         return;
     }
     frm_blqdzjl frm = new frm_blqdzjl();
     bdjl_blqdzjlcs blqdzjl = new bdjl_blqdzjlcs();
     blqdzjl.OrgCode = parentID;
     blqdzjl.dzrq = DateTime.Now;
     frm.RowData = blqdzjl;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         Client.ClientHelper.PlatformSqlMap.Create<bdjl_blqdzjlcs>(frm.RowData);
         RefreshGridData("");
     }
 }
예제 #2
0
 private void btEdits_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (gridView1.GetFocusedRow() == null)
         return;
     bdjl_blqdzjlcs bqldzjl = gridView1.GetFocusedRow() as bdjl_blqdzjlcs;
     frm_blqdzjl frm = new frm_blqdzjl();
     frm.RowData = bqldzjl;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         Client.ClientHelper.PlatformSqlMap.Update<bdjl_blqdzjlcs>(frm.RowData);
         RefreshGridData("");
     }
 }