Site

<%@ 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();

 

posted @ 2017-04-25 20:49  shiningrise  阅读(258)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css