1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- using System;
- using System.Collections.Generic;
- //using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- //
- using System.Data;
- namespace Com.Jpsoft.Hospital.Web.Module.EmployeeGroup
- {
- public partial class Detail : Com.Jpsoft.Hospital.Web.Common.BasePage
- {
- protected int id;
- protected void Page_Load(object sender, EventArgs e)
- {
- if (!IsPostBack)
- {
- if (string.IsNullOrEmpty(Request.QueryString["id"].ToString().Trim()))
- {
- }
- else
- {;
- if (int.TryParse(Request.QueryString["id"].ToString().Trim(), out id))
- {
- BindPageData(id);
- GroupID.Value = id.ToString();
- }
- }
- }
- }
- /// <summary>
- /// 绑定数据
- /// </summary>
- /// <param name="id"></param>
- private void BindPageData(int id)
- {
- Com.Jpsoft.Hospital.BLL.jp_employee_group group = new BLL.jp_employee_group();
- DataTable dt = group.GetList(" eg_id=" + id).Tables[0];;
- this.gv.DataSource = dt.DefaultView;
- this.gv.DataBind();
- Com.Jpsoft.Hospital.BLL.jp_employee_group_detailEx detail = new BLL.jp_employee_group_detailEx();
- DataTable dt2 = detail.GetListEx(" t0.egd_group_id="+id).Tables[0];
- this.rptEmployee.DataSource = dt2.DefaultView;
- this.rptEmployee.DataBind();
- }
- }
- }
|