Пример #1
0
 public async Task <StepModel> GetStepById(int aStepId)
 {
     return(await DataAccessGeneric.HttpGetRequest <StepModel>(Config["APIAddress"] + "api/Steps/GetStepById/" + aStepId, _httpContextAccessor.HttpContext));
 }
Пример #2
0
 public async Task <IEnumerable <PartModel> > GetPartForCustId(int aCustId)
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <PartModel> >(Config["APIAddress"] + "api/Part/GetPartsForCustId/" + aCustId, _httpContextAccessor.HttpContext));
 }
Пример #3
0
 public async Task <bool> CheckIfDescriptionIsUnique(string anAlloyDescription)
 {
     return(await DataAccessGeneric.HttpGetRequest <bool>(Config["APIAddress"] + "api/MaterialAlloy/CheckIfDescriptionIsUnique/" + anAlloyDescription, _httpContextAccessor.HttpContext));
 }
Пример #4
0
 public async Task <ProcessRevisionModel> GetHydratedCurrentProcessRev(int aProcessId)
 {
     return(await DataAccessGeneric.HttpGetRequest <ProcessRevisionModel>(Config["APIAddress"] + "api/Processes/GetProcessCurrentHydratedRev/" + aProcessId, _httpContextAccessor.HttpContext));
 }
Пример #5
0
 public async Task <IEnumerable <OperationGroupModel> > GetAllOperationGroups()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <OperationGroupModel> >(Config["APIAddress"] + "api/operation/GetAllOperationGroups", _httpContextAccessor.HttpContext));
 }
Пример #6
0
 public async Task <SpecModel> GetHydratedCurrentRevOfSpec(int aSpecId)
 {
     return(await DataAccessGeneric.HttpGetRequest <SpecModel>(Config["APIAddress"] + "api/spec/GetHydratedCurrentRevOfSpec/" + aSpecId, _httpContextAccessor.HttpContext));
 }
Пример #7
0
 public async Task <ProcessModel> GetHydratedProcess(int id)
 {
     return(await DataAccessGeneric.HttpGetRequest <ProcessModel>(Config["APIAddress"] + "api/Processes/GetProcess/" + id, _httpContextAccessor.HttpContext));
 }
Пример #8
0
 public async Task <IEnumerable <UnitOfMeasureModel> > GetAllUoMs()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <UnitOfMeasureModel> >(Config["APIAddress"] + "api/UnitOfMeasure/GetAllUoMs", _httpContextAccessor.HttpContext));
 }
Пример #9
0
 public async Task <IEnumerable <InspectTestTypeModel> > GetAllTestTypes()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <InspectTestTypeModel> >(Config["APIAddress"] + "api/InspectTestType/GetAllTestTypes", _httpContextAccessor.HttpContext));
 }
Пример #10
0
 public async Task <IEnumerable <ShipViaCodeModel> > GetAllShipVias()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <ShipViaCodeModel> >(Config["APIAddress"] + "api/ShipViaCode/GetAllShipVias", _httpContextAccessor.HttpContext));
 }
Пример #11
0
 public async Task <IEnumerable <CertificationChargeModel> > GetAllCertCharges()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <CertificationChargeModel> >(Config["APIAddress"] + "api/CertificationCharges/GetAllCertCharges", _httpContextAccessor.HttpContext));
 }
Пример #12
0
 public async Task <IEnumerable <DepartmentModel> > GetAllDepartments()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <DepartmentModel> >(Config["APIAddress"] + "api/Department/GetAllDepartments", _httpContextAccessor.HttpContext));
 }
Пример #13
0
 public async Task <IEnumerable <SamplePlanModel> > GetAllHydratedSamplePlans()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <SamplePlanModel> >(Config["APIAddress"] + "api/SamplePlan/GetAllHydratedSamplePlans", _httpContextAccessor.HttpContext));
 }
Пример #14
0
 public async Task <List <StepModel> > GetStepByName(string aStepName)
 {
     return(await DataAccessGeneric.HttpGetRequest <List <StepModel> >(Config["APIAddress"] + "api/Steps/GetStepByName/" + aStepName, _httpContextAccessor.HttpContext));
 }
Пример #15
0
        public async Task <OrderHeadModel> GetOrderHeadById(int anOrderId)
        {
            var result = await DataAccessGeneric.HttpGetRequest <OrderHeadModel>(Config["APIAddress"] + "api/OrderHead/GetHydratedOrderHead/" + anOrderId, _httpContextAccessor.HttpContext);

            return(result);
        }
