<%@ Register Src="/UserControls/SelectSite.ascx" TagPrefix="uc1" TagName="SelectSite" %>
<f:DropDownBox runat="server" ID="SearchSite1" EmptyText="所属站点" DataControlID="SelectSiteControl_GridList" AutoShowClearIcon="true" OnClearIconClick="Search_ClearIconClick" EnableClearIconClickEvent="true" CssClass="marginr" ColumnWidth="20%" EnableMultiSelect="false" MatchFieldWidth="false" ShowLabel="false"> <PopPanel> <f:UserControlConnector runat="server"> <uc1:SelectSite runat="server" id="SelectSite" /> </f:UserControlConnector> </PopPanel> </f:DropDownBox>
long haveSiteId = ClaimsHelper.GetFromClame("SiteId").ToLong(); //10000L; //从登陆信息里面获取 var haveSiteName = ClaimsHelper.GetFromClame("SiteName"); //"新站";//从登陆信息里面获取 if (haveSiteId != 0) { SearchSite1.Values = new string[] { haveSiteId.ToString() }; SearchSite1.Text = haveSiteName; SearchSite1.Readonly = true; }
var siteId = 0L; if (this.SearchSite1.Values.Count() > 0 && SearchSite1.Values[0].ToLong() != 0L) siteId = SearchSite1.Values[0].ToLong();