Ejemplo n.º 1
0
 public async Task <StepModel> GetStepById(int aStepId)
 {
     return(await DataAccessGeneric.HttpGetRequest <StepModel>(Config["APIAddress"] + "api/Steps/GetStepById/" + aStepId, _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 2
0
 public async Task <IEnumerable <PartModel> > GetPartForCustId(int aCustId)
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <PartModel> >(Config["APIAddress"] + "api/Part/GetPartsForCustId/" + aCustId, _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 3
0
 public async Task <bool> CheckIfDescriptionIsUnique(string anAlloyDescription)
 {
     return(await DataAccessGeneric.HttpGetRequest <bool>(Config["APIAddress"] + "api/MaterialAlloy/CheckIfDescriptionIsUnique/" + anAlloyDescription, _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 4
0
 public async Task <ProcessRevisionModel> GetHydratedCurrentProcessRev(int aProcessId)
 {
     return(await DataAccessGeneric.HttpGetRequest <ProcessRevisionModel>(Config["APIAddress"] + "api/Processes/GetProcessCurrentHydratedRev/" + aProcessId, _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 5
0
 public async Task <IEnumerable <OperationGroupModel> > GetAllOperationGroups()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <OperationGroupModel> >(Config["APIAddress"] + "api/operation/GetAllOperationGroups", _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 6
0
 public async Task <SpecModel> GetHydratedCurrentRevOfSpec(int aSpecId)
 {
     return(await DataAccessGeneric.HttpGetRequest <SpecModel>(Config["APIAddress"] + "api/spec/GetHydratedCurrentRevOfSpec/" + aSpecId, _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 7
0
 public async Task <ProcessModel> GetHydratedProcess(int id)
 {
     return(await DataAccessGeneric.HttpGetRequest <ProcessModel>(Config["APIAddress"] + "api/Processes/GetProcess/" + id, _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 8
0
 public async Task <IEnumerable <UnitOfMeasureModel> > GetAllUoMs()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <UnitOfMeasureModel> >(Config["APIAddress"] + "api/UnitOfMeasure/GetAllUoMs", _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 9
0
 public async Task <IEnumerable <InspectTestTypeModel> > GetAllTestTypes()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <InspectTestTypeModel> >(Config["APIAddress"] + "api/InspectTestType/GetAllTestTypes", _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 10
0
 public async Task <IEnumerable <ShipViaCodeModel> > GetAllShipVias()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <ShipViaCodeModel> >(Config["APIAddress"] + "api/ShipViaCode/GetAllShipVias", _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 11
0
 public async Task <IEnumerable <CertificationChargeModel> > GetAllCertCharges()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <CertificationChargeModel> >(Config["APIAddress"] + "api/CertificationCharges/GetAllCertCharges", _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 12
0
 public async Task <IEnumerable <DepartmentModel> > GetAllDepartments()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <DepartmentModel> >(Config["APIAddress"] + "api/Department/GetAllDepartments", _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 13
0
 public async Task <IEnumerable <SamplePlanModel> > GetAllHydratedSamplePlans()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <SamplePlanModel> >(Config["APIAddress"] + "api/SamplePlan/GetAllHydratedSamplePlans", _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 14
0
 public async Task <List <StepModel> > GetStepByName(string aStepName)
 {
     return(await DataAccessGeneric.HttpGetRequest <List <StepModel> >(Config["APIAddress"] + "api/Steps/GetStepByName/" + aStepName, _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 16
0
 public async Task <short> GetNextReceivedNumberForOrderId(int anOrderId)
 {
     return(await DataAccessGeneric.HttpGetRequest <short>(Config["APIAddress"] + "api/OrderReceived/GetNextReceivedNumberForOrderId/" + anOrderId, _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 17
0
 public async Task <IEnumerable <SpecModel> > GetAllHydratedSpecsWithOnlyCurrentRev()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <SpecModel> >(Config["APIAddress"] + "api/spec/GetAllHydratedSpecsWithOnlyCurrentRev", _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 18
0
 public async Task <IEnumerable <CustomerModel> > GetAllCurrentAndProspectCustomers()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <CustomerModel> >(Config["APIAddress"] + "api/Customers/GetAllCurrentAndProspectCustomersWithBillTo", _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 19
0
 public async Task <bool> CheckIfCodeIsUnique(string aSpecCode)
 {
     return(await DataAccessGeneric.HttpGetRequest <bool>(Config["APIAddress"] + "api/spec/CheckIfCodeIsUnique/" + aSpecCode, _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 20
0
 public async Task <EmployeeModel> GetEmployeeById(int id)
 {
     return(await DataAccessGeneric.HttpGetRequest <EmployeeModel>(Config["APIAddress"] + "api/Employee/GetEmployeeById/" + id, _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 21
0
 public async Task <IEnumerable <ProcessModel> > GetHydratedProcessesWithCurrentAnyRev()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <ProcessModel> >(Config["APIAddress"] + "api/Processes/GetHydratedProcessesWithCurrentAnyRev", _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 22
0
 public async Task <IEnumerable <SpecProcessAssignModel> > GetAllHydratedReviewNeededSpecProcessAssign()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <SpecProcessAssignModel> >(Config["APIAddress"] + "api/SpecProcessAssign/GetAllHydratedReviewNeededSpecProcessAssigns", _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 23
0
 public async Task <bool> CheckIfNameIsUnique(string aProcessName)
 {
     return(await DataAccessGeneric.HttpGetRequest <bool>(Config["APIAddress"] + "api/Processes/CheckIfNameIsUnique/" + aProcessName, _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 24
0
 public async Task <IEnumerable <SpecProcessAssignModel> > GetHydratedHistorySpecProcessAssignsForSpec(int aSpecId)
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <SpecProcessAssignModel> >(Config["APIAddress"] + "api/SpecProcessAssign/GetHydratedHistorySpecProcessAssignForSpec/" + aSpecId, _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 25
0
 public async Task <IEnumerable <PartModel> > GetAllPartsWithRack()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <PartModel> >(Config["APIAddress"] + "api/Part/GetAllPartsWithRacks", _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 26
0
 public async Task <bool> CheckIfReviewIsNeededForSpecId(int aSpecId)
 {
     return(await DataAccessGeneric.HttpGetRequest <bool>(Config["APIAddress"] + "api/SpecProcessAssign/CheckIfReviewIsNeededForSpecId/" + aSpecId, _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 27
0
 public async Task <IEnumerable <ShipToModel> > GetShipToByCustId(int aCustId)
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <ShipToModel> >(Config["APIAddress"] + "api/ShipTo/GetShipTosByCust/" + aCustId, _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 28
0
 public async Task <BillToModel> GetBillToForCustId(int aCustId)
 {
     return(await DataAccessGeneric.HttpGetRequest <BillToModel>(Config["APIAddress"] + "api/BillTo/GetBillToByCustId/" + aCustId, _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 29
0
 public async Task <IEnumerable <MaterialSeriesModel> > GetAllMaterialSeries()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <MaterialSeriesModel> >(Config["APIAddress"] + "api/MaterialSeries/GetAllMaterialSeries", _httpContextAccessor.HttpContext));
 }
Ejemplo n.º 30
0
 public async Task <IEnumerable <StepCategoryModel> > GetAllStepCategoryies()
 {
     return(await DataAccessGeneric.HttpGetRequest <IEnumerable <StepCategoryModel> >(Config["APIAddress"] + "api/Steps/GetAllStepCategories", _httpContextAccessor.HttpContext));
 }