예제 #1
0
 private void btAdds_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (string.IsNullOrEmpty(parentID))
     {
         MsgBox.ShowWarningMessageBox("请先选择工作记录!");
         return;
     }
     frm_gzjlzb frm = new frm_gzjlzb();
     bdjl_gzjlzb gzjlzb = new bdjl_gzjlzb();
     gzjlzb.ParentID = parentID;
     gzjlzb.sj = DateTime.Now.ToShortDateString();
     frm.RowData = gzjlzb;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         Client.ClientHelper.PlatformSqlMap.Create<bdjl_gzjlzb>(frm.RowData);
         RefreshGridData("");
     }
 }
예제 #2
0
 private void btEdits_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (gridView1.GetFocusedRow() == null)
         return;
     bdjl_gzjlzb gzjlzb = gridView1.GetFocusedRow() as bdjl_gzjlzb;
     frm_gzjlzb frm = new frm_gzjlzb();
     frm.RowData = gzjlzb;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         Client.ClientHelper.PlatformSqlMap.Update<bdjl_gzjlzb>(frm.RowData);
         RefreshGridData("");
     }
 }