This commit is contained in:
高飞 2025-06-21 14:32:55 +08:00
parent f2762ac0c7
commit 8fa6535248
6 changed files with 216 additions and 152 deletions

View File

@ -52,3 +52,21 @@ IP地址:::1
出错时间:06/09/2025 10:47:53 出错时间:06/09/2025 10:47:53
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 FineUIPro.Web._default.Page_Init(Object sender, EventArgs e) 位置 D:\工作\鼎盛\HJGL_DS\HJGL_DS\FineUIPro.Web\default.aspx.cs:行号 114
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
在 System.Web.UI.Control.OnInit(EventArgs e)
在 System.Web.UI.Page.OnInit(EventArgs e)
在 FineUIPro.Web.PageBase.OnInit(EventArgs e) 位置 D:\工作\鼎盛\HJGL_DS\HJGL_DS\FineUIPro.Web\common\PageBase.cs:行号 135
在 System.Web.UI.Control.InitRecursive(Control namingContainer)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:06/13/2025 16:47:46
出错文件:http://localhost:64304/default.aspx?menuModule=6
IP地址:::1
出错时间:06/13/2025 16:47:46

View File

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

View File

@ -626,7 +626,6 @@ namespace FineUIPro.Web.HJGL.CheckManage
{ {
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_CheckMenuId, Const.BtnSave)) if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_CheckMenuId, Const.BtnSave))
{ {
SubmitQualityRating();
foreach (JObject mergedRow in Grid1.GetMergedData()) foreach (JObject mergedRow in Grid1.GetMergedData())
{ {
JObject values = mergedRow.Value<JObject>("values"); JObject values = mergedRow.Value<JObject>("values");
@ -640,7 +639,13 @@ namespace FineUIPro.Web.HJGL.CheckManage
return; return;
} }
} }
if ((string.IsNullOrEmpty(values.Value<string>("DefectResult")) || values.Value<string>("DefectResult") == " ") && values.Value<string>("IsPass") == "不合格")
{
ShowNotify("不合格记录评定结果不能为空!", MessageBoxIcon.Warning);
return;
} }
}
SubmitQualityRating();
ShowNotify("提交成功!", MessageBoxIcon.Success); ShowNotify("提交成功!", MessageBoxIcon.Success);
} }
else else
@ -656,13 +661,13 @@ namespace FineUIPro.Web.HJGL.CheckManage
int rMatNum = 0; int rMatNum = 0;
string changeId = string.Empty; string changeId = string.Empty;
bool b = true; //默认合格 bool b = true; //默认合格
bool bRT = true; //RT默认合格
bool needRemake = false; //重拍 bool needRemake = false; //重拍
foreach (JObject mergedRow in Grid1.GetMergedData()) foreach (JObject mergedRow in Grid1.GetMergedData())
{ {
JObject values = mergedRow.Value<JObject>("values"); JObject values = mergedRow.Value<JObject>("values");
string cH_TrustItemID = values.Value<string>("CH_TrustItemID"); string cH_TrustItemID = values.Value<string>("CH_TrustItemID");
if (!string.IsNullOrEmpty(values.Value<string>("DefectResult"))) //有评定结果的口再保存记录
{
if (changeId != cH_TrustItemID) //循环至新的焊口记录 if (changeId != cH_TrustItemID) //循环至新的焊口记录
{ {
Model.HJGL_CH_TrustItem oldTrustItem = BLL.HJGL_CH_TrustItemService.GetTrustItemByID(changeId); Model.HJGL_CH_TrustItem oldTrustItem = BLL.HJGL_CH_TrustItemService.GetTrustItemByID(changeId);
@ -689,7 +694,24 @@ namespace FineUIPro.Web.HJGL.CheckManage
oldTrustItem.States = "4"; //待返修 oldTrustItem.States = "4"; //待返修
} }
} }
else
{
if (bRT)
{
if (needRemake)
{
oldTrustItem.States = "3"; //待重检
}
else
{
oldTrustItem.States = "2"; //检测合格
}
}
else
{
oldTrustItem.States = "4"; //待返修
}
}
oldTrustItem.FeedbackMan = this.CurrUser.UserName; oldTrustItem.FeedbackMan = this.CurrUser.UserName;
oldTrustItem.FeedbackDate = DateTime.Now; oldTrustItem.FeedbackDate = DateTime.Now;
@ -697,6 +719,7 @@ namespace FineUIPro.Web.HJGL.CheckManage
} }
changeId = cH_TrustItemID; changeId = cH_TrustItemID;
b = true; b = true;
bRT = true;
needRemake = false; needRemake = false;
filmNum = 0; filmNum = 0;
@ -770,6 +793,7 @@ namespace FineUIPro.Web.HJGL.CheckManage
if (values.Value<string>("IsPass") == "不合格") if (values.Value<string>("IsPass") == "不合格")
{ {
b = false; b = false;
bRT = false;
} }
if (Convert.ToBoolean(values.Value<string>("Remake"))) if (Convert.ToBoolean(values.Value<string>("Remake")))
{ {
@ -779,8 +803,8 @@ namespace FineUIPro.Web.HJGL.CheckManage
this.QualityRatingId = values.Value<string>("QualityRatingId"); this.QualityRatingId = values.Value<string>("QualityRatingId");
if (trust.CH_NDTMethod == "20d2cbca-8b3d-434b-b1c1-181796986fa5") //RT检测评定结果不为空才保存拍片记录 if (trust.CH_NDTMethod == "20d2cbca-8b3d-434b-b1c1-181796986fa5") //RT检测评定结果不为空才保存拍片记录
{ {
if (!string.IsNullOrEmpty(newQualityRating.DefectResult)) //if (!string.IsNullOrEmpty(newQualityRating.DefectResult))
{ //{
filmNum++; filmNum++;
if (newQualityRating.RMaterial == true) if (newQualityRating.RMaterial == true)
{ {
@ -802,7 +826,7 @@ namespace FineUIPro.Web.HJGL.CheckManage
newQualityRating.QualityRatingId = this.QualityRatingId; newQualityRating.QualityRatingId = this.QualityRatingId;
BLL.HJGL_BO_QualityRatingService.UpadteQualityRating(newQualityRating); BLL.HJGL_BO_QualityRatingService.UpadteQualityRating(newQualityRating);
} }
} //}
} }
else else
{ {
@ -838,7 +862,6 @@ namespace FineUIPro.Web.HJGL.CheckManage
Funs.DB.SubmitChanges(); Funs.DB.SubmitChanges();
} }
} }
}
//更新列表最后一个口的数据 //更新列表最后一个口的数据
if (!string.IsNullOrEmpty(changeId)) if (!string.IsNullOrEmpty(changeId))
{ {
@ -862,6 +885,24 @@ namespace FineUIPro.Web.HJGL.CheckManage
oldTrustItem1.States = "4"; //待返修 oldTrustItem1.States = "4"; //待返修
} }
} }
else
{
if (bRT)
{
if (needRemake)
{
oldTrustItem1.States = "3"; //待重检
}
else
{
oldTrustItem1.States = "2"; //检测合格
}
}
else
{
oldTrustItem1.States = "4"; //待返修
}
}
oldTrustItem1.FeedbackMan = this.CurrUser.UserName; oldTrustItem1.FeedbackMan = this.CurrUser.UserName;
oldTrustItem1.FeedbackDate = DateTime.Now; oldTrustItem1.FeedbackDate = DateTime.Now;
BLL.HJGL_PW_JointInfoService.JointFileNumWriteBack(oldTrustItem1.JOT_ID, filmNum); BLL.HJGL_PW_JointInfoService.JointFileNumWriteBack(oldTrustItem1.JOT_ID, filmNum);

