예제 #1
0
 /// <summary>
 /// Send a JSON request in order to execute the function "file.upload"
 /// </summary>
 /// <param name="call"></param>
 /// <param name="args"></param>
 /// <returns></returns>
 public DCObject Call(string call, DCObject args)
 {
     JavaScriptSerializer serializer = new JavaScriptSerializer();
     DCObject json_response = null;
     try
     {
         DCObject jo = DCObject.Create();
         jo.Push("call", call);
         jo.Push("args", args);
         string normalize = "args" + "jsonp_cb" + args["jsonp_cb"] + "status" + "true"
             + "target" + args["target"] + "call" + jo["call"];
         string token2 = Helpers.Md5(normalize);
         string token = Helpers.Md5(this.user_id + normalize + this.api_key);
         jo.Push("auth", this.user_id + ":" + token);
         string json_encoded = serializer.Serialize((object)jo); ;
         string response = Helpers.Curl(this.base_url + "/api", json_encoded);
         JavaScriptSerializer deserializer = new JavaScriptSerializer();
         Dictionary<object, Dictionary<object, object>> deserializedDictionary1 =
             (Dictionary<object, Dictionary<object, object>>)deserializer.Deserialize(response, typeof(Dictionary<object, Dictionary<object, object>>));
         json_response = DCObject.Create();
         json_response.Push("status", (deserializedDictionary1["result"])["status"]);
         json_response.Push("url", deserializedDictionary1["result"]["url"]);
     }
     catch (Exception)
     {
         throw;
     }
     return json_response;
 }
