SVN r594
SVN-Revision: r594
This commit is contained in:
@@ -1197,19 +1197,23 @@ namespace Lskj.PubBomImport
|
|||||||
string mxFileName = mxRow[Model.AfterBomFieldName] + "";
|
string mxFileName = mxRow[Model.AfterBomFieldName] + "";
|
||||||
string mxDirPath = mxRow["BomFieldNameDir"] + "";
|
string mxDirPath = mxRow["BomFieldNameDir"] + "";
|
||||||
string productId = mxRow["BomMxMainProduct"] + "";
|
string productId = mxRow["BomMxMainProduct"] + "";
|
||||||
|
string addState = mxRow["BomMxAddState"] + "";
|
||||||
if (string.IsNullOrEmpty(productId))
|
if (string.IsNullOrEmpty(productId))
|
||||||
{
|
{
|
||||||
throw new Exception($"保存失败\r\n请重新进行BOM上传后保存");
|
throw new Exception($"保存失败\r\n请重新进行BOM上传后保存");
|
||||||
}
|
}
|
||||||
DataRow billRow = BaseImpl.GetDataRowResult($"select qms_maddf_billdocument_id from qms_BillFileAddMaintab where qms_maddf_productid = '{productId}'");
|
if (addState.Equals("新增"))
|
||||||
if (billRow != null)
|
|
||||||
{
|
{
|
||||||
throw new Exception($"物料编码{productId}的BOM新增单已存在审批流\r\n请进行审批");
|
DataRow billRow = BaseImpl.GetDataRowResult($"select qms_maddf_billdocument_id from qms_BillFileAddMaintab where qms_maddf_productid = '{productId}'");
|
||||||
}
|
if (billRow != null)
|
||||||
DataRow billbomRow = BaseImpl.GetDataRowResult($"select top 1 billdocument_id from bom_BillTab where productid='{productId}'");
|
{
|
||||||
if (billRow != null)
|
throw new Exception($"物料编码{productId}的BOM新增单已存在审批流\r\n请进行审批");
|
||||||
{
|
}
|
||||||
throw new Exception($"物料编码{productId}的BOM建立单已存在\r\n请进行修改操作");
|
DataRow billbomRow = BaseImpl.GetDataRowResult($"select top 1 billdocument_id from bom_BillTab where productid='{productId}'");
|
||||||
|
if (billRow != null)
|
||||||
|
{
|
||||||
|
throw new Exception($"物料编码{productId}的BOM建立单已存在\r\n请进行修改操作");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
FileInfo mxInfo = new FileInfo(mxDirPath);
|
FileInfo mxInfo = new FileInfo(mxDirPath);
|
||||||
if (mxInfo != null)
|
if (mxInfo != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user