View File

@ -624,7 +624,6 @@ namespace FineUIPro.Web.HJGL.RepairManage
{ {
if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_CheckAuditMenuId, Const.BtnSave)) if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_CheckAuditMenuId, Const.BtnSave))
{ {
SubmitQualityRating();
foreach (JObject mergedRow in Grid1.GetMergedData()) foreach (JObject mergedRow in Grid1.GetMergedData())
{ {
JObject values = mergedRow.Value<JObject>("values"); JObject values = mergedRow.Value<JObject>("values");
@ -638,7 +637,13 @@ namespace FineUIPro.Web.HJGL.RepairManage
return; return;
} }
} }
if ((string.IsNullOrEmpty(values.Value<string>("DefectResult")) || values.Value<string>("DefectResult") == " ") && values.Value<string>("IsPass") == "不合格")
{
ShowNotify("不合格记录评定结果不能为空!", MessageBoxIcon.Warning);
return;
} }
}
SubmitQualityRating();
ShowNotify("提交成功!", MessageBoxIcon.Success); ShowNotify("提交成功!", MessageBoxIcon.Success);
} }
else else
@ -813,8 +818,8 @@ namespace FineUIPro.Web.HJGL.RepairManage
} }
BLL.HJGL_RepairItemService.UpdateCH_TrustItem(repairItem); BLL.HJGL_RepairItemService.UpdateCH_TrustItem(repairItem);
//回写返修片子情况 //回写返修片子情况
if (!string.IsNullOrEmpty(newQualityRatingRepair.DefectResult)) //if (!string.IsNullOrEmpty(newQualityRatingRepair.DefectResult))
{ //{
if (newQualityRatingRepair.RepairTag == "R1") if (newQualityRatingRepair.RepairTag == "R1")
{ {
if (ndt.NDT_Code.Contains("RT")) if (ndt.NDT_Code.Contains("RT"))
@ -896,7 +901,7 @@ namespace FineUIPro.Web.HJGL.RepairManage
} }
} }
} }
} //}
if (newQualityRatingRepair.RMaterial == true) if (newQualityRatingRepair.RMaterial == true)
{ {

View File

@ -50,7 +50,7 @@
<add path="ChartImg.axd" verb="GET,POST,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/> <add path="ChartImg.axd" verb="GET,POST,HEAD" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>
<add path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport"/> <add path="FastReport.Export.axd" verb="*" type="FastReport.Web.Handlers.WebExport"/>
</httpHandlers> </httpHandlers>
<compilation debug="false" targetFramework="4.6.1"> <compilation debug="true" targetFramework="4.6.1">
<assemblies> <assemblies>
<add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies> </assemblies>

View File

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