Beispiel #1
0
 internal bool CheckAuth(UserAuthProxyVO RequiredAuth)
 {
     if (userInfo.UsersVO.UserType ==사용자등급.관리자)
     {
         return true;
     }
     UserAuthProxyVO userAuth = new UserAuthProxyVO();
     userAuth.UserAuth = this.userInfo.UsersVO.UserAuth;
     bool isValid = true;
     foreach (var prop in typeof(UserAuth).GetProperties())
     {
         try
         {
             if ((int)RequiredAuth[prop.Name] > (int)userAuth[prop.Name])
             {
                 isValid = false;
                 break;
             }
         }
         catch (Exception)
         {
             continue;
         }
     }//End of foreach
     return isValid;
 }
Beispiel #2
0
 public Insert(MyCompanyProxyVO myCompany)
     : base("자신의 회사정보 입력", Hitpan5ClientLibrary.SQLDataServiceModel)
 {
     this.myCompany = myCompany;
     this.dbModel = Hitpan5ClientLibrary.SQLDataServiceModel;
     UserAuthProxyVO ua = new UserAuthProxyVO();
     ua["나의정보관리"] = 사용자권한.모두허용;
     base.RequiredAuth = ua;
 }
Beispiel #3
0
 public Insert(UserInfoProxyVO userinfo)
     : base(string.Format("아이디 {0} 입력",userinfo.UsersVO.UserID), Hitpan5ClientLibrary.SQLDataServiceModel)
 {
     this.userinfo = userinfo;
     this.dbModel = Hitpan5ClientLibrary.SQLDataServiceModel;
     UserAuthProxyVO ua = new UserAuthProxyVO();
     ua["계정관리"] = 사용자권한.모두허용;
     base.RequiredAuth = ua;
 }
Beispiel #4
0
        public SelectCommonSettings()
            : base("세팅정보 세팅", Hitpan5ClientLibrary.SQLDataServiceModel)
        {
            this.dbModel = Hitpan5ClientLibrary.SQLDataServiceModel;

            UserAuthProxyVO ua = new UserAuthProxyVO();   //실행에 필요한 권한
            ua["설정관리"] = 사용자권한.조회만가능;
            base.RequiredAuth = ua;
            base.docController = new libHitpan5.Controller.Common.DocumentController.CommonSettingsDocument();//문서작성용 컨트롤러
        }
Beispiel #5
0
        public Update(UserInfoProxyVO post_userinfo, UserInfoProxyVO userinfo, string comment)
            : base(comment,Hitpan5ClientLibrary.SQLDataServiceModel)
        {
            this.dbModel = Hitpan5ClientLibrary.SQLDataServiceModel;
            this.userinfo = userinfo;
            this.post_userinfo = post_userinfo;

            UserAuthProxyVO ua = new UserAuthProxyVO();
            ua["계정관리"] = 사용자권한.모두허용;
            base.RequiredAuth = ua;
        }
Beispiel #6
0
        public SelectMyCompany()
            : base("나의 회사 정보 검색", Hitpan5ClientLibrary.SQLDataServiceModel)
        {
            this.dbModel = Hitpan5ClientLibrary.SQLDataServiceModel;

            UserAuthProxyVO ua = new UserAuthProxyVO();   //실행에 필요한 권한
            ua["나의정보관리"] = 사용자권한.조회만가능;
            base.RequiredAuth = ua;

            base.docController = new libHitpan5.Controller.Common.DocumentController.MyCompanyDocument();//문서작성용 컨트롤러
        }
Beispiel #7
0
        public Update(CommonSettingProxyVO CommonSettinginfo, CommonSettingProxyVO pre_CommonSettinginfo)
            : base("기본설정 입력", Hitpan5ClientLibrary.SQLDataServiceModel)
        {
            this.CommonSettinginfo = CommonSettinginfo;
            this.pre_CommonSettinginfo = pre_CommonSettinginfo;
            this.dbModel = Hitpan5ClientLibrary.SQLDataServiceModel;

            UserAuthProxyVO ua = new UserAuthProxyVO();
            ua["설정관리"] = 사용자권한.모두허용;
            base.RequiredAuth = ua;
        }
Beispiel #8
0
        public Insert(GoodDetailProxyVO GoodInfo)
            : base(string.Format("이름:{0} 규격{1}인 상품 정보 입력", GoodInfo.GoodsDetail.good_name, GoodInfo.GoodsDetail.good_subname), Hitpan5ClientLibrary.SQLDataServiceModel)
        {
            this.GoodInfo = GoodInfo;
            this.dbModel = Hitpan5ClientLibrary.SQLDataServiceModel;

            UserAuthProxyVO ua = new UserAuthProxyVO();
            ua["상품정보"] = 사용자권한.모두허용;
            ua["표준관리"] = 사용자권한.모두허용;
            base.RequiredAuth = ua;
        }
Beispiel #9
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="doc"></param>
        /// <param name="id">특정 ID정보를 찾고자 할 때만 id값을 주고 전부 찾고자 하면 null값을 준다</param>
        /// <param name="dbModel"></param>
        public SelectUser(string id)
            : base(string.Format("{0}에 대한 정보 검색", id), Hitpan5ClientLibrary.SQLDataServiceModel)
        {
            this.dbModel = Hitpan5ClientLibrary.SQLDataServiceModel;
            this.id = id;

            UserAuthProxyVO ua = new UserAuthProxyVO();   //실행에 필요한 권한
            ua["계정관리"] = 사용자권한.조회만가능;
            base.RequiredAuth = ua;

            base.docController = new UserDocument();//문서작성용 컨트롤러
        }
Beispiel #10
0
        public Update(GoodDetailProxyVO post_GoodInfo, GoodDetailProxyVO GoodInfo, string comment)
            : base(comment, Hitpan5ClientLibrary.SQLDataServiceModel)
        {
            this.GoodInfo = GoodInfo;
            this.post_GoodInfo = post_GoodInfo;
            this.dbModel = Hitpan5ClientLibrary.SQLDataServiceModel;

            UserAuthProxyVO ua = new UserAuthProxyVO();
            ua["상품정보"] = 사용자권한.모두허용;
            ua["표준관리"] = 사용자권한.모두허용;
            base.RequiredAuth = ua;
        }
Beispiel #11
0
        public SelectGoodDetail(GoodDetailProxyVO param)
            : base("상품정보 검색", Hitpan5ClientLibrary.SQLDataServiceModel)
        {
            this.dbModel = Hitpan5ClientLibrary.SQLDataServiceModel;
            this.param = param;

            UserAuthProxyVO ua = new UserAuthProxyVO();   //실행에 필요한 권한
            ua["상품정보"] = 사용자권한.조회만가능;
            ua["표준관리"] = 사용자권한.조회만가능;
            base.RequiredAuth = ua;

            base.docController = new libHitpan5.Controller.Common.DocumentController.GoodDetailDocument();//문서작성용 컨트롤러
        }