예제 #2
0
 protected override ResultStatus OnGetDataPoints(
     DCObject updateEventLots,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         UpdateEventLots_Result result1;
         ResultStatus           dataPoints = this.GetDataPoints((UpdateEventLots)updateEventLots, (UpdateEventLots_Parameters)parameters, (UpdateEventLots_Request)request, out result1);
         result = (Result)result1;
         return(dataPoints);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #3
0
 protected override ResultStatus OnGetWIPMsgs(
     DCObject activityDispositionMaint,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         ActivityDispositionMaint_Result result1;
         ResultStatus wipMsgs = this.GetWIPMsgs((ActivityDispositionMaint)activityDispositionMaint, (ActivityDispositionMaint_Parameters)parameters, (ActivityDispositionMaint_Request)request, out result1);
         result = (Result)result1;
         return(wipMsgs);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #4
0
 protected override ResultStatus OnGetApprovalSheetTemplate(
     DCObject activityDispositionMaint,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         ActivityDispositionMaint_Result result1;
         ResultStatus approvalSheetTemplate = this.GetApprovalSheetTemplate((ActivityDispositionMaint)activityDispositionMaint, (ActivityDispositionMaint_Parameters)parameters, (ActivityDispositionMaint_Request)request, out result1);
         result = (Result)result1;
         return(approvalSheetTemplate);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #5
0
 protected override ResultStatus OnGetWIPMsgs(
     DCObject import,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         Import_Result result1;
         ResultStatus  wipMsgs = this.GetWIPMsgs((Import)import, (Import_Parameters)parameters, (Import_Request)request, out result1);
         result = (Result)result1;
         return(wipMsgs);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #6
0
 protected override ResultStatus OnResolveParametricData(
     DCObject resourceActivation,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         ResourceActivation_Result result1;
         ResultStatus resultStatus = this.ResolveParametricData((ResourceActivation)resourceActivation, (ResourceActivation_Parameters)parameters, (ResourceActivation_Request)request, out result1);
         result = (Result)result1;
         return(resultStatus);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #7
0
 protected override ResultStatus OnResolveParametricData(
     DCObject createSamplingLot,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         CreateSamplingLot_Result result1;
         ResultStatus             resultStatus = this.ResolveParametricData((CreateSamplingLot)createSamplingLot, (CreateSamplingLot_Parameters)parameters, (CreateSamplingLot_Request)request, out result1);
         result = (Result)result1;
         return(resultStatus);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #8
0
 protected override ResultStatus OnUnFreeze(
     DCObject workCenterMaint,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         WorkCenterMaint_Result result1;
         ResultStatus           resultStatus = this.UnFreeze((WorkCenterMaint)workCenterMaint, (WorkCenterMaint_Parameters)parameters, (WorkCenterMaint_Request)request, out result1);
         result = (Result)result1;
         return(resultStatus);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #9
0
 protected override ResultStatus OnResolveParametricData(
     DCObject updateEventDetails,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         UpdateEventDetails_Result result1;
         ResultStatus resultStatus = this.ResolveParametricData((UpdateEventDetails)updateEventDetails, (UpdateEventDetails_Parameters)parameters, (UpdateEventDetails_Request)request, out result1);
         result = (Result)result1;
         return(resultStatus);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #10
0
 protected override ResultStatus OnLoad(
     DCObject changeMgtTxn,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         ChangeMgtTxn_Result result1;
         ResultStatus        resultStatus = this.Load((ChangeMgtTxn)changeMgtTxn, (ChangeMgtTxn_Parameters)parameters, (ChangeMgtTxn_Request)request, out result1);
         result = (Result)result1;
         return(resultStatus);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #11
0
 protected override ResultStatus OnCreateParametricData(
     DCObject changeMgtTxn,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         ChangeMgtTxn_Result result1;
         ResultStatus        parametricData = this.CreateParametricData((ChangeMgtTxn)changeMgtTxn, (ChangeMgtTxn_Parameters)parameters, (ChangeMgtTxn_Request)request, out result1);
         result = (Result)result1;
         return(parametricData);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #12
0
 protected override ResultStatus OnSaveAs(
     DCObject sPCChartDefMaint,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         SPCChartDefMaint_Result result1;
         ResultStatus            resultStatus = this.SaveAs((SPCChartDefMaint)sPCChartDefMaint, (SPCChartDefMaint_Parameters)parameters, (SPCChartDefMaint_Request)request, out result1);
         result = (Result)result1;
         return(resultStatus);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #13
0
 protected override ResultStatus OnGetActions(
     DCObject start,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         Start_Result result1;
         ResultStatus actions = this.GetActions((Start)start, (Start_Parameters)parameters, (Start_Request)request, out result1);
         result = (Result)result1;
         return(actions);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #14
0
 protected override ResultStatus OnNewCopy(
     DCObject mfgOrderMaint,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         MfgOrderMaint_Result result1;
         ResultStatus         resultStatus = this.NewCopy((MfgOrderMaint)mfgOrderMaint, (MfgOrderMaint_Parameters)parameters, (MfgOrderMaint_Request)request, out result1);
         result = (Result)result1;
         return(resultStatus);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #15
0
 protected override ResultStatus OnLoad(
     DCObject eMailNotificationMaint,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         EMailNotificationMaint_Result result1;
         ResultStatus resultStatus = this.Load((EMailNotificationMaint)eMailNotificationMaint, (EMailNotificationMaint_Parameters)parameters, (EMailNotificationMaint_Request)request, out result1);
         result = (Result)result1;
         return(resultStatus);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #16
0
 protected override ResultStatus OnLoad(
     DCObject thruput,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         Thruput_Result result1;
         ResultStatus   resultStatus = this.Load((Thruput)thruput, (Thruput_Parameters)parameters, (Thruput_Request)request, out result1);
         result = (Result)result1;
         return(resultStatus);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #17
0
 protected override ResultStatus OnGetWIPMsgs(
     DCObject updateEventDetails,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         UpdateEventDetails_Result result1;
         ResultStatus wipMsgs = this.GetWIPMsgs((UpdateEventDetails)updateEventDetails, (UpdateEventDetails_Parameters)parameters, (UpdateEventDetails_Request)request, out result1);
         result = (Result)result1;
         return(wipMsgs);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #18
0
 protected override ResultStatus OnLoad(
     DCObject actionCategoryMaint,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         ActionCategoryMaint_Result result1;
         ResultStatus resultStatus = this.Load((ActionCategoryMaint)actionCategoryMaint, (ActionCategoryMaint_Parameters)parameters, (ActionCategoryMaint_Request)request, out result1);
         result = (Result)result1;
         return(resultStatus);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #19
0
 protected override ResultStatus OnLoad(
     DCObject issueDifferenceReasonMaint,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         IssueDifferenceReasonMaint_Result result1;
         ResultStatus resultStatus = this.Load((IssueDifferenceReasonMaint)issueDifferenceReasonMaint, (IssueDifferenceReasonMaint_Parameters)parameters, (IssueDifferenceReasonMaint_Request)request, out result1);
         result = (Result)result1;
         return(resultStatus);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #20
0
 protected override ResultStatus OnGetWIPMsgs(
     DCObject createSamplingLot,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         CreateSamplingLot_Result result1;
         ResultStatus             wipMsgs = this.GetWIPMsgs((CreateSamplingLot)createSamplingLot, (CreateSamplingLot_Parameters)parameters, (CreateSamplingLot_Request)request, out result1);
         result = (Result)result1;
         return(wipMsgs);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #21
0
 protected override ResultStatus OnResolveParametricData(
     DCObject trackTargetDeployment,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         TrackTargetDeployment_Result result1;
         ResultStatus resultStatus = this.ResolveParametricData((TrackTargetDeployment)trackTargetDeployment, (TrackTargetDeployment_Parameters)parameters, (TrackTargetDeployment_Request)request, out result1);
         result = (Result)result1;
         return(resultStatus);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #22
0
 protected override ResultStatus OnGetWIPMsgs(
     DCObject resourceActivation,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         ResourceActivation_Result result1;
         ResultStatus wipMsgs = this.GetWIPMsgs((ResourceActivation)resourceActivation, (ResourceActivation_Parameters)parameters, (ResourceActivation_Request)request, out result1);
         result = (Result)result1;
         return(wipMsgs);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #23
0
 protected override ResultStatus OnGetWIPMsgs(
     DCObject trackTargetDeployment,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         TrackTargetDeployment_Result result1;
         ResultStatus wipMsgs = this.GetWIPMsgs((TrackTargetDeployment)trackTargetDeployment, (TrackTargetDeployment_Parameters)parameters, (TrackTargetDeployment_Request)request, out result1);
         result = (Result)result1;
         return(wipMsgs);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #24
0
 protected override ResultStatus OnGetWIPMsgs(
     DCObject exportTargetInquiry,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         ExportTargetInquiry_Result result1;
         ResultStatus wipMsgs = this.GetWIPMsgs((ExportTargetInquiry)exportTargetInquiry, (ExportTargetInquiry_Parameters)parameters, (ExportTargetInquiry_Request)request, out result1);
         result = (Result)result1;
         return(wipMsgs);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #25
0
 protected override ResultStatus OnGetDataPoints(
     DCObject defect,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         Defect_Result result1;
         ResultStatus  dataPoints = this.GetDataPoints((Defect)defect, (Defect_Parameters)parameters, (Defect_Request)request, out result1);
         result = (Result)result1;
         return(dataPoints);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #26
0
 protected override ResultStatus OnLoadESigDetails(
     DCObject activityDispositionMaint,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         ActivityDispositionMaint_Result result1;
         ResultStatus resultStatus = this.LoadESigDetails((ActivityDispositionMaint)activityDispositionMaint, (ActivityDispositionMaint_LoadESigDetails_Parameters)parameters, (ActivityDispositionMaint_Request)request, out result1);
         result = (Result)result1;
         return(resultStatus);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #27
0
 protected override ResultStatus OnLoadESigDetails(
     DCObject defect,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         Defect_Result result1;
         ResultStatus  resultStatus = this.LoadESigDetails((Defect)defect, (Defect_LoadESigDetails_Parameters)parameters, (Defect_Request)request, out result1);
         result = (Result)result1;
         return(resultStatus);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #28
0
 protected override ResultStatus OnCreateParametricData(
     DCObject updateEventLots,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         UpdateEventLots_Result result1;
         ResultStatus           parametricData = this.CreateParametricData((UpdateEventLots)updateEventLots, (UpdateEventLots_Parameters)parameters, (UpdateEventLots_Request)request, out result1);
         result = (Result)result1;
         return(parametricData);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #29
0
 protected override ResultStatus OnProcessComputation(
     DCObject defect,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         Defect_Result result1;
         ResultStatus  resultStatus = this.ProcessComputation((Defect)defect, (Defect_Parameters)parameters, (Defect_Request)request, out result1);
         result = (Result)result1;
         return(resultStatus);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #30
0
 protected override ResultStatus OnCreateParametricData(
     DCObject thruput,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         Thruput_Result result1;
         ResultStatus   parametricData = this.CreateParametricData((Thruput)thruput, (Thruput_Parameters)parameters, (Thruput_Request)request, out result1);
         result = (Result)result1;
         return(parametricData);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }
예제 #31
0
 protected override ResultStatus OnGetWIPMsgs(
     DCObject packageCreationTemplateMaint,
     Parameters parameters,
     Request request,
     out Result result)
 {
     result = (Result)null;
     try
     {
         PackageCreationTemplateMaint_Result result1;
         ResultStatus wipMsgs = this.GetWIPMsgs((PackageCreationTemplateMaint)packageCreationTemplateMaint, (PackageCreationTemplateMaint_Parameters)parameters, (PackageCreationTemplateMaint_Request)request, out result1);
         result = (Result)result1;
         return(wipMsgs);
     }
     catch (Exception ex)
     {
         return(this.OnThrowException(ex));
     }
 }