智云SRM-WEBAPI(目前客户通用API)
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>
        /// 更新打印次数
@@ -287,7 +289,7 @@
            string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries);
            string msg2 = sArray[0].ToString();
            string msg3 = sArray[1].ToString();
            string UserName = "";
            ListModels oListModels = new ListModels();
@@ -310,14 +312,26 @@
                    oItem.HMainSourceInterID = oItem.HInterID;
                    oItem.HInterID = 0;
                    //oItem.HInterID = DBUtility.ClsPub.CreateBillID_SRMProd("1103", ref DBUtility.ClsPub.sExeReturnInfo);
                    if (DBUtility.ClsPub.isStrNull(oItem.HDHDate) == "")
                    if (oSystemParameter.omodel.WMS_CampanyName == "安瑞") //系统参数  客户定制化名称     空白为通用
                    {
                        objJsonResult.code = "0";
                        objJsonResult.count = 0;
                        objJsonResult.Message = "保存失败!没有填写预计到货日期,无法保存!";
                        objJsonResult.data = 1;
                        return objJsonResult;
                        if (DBUtility.ClsPub.isStrNull(oItem.HDHDate) == "")
                        {
                            objJsonResult.code = "0";
                            objJsonResult.count = 0;
                            objJsonResult.Message = "保存失败!没有填写预计到货日期,无法保存!";
                            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,13 +362,16 @@
                        objJsonResult.data = 1;
                        return objJsonResult;
                    }
                    if (DBUtility.ClsPub.isStrNull(oItemSub.HBatChNo) == "")
                    if (oSystemParameter.omodel.WMS_CampanyName == "安瑞") //系统参数  客户定制化名称     空白为通用
                    {
                        objJsonResult.code = "0";
                        objJsonResult.count = 0;
                        objJsonResult.Message = "保存失败!第" + i.ToString() + "行未填写批号!";
                        objJsonResult.data = 1;
                        return objJsonResult;
                        if (DBUtility.ClsPub.isStrNull(oItemSub.HBatChNo) == "")
                        {
                            objJsonResult.code = "0";
                            objJsonResult.count = 0;
                            objJsonResult.Message = "保存失败!第" + i.ToString() + "行未填写批号!";
                            objJsonResult.data = 1;
                            return objJsonResult;
                        }
                    }
                    oItemSub.HEntryID = i;