/// <summary>根据筛选值返回默认用户配置信息</summary> /// <param name="sel">筛选值</param> /// <returns>根据筛选值返回默认用户配置信息</returns> public static UserConfig GetSelectUserConfig(string sel) { UserConfig uc = new UserConfig(); if (UserLoginTable.Rows.Count > 0) { DataRow[] dr = UserLoginTable.Select(sel); if (dr.Length > 0) { uc.UserName = dr[0]["UserName"].ToString().Trim(); uc.UserPwd = TripleDes.DesDe(dr[0]["UserPwd"].ToString().Trim(), wapp.AppList.DeKey).Trim(); if (dr[0]["IsUser"].ToString().Trim() == "1") { uc.IsUser = 1; } if (UserConifgTable.Rows.Count > 0) { DataRow[] drc = UserConifgTable.Select("UserName='******'"); if (drc.Length > 0) { if (drc[0]["IsSave"].ToString().Trim() == "1") { uc.IsSave = 1; } if (drc[0]["AutoLogin"].ToString().Trim() == "1") { uc.AutoLogin = 1; } if (drc[0]["AutoStat"].ToString().Trim() == "1") { uc.AutoStat = 1; } } } } } return(uc); }