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