This commit is contained in:
高飞 2025-07-07 18:22:04 +08:00
parent b9817b23df
commit 26f68a6771
11 changed files with 185 additions and 7 deletions

View File

@ -277,6 +277,10 @@ namespace BLL
BLL.HJGL_PW_JointInfoService.UpdateJointInfoByDReport(newJointInfo);
//更新焊口号 修改固定焊口号后 +G
BLL.HJGL_PW_JointInfoService.UpdateJointNoAddG(newJointInfo.JOT_ID, newJointInfo.JOT_JointAttribute, Const.Add);
if (newJointInfo.IS_Proess == "1" && (newJointInfo.ProessTypes.Contains("4") || newJointInfo.ProessTypes.Contains("5")))
{
BLL.HJGL_HotProessManageEditService.AddHotProessItemByJoint(newJointInfo);
}
}
}

View File

@ -174,7 +174,7 @@ namespace BLL
{
Model.HJGL_PW_JointInfo info = new Model.HJGL_PW_JointInfo();
info.JOT_ID = item.JOT_ID;
info.IS_Proess = "0";
UpdateJointInfo(info);
}
@ -272,7 +272,7 @@ namespace BLL
////更新焊口信息
Model.HJGL_PW_JointInfo info = new Model.HJGL_PW_JointInfo();
info.JOT_ID = HJGL_HotProessItem.JOT_ID;
info.IS_Proess = "1";
UpdateJointInfo(info);
}
@ -341,5 +341,53 @@ namespace BLL
return false;
}
}
/// <summary>
/// 增加热处理信息明细
/// </summary>
/// <param name="HJGL_HotProessItem">热处理明细实体</param>
public static void AddHotProessItemByJoint(Model.HJGL_PW_JointInfo joint)
{
if (joint.ProessTypes.Contains("4"))
{
Model.HJGL_HotProessItem hotProessItem = new Model.HJGL_HotProessItem();
hotProessItem.HotProessItemId = SQLHelper.GetNewID(typeof(Model.HJGL_HotProessItem));
hotProessItem.JOT_ID = joint.JOT_ID;
var trust = (from x in Funs.DB.HJGL_CH_HotProessTrustItem where x.JOT_ID == joint.JOT_ID select x).FirstOrDefault();
if (trust != null)
{
hotProessItem.HotProessTrustId = trust.HotProessTrustId;
}
hotProessItem.ProessTypes = "4";
hotProessItem.SortIndex = BLL.HJGL_HotProessManageEditService.GetSortIndex(trust.HotProessTrustId, joint.JOT_ID, "4");
Model.HJGL_CH_HotProessTrustItem hotProessTrustItem = BLL.HJGL_CH_HotProessTrustService.GetCH_HotProessTrustItemByHotProessTrustIdAndJotId(trust.HotProessTrustId, joint.JOT_ID);
if (hotProessTrustItem != null)
{
BLL.HJGL_HotProessManageEditService.AddHotProessItem(hotProessItem, "", null);
}
//回写焊口热处理委托时间
BLL.HJGL_PW_JointInfoService.WriteBackHotProessTrustDate(joint.JOT_ID, DateTime.Now);
}
if (joint.ProessTypes.Contains("5"))
{
Model.HJGL_HotProessItem hotProessItem = new Model.HJGL_HotProessItem();
hotProessItem.HotProessItemId = SQLHelper.GetNewID(typeof(Model.HJGL_HotProessItem));
hotProessItem.JOT_ID = joint.JOT_ID;
var trust = (from x in Funs.DB.HJGL_CH_HotProessTrustItem where x.JOT_ID == joint.JOT_ID select x).FirstOrDefault();
if (trust != null)
{
hotProessItem.HotProessTrustId = trust.HotProessTrustId;
}
hotProessItem.ProessTypes = "5";
hotProessItem.SortIndex = BLL.HJGL_HotProessManageEditService.GetSortIndex(trust.HotProessTrustId, joint.JOT_ID, "5");
Model.HJGL_CH_HotProessTrustItem hotProessTrustItem = BLL.HJGL_CH_HotProessTrustService.GetCH_HotProessTrustItemByHotProessTrustIdAndJotId(trust.HotProessTrustId, joint.JOT_ID);
if (hotProessTrustItem != null)
{
BLL.HJGL_HotProessManageEditService.AddHotProessItem(hotProessItem, "", null);
}
//回写焊口热处理委托时间
BLL.HJGL_PW_JointInfoService.WriteBackHotProessTrustDate(joint.JOT_ID, DateTime.Now);
}
}
}
}

View File

@ -509,7 +509,10 @@ namespace BLL
{
addJointInfo.JOT_JointNo += "G";
}
if (addJointInfo.IsGold == true) //黄金口加H
{
addJointInfo.JOT_JointNo += "H";
}
db.SubmitChanges();
}
}

View File

