private void btReAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { xxgx_aqxpj aqxpj = new xxgx_aqxpj(); if (!string.IsNullOrEmpty(btGdsList.EditValue as string)) aqxpj.orgcode = btGdsList.EditValue.ToString(); if (!string.IsNullOrEmpty(barsj.EditValue as string)) { aqxpj.year = barsj.EditValue.ToString(); } else { aqxpj.year = DateTime.Now.Year.ToString(); } aqxpj.scsj = DateTime.Now.ToString(); aqxpj.scry = MainHelper.User.UserName; frmAqxpj frm = new frmAqxpj(); frm.RowData = aqxpj; if (frm.ShowDialog() == DialogResult.OK) { Client.ClientHelper.PlatformSqlMap.Create<xxgx_aqxpj>(frm.RowData as xxgx_aqxpj); RefreshData(basesql); } }
public void Show(xxgx_aqxpj obj) { _pjobject = obj; }