private void GetAssociation() { try { string AssC = ""; DataCenterBiz biz = new DataCenterBiz(); if (base.UserProfile.MemberType != DTO.RegistrationType.OIC.GetEnumValue()) { AssC = base.UserProfile.CompCode; } var ls = biz.GetAssociation(AssC); ddlPlaceG.DataValueField = "ASSOCIATION_CODE"; ddlPlaceG.DataTextField = "ASSOCIATION_NAME"; ddlPlaceG.DataSource = ls.DataResponse; ddlPlaceG.DataBind(); ddlPlaceG.Items.Insert(0, SysMessage.DefaultSelecting); if (AssC != "") { ddlPlaceG.SelectedValue = AssC; ddlPlaceG.Enabled = false; } } catch { } }
private void GetAssociationDefult() { try { string AssC = ""; DataCenterBiz biz = new DataCenterBiz(); if (base.UserRegType.GetEnumValue() == DTO.RegistrationType.Association.GetEnumValue()) { AssC = base.UserProfile.CompCode; } var ls = biz.GetAssociation(AssC); // var ls = biz.GetAssociationJoinLicense(AssC, ddlLicenseType.SelectedValue.ToString()); ddlAsso.DataValueField = "ASSOCIATION_CODE"; ddlAsso.DataTextField = "ASSOCIATION_NAME"; ddlAsso.DataSource = ls.DataResponse; ddlAsso.DataBind(); ddlAsso.Items.Insert(0, SysMessage.DefaultSelecting); ddlAsso.SelectedValue = AssC; ddlAsso.Enabled = false; } catch { } }