using System; using System.Collections; using System.Configuration; using System.Data; //using System.Linq; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.HtmlControls; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; //using System.Xml.Linq; namespace Com.Jpsoft.Hospital.Web.Module.Sys.User { public partial class Detail : Com.Jpsoft.Hospital.Web.Common.BasePage { protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { if (Request.QueryString["uid"].ToString().Trim() != "" && Request.QueryString["uid"] != null) { int uid = int.Parse(Request.QueryString["uid"].ToString()); ShowData(uid); } } } /// /// 返回 /// /// /// protected void btnSubmit_Click(object sender, EventArgs e) { Response.Write(""); } /// /// 显示数据 /// /// private void ShowData(int id) { Com.Jpsoft.Hospital.Model.jp_sys_user model = new Com.Jpsoft.Hospital.Model.jp_sys_user(); Com.Jpsoft.Hospital.BLL.jp_sys_user bll = new Com.Jpsoft.Hospital.BLL.jp_sys_user(); model = bll.GetModel(id); this.txtAnswer.Text = model.user_answer.ToString(); this.txtName.Text = model.user_name.ToString(); this.txtQuestion.Text = model.user_quesetion.ToString(); this.txtRemark.Text = model.user_remark.ToString(); this.txtUsername.Text = model.user_loginname.ToString(); this.ckbIsadmin.Checked = bool.Parse(model.user_isadmin.ToString()); this.ckbIslock.Checked = bool.Parse(model.user_islock.ToString()); } } }