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 frmBpList_Load(object sender, EventArgs e) { BusinessObject ctyBo = BOFactory.GetBO(BOIDEnum.Country); olvcCty.DataSource = ctyBo.GetValieValue("ID", "Name"); BOBP bpBo = (BOBP)BOFactory.GetBO(BOIDEnum.BP); olvcType.DataSource = bpBo.GetBPTypeValidValue(); LoadGrid(); }