Beispiel #1
0
 private void btUpdates_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (this.gridView1.GetFocusedRow() == null)
         return;
     sd_xsjh xsjh = gridView1.GetFocusedRow() as sd_xsjh;
     frmsdxs_jh frm = new frmsdxs_jh();
     frm.isupdate = true;
     if (isqx)
         frm.isqx = isqx;
     frm.RowData = xsjh;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         Client.ClientHelper.PlatformSqlMap.Update<sd_xsjh>(frm.RowData);
         
     }
     RefreshData();
 }
Beispiel #2
0
 private void btAdds_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     sd_xsjh xsjh = new sd_xsjh();
     xsjh.cjr = MainHelper.User.UserName;
     if (checkState == "01")
     {
         xsjh.wcbj = "未完成";
         xsjh.flag = "新建";
     }
     else if (checkState == "02")
     {
         xsjh.wcbj = "完成";
         xsjh.flag = "发布";
     }
     xsjh.fbr = MainHelper.User.UserName;
     frmsdxs_jh frm = new frmsdxs_jh();
     frm.RowData = xsjh;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         Client.ClientHelper.PlatformSqlMap.Create<sd_xsjh>(frm.RowData);
         RefreshData();
     }
     
 }