private void SetComboOwnerBranch() { var lst = SlmScr010Biz.GetBranchListByAccessRight(SLMConstant.Branch.Active, cmbCampaignId.SelectedItem.Value); AppUtil.BuildCombo(cmbOwnerBranch, lst); AppUtil.BuildCombo(cmbDelegateBranch, lst); }
private void InitialDropdownlist(LeadDataPhoneCallHistory data) { try { //ประเภทบุคคล cmbCardType.DataSource = CardTypeBiz.GetCardTypeList(); cmbCardType.DataTextField = "TextField"; cmbCardType.DataValueField = "ValueField"; cmbCardType.DataBind(); cmbCardType.Items.Insert(0, new ListItem("", "")); cmbOwnerBranch.DataSource = SlmScr010Biz.GetBranchListByAccessRight(SLMConstant.Branch.Active, data.CampaignId); cmbOwnerBranch.DataTextField = "TextField"; cmbOwnerBranch.DataValueField = "ValueField"; cmbOwnerBranch.DataBind(); cmbOwnerBranch.Items.Insert(0, new ListItem("", "")); cmbOwnerBranchSelectedIndexChanged(); //Do not remove cmbDelegateBranch.DataSource = SlmScr010Biz.GetBranchListByAccessRight(SLMConstant.Branch.Active, data.CampaignId); cmbDelegateBranch.DataTextField = "TextField"; cmbDelegateBranch.DataValueField = "ValueField"; cmbDelegateBranch.DataBind(); cmbDelegateBranch.Items.Insert(0, new ListItem("", "")); cmbDelegateBranchSelectedIndexChanged(); //Do not remove //Status cmbLeadStatus.DataSource = OptionBiz.GetStatusListByActivityConfig(data.ProductId, data.LeadStatus); cmbLeadStatus.DataTextField = "TextField"; cmbLeadStatus.DataValueField = "ValueField"; cmbLeadStatus.DataBind(); } catch (Exception ex) { throw ex; } }