This commit is contained in:
2024-10-10 10:35:01 +08:00
parent 94fc0c6aa5
commit 022aebc00d
45 changed files with 1525 additions and 487 deletions
@@ -367,6 +367,12 @@ namespace BLL
}
if (rate.DetectionRateValue == 100)
{
UpdatePointBatchItem(pointBatchItemId, "1", System.DateTime.Now, null);
UpdatePointBatchOrder(pointBatchItemId, true);
}
#region
//// 一个段位的数量
//int dnum = Convert.ToInt32((double)100 / (double)rate.DetectionRateValue);
@@ -319,12 +319,13 @@ namespace BLL
/// </summary>
/// <param name="dropName"></param>
/// <param name="workAreaId"></param>
public static void InitPipelineDropDownList(FineUIPro.DropDownList dropName,string workAreaId)
public static void InitPipelineDropDownList(FineUIPro.DropDownList dropName,string workAreaId, string itemText)
{
dropName.DataValueField = "PipelineId";
dropName.DataTextField = "PipelineCode";
dropName.DataSource = GetPipelineList(workAreaId);
dropName.DataBind();
Funs.FineUIPleaseSelect(dropName, itemText);
}
}
}
@@ -168,6 +168,55 @@ namespace BLL
}
}
public static void UpdateWeldJointByGly(Model.Pipeline_WeldJoint weldJoint)
{
Model.HJGLDB db = Funs.DB;
Model.Pipeline_WeldJoint newWeldJoint = db.Pipeline_WeldJoint.FirstOrDefault(e => e.WeldJointId == weldJoint.WeldJointId);
if (newWeldJoint != null)
{
newWeldJoint.WeldJointCode = weldJoint.WeldJointCode;
newWeldJoint.WeldTypeId = weldJoint.WeldTypeId;
newWeldJoint.Material1Id = weldJoint.Material1Id;
newWeldJoint.Material2Id = weldJoint.Material2Id;
newWeldJoint.Thickness = weldJoint.Thickness;
newWeldJoint.Dia = weldJoint.Dia;
newWeldJoint.Size = weldJoint.Size;
newWeldJoint.JointAttribute = weldJoint.JointAttribute;
newWeldJoint.JointArea = weldJoint.JointArea;
newWeldJoint.WeldingMethodId = weldJoint.WeldingMethodId;
newWeldJoint.IsHotProess = weldJoint.IsHotProess;
newWeldJoint.WeldingLocationId = weldJoint.WeldingLocationId;
newWeldJoint.WeldMatId = weldJoint.WeldMatId;
newWeldJoint.WeldSilkId = weldJoint.WeldSilkId;
newWeldJoint.GrooveTypeId = weldJoint.GrooveTypeId;
newWeldJoint.PipeSegment = weldJoint.PipeSegment;
newWeldJoint.PipeAssembly1Id = weldJoint.PipeAssembly1Id;
newWeldJoint.PipeAssembly2Id = weldJoint.PipeAssembly2Id;
newWeldJoint.PipeAssemblyCount = weldJoint.PipeAssemblyCount;
newWeldJoint.HeartNo1 = weldJoint.HeartNo1;
newWeldJoint.HeartNo2 = weldJoint.HeartNo2;
newWeldJoint.LastTemp = weldJoint.LastTemp;
newWeldJoint.CellTemp = weldJoint.CellTemp;
newWeldJoint.PrepareTemp = weldJoint.PrepareTemp;
newWeldJoint.Electricity = weldJoint.Electricity;
newWeldJoint.Voltage = weldJoint.Voltage;
newWeldJoint.IsPMI = weldJoint.IsPMI;
newWeldJoint.TestPackageNo = weldJoint.TestPackageNo;
newWeldJoint.PipingClassId = weldJoint.PipingClassId;
newWeldJoint.Specification = weldJoint.Specification;
newWeldJoint.DoneDin = weldJoint.DoneDin;
newWeldJoint.SystemNumber = weldJoint.SystemNumber;
newWeldJoint.Remark = weldJoint.Remark;
//newWeldJoint.IsCancel = weldJoint.IsCancel;
newWeldJoint.IsGoldJoint = weldJoint.IsGoldJoint;
newWeldJoint.WPQId = weldJoint.WPQId;
newWeldJoint.DetectionType = weldJoint.DetectionType;
newWeldJoint.PageNum = weldJoint.PageNum;
newWeldJoint.ANSISCH = weldJoint.ANSISCH;
db.SubmitChanges();
}
}
/// <summary>
/// 修改部分内容
/// </summary>
@@ -302,152 +351,6 @@ namespace BLL
}
}
/// <summary>
/// 修改部分内容TCC11,暂时
/// </summary>
/// <param name="weldJoint"></param>
public static void UpdateDepartWeldJointToTCC11(Model.Pipeline_WeldJoint weldJoint)
{
Model.HJGLDB db = Funs.DB;
Model.Pipeline_WeldJoint newWeldJoint = db.Pipeline_WeldJoint.FirstOrDefault(e => e.WeldJointId == weldJoint.WeldJointId);
if (newWeldJoint != null)
{
newWeldJoint.WeldJointCode = weldJoint.WeldJointCode;
//newWeldJoint.WeldTypeId = weldJoint.WeldTypeId;
//newWeldJoint.Material1Id = weldJoint.Material1Id;
//newWeldJoint.Material2Id = weldJoint.Material2Id;
if (weldJoint.Thickness != null)
{
newWeldJoint.Thickness = weldJoint.Thickness;
}
if (weldJoint.Dia != null)
{
newWeldJoint.Dia = weldJoint.Dia;
}
if (weldJoint.Size != null)
{
newWeldJoint.Size = weldJoint.Size;
}
if (!string.IsNullOrEmpty(weldJoint.JointAttribute))
{
newWeldJoint.JointAttribute = weldJoint.JointAttribute;
}
if (!string.IsNullOrEmpty(weldJoint.JointArea))
{
newWeldJoint.JointArea = weldJoint.JointArea;
}
//newWeldJoint.WeldingMethodId = weldJoint.WeldingMethodId;
if (weldJoint.IsHotProess != null)
{
newWeldJoint.IsHotProess = weldJoint.IsHotProess;
}
if (!string.IsNullOrEmpty(weldJoint.WeldingLocationId))
{
newWeldJoint.WeldingLocationId = weldJoint.WeldingLocationId;
}
if (!string.IsNullOrEmpty(weldJoint.WeldMatId))
{
newWeldJoint.WeldMatId = weldJoint.WeldMatId;
}
if (!string.IsNullOrEmpty(weldJoint.WeldSilkId))
{
newWeldJoint.WeldSilkId = weldJoint.WeldSilkId;
}
//newWeldJoint.GrooveTypeId = weldJoint.GrooveTypeId;
if (!string.IsNullOrEmpty(weldJoint.PipeSegment))
{
newWeldJoint.PipeSegment = weldJoint.PipeSegment;
}
if (!string.IsNullOrEmpty(weldJoint.PipeAssembly1Id))
{
newWeldJoint.PipeAssembly1Id = weldJoint.PipeAssembly1Id;
}
if (!string.IsNullOrEmpty(weldJoint.PipeAssembly2Id))
{
newWeldJoint.PipeAssembly2Id = weldJoint.PipeAssembly2Id;
}
if (weldJoint.PipeAssemblyCount != null)
{
newWeldJoint.PipeAssemblyCount = weldJoint.PipeAssemblyCount;
}
if (!string.IsNullOrEmpty(weldJoint.HeartNo1))
{
newWeldJoint.HeartNo1 = weldJoint.HeartNo1;
}
if (!string.IsNullOrEmpty(weldJoint.HeartNo2))
{
newWeldJoint.HeartNo2 = weldJoint.HeartNo2;
}
if (!string.IsNullOrEmpty(weldJoint.LastTemp))
{
newWeldJoint.LastTemp = weldJoint.LastTemp;
}
if (!string.IsNullOrEmpty(weldJoint.CellTemp))
{
newWeldJoint.CellTemp = weldJoint.CellTemp;
}
if (!string.IsNullOrEmpty(weldJoint.PrepareTemp))
{
newWeldJoint.PrepareTemp = weldJoint.PrepareTemp;
}
if (!string.IsNullOrEmpty(weldJoint.Electricity))
{
newWeldJoint.Electricity = weldJoint.Electricity;
}
if (!string.IsNullOrEmpty(weldJoint.Voltage))
{
newWeldJoint.Voltage = weldJoint.Voltage;
}
if (!string.IsNullOrEmpty(weldJoint.TestPackageNo))
{
newWeldJoint.TestPackageNo = weldJoint.TestPackageNo;
}
//newWeldJoint.WeldingDailyCode = weldJoint.WeldingDailyCode;
//newWeldJoint.BackingWelderId = weldJoint.BackingWelderId;
//newWeldJoint.CoverWelderId = weldJoint.CoverWelderId;
//newWeldJoint.WeldingDate = weldJoint.WeldingDate;
//newWeldJoint.WeldingDailyId = weldJoint.WeldingDailyId;
//newWeldJoint.PipingClassId = weldJoint.PipingClassId;
if (!string.IsNullOrEmpty(weldJoint.Specification))
{
newWeldJoint.Specification = weldJoint.Specification;
}
//newWeldJoint.DoneDin = weldJoint.DoneDin;
if (!string.IsNullOrEmpty(weldJoint.SystemNumber))
{
newWeldJoint.SystemNumber = weldJoint.SystemNumber;
}
if (!string.IsNullOrEmpty(weldJoint.Remark))
{
newWeldJoint.Remark = weldJoint.Remark;
}
//newWeldJoint.IsCancel = weldJoint.IsCancel;
if (weldJoint.IsGoldJoint != null)
{
newWeldJoint.IsGoldJoint = weldJoint.IsGoldJoint;
}
if (!string.IsNullOrEmpty(weldJoint.WPQId))
{
newWeldJoint.WPQId = weldJoint.WPQId;
}
if (!string.IsNullOrEmpty(weldJoint.DetectionType))
{
newWeldJoint.DetectionType = weldJoint.DetectionType;
}
if (!string.IsNullOrEmpty(weldJoint.PageNum))
{
newWeldJoint.PageNum = weldJoint.PageNum;
}
if (!string.IsNullOrEmpty(weldJoint.ANSISCH))
{
newWeldJoint.ANSISCH = weldJoint.ANSISCH;
}
db.SubmitChanges();
}
}
/// <summary>
/// 根据主键删除焊口信息
/// </summary>
@@ -62,7 +62,8 @@ namespace BLL
newWeldReportItem.WeldingLocationId = item.WeldingLocationId;
newWeldReportItem.WeldingLocationCode = item.WeldingLocationCode;
newWeldReportItem.JointAttribute = item.JointAttribute;
newWeldReportItem.DoneDin = item.DoneDin;
newWeldReportItem.DoneDin = item.Size;
newWeldReportItem.Size = item.Size;
newWeldReportItem.Dia = item.Dia;
newWeldReportItem.Thickness = item.Thickness;
newWeldReportItem.Specification = item.Specification;
@@ -157,14 +158,8 @@ namespace BLL
//newWeldReportItem.WeldMatCode = weldline.WeldMatCode;
if (weldline.DoneDin == null)
{
newWeldReportItem.DoneDin = weldline.Size;
}
else
{
newWeldReportItem.DoneDin = weldline.DoneDin;
}
newWeldReportItem.DoneDin = weldline.Size;
newWeldReportItem.Size = weldline.Size;
newWeldReportItem.Dia = weldline.Dia;
newWeldReportItem.Thickness = weldline.Thickness;
newWeldReportItem.Specification = weldline.Specification;