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