예제 #1
0
파일: RequestMgr.cs 프로젝트: tah182/Comet
        public RequestMgr(IRequestSvc svc)
        {
            this.svc = svc;
            this.requestList = (ApplicationStore<IList<RequestView>>)HttpContext.Current.Application["Request"];
            this.elementStatusList = (ApplicationStore<IList<LookupSorted>>)HttpContext.Current.Application["ElementStatus"];
            this.requestStatusList = (ApplicationStore<IList<LookupSorted>>)HttpContext.Current.Application["RequestStatus"];
            this.projectStatusList = (ApplicationStore<IList<LookupSorted>>)HttpContext.Current.Application["ProjectStatus"];

            if (this.requestList == null || this.elementStatusList == null || this.requestStatusList == null || this.projectStatusList == null ||
                !this.requestList.isValid() || !this.elementStatusList.isValid() || !this.requestStatusList.isValid() || !this.projectStatusList.isValid())
                refresh();
        }
예제 #2
0
파일: LookupMgr.cs 프로젝트: tah182/Comet
        public LookupMgr(IRequestSvc svc)
        {
            this.svc = svc;

            this.supportAreaList = (ApplicationStore<IList<SupportArea>>)HttpContext.Current.Application["SupportArea"];
            this.supportUnitList = (ApplicationStore<IList<ALookup>>)HttpContext.Current.Application["SupportUnit"];
            this.requestTypeList = (ApplicationStore<IList<LookupActive>>)HttpContext.Current.Application["RequestType"];
            this.projectTypeList = (ApplicationStore<IList<LookupActive>>)HttpContext.Current.Application["ProjectType"];
            this.requestCategoryList = (ApplicationStore<IList<LookupActive>>)HttpContext.Current.Application["RequestCategory"];
            this.valueDriverList = (ApplicationStore<IList<ALookup>>)HttpContext.Current.Application["ValueDriver"];
            this.programList = (ApplicationStore<IList<ALookup>>)HttpContext.Current.Application["Program"];

            if (this.supportAreaList == null || this.supportUnitList == null || this.requestTypeList == null || this.requestCategoryList == null || this.valueDriverList == null || this.programList == null ||
                !this.supportUnitList.isValid() || !this.supportUnitList.isValid() || !this.requestTypeList.isValid() || !this.requestCategoryList.isValid() || !this.valueDriverList.isValid() || !this.programList.isValid())
                refresh();
        }
예제 #3
0
 public RequestController(IServiceProvider container) : base(container)
 {
     _requestSvc = container.GetService <IRequestSvc>();
 }