Пример #16
0
 public async Task <short> GetNextReceivedNumberForOrderId(int anOrderId)
 {
     return(await DataAccessGeneric.HttpGetRequest <short>(Config["APIAddress"] + "api/OrderReceived/GetNextReceivedNumberForOrderId/" + anOrderId, _httpContextAccessor.HttpContext));
 }
Пример #17
0
 public async Task <IEnumerable <SpecModel> > GetAllHydratedSpecsWithOnlyCurrentRev()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <SpecModel> >(Config["APIAddress"] + "api/spec/GetAllHydratedSpecsWithOnlyCurrentRev", _httpContextAccessor.HttpContext));
 }
Пример #18
0
 public async Task <IEnumerable <CustomerModel> > GetAllCurrentAndProspectCustomers()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <CustomerModel> >(Config["APIAddress"] + "api/Customers/GetAllCurrentAndProspectCustomersWithBillTo", _httpContextAccessor.HttpContext));
 }
Пример #19
0
 public async Task <bool> CheckIfCodeIsUnique(string aSpecCode)
 {
     return(await DataAccessGeneric.HttpGetRequest <bool>(Config["APIAddress"] + "api/spec/CheckIfCodeIsUnique/" + aSpecCode, _httpContextAccessor.HttpContext));
 }
Пример #20
0
 public async Task <EmployeeModel> GetEmployeeById(int id)
 {
     return(await DataAccessGeneric.HttpGetRequest <EmployeeModel>(Config["APIAddress"] + "api/Employee/GetEmployeeById/" + id, _httpContextAccessor.HttpContext));
 }
Пример #21
0
 public async Task <IEnumerable <ProcessModel> > GetHydratedProcessesWithCurrentAnyRev()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <ProcessModel> >(Config["APIAddress"] + "api/Processes/GetHydratedProcessesWithCurrentAnyRev", _httpContextAccessor.HttpContext));
 }
Пример #22
0
 public async Task <IEnumerable <SpecProcessAssignModel> > GetAllHydratedReviewNeededSpecProcessAssign()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <SpecProcessAssignModel> >(Config["APIAddress"] + "api/SpecProcessAssign/GetAllHydratedReviewNeededSpecProcessAssigns", _httpContextAccessor.HttpContext));
 }
Пример #23
0
 public async Task <bool> CheckIfNameIsUnique(string aProcessName)
 {
     return(await DataAccessGeneric.HttpGetRequest <bool>(Config["APIAddress"] + "api/Processes/CheckIfNameIsUnique/" + aProcessName, _httpContextAccessor.HttpContext));
 }
Пример #24
0
 public async Task <IEnumerable <SpecProcessAssignModel> > GetHydratedHistorySpecProcessAssignsForSpec(int aSpecId)
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <SpecProcessAssignModel> >(Config["APIAddress"] + "api/SpecProcessAssign/GetHydratedHistorySpecProcessAssignForSpec/" + aSpecId, _httpContextAccessor.HttpContext));
 }
Пример #25
0
 public async Task <IEnumerable <PartModel> > GetAllPartsWithRack()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <PartModel> >(Config["APIAddress"] + "api/Part/GetAllPartsWithRacks", _httpContextAccessor.HttpContext));
 }
Пример #26
0
 public async Task <bool> CheckIfReviewIsNeededForSpecId(int aSpecId)
 {
     return(await DataAccessGeneric.HttpGetRequest <bool>(Config["APIAddress"] + "api/SpecProcessAssign/CheckIfReviewIsNeededForSpecId/" + aSpecId, _httpContextAccessor.HttpContext));
 }
Пример #27
0
 public async Task <IEnumerable <ShipToModel> > GetShipToByCustId(int aCustId)
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <ShipToModel> >(Config["APIAddress"] + "api/ShipTo/GetShipTosByCust/" + aCustId, _httpContextAccessor.HttpContext));
 }
Пример #28
0
 public async Task <BillToModel> GetBillToForCustId(int aCustId)
 {
     return(await DataAccessGeneric.HttpGetRequest <BillToModel>(Config["APIAddress"] + "api/BillTo/GetBillToByCustId/" + aCustId, _httpContextAccessor.HttpContext));
 }
Пример #29
0
 public async Task <IEnumerable <MaterialSeriesModel> > GetAllMaterialSeries()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <MaterialSeriesModel> >(Config["APIAddress"] + "api/MaterialSeries/GetAllMaterialSeries", _httpContextAccessor.HttpContext));
 }
Пример #30
0
 public async Task <IEnumerable <StepCategoryModel> > GetAllStepCategoryies()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <StepCategoryModel> >(Config["APIAddress"] + "api/Steps/GetAllStepCategories", _httpContextAccessor.HttpContext));
 }