Sry.Solution.UI/View/OUsers.aspx.cs
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Sry.Solution.Components;
using Sry.Entity;
using Sry.Data;
namespace Sry.Solution.UI.View
{
public partial class OUsers : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
DataSet dsDep = PublicMethod.getDS("Dept");
DataSet dsRole = PublicMethod.getDS("Roles");
#region 绑定数据
if (dsDep != null && dsDep.Tables[0].Rows.Count > 0)
{
lblDep.Visible = false;
ddlDep.DataSource = dsDep.Tables[0];
ddlDep.DataTextField = "dep_Name";
ddlDep.DataValueField = "dep_ID";
ddlDep.DataBind();
}
else
{
ddlDep.Visible = true;
}
if (dsRole != null && dsRole.Tables[0].Rows.Count > 0)
{
lblRole.Visible = false;
ddlRole.DataSource = dsRole.Tables[0];
ddlRole.DataTextField = "roles_Name";
ddlRole.DataValueField = "roles_ID";
ddlRole.DataBind();
}
else
{
lblRole.Visible = true;
}
#endregion
if (!String.IsNullOrEmpty(Request.QueryString["vid"]))
{
//**说明是修改或者详情 赋值
Users model = new Users() {users_ID = PublicMethod.ConvertTo<int>(Request.QueryString["vid"],0) };
#region 参数赋值
var rsp = new UsersData().Get(model, 0);
txtName.Value = PublicMethod.ConvertTo<string>(rsp.users_Name, "");
txtLogin.Value = PublicMethod.ConvertTo<string>(rsp.users_Login, "");
ddlSex.SelectedIndex = PublicMethod.ConvertTo<int>(rsp.users_Sex, 0) == 1 ? 0 : 1;
txtBir.Value = PublicMethod.ConvertTo<string>(rsp.users_Birth, "");
txtPhone.Value = PublicMethod.ConvertTo<string>(rsp.users_Phone, "");
后面还有 188 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。