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();
}
}
}
}
///
/// 绑定数据
///
///
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();
}
}
}