yusijie
2023-04-16 77162bdc19b49d5bb86661f3c4f679df71cc7202
WebAPI/Controllers/Sc_ProcessMangementController.cs
@@ -1400,49 +1400,49 @@
        /// <summary>
        /// 生成金蝶云来料检验单
        /// </summary>
        /// <param name="InterID">工序汇报单主ID</param>
        /// <returns></returns>
        [Route("QCStockInCheckBill/set_SaveQCStockInCheckBill_Json")]
        [HttpGet]
        public object set_SaveQCStockInCheckBill_Json(string HZJOrgNumber, string HMaterNumber, string HUnitNumber,
            double HCheckQty, double HRightQty, double HBadQty,
            string HCheckResult, string HSupNumber,
            string HUseResult, Int64 HSeQ, Int64 HSourceInterID,
            Int64 HSourceEntryID, string HSourceBillNo, string user,
            Int64 HWHID, Int64 HSPID, Int64 HSupID, Int64 HKeeperID,
            Int64 HMaterID, string HSourceBillType, Int64 HSLInterID,
            Int64 HSLEntryID, string HSLBillNo, Int64 HSLSeQ, string HBillNo, Int64 HInterID,ref string sErrMsg)
        {
            WebS2.WebService1 oWebs1 = new WebS2.WebService1();
        ///// <summary>
        ///// 生成金蝶云来料检验单
        ///// </summary>
        ///// <param name="InterID">工序汇报单主ID</param>
        ///// <returns></returns>
        //[Route("QCStockInCheckBill/set_SaveQCStockInCheckBill_Json")]
        //[HttpGet]
        //public object set_SaveQCStockInCheckBill_Json(string HZJOrgNumber, string HMaterNumber, string HUnitNumber,
        //    double HCheckQty, double HRightQty, double HBadQty,
        //    string HCheckResult, string HSupNumber,
        //    string HUseResult, Int64 HSeQ, Int64 HSourceInterID,
        //    Int64 HSourceEntryID, string HSourceBillNo, string user,
        //    Int64 HWHID, Int64 HSPID, Int64 HSupID, Int64 HKeeperID,
        //    Int64 HMaterID, string HSourceBillType, Int64 HSLInterID,
        //    Int64 HSLEntryID, string HSLBillNo, Int64 HSLSeQ, string HBillNo, Int64 HInterID,ref string sErrMsg)
        //{
        //    WebS.WebService1 oWebs1 = new WebS.WebService1();
            //oWebs1.Url = "http://localhost:9099/WebService1.asmx";
            //K3CloudApiClient client = new K3CloudApiClient("http://192.168.80.90/k3cloud/");
            if (oWebs1.set_SaveQcStockInCheckBill_New(HZJOrgNumber, HMaterNumber, HUnitNumber, HCheckQty, HRightQty, HBadQty
                , HCheckResult, HSupNumber, HUseResult, HSeQ, HSourceInterID
                , HSourceEntryID, HSourceBillNo, user, HWHID, HSPID
                , HSupID, HKeeperID, HMaterID, HSourceBillType, HSLInterID
                , HSLEntryID, HSLBillNo, HSLSeQ, HBillNo, HInterID
                , ref sErrMsg))
            {
                objJsonResult.code = "0";
                objJsonResult.count = 1;
                objJsonResult.Message = "生成单据成功!";
                objJsonResult.data = null;
                return objJsonResult;
            }
            else
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "生成单据失败!";
                objJsonResult.data = sErrMsg;
                return objJsonResult;
            }
        }
        //    //oWebs1.Url = "http://localhost:9099/WebService1.asmx";
        //    //K3CloudApiClient client = new K3CloudApiClient("http://192.168.80.90/k3cloud/");
        //    if (oWebs1.set_SaveQcStockInCheckBill_New(HZJOrgNumber, HMaterNumber, HUnitNumber, HCheckQty, HRightQty, HBadQty
        //        , HCheckResult, HSupNumber, HUseResult, HSeQ, HSourceInterID
        //        , HSourceEntryID, HSourceBillNo, user, HWHID, HSPID
        //        , HSupID, HKeeperID, HMaterID, HSourceBillType, HSLInterID
        //        , HSLEntryID, HSLBillNo, HSLSeQ, HBillNo, HInterID
        //        , ref sErrMsg))
        //    {
        //        objJsonResult.code = "0";
        //        objJsonResult.count = 1;
        //        objJsonResult.Message = "生成单据成功!";
        //        objJsonResult.data = null;
        //        return objJsonResult;
        //    }
        //    else
        //    {
        //        objJsonResult.code = "0";
        //        objJsonResult.count = 0;
        //        objJsonResult.Message = "生成单据失败!";
        //        objJsonResult.data = sErrMsg;
        //        return objJsonResult;
        //    }
        //}
        #endregion