예제 #1
0
        private void InitUser()
        {
            if (!string.IsNullOrEmpty(DeptCode))
            {
                UserProfileBLL bll = new UserProfileBLL();
                DataSet        ds  = bll.GetUserByDeptCode(DeptCode);

                if (ds != null && ds.Tables.Count > 1)
                {
                    gvUser.DataSource = ds.Tables[0];
                    gvUser.DataBind();

                    txtUserCount.Text = ds.Tables[1].Rows[0][0].ToString();
                }
            }
        }