yangle
2023-04-04 a5ac8ae1764596ada3aa17eb087185456c592cfd
WebAPI/Controllers/生产管理/生产任务单/Sc_ICMOBillController.cs
@@ -507,6 +507,28 @@
        public json AddBillSub_NoTable(string msg3, long HInterID, int OperationType,int HEntryID)
        {
            ClsSc_ICMOBillSub oSub = Newtonsoft.Json.JsonConvert.DeserializeObject<ClsSc_ICMOBillSub>(msg3);
            //瀹㈡埛鍒跺畾
            string sErr = "";
            if (oSystemParameter.ShowBill(ref sErr))
            {
                if (oSystemParameter.omodel.WMS_CampanyName == "涔斾竴")
                {
                }
                else
                {
                    if (oSub.HDeptID == 0)
                    {
                        objJsonResult.code = "0";
                        objJsonResult.count = 0;
                        objJsonResult.Message = "鐢熶骇杞﹂棿涓嶈兘涓虹┖";
                        objJsonResult.data = null;
                        return objJsonResult;
                    }
                }
            }
            if (oSub.HQty <= 0 || oSub.HQty == null)
            {
                objJsonResult.code = "0";
@@ -525,14 +547,7 @@
                return objJsonResult;
            }
            if (oSub.HDeptID == 0)
            {
                objJsonResult.code = "0";
                objJsonResult.count = 0;
                objJsonResult.Message = "鐢熶骇杞﹂棿涓嶈兘涓虹┖";
                objJsonResult.data = null;
                return objJsonResult;
            }
            if (oSub.HUnitID == 0)
            {