@ -30,3 +30,22 @@ IP地址:::1
出错时间:06/26/2025 10:36:58
错误信息开始=====>
错误类型:HttpException
错误信息:服务器无法在发送 HTTP 标头之后设置内容类型。
错误堆栈:
在 System.Web.HttpResponse.set_ContentType(String value)
在 (HttpResponse , String )
在 hZzEMoBFowQHNetYNlTaFyfiuHiLc.hXMADyGEgDdbFxdyPzsZtZEjxqkq()
在 (hZzEMoBFowQHNetYNlTaFyfiuHiLc )
在 hZzEMoBFowQHNetYNlTaFyfiuHiLc.hXMADyGEgDdbFxdyPzsZtZEjxqkq(Object , EventArgs )
在 System.Web.UI.Page.OnPreRenderComplete(EventArgs e)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:07/07/2025 10:10:27
出错文件:http://localhost:64304/HJGL/DataIn/JointIn.aspx
IP地址:::1
操作人员:管理员
出错时间:07/07/2025 10:10:27

View File

@ -2,7 +2,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<UseIISExpress>true</UseIISExpress>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<Use64BitIISExpress />
<IISExpressSSLPort />
<IISExpressAnonymousAuthentication />

View File

@ -625,6 +625,102 @@
}
}
}
#region 线
Model.SGGLDB db = Funs.DB;
var allJoints = from x in db.HJGL_PW_JointInfo
where (from y in db.HJGL_CH_HotProessTrustItem where y.JOT_ID == x.JOT_ID select y).Count() == 0 && x.IS_Proess == "1"
select x;
var allIsoIds = allJoints.Select(x => x.ISO_ID).Distinct();
var allIsos = from x in db.HJGL_PW_IsoInfo
join y in db.Base_Project on x.ProjectId equals y.ProjectId
where allIsoIds.Contains(x.ISO_ID)
select new { x.ISO_ID, x.ProjectId, x.ISO_IsoNo, x.BSU_ID, y.ProjectName, y.ProjectCode };
var allProjectUser = from x in db.Project_User
join y in db.Sys_User on x.UserId equals y.UserId
select new { x.UserId, x.ProjectId, y.UnitId };
string HotProessTrustId = string.Empty;
List<Model.HJGL_CH_HotProessTrust> trusts = new List<Model.HJGL_CH_HotProessTrust>();
List<Model.HJGL_CH_HotProessTrustItem> trustItems = new List<Model.HJGL_CH_HotProessTrustItem>();
List<Model.HJGL_CH_HotProessResult> hotProessResults = new List<Model.HJGL_CH_HotProessResult>();
foreach (var item in allIsos)
{
Model.HJGL_CH_HotProessTrust newHotProessTrust = new Model.HJGL_CH_HotProessTrust();
newHotProessTrust.ProjectId = item.ProjectId;
newHotProessTrust.HotProessTrustCode = BLL.SQLHelper.RunProcNewIdByProjectId("SpGetNewCode2ByProjectIdNoR", "dbo.HJGL_CH_HotProessTrust", "HotProessTrustCode", item.ProjectId, item.ProjectCode + "-" + string.Format("{0:MMdd}", DateTime.Now) + "-");
newHotProessTrust.TrustUnitId = item.BSU_ID;
newHotProessTrust.ProjectName = item.ProjectName;
newHotProessTrust.ConstructionNo = item.ProjectCode;
var projectUser = allProjectUser.FirstOrDefault(x => x.ProjectId == item.ProjectId && x.UnitId == item.BSU_ID);
if (projectUser != null)
{
newHotProessTrust.TrstManId = projectUser.UserId;
}
HotProessTrustId = SQLHelper.GetNewID(typeof(Model.HJGL_CH_HotProessTrust));
newHotProessTrust.HotProessTrustId = HotProessTrustId;
newHotProessTrust.TrustType = "1"; //正常口
trusts.Add(newHotProessTrust);
var joints = allJoints.Where(x => x.ISO_ID == item.ISO_ID);
foreach (var joint in joints)
{
if (!string.IsNullOrEmpty(joint.ProessTypes))
{
string[] proessTypes = joint.ProessTypes.Split('|');
for (int i = 0; i < proessTypes.Length; i++)
{
Model.HJGL_CH_HotProessTrustItem newItem = new Model.HJGL_CH_HotProessTrustItem();
newItem.HotProessTrustId = HotProessTrustId;
newItem.JOT_ID = joint.JOT_ID;
newItem.ProessTypes = proessTypes[i];
//item.TrustDate = Funs.GetNewDateTime(values.Value<string>("TrustDate").ToString());
newItem.TrustDate = DateTime.Now;
newItem.Remark = string.Empty;
newItem.HotProessTrustItemId = SQLHelper.GetNewID(typeof(Model.HJGL_CH_HotProessTrustItem));
trustItems.Add(newItem);
//if (newItem.ProessTypes.Contains("4") || newItem.ProessTypes.Contains("5")) //需要进入热处理报告的记录
//{
// Model.HJGL_HotProessItem hotProessItem = new Model.HJGL_HotProessItem();
// hotProessItem.HotProessItemId = SQLHelper.GetNewID(typeof(Model.HJGL_HotProessItem));
// hotProessItem.JOT_ID = newItem.JOT_ID;
// hotProessItem.HotProessTrustId = HotProessTrustId;
// hotProessItem.ProessTypes = newItem.ProessTypes;
// hotProessItem.SortIndex = BLL.HJGL_HotProessManageEditService.GetSortIndex(HotProessTrustId, newItem.JOT_ID, newItem.ProessTypes);
// Model.HJGL_CH_HotProessTrustItem hotProessTrustItem = BLL.HJGL_CH_HotProessTrustService.GetCH_HotProessTrustItemByHotProessTrustIdAndJotId(HotProessTrustId, newItem.JOT_ID);
// if (hotProessTrustItem != null)
// {
// BLL.HJGL_HotProessManageEditService.AddHotProessItem(hotProessItem, "", null);
// }
// //回写焊口热处理委托时间
// BLL.HJGL_PW_JointInfoService.WriteBackHotProessTrustDate(newItem.JOT_ID, newItem.TrustDate);
//}
//进入热处理结果反馈
Model.HJGL_CH_HotProessResult hotProessResult = new Model.HJGL_CH_HotProessResult();
hotProessResult.JOT_ID = newItem.JOT_ID;
hotProessResult.HotProessTrustId = HotProessTrustId;
hotProessResult.ProessTypes = newItem.ProessTypes;
hotProessResult.HotProessResultId = SQLHelper.GetNewID(typeof(Model.HJGL_CH_HotProessResult));
hotProessResults.Add(hotProessResult);
}
}
}
}
db.HJGL_CH_HotProessTrust.InsertAllOnSubmit(trusts);
db.SubmitChanges();
db.HJGL_CH_HotProessTrustItem.InsertAllOnSubmit(trustItems);
db.SubmitChanges();
db.HJGL_CH_HotProessResult.InsertAllOnSubmit(hotProessResults);
db.SubmitChanges();
//已焊接口
var allWeldJoints = from x in db.HJGL_PW_JointInfo
where x.DReportID != null && x.IS_Proess == "1" && (x.ProessTypes.Contains("4") || x.ProessTypes.Contains("5"))
&& (from y in db.HJGL_HotProessItem where y.JOT_ID == x.JOT_ID select y).Count() == 0
select x;
foreach (var item in allWeldJoints)
{
BLL.HJGL_HotProessManageEditService.AddHotProessItemByJoint(item);
}
#endregion
}
protected void Session_Start(object sender, EventArgs e)

