Exemple #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //2015-5-18
        IdentityUser identityUser = new IdentityUser();

        Pkurg.PWorldBPM.Common.Info.UserInfo userInfo = identityUser.GetEmployee();
        string code = userInfo.FounderLoginId;

        lblUserInfo.Text = code;
        //string localName = HttpContext.Current.User.Identity.Name.ToLower();
        //lblUserInfo.Text = localName;
    }
Exemple #2
0
    public DataTable GetDataInfos()
    {
        //string loginName = JsHelper.TrimString(HttpContext.Current.User.Identity.Name.ToLower());
        IdentityUser identityUser = new IdentityUser();
        string       loginName    = identityUser.GetEmployee().LoginId;

        DataProvider dataProvider = new DataProvider();

        dataProvider.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["BPMConnectionString"].ConnectionString;
        SqlParameter[] parameters = new SqlParameter[] {
            new SqlParameter("@loginid", System.Data.SqlDbType.NVarChar, 100)
        };
        parameters[0].Value = loginName;
        return(dataProvider.ExecutedProcedure("GetToDoList", parameters));
    }
Exemple #3
0
 /// <summary>
 /// 根据登录名获取用户实体
 /// 有缓存
 /// </summary>
 /// <returns></returns>
 protected UserInfo GetEmployee()
 {
     IdentityUser identityUser = new IdentityUser();
     return identityUser.GetEmployee();
 }