1
duhe
2024-03-28 92cc987c52cc28414e04f95a4656ac39ad925d54
WebAPI/Controllers/CGGL/Kf_POStockInBillController.cs
@@ -172,7 +172,7 @@
                ds = oCN.RunProcReturn("select * from h_v_Kf_POStockInBillList where hmainid=" + HInterID + " and 单据号='" + HBillNo + "'", "h_v_Kf_POStockInBillList");
                if ((OperationType == 1 || OperationType == 2) && ds.Tables[0].Rows.Count == 0)//新增
                if ((OperationType == 1 || OperationType == 2 || OperationType == 4) && ds.Tables[0].Rows.Count == 0)//新增
                {
                    //保存前控制=========================================              
                    ds = oCN.RunProcReturn("exec h_p_Kf_POStockInBill_BeforeSaveCtrl " + HInterID, "h_p_Kf_POStockInBill_BeforeSaveCtrl");
@@ -379,7 +379,9 @@
            objJsonResult.data = null;
            return objJsonResult;
        }
        #endregion
        #region 删除功能
        /// <summary>
        ///删除功能
        /// </summary>
@@ -460,9 +462,9 @@
                return objJsonResult;
            }
        }
        #endregion
        #region 查找记录功能
        /// <summary>
        /// 根据基础资料ID 查找记录
        ///参数:string sql。
@@ -502,6 +504,7 @@
                return objJsonResult;
            }
        }
#endregion
        #region 根据物料内码获取物料信息
        [Route("Kf_POStockInBill/getMaterialByMaterID")]
@@ -1176,7 +1179,7 @@
            try
            {
                ds = oCN.RunProcReturn("select * from h_v_IF_POStockInBillList where hmainid =" + HInterID + " and hsubid = " + HSubID, "h_v_IF_POStockInBillList");
                ds = oCN.RunProcReturn("select * from h_v_Kf_POStockInBillList where hmainid =" + HInterID + " and hsubid = " + HSubID, "h_v_Kf_POStockInBillList");
                if (ds == null || ds.Tables[0].Rows.Count == 0)
                {
                    objJsonResult.code = "0";
@@ -1206,5 +1209,4 @@
        #endregion
    }
}
#endregion
}