protected override void Page_Load(object sender, EventArgs e) { try { HttpCookie hc = getCookie("1"); if (hc != null) { string str = hc.Value.Replace("%3D", "="); userid = Encrypt.DecryptDES(str, "1"); user.load(userid); CheckRight(user.Entity, "platform/UserInfo.aspx"); if (!Page.IsCallback) { list = createList(string.Empty, 1); custType = "<select class=\"input-text required\" id=\"CustType\" data-valid=\"isNonEmpty\" data-error=\"请选择客户类型\">"; custType += "<option value=\"\" selected>请选择客户类型</option>"; Business.Base.BusinessDict dict = new project.Business.Base.BusinessDict(); foreach (Entity.Base.EntityDict it in dict.GetDictListQuery(string.Empty, string.Empty, user.Entity.AccID, "CustType")) { custType += "<option value='" + it.DictNo + "'>" + it.DictName + "</option>"; } custType += "</select>"; } } else { GotoErrorPage(); } } catch { GotoErrorPage(); } }