Пример #1
0
 public async Task <ProcessModel> CopyToNewProcessFromExisting(ProcessModel aProcessModel)
 {
     return(await DataAccessGeneric.HttpPostRequest <ProcessModel>(Config["APIAddress"] + "api/Processes/CopyNewProcessFromExisting", aProcessModel, _httpContextAccessor.HttpContext));
 }
Пример #2
0
 public async Task <ProcessRevisionModel> RevUp(ProcessRevisionModel aProcessRevModel)
 {
     return(await DataAccessGeneric.HttpPostRequest <ProcessRevisionModel>(Config["APIAddress"] + "api/processes/PostNewRev", aProcessRevModel, _httpContextAccessor.HttpContext));
 }
Пример #3
0
 //Since each step seq model has the revisionId and processId already in it, there is no need to pass that information in.
 public async Task <ProcessRevisionModel> SaveStepSeqToRevision(List <StepSeqModel> aProcessRevModel)
 {
     return(await DataAccessGeneric.HttpPostRequest <ProcessRevisionModel, List <StepSeqModel> >(Config["APIAddress"] + "api/processes/UpdateStepsForRev", aProcessRevModel, _httpContextAccessor.HttpContext));
 }
Пример #4
0
 public async Task <int> RevUpSpec(SpecRevModel aSpecModel)
 {
     return(await DataAccessGeneric.HttpPostRequest <int, SpecRevModel>(Config["APIAddress"] + "api/Spec/RevUpSpec", aSpecModel, _httpContextAccessor.HttpContext));
 }
Пример #5
0
 //CREATE
 public async Task <ProcessModel> PostNewProcess(ProcessModel aProcessModel)
 {
     return(await DataAccessGeneric.HttpPostRequest <ProcessModel>(Config["APIAddress"] + "api/processes/postprocess", aProcessModel, _httpContextAccessor.HttpContext));
 }
Пример #6
0
 public async Task <PartModel> CreatePart(PartModel aPart)
 {
     return(await DataAccessGeneric.HttpPostRequest <PartModel>(Config["APIAddress"] + "api/Part/CreatePart", aPart, _httpContextAccessor.HttpContext));
 }
Пример #7
0
 public async Task <SamplePlanModel> CreateNewSamplePlan(SamplePlanModel aSamplePlanModel)
 {
     return(await DataAccessGeneric.HttpPostRequest <SamplePlanModel>(Config["APIAddress"] + "api/SamplePlan/CreateHydratedSamplePlan/", aSamplePlanModel, _httpContextAccessor.HttpContext));
 }
Пример #8
0
 public async Task <bool> VerifyUniqueChoices(int specId, short internalSpecId, int?customer, IEnumerable <SpecProcessAssignOptionModel> anOptionModels)
 {
     return(await DataAccessGeneric.HttpPostRequest <bool, IEnumerable <SpecProcessAssignOptionModel> >(Config["APIAddress"] + "api/SpecProcessAssign/VerifyUniqueChoices/" + specId + "/" + internalSpecId + "/" + customer, anOptionModels, _httpContextAccessor.HttpContext));
 }
Пример #9
0
 public async Task <bool> CheckSpaIsViable(int aSpecId, IEnumerable <SpecProcessAssignOptionModel> anOptionModels)
 {
     return(await DataAccessGeneric.HttpPostRequest <bool, IEnumerable <SpecProcessAssignOptionModel> >(Config["APIAddress"] + "api/SpecProcessAssign/CheckSpaIsViable/" + aSpecId, anOptionModels, _httpContextAccessor.HttpContext));
 }
Пример #10
0
 public async Task <SpecProcessAssignModel> RemoveReviedNeeded(SpecProcessAssignModel aSpecProcessAssignModel)
 {
     return(await DataAccessGeneric.HttpPostRequest <SpecProcessAssignModel>(Config["APIAddress"] + "api/SpecProcessAssign/RemoveReviewNeeded/", aSpecProcessAssignModel, _httpContextAccessor.HttpContext));
 }
