yusijie
2023-05-31 ee91577a11680f14254dbd4197ff977540d19890
WebAPI/Controllers/Sc_ProcessMangementController.cs
@@ -12,6 +12,7 @@
using WebAPI.Models;
using WebAPI.Service;
using Kingdee.BOS.WebApi.Client;
using ZD.Cloud.HttpApi;
namespace WebAPI.Controllers
{
@@ -1388,17 +1389,33 @@
                }
                else
                {
                    string jsonStr = "{" +
                       " \"FileName\":\"" + HFileName + "\"," +
                           " \"FormId\":\"QM_InspectBill\"," +
                           " \"IsLast\":\"true\"," +
                           " \"InterId\":\"" + HInterID + "\"," +
                           " \"BillNO\":\"" + HBillNo + "\"," +
                           " \"AliasFileName\":\"test\"," +
                           " \"SendByte\":\"" + a + "\"," +
                       "}";
                    var ret = client.AttachmentUpload(jsonStr);
                    var filenameList = new List<string> { HFilePath };
                    var _params = new object[] {"LLJY", HBillNo, filenameList };
                    string _vlog = Form.HttpExecute("http://47.96.97.237/K3Cloud/wpl_Attachment.FileService.FileUpLoad,wpl_Attachment.common.kdsvc", _params);
                    if (JObject.Parse(_vlog)["issuccess"].ToString().ToUpper() != "TRUE")
                    {
                        oCN.RollBack();
                        objJsonResult.code = "0";
                        objJsonResult.count = 0;
                        objJsonResult.Message = $"来料检验单号:{fBillNo},照片同步失败" + _vlog;
                        objJsonResult.data = null;
                        return objJsonResult;
                    }
                    //string jsonStr = "{" +
                    //   " \"FileName\":\"" + HFileName + "\"," +
                    //       " \"FormId\":\"QM_InspectBill\"," +
                    //       " \"IsLast\":\"true\"," +
                    //       " \"InterId\":\"" + HInterID + "\"," +
                    //       " \"BillNO\":\"" + HBillNo + "\"," +
                    //       " \"AliasFileName\":\"test\"," +
                    //       " \"SendByte\":\"" + a + "\"," +
                    //   "}";
                    //var ret = client.AttachmentUpload(jsonStr);
                }
                oCN.Commit();