20260304 批量提交多个口的质量等级评定

This commit is contained in:
毕文静 2026-03-04 16:18:48 +08:00
parent 46101bc59e
commit 2f562e57aa
2 changed files with 36 additions and 36 deletions

View File

@ -229,7 +229,7 @@
HeaderTextAlign="Center" TextAlign="Center" Width="90px" FieldType="String"> HeaderTextAlign="Center" TextAlign="Center" Width="90px" FieldType="String">
<Editor> <Editor>
<f:DropDownList ID="drpIsPass" runat="server"> <f:DropDownList ID="drpIsPass" runat="server">
<f:ListItem Value="合格" Text="合格" Selected="true" /> <f:ListItem Value="合格" Text="合格"/>
<f:ListItem Value="不合格" Text="不合格" /> <f:ListItem Value="不合格" Text="不合格" />
</f:DropDownList> </f:DropDownList>
</Editor> </Editor>

View File

@ -875,62 +875,62 @@ namespace FineUIPro.Web.HJGL.CheckManage
report.PrintTime = null; report.PrintTime = null;
Funs.DB.SubmitChanges(); Funs.DB.SubmitChanges();
} }
} //}
//更新列表最后一个口的数据 //更新列表焊口的数据
if (!string.IsNullOrEmpty(changeId)) if (!string.IsNullOrEmpty(changeId))
{
Model.HJGL_CH_TrustItem oldTrustItem1 = BLL.HJGL_CH_TrustItemService.GetTrustItemByID(changeId);
Model.HJGL_CH_Trust trust1 = BLL.HJGL_TrustManageEditService.GetCH_TrustByID(oldTrustItem1.CH_TrustID);
if (trust1.CH_NDTMethod != "20d2cbca-8b3d-434b-b1c1-181796986fa5") //非RT检测更新焊口检测状态
{ {
if (hasResult) Model.HJGL_CH_TrustItem oldTrustItem1 = BLL.HJGL_CH_TrustItemService.GetTrustItemByID(changeId);
Model.HJGL_CH_Trust trust1 = BLL.HJGL_TrustManageEditService.GetCH_TrustByID(oldTrustItem1.CH_TrustID);
if (trust1.CH_NDTMethod != "20d2cbca-8b3d-434b-b1c1-181796986fa5") //非RT检测更新焊口检测状态
{ {
if (b) if (hasResult)
{ {
if (needRemake) if (b)
{ {
oldTrustItem1.States = "3"; //待重检 if (needRemake)
{
oldTrustItem1.States = "3"; //待重检
}
else
{
oldTrustItem1.States = "2"; //检测合格
}
} }
else else
{ {
oldTrustItem1.States = "2"; //检测合格 oldTrustItem1.States = "4"; //待返修
} }
} }
else
{
oldTrustItem1.States = "4"; //待返修
}
} }
} else
else
{
if (hasResult)
{ {
if (bRT) if (hasResult)
{ {
if (needRemake) if (bRT)
{ {
oldTrustItem1.States = "3"; //待重检 if (needRemake)
{
oldTrustItem1.States = "3"; //待重检
}
else
{
oldTrustItem1.States = "2"; //检测合格
}
} }
else else
{ {
oldTrustItem1.States = "2"; //检测合格 oldTrustItem1.States = "4"; //待返修
} }
} }
else
{
oldTrustItem1.States = "4"; //待返修
}
} }
oldTrustItem1.FeedbackMan = this.CurrUser.UserName;
oldTrustItem1.FeedbackDate = DateTime.Now;
BLL.HJGL_PW_JointInfoService.JointFileNumWriteBack(oldTrustItem1.JOT_ID, filmNum);
BLL.HJGL_PW_JointInfoService.JointRMaterialWriteBack(oldTrustItem1.JOT_ID, rMatNum);
BLL.HJGL_PW_JointInfoService.JointCheckStateWriteBack(oldTrustItem1.JOT_ID, trust1.CH_NDTMethod, oldTrustItem1.States);
BLL.HJGL_CH_TrustItemService.UpdateTrustItem(oldTrustItem1);
} }
oldTrustItem1.FeedbackMan = this.CurrUser.UserName;
oldTrustItem1.FeedbackDate = DateTime.Now;
BLL.HJGL_PW_JointInfoService.JointFileNumWriteBack(oldTrustItem1.JOT_ID, filmNum);
BLL.HJGL_PW_JointInfoService.JointRMaterialWriteBack(oldTrustItem1.JOT_ID, rMatNum);
BLL.HJGL_PW_JointInfoService.JointCheckStateWriteBack(oldTrustItem1.JOT_ID, trust1.CH_NDTMethod, oldTrustItem1.States);
BLL.HJGL_CH_TrustItemService.UpdateTrustItem(oldTrustItem1);
} }
// 删除现有数据 // 删除现有数据
List<int> deletedRows = Grid1.GetDeletedList(); List<int> deletedRows = Grid1.GetDeletedList();
foreach (int rowIndex in deletedRows) foreach (int rowIndex in deletedRows)