예제 #1
0
        public async Task <Result <CommitmentsSearchReturnEnt> > Search([FromBody] CommitmentsSearchArg arg)
        {
            Result <CommitmentsSearchReturnEnt> r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <CommitmentsSearchReturnEnt> .Run(delegate() { return(OVPRBus.Search(arg)); });
            });

            return(r);
        }
예제 #2
0
        public async Task <Result <usp_16a_GetProposalDetailByPropNo_Ent> > GetProposalDetailByPropNo(string proposalNum)
        {
            Result <usp_16a_GetProposalDetailByPropNo_Ent> r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <usp_16a_GetProposalDetailByPropNo_Ent> .Run(delegate() { return(OVPRBus.GetProposalDetailByPropNo(proposalNum)); });
            });

            return(r);
        }
예제 #3
0
        public async Task <Result <GetSponsorsEnt> > GetSponsorsByCampus(int CampusPK, string name, string SponsorNameSearch, int?EnsureExists_SponsorPK)
        {
            Result <GetSponsorsEnt> r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <GetSponsorsEnt> .Run(delegate() { return(DropDownBus.usp_11_Sponsor_GetSponsorsByCampus(CampusPK, SponsorNameSearch, EnsureExists_SponsorPK)); });
            });

            return(r);
        }
예제 #4
0
        public async Task <Result <string> > GetCommitmentStatus(int Commitment_PK)
        {
            Result <string> r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <string> .Run(delegate() { return(OVPRBus.GetCommitmentStatusByCommitPK(Commitment_PK)); });
            });

            return(r);
        }
예제 #5
0
        public async Task <Result <List <usp_08_PaymentStatus_GetStatusesEnt> > > GetStatuses()
        {
            Result <List <usp_08_PaymentStatus_GetStatusesEnt> > r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <List <usp_08_PaymentStatus_GetStatusesEnt> > .Run(delegate() { return(DropDownBus.usp_08_PaymentStatus_GetStatuses()); });
            });

            return(r);
        }
예제 #6
0
        public async Task <Result <List <usp_10_Department_GetDeptsByCampusSchoolEnt> > > GetDeptsByCampusSchool(int CampusPK, int SchoolPK, int?ensureExists_DeptPK)
        {
            Result <List <usp_10_Department_GetDeptsByCampusSchoolEnt> > r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <List <usp_10_Department_GetDeptsByCampusSchoolEnt> > .Run(delegate() { return(DropDownBus.usp_10_Department_GetDeptsByCampusSchool(CampusPK, SchoolPK, ensureExists_DeptPK)); });
            });

            return(r);
        }
예제 #7
0
        public async Task <Result <List <usp_05a_School_GetSchoolByCampusEnt> > > GetSchoolByCampus(int?CampusPK)
        {
            Result <List <usp_05a_School_GetSchoolByCampusEnt> > r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <List <usp_05a_School_GetSchoolByCampusEnt> > .Run(delegate() { return(DropDownBus.usp_05a_School_GetSchoolByCampus(CampusPK)); });
            });

            return(r);
        }
예제 #8
0
        public async Task <Result <List <usp_07_CommittmentType_GetTypesEnt> > > GetTypes()
        {
            Result <List <usp_07_CommittmentType_GetTypesEnt> > r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <List <usp_07_CommittmentType_GetTypesEnt> > .Run(delegate() { return(DropDownBus.usp_07_CommittmentType_GetTypes()); });
            });

            return(r);
        }
예제 #9
0
        public async Task <Result <List <usp_05_Campus_GetCampus_Ent> > > GetCampus()
        {
            Result <List <usp_05_Campus_GetCampus_Ent> > r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <List <usp_05_Campus_GetCampus_Ent> > .Run(delegate() { return(DropDownBus.usp_05_Campus_GetCampus()); });
            });

            return(r);
        }
예제 #10
0
        public async Task <Result <GetPIsEnt> > GetPIsByLastName(int?CampusPK, int?SchoolPK, int?DeptPK, string PILastNameSearch, int?EnsureExists_PIPK)
        {
            Result <GetPIsEnt> r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <GetPIsEnt> .Run(delegate() { return(DropDownBus.usp_17_GetPIsByCampus(CampusPK, SchoolPK, DeptPK, PILastNameSearch, EnsureExists_PIPK)); });
            });

            return(r);
        }
예제 #11
0
        public async Task <Result <GetProposalsEnt> > GetProposals(int CampusPK, int?SchoolPK, int?DeptPK, string ProposalNumberSearch, string EnsureExists_ProposalNumber)
        {
            Result <GetProposalsEnt> r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <GetProposalsEnt> .Run(delegate() { return(DropDownBus.GetProposals(CampusPK, SchoolPK, DeptPK, ProposalNumberSearch, EnsureExists_ProposalNumber)); });
            });

            return(r);
        }