Пример #11
0
 public async Task <SpecProcessAssignModel> CopyAfterReview(SpecProcessAssignModel aSpecProcessAssignModel)
 {
     return(await DataAccessGeneric.HttpPostRequest <SpecProcessAssignModel>(Config["APIAddress"] + "api/SpecProcessAssign/CopyAfterReview", aSpecProcessAssignModel, _httpContextAccessor.HttpContext));
 }
Пример #12
0
 public async Task <SpecProcessAssignModel> PostSpecProcessAssign(SpecProcessAssignModel aSpecProcessAssign)
 {
     return(await DataAccessGeneric.HttpPostRequest <SpecProcessAssignModel>(Config["APIAddress"] + "api/SpecProcessAssign/PostSpecProcessASsign/", aSpecProcessAssign, _httpContextAccessor.HttpContext));
 }
Пример #13
0
 public async Task <OrderReceivedModel> CreateOrderReceived(OrderReceivedModel anOrderReceivedModel)
 {
     return(await DataAccessGeneric.HttpPostRequest <OrderReceivedModel>(Config["APIAddress"] + "api/OrderReceived/CreateOrderReceived", anOrderReceivedModel, _httpContextAccessor.HttpContext));
 }
Пример #14
0
 public async Task <HardnessModel> CreateHardness(HardnessModel aHardnessModel)
 {
     return(await DataAccessGeneric.HttpPostRequest <HardnessModel>(Config["APIAddress"] + "api/Hardness/CreateHardness", aHardnessModel, _httpContextAccessor.HttpContext));
 }
Пример #15
0
 //UPDATE
 public async Task <ProcessRevisionModel> LockRevision(PassBackProcessRevStepSeqModel aPassBackModel)
 {
     return(await DataAccessGeneric.HttpPostRequest <ProcessRevisionModel, PassBackProcessRevStepSeqModel>(Config["APIAddress"] + "api/processes/UpdateRevSaveAndLock/", aPassBackModel, _httpContextAccessor.HttpContext));
 }
Пример #16
0
        //public Task<OrderHeadModel> GetHydratedOrderHeadById(int anOrderId)
        //{
        //    return await DataAccessGeneric.HttpGetRequest<OrderHeadModel>(Config["APIAddress"] + "api/OrderHead/")
        //}

        public async Task <OrderHeadModel> PostOrderHead(OrderHeadModel anOrderHeadModel)
        {
            return(await DataAccessGeneric.HttpPostRequest <OrderHeadModel>(Config["APIAddress"] + "api/processes/postprocess", anOrderHeadModel, _httpContextAccessor.HttpContext));
        }
Пример #17
0
 public async Task <OperationModel> CreateOperation(OperationModel anOperationModel)
 {
     return(await DataAccessGeneric.HttpPostRequest <OperationModel>(Config["APIAddress"] + "api/operation/CreateOperation", anOperationModel, _httpContextAccessor.HttpContext));
 }
Пример #18
0
 public async Task <int> CreateNewHydratedSpec(SpecModel aSpecModel)
 {
     return(await DataAccessGeneric.HttpPostRequest <int, SpecModel>(Config["APIAddress"] + "api/spec/CreateNewSpec", aSpecModel, _httpContextAccessor.HttpContext));
 }
Пример #19
0
 public async Task <MaterialSeriesModel> CreateMaterialSeries(MaterialSeriesModel aMaterialSeriesModel)
 {
     return(await DataAccessGeneric.HttpPostRequest <MaterialSeriesModel>(Config["APIAddress"] + "api/MaterialSeries/CreateMaterialSeries", aMaterialSeriesModel, _httpContextAccessor.HttpContext));
 }
Пример #20
0
 public async Task <StepModel> PostNewStep(StepModel aStepModel)
 {
     return(await DataAccessGeneric.HttpPostRequest <StepModel>(Config["APIAddress"] + "api/Steps/PostStep/", aStepModel, _httpContextAccessor.HttpContext));
 }