1
llj
1 天以前 4c2d6fc7aeb7fe0cc44b2735514d47ff2ace18fa
WebAPI/Controllers/MJGL/Sc_MouldDotCheckRuleBillController.cs
@@ -83,8 +83,7 @@
            try
            {
                List<object> columnNameList = new List<object>();
                //反序列化传递的值
                //HlpBill com = JsonConvert.DeserializeObject<HlpBill>(sWhere.ToString());
                //编辑权限
                if (!DBUtility.ClsPub.Security_Log("Sc_MouldDotCheckRuleBillList", 1, false, user))
                {
@@ -182,6 +181,20 @@
                        return objJsonResult;
                    }
                    oBill.omodel = oItem;
                    if (oItem.HInterID == 0)
                    {
                        // 判断新增的表单与表格中的表单是否有重复
                        DataSet ds = oCN.RunProcReturn("select * from h_v_Sc_MouldDotCheckRuleBillList where 单据号 = '" + oItem.HBillNo + "'", "h_v_Sc_MouldDotCheckRuleBillList");
                        if (ds.Tables[0].Rows.Count > 0)
                        {
                            objJsonResult.code = "0";
                            objJsonResult.count = 0;
                            objJsonResult.Message = "保存失败!单据号不得有重复!";
                            objJsonResult.data = 1;
                            return objJsonResult;
                        }
                    }
                }
                //点检项表体数据