Exemplo n.º 1
0
        protected override void BindValueToPageControls()
        {
            foreach (var user in UserServices.GetList(new[] { UserRole.LanhDaoDonVi, UserRole.LanhDaoVP, UserRole.TruongPhongBan }))
            {
                NguoiKy.AddSelectItem(user.FullName, user.UserID.ToString(), user.DepartmentName.ToUpper());
            }

            NguoiSoanThao.BindData(UserServices.GetList(), "UserID", "FullName", "DepartmentName");
            LoaiVanBan.BindData(DocumentCategoryServices.GetList(), "DocumentCategoryID", "DocumentCategoryName");
        }
Exemplo n.º 2
0
        protected override void BindOtherValue()
        {
            foreach (var user in UserServices.GetList(new[] { UserRole.LanhDaoVP, UserRole.LanhDaoDonVi }))
            {
                NguoiKy.AddSelectItem(user.FullName, user.UserID.ToString(), user.DepartmentName?.ToUpper());
            }

            ChuyenVien.BindData(UserServices.GetList(new[] { UserRole.ChuyenVienVP, UserRole.ChuyenVien, UserRole.TruongPhongBan, UserRole.LanhDaoVP, UserRole.Administrator }).ToList <object>(), "UserID", "FullName", "DepartmentName");
            DonViThucHien.BindData(DepartmentServices.GetList().ToList <object>(), "DepartmentID", "DepartmentName", "DepartmentGroupName");
        }
Exemplo n.º 3
0
        protected override void BindOtherValue()
        {
            foreach (var user in UserServices.GetList(new[] { 6, 9 }))
            {
                NguoiKy.AddSelectItem(user.FullName, user.UserID.ToString(), user.DepartmentName.ToUpper());
            }

            ChuyenVienTheoDoi.BindData(UserServices.GetList(new[] { 10 }).ToList <object>(), "UserID", "FullName", "DepartmentName");
            DonViThucHien.BindData(DepartmentServices.GetList().ToList <object>(), "DepartmentID", "DepartmentName", "DepartmentGroupName");
        }
Exemplo n.º 4
0
        protected override void BindOtherValue()
        {
            foreach (var user in UserServices.GetList(new[] { UserRole.LanhDaoUBNDTinh, UserRole.LanhDaoVPUBNDTinh }))
            {
                NguoiKy.AddSelectItem(user.FullName, user.UserID.ToString(), user.DepartmentName?.ToUpper());
            }

            ChuyenVienTheoDoi.BindData(UserServices.GetList(new[] { 5 }).ToList <object>(), "UserID", "FullName", "DepartmentName");
            DonViThucHien.BindData(AgencyServices.GetList().ToList <object>(), "AgencyID", "AgencyName", "AgencyGroupName");
        }