小程序接口修改
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -253,24 +254,27 @@ namespace BLL
|
||||
return getDateInfo.FirstOrDefault();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 根据管线ID获取探伤比例
|
||||
/// </summary>
|
||||
/// <param name="pipeLineId"></param>
|
||||
/// <returns></returns>
|
||||
private static string GetDetectionRate(string pipeLineId)
|
||||
{
|
||||
string detectionRate = string.Empty;
|
||||
var pipe = BLL.PipelineService.GetPipelineByPipelineId(pipeLineId);
|
||||
if (pipe != null && !string.IsNullOrEmpty(pipe.DetectionRateId))
|
||||
/// <summary>
|
||||
/// 根据管线ID获取探伤比例
|
||||
/// </summary>
|
||||
/// <param name="pipeLineId"></param>
|
||||
/// <returns></returns>
|
||||
private static string GetDetectionRate(string pipeLineId)
|
||||
{
|
||||
var r = BLL.Base_DetectionRateService.GetDetectionRateByDetectionRateId(pipe.DetectionRateId);
|
||||
detectionRate = r.DetectionRateValue + "%";
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
string detectionRate = string.Empty;
|
||||
var pipe = db.HJGL_Pipeline.FirstOrDefault(e => e.PipelineId == pipeLineId);
|
||||
if (pipe != null && !string.IsNullOrEmpty(pipe.DetectionRateId))
|
||||
{
|
||||
var r = db.Base_DetectionRate.FirstOrDefault(e => e.DetectionRateId == pipe.DetectionRateId);
|
||||
detectionRate = r.DetectionRateValue + "%";
|
||||
}
|
||||
return detectionRate;
|
||||
}
|
||||
}
|
||||
return detectionRate;
|
||||
}
|
||||
|
||||
#region 根据焊口标识获取焊口详细信息
|
||||
/// <summary>
|
||||
@@ -521,15 +525,15 @@ namespace BLL
|
||||
string jotId = addItem.WeldJointId;
|
||||
if (!string.IsNullOrEmpty(jotId))
|
||||
{
|
||||
var jotInfo = BLL.PW_JointInfoService.GetJointInfoByJotID(jotId);
|
||||
var jotInfo = db.PW_JointInfo.FirstOrDefault(e => e.JOT_ID == jotId);
|
||||
if (jotInfo != null)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(jotInfo.ISO_ID))
|
||||
{
|
||||
var isoInfo = BLL.PW_IsoInfoService.GetIsoInfoByIsoInfoId(jotInfo.ISO_ID);
|
||||
var isoInfo =db.PW_IsoInfo.FirstOrDefault(e => e.ISO_ID == jotInfo.ISO_ID);
|
||||
if (isoInfo != null)
|
||||
{
|
||||
workAreaCode = BLL.WorkAreaService.GetWorkAreaCodeByWorkAreaId(isoInfo.WorkAreaId);
|
||||
workAreaCode = BLL.WorkAreaService.GetWorkAreaCodeByWorkAreaIdForApi(isoInfo.WorkAreaId);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -546,9 +550,9 @@ namespace BLL
|
||||
string DReportID = SQLHelper.GetNewID(typeof(Model.BO_WeldReportMain));
|
||||
newWeldReportMain.DReportID = DReportID;
|
||||
BLL.WeldReportService.AddWeldReport(newWeldReportMain);
|
||||
BLL.LogService.AddSys_Log(BLL.UserService.GetUserByUserId(addItem.UserId), newWeldReportMain.JOT_DailyReportNo, DReportID, BLL.Const.HJGL_WeldReportMenuId, "添加焊接日报信息");
|
||||
BLL.LogService.AddSys_Log(db.Sys_User.FirstOrDefault(e => e.UserId == addItem.UserId), newWeldReportMain.JOT_DailyReportNo, DReportID, BLL.Const.HJGL_WeldReportMenuId, "添加焊接日报信息");
|
||||
|
||||
Model.PW_JointInfo jot = BLL.PW_JointInfoService.GetJointInfoByJotID(addItem.WeldJointId);
|
||||
Model.PW_JointInfo jot = db.PW_JointInfo.FirstOrDefault(e => e.JOT_ID == addItem.WeldJointId);
|
||||
jot.DReportID = newWeldReportMain.DReportID;
|
||||
jot.JOT_CellWelder = addItem.CoverWelderId;
|
||||
jot.JOT_FloorWelder = addItem.BackingWelderId;
|
||||
@@ -565,9 +569,9 @@ namespace BLL
|
||||
//jot.JOT_CellTemp = item.JOT_CellTemp;
|
||||
//jot.JOT_LastTemp = item.JOT_LastTemp;
|
||||
|
||||
BLL.PW_JointInfoService.UpdateJointInfoByDReport(jot);
|
||||
db.SubmitChanges();
|
||||
//更新焊口号 修改固定焊口号后 +G
|
||||
BLL.PW_JointInfoService.UpdateJointNoAddG(jot.JOT_ID, addItem.JointAttribute, "Add");
|
||||
BLL.PW_JointInfoService.UpdateJointNoAddGForApi(jot.JOT_ID, addItem.JointAttribute, "Add");
|
||||
|
||||
SaveAttachFile(addItem.WeldJointId, BLL.Const.HJGL_WeldReportMenuId, addItem.AttachUrl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user