コード例 #1
0
ファイル: LCStep.cs プロジェクト: yaotion/RunSafty_WebAPI
 public Get_Out CheckIsFinished(string data)
 {
     Get_Out OutResult = new Get_Out();
     Get_In_CheckIsFinished input = Newtonsoft.Json.JsonConvert.DeserializeObject<Get_In_CheckIsFinished>(data);
     try
     {
         DBStep db = new DBStep();
         Get_Out_CheckIsFinished IsFinished = new Get_Out_CheckIsFinished();
         IsFinished.IsFinished = db.CheckIsFinished(input.strTrainPlanGUID, input.strWorkShopGUID,input.nWorkTypeID);
         OutResult.data = IsFinished;
         OutResult.result = "0";
         OutResult.resultStr = "执行成功!";
     }
     catch (Exception ex)
     {
         OutResult.result = "1";
         OutResult.resultStr = "提交失败:" + ex.Message;
     }
     return OutResult;
 }