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