예제 #12
0
        public async Task <Result <int> > AddLevel2([FromBody] TypeLevel2Ent ent)
        {
            Result <int> r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <int> .Run(delegate() { TypeBus.AddLevel2(ent, LoggededInUserEmail); });
            });

            return(r);
        }
예제 #13
0
        public async Task <Result <int> > GetTimout()
        {
            Result <int> r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <int> .Run(delegate() { return(OVPR_System.AuthenticationTimeout_Minutes); });
            });

            return(r);
        }
예제 #14
0
        public async Task <Result <List <TypeEnt> > > GetLevel2(int Level1_PK)
        {
            Result <List <TypeEnt> > r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <List <TypeEnt> > .Run(delegate() { return(TypeBus.GetLevel2(Level1_PK)); });
            });

            return(r);
        }
예제 #15
0
        public async Task <Result <List <RolesEnt> > > GetRoles()
        {
            Result <List <RolesEnt> > r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <List <RolesEnt> > .Run(delegate() { return(UserBus.GetRoles()); });
            });

            return(r);
        }
예제 #16
0
        public async Task <Result <int> > KeepAlive()
        {
            Result <int> r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <int> .Run(delegate() { return(1); });
            });

            return(r);
        }
예제 #17
0
        public async Task <Result <List <UserEnt> > > GetAllUsers(bool isActive)
        {
            Result <List <UserEnt> > r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <List <UserEnt> > .Run(delegate() { return(UserBus.GetAllUsers(isActive)); });
            });

            return(r);
        }
예제 #18
0
        public async Task <Result <int> > UpdateUser([FromBody] UserEnt ent)
        {
            Result <int> r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <int> .Run(delegate() { UserBus.UpdateUser(ent, LoggededInUserID); });
            });

            return(r);
        }
예제 #19
0
        public async Task <Result <int> > EditPayment([FromBody] PaymentChangeEnt ent)
        {
            Result <int> r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <int> .Run(delegate() { PaymentBus.EditPayment(ent); });
            });

            return(r);
        }
예제 #20
0
        public async Task <Result <int> > DeletePayment(int Commitment_PK, int Payment_PK, string PayStatus)
        {
            Result <int> r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <int> .Run(delegate() { PaymentBus.DeletePayment(Commitment_PK, Payment_PK, PayStatus); });
            });

            return(r);
        }
예제 #21
0
        public async Task <Result <int> > GetNextAvailablePaymentNumber(int Commitment_PK)
        {
            Result <int> r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <int> .Run(delegate() { return(PaymentBus.GetNextAvailablePaymentNumber(Commitment_PK)); });
            });

            return(r);
        }
예제 #22
0
        public async Task <Result <string> > GetCurrentFiscalYear()
        {
            Result <string> r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <string> .Run(delegate() { return(PaymentBus.GetCurrentFiscalYear()); });
            });

            return(r);
        }
예제 #23
0
        public async Task <Result <List <PaymentEnt> > > GetAllPayments(int CommitPK, string PayStatus)
        {
            Result <List <PaymentEnt> > r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <List <PaymentEnt> > .Run(delegate() { return(PaymentBus.GetPayments(CommitPK, PayStatus, null)); });
            });

            return(r);
        }
예제 #24
0
        public async Task <Result <CommitmentEnt> > GetCommitment(int Commitment_PK)
        {
            Result <CommitmentEnt> r = null;
            await Task.Run(() =>
            {
                r = ResultRunner <CommitmentEnt> .Run(delegate() { return(OVPRBus.GetCommitment(Commitment_PK)); });
            });

            return(r);
        }
예제 #25
0
        public async Task <Result <int> > CreateCommitment([FromBody] UpdateCommitmentArg updateCommitmenArg)
        {
            Result <int> r = null;
            await Task.Run(() =>
            {
                string sql = null;
                r          = ResultRunner <int> .Run(delegate() { return(OVPRBus.CreateCommitment(LoggededInUserEmail, updateCommitmenArg.CommitmentChangeEnt, updateCommitmenArg.Files, out sql)); });
                r.SQL      = sql;
            });

            return(r);
        }
예제 #26
0
        public async Task <Result <int> > UpdateCommitment([FromBody] UpdateCommitmentArg updateCommitmenArg)
        {
            //var x = "";
            //OVPRBus.UpdateCommitment(LoggededInUserEmail, updateCommitmenArg.CommitmentChangeEnt, updateCommitmenArg.Files, out x);

            Result <int> r   = null;
            string       sql = null;
            await Task.Run(() =>
            {
                r     = ResultRunner <int> .Run(delegate() { OVPRBus.UpdateCommitment(LoggededInUserEmail, updateCommitmenArg.CommitmentChangeEnt, updateCommitmenArg.Files, out sql); });
                r.SQL = sql;
            });

            return(r);
        }