private void NewBPMDRetProc(Form form, object data) { BOBP bpBo = (BOBP)data; if (bpBo == null) { return; } BPMD bpMd = (BPMD)bpBo.GetBOTable(); objList.AddObject(bpMd); }
private void UpdateBPMdRetProc(Form form, object data) { BOBP bpBo = (BOBP)data; if (bpBo == null) { return; } BPMD proMd = (BPMD)bpBo.GetBOTable(); IList list = (IList)objList.Objects; BPMD md = (BPMD)list[objList.LastHitInfo.RowIndex]; md.CopyFrom(proMd); objList.RefreshObject(md); }