Beispiel #1
0
 private void btAdds_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (string.IsNullOrEmpty(parentID))
     {
         MsgBox.ShowWarningMessageBox("请先选择一个变电所!");
         return;
     }
     frm_aqhdjlb frm = new frm_aqhdjlb();
     bdjl_aqhdjlb aqhdjlb = new bdjl_aqhdjlb();
     aqhdjlb.OrgCode = parentID;
     aqhdjlb.hdkssj = DateTime.Now.ToString("yyyy-MM-dd HH:mm");
     aqhdjlb.hdjssj = DateTime.Now.ToString("yyyy-MM-dd HH:mm");
     frm.RowData = aqhdjlb;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         Client.ClientHelper.PlatformSqlMap.Create<bdjl_aqhdjlb>(frm.RowData);
         RefreshGridData("");
     }
 }
Beispiel #2
0
 private void btEdits_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (gridView1.GetFocusedRow() == null)
         return;
     bdjl_aqhdjlb aqhdjlb = gridView1.GetFocusedRow() as bdjl_aqhdjlb;
     frm_aqhdjlb frm = new frm_aqhdjlb();
     frm.RowData = aqhdjlb;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         Client.ClientHelper.PlatformSqlMap.Update<bdjl_aqhdjlb>(frm.RowData);
         RefreshGridData("");
     }
 }