protected override void AddObject() { var frm = new POInfoForm(Common.frmmodetype.add, null); refreshFormData(frm); gvPO_FocusedRowChanged(null, null); }
protected override void custom3() { if (this.gvPO.GetFocusedRow() != null) { T_PurchaseOrder po = this.gvPO.GetFocusedRow() as T_PurchaseOrder; var frm = new POInfoForm(po); refreshFormData(frm); } }
protected override void custom1() { if (this.gvPO.GetFocusedRow() != null) { T_PurchaseOrder po = this.gvPO.GetFocusedRow() as T_PurchaseOrder; var frm = new POInfoForm(po); refreshFormData(frm); } }
protected override void EditObject() { if (this.gvPO.GetFocusedRow() != null) { T_PurchaseOrder po = this.gvPO.GetFocusedRow() as T_PurchaseOrder; if (po.postatus == (int)POStatus.编制 || po.postatus == (int)POStatus.审批驳回) { var frm = new POInfoForm(Common.frmmodetype.edit, po); refreshFormData(frm); gvPO_FocusedRowChanged(null, null); } else { MessageBox.Show("非编制状态下不能修改采购单"); } } }