Exemplo n.º 1
0
 private void btUpdates_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (this.gridView1.GetFocusedRow() == null)
         return;
     sd_xsxm xsxm = this.gridView1.GetFocusedRow() as sd_xsxm;
     
     frmsd_xsxm frm = new frmsd_xsxm();
     frm.isupdate = true;
     frm.RowData = xsxm;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         Client.ClientHelper.PlatformSqlMap.Update<sd_xsxm>(frm.RowData);
        
     }
     RefreshData();
 }
Exemplo n.º 2
0
 /// <summary>
 /// 添加
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btAdds_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (string.IsNullOrEmpty(parentid))
         return;
     if (parentobj == null)
         return;
     frmsd_xsxm frm = new frmsd_xsxm();
     sd_xsxm sdxsxm = new sd_xsxm();
     sdxsxm.ParentID = parentid;
     frm.RowData = sdxsxm;
     
     if (frm.ShowDialog() == DialogResult.OK)
     {
         Client.ClientHelper.PlatformSqlMap.Create<sd_xsxm>(frm.RowData);
         RefreshData();
     }
 }