private void frmBP_Load(object sender, EventArgs e) { BOBP bpBo = (BOBP)m_bo; cmbType.DataSource = bpBo.GetBPTypeValidValue(); cmbType.ValueMember = "Value"; cmbType.DisplayMember = "Description"; if (this.ExchangeParam == null) { //mktBo.Init(); this.FormMode = NanCrm.FormMode.Add; } else { this.FormMode = this.ExchangeParam.Mode; if (this.ExchangeParam.Data != null) { BPMD md = (BPMD)this.ExchangeParam.Data; bpBo.SetBOTable(md); } if (this.ExchangeParam.ReturnProc != null) { this.ReturnProc = this.ExchangeParam.ReturnProc; } } UpdateData(false); }
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); }
private void mainMenu_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { TreeMenuNode node = (TreeMenuNode)e.Node; MainMenuTag tag = (MainMenuTag)node.Tag; switch (tag.ID) { case MenuID.Setup_Country: Country cty = new Country(BOIDEnum.Country); cty.MdiParent = this.MdiParent; cty.Show(); break; case MenuID.Setup_Market: break; case MenuID.BP_MD: BPMD bpmd = new BPMD(BOIDEnum.BP); bpmd.MdiParent = this.MdiParent; bpmd.Show(); break; default: break; } }