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