From 4efd159b3b6624b8f385bc687a772cada7a33f37 Mon Sep 17 00:00:00 2001
From: gaofei1985 <181547018@qq.com>
Date: Thu, 25 Sep 2025 11:25:32 +0800
Subject: [PATCH] 1
---
.../FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs | 7 ++++
.../HJGL/WeldingManage/JointInfoEdit.aspx | 2 +-
.../HJGL/WeldingManage/JointInfoEdit.aspx.cs | 32 +++++++++++++++++++
.../FineUIPro.Web/WeldMat/Stock/StockIn.aspx | 2 +-
4 files changed, 41 insertions(+), 2 deletions(-)
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs
index 4841395..05c6729 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/JointIn.aspx.cs
@@ -868,6 +868,13 @@ namespace FineUIPro.Web.HJGL.DataIn
if (getJoint == null)
{
newJointInfo.JOT_JointNo = col2;
+ if (col8 == "固定")
+ {
+ if (!newJointInfo.JOT_JointNo.Contains("G"))
+ {
+ newJointInfo.JOT_JointNo = newJointInfo.JOT_JointNo + "G";
+ }
+ }
newJointInfo.JOT_ID = SQLHelper.GetNewID(typeof(Model.HJGL_PW_JointInfo));
BLL.HJGL_PW_JointInfoService.AddJointInfo(newJointInfo);
// 更新排序字段
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx
index c286007..84e1496 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx
+++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx
@@ -52,7 +52,7 @@
EnableEdit="true" LabelWidth="100px">
+ Required="true" EnableEdit="true" LabelWidth="100px" AutoPostBack="true" OnSelectedIndexChanged="ddlJointAttribute_SelectedIndexChanged">
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx.cs
index b8f74e0..5c5b290 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingManage/JointInfoEdit.aspx.cs
@@ -404,6 +404,20 @@
if (!string.IsNullOrEmpty(jointInfo.JOT_JointAttribute))
{
this.ddlJointAttribute.SelectedValue = jointInfo.JOT_JointAttribute;
+ if (this.ddlJointAttribute.SelectedValue == "固定")
+ {
+ if (!this.txtJointNo.Text.Trim().Contains("G"))
+ {
+ this.txtJointNo.Text = this.txtJointNo.Text.Trim() + "G";
+ }
+ }
+ else
+ {
+ if (this.txtJointNo.Text.Trim().Contains("G"))
+ {
+ this.txtJointNo.Text = this.txtJointNo.Text.Trim().Replace("G", "");
+ }
+ }
}
if (!string.IsNullOrEmpty(jointInfo.WME_ID))
{
@@ -1216,5 +1230,23 @@
}
}
#endregion
+
+ protected void ddlJointAttribute_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ if (this.ddlJointAttribute.SelectedValue == "固定")
+ {
+ if (!this.txtJointNo.Text.Trim().Contains("G"))
+ {
+ this.txtJointNo.Text = this.txtJointNo.Text.Trim() + "G";
+ }
+ }
+ else
+ {
+ if (this.txtJointNo.Text.Trim().Contains("G"))
+ {
+ this.txtJointNo.Text = this.txtJointNo.Text.Trim().Replace("G","");
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/Stock/StockIn.aspx b/HJGL_DS/FineUIPro.Web/WeldMat/Stock/StockIn.aspx
index 1f68beb..644abdf 100644
--- a/HJGL_DS/FineUIPro.Web/WeldMat/Stock/StockIn.aspx
+++ b/HJGL_DS/FineUIPro.Web/WeldMat/Stock/StockIn.aspx
@@ -20,7 +20,7 @@