jingh
2021-10-01 afb06a057c840e5b5394b5526a462df23b9cbeea
新增模具缓存列表调用方法
1个文件已修改
59 ■■■■■ 已修改文件
CLOUDWEB/WebService1.asmx.cs 59 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
CLOUDWEB/WebService1.asmx.cs
@@ -33194,6 +33194,65 @@
            }
        }
        #region 模具单据列表处理方法
        //缓存列表界面,选择编辑时,判断所选单据是否存在已上传记录
        [WebMethod]
        public bool MouldTempList_Modify(Int64 sHInterID, string sHBillNo, string sHBillType, ref string sErrMsg)
        {
            SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
            DataSet Ds = oCn.RunProcReturn("exec h_p_WMS_MouldTempList_Modify " + sHInterID + ",'" + sHBillNo + "','" + sHBillType + "'", "h_p_WMS_MouldTempList_Modify");
            if (Ds == null || Ds.Tables[0].Rows.Count == 0)
            {
                sErrMsg = "模具缓存列表编辑前判断失败!";
                return false;
            }
            if (DBUtility.ClsPub.isLong(Ds.Tables[0].Rows[0][0]) == 0)
            {
                return true;
            }
            else
            {
                sErrMsg = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HRemark"]);
                return false;
            }
        }
        //缓存列表界面,返回缓存列表信息
        [WebMethod]
        public DataSet GetSc_MouldStockBillMain_TempList(string sHBillType, string sHMaker, Int64 sHOWNERID)
        {
            SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
            DataSet Ds = oCn.RunProcReturn("exec h_p_Sc_GetMouldStockBillMain_TempList '" + sHBillType + "','" + sHMaker + "'," + sHOWNERID.ToString(), "h_p_Sc_GetMouldStockBillMain_TempList");
            if (Ds == null || Ds.Tables[0].Rows.Count == 0)
            {
                return null;
            }
            else
            {
                return Ds;
            }
        }
        //缓存列表界面,删除缓存列表单据
        [WebMethod]
        public bool DeleteMouldBillList(Int64 HInterID, ref string sErrMsg)
        {
            SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
            try
            {
                oCn.RunProc("Delete from Sc_MouldStockBillMain_Temp where HInterID=" + HInterID.ToString(), ref DBUtility.ClsPub.sExeReturnInfo);
                return true;
            }
            catch (Exception e)
            {
                sErrMsg = "删除失败!" + e.Message;
                return false;
            }
        }
        #endregion
        #endregion