using System; using System.Collections.Generic; //using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace Com.Jpsoft.Hospital.Web.Module.ExamineInfo.jp_examine_obj { public partial class Detail : Com.Jpsoft.Hospital.Web.Common.BasePage { Com.Jpsoft.Hospital.BLL.jp_examine_obj obj = new Com.Jpsoft.Hospital.BLL.jp_examine_obj(); Com.Jpsoft.Hospital.Model.jp_examine_obj model = new Com.Jpsoft.Hospital.Model.jp_examine_obj(); public string obj_id = string.Empty; public string obj_name = string.Empty; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (string.IsNullOrEmpty(Request.QueryString["id"].ToString())) { } else { int objid = 0; if (int.TryParse(Request.QueryString["id"].ToString(), out objid)) { ShowPageData(objid); } } } } /// /// 显示数据 /// /// private void ShowPageData(int id) { model = obj.GetModel(id); if (model != null) { if (model.obj_id > 0) { obj_id = model.obj_id.ToString(); obj_name = model.obj_name.ToString(); } } } } }