11
This commit is contained in:
@@ -753,22 +753,8 @@ namespace FineUIPro.Web.HJGL.JoinMarking
|
||||
|
||||
// if (string.IsNullOrEmpty(errInfo)) ////所有信息正确的话 这插入管线焊口
|
||||
{
|
||||
isoInfo.ProjectId = this.CurrUser.LoginProjectId;
|
||||
jointInfo.ProjectId = this.CurrUser.LoginProjectId;
|
||||
var isExitISOValue = Funs.DB.HJGL_View_JointInfoAndIsoInfo.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.UnitCode == tempData.Value1
|
||||
&& x.InstallationCode == tempData.Value2 && x.ISO_IsoNo == tempData.Value3);
|
||||
if (isExitISOValue != null) ///管线已存在
|
||||
{
|
||||
isoInfo.ISO_ID = isExitISOValue.ISO_ID;
|
||||
jointInfo.ISO_ID = isExitISOValue.ISO_ID;
|
||||
BLL.HJGL_PW_IsoInfoService.UpdateIsoInfo(isoInfo);
|
||||
}
|
||||
else
|
||||
{
|
||||
isoInfo.ISO_ID = SQLHelper.GetNewID(typeof(Model.HJGL_PW_IsoInfo));
|
||||
jointInfo.ISO_ID = isoInfo.ISO_ID;
|
||||
BLL.HJGL_PW_IsoInfoService.AddIsoInfo(isoInfo);
|
||||
}
|
||||
jointInfo.ProjectId = this.CurrUser.LoginProjectId;
|
||||
|
||||
var isExitJotNoValue = Funs.DB.HJGL_View_JointInfoAndIsoInfo.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.UnitCode == tempData.Value1
|
||||
&& x.InstallationCode == tempData.Value2 && x.ISO_IsoNo == tempData.Value3 && x.JOT_JointNo == tempData.Value4);
|
||||
if (isExitJotNoValue == null)
|
||||
|
||||
Reference in New Issue
Block a user