View File

@ -1162,6 +1162,10 @@ namespace FineUIPro.Web.HJGL.DataIn
BLL.HJGL_PW_JointInfoService.UpdateJointInfoByDReport(newJointInfo);
//更新焊口号 修改固定焊口号后 +G
BLL.HJGL_PW_JointInfoService.UpdateJointNoAddG(newJointInfo.JOT_ID, newJointInfo.JOT_JointAttribute, Const.Add);
if (newJointInfo.IS_Proess == "1" && (newJointInfo.ProessTypes.Contains("4") || newJointInfo.ProessTypes.Contains("5")))
{
BLL.HJGL_HotProessManageEditService.AddHotProessItemByJoint(newJointInfo);
}
}
else
{

View File

@ -785,7 +785,7 @@
{
}
if (jot.DReportID != null)
if (jot.DReportID != null && this.CurrUser.UserId != BLL.Const.GlyId)
{
BLL.HJGL_PW_JointInfoService.UpdateJointNoAddG(this.JOT_ID, this.ddlJointAttribute.SelectedValue, Const.Add);
}

View File

@ -831,6 +831,10 @@ namespace FineUIPro.Web.HJGL.WeldingManage
BLL.HJGL_PW_JointInfoService.UpdateJointInfoByDReport(newJointInfo);
//更新焊口号 修改固定焊口号后 +G
BLL.HJGL_PW_JointInfoService.UpdateJointNoAddG(newJointInfo.JOT_ID, newJointInfo.JOT_JointAttribute, Const.Add);
if (newJointInfo.IS_Proess == "1" && (newJointInfo.ProessTypes.Contains("4") || newJointInfo.ProessTypes.Contains("5")))
{
BLL.HJGL_HotProessManageEditService.AddHotProessItemByJoint(newJointInfo);
}
}
else
{

View File

@ -16,7 +16,7 @@
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="焊材入库录入" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="StockInId" AllowCellEditing="true" ClicksToEdit="2"
DataIDField="StockInId" AllowSorting="true" SortField="WeldName" SortDirection="ASC"
DataIDField="StockInId" AllowSorting="true" SortField="MoveInDate" SortDirection="DESC"
OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="15"
OnPageIndexChange="Grid1_PageIndexChange"
EnableTextSelection="True">

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress />