JuYangCRMWeb/UserManager/UserAdd.aspx.cs

(开头部分) 18KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Iman.Utility.Validator;
using Iman.Utility.Extensions;
using System.Collections;
using Iman.Domain;
using Iman.Utility.Dictionary;
using System.Data;
using Iman.Utility.Tools;
using System.Data.SqlClient;
using System.Text;

public partial class UserManager_UserAdd : BasePage
{
    //创建一个SqlConnection对象 
    string strConn = System.Configuration.ConfigurationManager.AppSettings["JiuYangCRMConnectionString"].ToString();
                           
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //DataTable dtRole = TRole.QueryDataTable("SelectByParam", new Hashtable());
            //this.ddlUserType.DataSource = dtRole.DefaultView;
            //this.ddlUserType.DataTextField = "ROLE_NAME";
            //this.ddlUserType.DataValueField = "ID";
            //this.ddlUserType.DataBind();


            DropDownListBinder.BindDataToDropDownList(this.ddlUserType, typeof(SiteDictionary.UserRole));
            DropDownListBinder.BindDataToDropDownList(this.ddlStatus, typeof(SiteDictionary.UserStatus));


            if (!string.IsNullOrEmpty(Request["id"]))
            {
                BindData(Request["id"].ToString());
            }
        }
    }

    private void BindData(string strId)
    {
        IDictionary queryParam = new Hashtable();
        queryParam.Add("ID", strId);
        TUser user = TUser.QueryObject("SelectByParam", queryParam);
        if (user != null)
        {
            ControlExtensions.BindObjectToControls(this.divContainer, user);

            queryParam = new Hashtable();
            queryParam.Add("UserId", strId);
            TEmailList emailList = TEmailList.QueryObject("SelectByParam", queryParam);
            if (emailList != null)
            {
                this.txtEmail.Text = emailList.EmailAddress;
            }
        }
后面还有 450 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。