Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        #region "原始代码"
        //if (!Page.IsPostBack)
        //{
        //    dt = DateTime.Now;
        //    if (!String.IsNullOrEmpty(Request.QueryString["UnitCode"]))
        //    {
        //        string unitCode = Request.QueryString["UnitCode"];
        //        deptName = smBFL.GetDeptNameByDeptID(unitCode);
        //        this.GridView1.DataSource = smBFL.GetUserByUnitCode(unitCode);
        //        this.GridView1.DataBind();
        //    }
        //}
        #endregion

        #region "修改代码 修改日期 2007-1-9"
        dt = RS_ScoreExtend.CheckMonth;
        if (!Page.IsPostBack)
        {
            if (!String.IsNullOrEmpty(Request.QueryString["UnitCode"]))
            {
                string unitCode = Request.QueryString["UnitCode"];
                deptName = smBFL.GetDeptNameByDeptID(unitCode);
                RS_ScoreExtend sExtend = new RS_ScoreExtend();
                this.GridView1.DataSource = sExtend.GetUsersByCode(user.UserCode, unitCode);
                this.GridView1.DataBind();
            }
        }
        #endregion
    }
Пример #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string manageCode = Request.QueryString["FKCode"];
        string deptCode   = Request.QueryString["UnitCode"];

        dt = DateTime.Now;
        if (!String.IsNullOrEmpty(deptCode))
        {
            deptName = smBFL.GetDeptNameByDeptID(deptCode);
        }
    }