智云SRM-WEBAPI(目前客户通用API)
王 垚
2021-12-29 85b3cf035caaea1908f4420a66e7d742367578c8
Merge branch 'master' of http://101.37.171.70:10101/r/SRM-WEBAPI
1个文件已修改
17 ■■■■■ 已修改文件
WebAPI/Controllers/POInStockController.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebAPI/Controllers/POInStockController.cs
@@ -19,6 +19,8 @@
    {
        private JsonResult objJsonResult = new JsonResult();
        private json objjson = new json();
        //获取系统参数
        Pub_Class.ClsXt_SystemParameter oSystemParameter = new Pub_Class.ClsXt_SystemParameter();
        /// <summary>
        /// 更新打印次数
@@ -310,6 +312,8 @@
                    oItem.HMainSourceInterID = oItem.HInterID;
                    oItem.HInterID = 0;
                    //oItem.HInterID = DBUtility.ClsPub.CreateBillID_SRMProd("1103", ref DBUtility.ClsPub.sExeReturnInfo);
                    if (oSystemParameter.omodel.WMS_CampanyName == "安瑞") //系统参数  客户定制化名称     空白为通用
                    {
                    if (DBUtility.ClsPub.isStrNull(oItem.HDHDate) == "")
                    {
                        objJsonResult.code = "0";
@@ -318,6 +322,16 @@
                        objJsonResult.data = 1;
                        return objJsonResult;
                    }
                        if (DBUtility.ClsPub.isStrNull(oItem.HDeliveryNo) == "")
                        {
                            objJsonResult.code = "0";
                            objJsonResult.count = 0;
                            objJsonResult.Message = "保存失败!没有填写物流单号,无法保存!";
                            objJsonResult.data = 1;
                            return objJsonResult;
                        }
                    }
                    oBill.omodel = oItem;
                }
                //表体数据
@@ -348,6 +362,8 @@
                        objJsonResult.data = 1;
                        return objJsonResult;
                    }
                    if (oSystemParameter.omodel.WMS_CampanyName == "安瑞") //系统参数  客户定制化名称     空白为通用
                    {
                    if (DBUtility.ClsPub.isStrNull(oItemSub.HBatChNo) == "")
                    {
                        objJsonResult.code = "0";
@@ -356,6 +372,7 @@
                        objJsonResult.data = 1;
                        return objJsonResult;
                    }
                    }
                    oItemSub.HEntryID = i;
                    oItemSub.HEntryCloseDate = DBUtility.ClsPub.isDate(DateTime.Now);