|  |  | 
 |  |  |                     } | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 ////同步金蝶直接调拨单 | 
 |  |  |                 //objJsonResult = AddSendGoodsBillSynChronizAtion(HBillNo); | 
 |  |  |                 //同步金蝶直接调拨单 | 
 |  |  |                 objJsonResult = AddSendGoodsBillSynChronizAtion(HBillNo); | 
 |  |  |  | 
 |  |  |                 oCN.Commit(); | 
 |  |  |  | 
 |  |  | 
 |  |  |             ds = oCN.RunProcReturn("exec JIT_SendGoodsBillSynChronizAtion '" + HBillNo + "'", "JIT_SendGoodsBillSynChronizAtion"); | 
 |  |  |             if (ds.Tables[0].Rows.Count != 0) | 
 |  |  |             { | 
 |  |  |  | 
 |  |  |  | 
 |  |  |                 foreach (DataRow dr in ds.Tables[0].Rows) | 
 |  |  |                 { | 
 |  |  |                     JObject model = new JObject(); | 
 |  |  | 
 |  |  |                         return objJsonResult; | 
 |  |  |                     } | 
 |  |  |                     var result = InvokeHelper.Save("STK_TransferDirect", jsonRoot.ToString()); | 
 |  |  |                     if (JObject.Parse(result)["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() == "TRUE") | 
 |  |  |                     { | 
 |  |  |                         objJsonResult.code = "1"; | 
 |  |  |                         objJsonResult.count = 1; | 
 |  |  |                         objJsonResult.Message = null; | 
 |  |  |                         objJsonResult.data = null; | 
 |  |  |                         return objJsonResult; | 
 |  |  |                     } | 
 |  |  |                     else | 
 |  |  |                     if (JObject.Parse(result)["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") | 
 |  |  |                     { | 
 |  |  |                         oCN.RollBack(); | 
 |  |  |                         objJsonResult.code = "0"; | 
 |  |  | 
 |  |  |                         objJsonResult.data = null; | 
 |  |  |                         return objJsonResult; | 
 |  |  |                     } | 
 |  |  |  | 
 |  |  |                     var json = new | 
 |  |  |                     { | 
 |  |  |                         Numbers = HBillNo, | 
 |  |  |                     }; | 
 |  |  |                     //提交 | 
 |  |  |                     var _result = InvokeHelper.Submit("STK_TransferDirect", JsonConvert.SerializeObject(json)); | 
 |  |  |                     var _saveObj = JObject.Parse(_result); | 
 |  |  |                     if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") | 
 |  |  |                     { | 
 |  |  |                         LogService.Write("收料通知单提交失败jsonRoot:" + jsonRoot.ToString()); | 
 |  |  |                         objJsonResult.code = "0"; | 
 |  |  |                         objJsonResult.count = 0; | 
 |  |  |                         objJsonResult.Message = "金蝶收料通知单提交失败" + _result; | 
 |  |  |                         objJsonResult.data = null; | 
 |  |  |                         return objJsonResult; | 
 |  |  |  | 
 |  |  |                     } | 
 |  |  |                     //审核 | 
 |  |  |                     _result = InvokeHelper.Audit("STK_TransferDirect", JsonConvert.SerializeObject(json)); | 
 |  |  |                     _saveObj = JObject.Parse(_result); | 
 |  |  |                     if (_saveObj["Result"]["ResponseStatus"]["IsSuccess"].ToString().ToUpper() != "TRUE") | 
 |  |  |                     { | 
 |  |  |                         LogService.Write("收料通知单审核失败jsonRoot:" + jsonRoot.ToString()); | 
 |  |  |                         objJsonResult.code = "0"; | 
 |  |  |                         objJsonResult.count = 0; | 
 |  |  |                         objJsonResult.Message = "金蝶收料通知单审核失败jsonRoot" + _result; | 
 |  |  |                         objJsonResult.data = null; | 
 |  |  |                         return objJsonResult; | 
 |  |  |                     } | 
 |  |  |  | 
 |  |  |                     objJsonResult.code = "1"; | 
 |  |  |                     objJsonResult.count = 1; | 
 |  |  |                     objJsonResult.Message = "操作成功!"; | 
 |  |  |                     objJsonResult.data = null; | 
 |  |  |                     return objJsonResult; | 
 |  |  |                 } | 
 |  |  |             } | 
 |  |  |             else |