From 1b9844a395af0f0869c7e072cfeb2337806b94fa Mon Sep 17 00:00:00 2001
From: 10191 <506754232@qq.com>
Date: Sat, 18 Apr 2026 09:28:30 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9D=90=E6=96=99=E8=A1=A8=E8=AF=86=E5=88=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj | 8 +
.../DataIn/DrawingRecognitionContent.aspx | 13 +-
.../DataIn/DrawingRecognitionContent.aspx.cs | 52 +++++--
...DrawingRecognitionContent.aspx.designer.cs | 17 ++-
.../DataIn/DrawingRecognitionContentEdit.aspx | 65 ++++++++
.../DrawingRecognitionContentEdit.aspx.cs | 82 ++++++++++
...ingRecognitionContentEdit.aspx.designer.cs | 143 ++++++++++++++++++
7 files changed, 360 insertions(+), 20 deletions(-)
create mode 100644 HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContentEdit.aspx
create mode 100644 HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContentEdit.aspx.cs
create mode 100644 HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContentEdit.aspx.designer.cs
diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
index e0e78f3..ce97e84 100644
--- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj
@@ -1119,6 +1119,7 @@
+
@@ -5620,6 +5621,13 @@
DataIn.aspx
+
+ DrawingRecognitionContentEdit.aspx
+ ASPXCodeBehind
+
+
+ DrawingRecognitionContentEdit.aspx
+
DataInEdit.aspx
ASPXCodeBehind
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContent.aspx b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContent.aspx
index 4809772..7b78483 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContent.aspx
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContent.aspx
@@ -24,10 +24,10 @@
-
+
-
@@ -38,7 +38,7 @@
@@ -69,7 +69,10 @@
-
+
+
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContent.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContent.aspx.cs
index bee5669..de30e53 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContent.aspx.cs
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContent.aspx.cs
@@ -10,7 +10,7 @@ using UglyToad.PdfPig.Writer;
namespace FineUIPro.Web.HJGL.DataIn
{
- public partial class DrawingRecognitionContent : System.Web.UI.Page
+ public partial class DrawingRecognitionContent : PageBase
{
public string URL
{
@@ -106,18 +106,12 @@ namespace FineUIPro.Web.HJGL.DataIn
}
- protected void btnSave1_Click(object sender, EventArgs e)
+ protected void btnAudit_Click(object sender, EventArgs e)
{
Grid1.Hidden = false;
contentPanel1.Hidden = true;
- Button2.Hidden = false;
- Button1.Hidden = true;
- BindGrid();
- }
-
-
- private void BindGrid()
- {
+ btnAudit.Hidden = true;
+ btnSave.Hidden = false;
JObject jobject = JObject.Parse(resultdata.Value);
JArray jArray = jobject.Value("material_rows");
dt = new DataTable();
@@ -132,7 +126,6 @@ namespace FineUIPro.Web.HJGL.DataIn
dt.Columns.Add("page_no");
dt.Columns.Add("remark");
-
// 遍历并提取数据
foreach (JObject item in jArray)
{
@@ -149,11 +142,48 @@ namespace FineUIPro.Web.HJGL.DataIn
row["remark"] = item.Value("remark");
dt.Rows.Add(row);
}
+ BindGrid();
+ }
+
+
+ private void BindGrid()
+ {
+
Grid1.DataSource = dt;
Grid1.DataBind();
+ }
+ #region 双击事件
+ ///
+ /// Grid行双击事件
+ ///
+ ///
+ ///
+ protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
+ {
+ if (Grid1.SelectedRowIndexArray.Length == 0)
+ {
+ Alert.ShowInTop("请选择一条记录!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (CommonService.GetAllButtonPowerList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, Const.HJGL_DataInMenuId, Const.BtnAdd))
+ {
+ DrawingRecognitionContentEdit.dicDt.Add(CurrUser.UserId, dt);
+ PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("DrawingRecognitionContentEdit.aspx?Index={0}", Grid1.SelectedRowIndex, "维护 - ")));
+ }
+ else
+ {
+ ShowNotify("您没有这个权限,请与管理员联系!", MessageBoxIcon.Warning);
+ }
+ }
+ #endregion
+
+ protected void Window1_Close(object sender, WindowCloseEventArgs e)
+ {
+ Grid1.DataSource = dt;
+ Grid1.DataBind();
}
}
}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContent.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContent.aspx.designer.cs
index c1f2d5e..f73611a 100644
--- a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContent.aspx.designer.cs
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContent.aspx.designer.cs
@@ -69,22 +69,22 @@ namespace FineUIPro.Web.HJGL.DataIn
protected global::FineUIPro.ToolbarFill ToolbarFill1;
///
- /// Button1 控件。
+ /// btnAudit 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.Button Button1;
+ protected global::FineUIPro.Button btnAudit;
///
- /// Button2 控件。
+ /// btnSave 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.Button Button2;
+ protected global::FineUIPro.Button btnSave;
///
/// contentPanel1 控件。
@@ -103,5 +103,14 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Window1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Window Window1;
}
}
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContentEdit.aspx b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContentEdit.aspx
new file mode 100644
index 0000000..14bc368
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContentEdit.aspx
@@ -0,0 +1,65 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DrawingRecognitionContentEdit.aspx.cs" Inherits="FineUIPro.Web.HJGL.DataIn.DrawingRecognitionContentEdit" %>
+
+
+
+
+ 导入信息维护
+
+
+
+
+
+
+
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContentEdit.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContentEdit.aspx.cs
new file mode 100644
index 0000000..6ef315f
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContentEdit.aspx.cs
@@ -0,0 +1,82 @@
+namespace FineUIPro.Web.HJGL.DataIn
+{
+ using System;
+ using System.Collections.Generic;
+ using System.Data;
+ using System.Data.SqlClient;
+ using System.Linq;
+ using BLL;
+
+ public partial class DrawingRecognitionContentEdit : PageBase
+ {
+ #region 定义项
+ ///
+ /// 临时表主键
+ ///
+ public static Dictionary dicDt = new Dictionary();
+ public int Index
+ {
+ get
+ {
+ return (int)ViewState["Index"];
+ }
+ set
+ {
+ ViewState["Index"] = value;
+ }
+ }
+ #endregion
+
+ #region 加载页面
+ ///
+ /// 加载页面
+ ///
+ ///
+ ///
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ this.Index = int.Parse(Request.Params["Index"]);
+ DataTable dt = dicDt[CurrUser.UserId];
+ var dataInTemp = dt.Rows[this.Index];
+ if (dataInTemp != null)
+ {
+ this.txtPipeNo.Text = dataInTemp["pipe_no"].ToString();
+ this.txtDrawingNumber.Text = dataInTemp["drawing_number"].ToString();
+ this.txtCategory.Text = dataInTemp["category"].ToString();
+ this.txtQty.Text = dataInTemp["qty"].ToString();
+ this.txtSpec.Text = dataInTemp["spec"].ToString();
+ this.txtPageNo.Text = dataInTemp["page_no"].ToString();
+ this.txtDescription.Text = dataInTemp["description"].ToString();
+
+
+ }
+ }
+ }
+ #endregion
+
+ #region 提交按钮
+ ///
+ /// 提交按钮
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ DataTable dt = dicDt[CurrUser.UserId];
+ var dataInTemp = dt.Rows[this.Index];
+ dataInTemp["pipe_no"] = this.txtPipeNo.Text;
+ dataInTemp["drawing_number"] = this.txtDrawingNumber.Text;
+ dataInTemp["category"] = this.txtCategory.Text;
+ dataInTemp["qty"] = this.txtQty.Text;
+ dataInTemp["spec"] = this.txtSpec.Text;
+ dataInTemp["page_no"] = this.txtPageNo.Text;
+ dataInTemp["description"] = this.txtDescription;
+ Alert.ShowInTop("信息修改完成!", MessageBoxIcon.Success);
+ PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
+ dicDt.Remove(CurrUser.UserId);
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContentEdit.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContentEdit.aspx.designer.cs
new file mode 100644
index 0000000..417787e
--- /dev/null
+++ b/HJGL_DS/FineUIPro.Web/HJGL/DataIn/DrawingRecognitionContentEdit.aspx.designer.cs
@@ -0,0 +1,143 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.HJGL.DataIn
+{
+
+
+ public partial class DrawingRecognitionContentEdit
+ {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// SimpleForm1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Form SimpleForm1;
+
+ ///
+ /// Toolbar1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar1;
+
+ ///
+ /// ToolbarFill1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarFill ToolbarFill1;
+
+ ///
+ /// ckAll 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.CheckBox ckAll;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
+ ///
+ /// txtPipeNo 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPipeNo;
+
+ ///
+ /// txtDrawingNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtDrawingNumber;
+
+ ///
+ /// txtCategory 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtCategory;
+
+ ///
+ /// txtQty 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtQty;
+
+ ///
+ /// txtSpec 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtSpec;
+
+ ///
+ /// txtPageNo 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextBox txtPageNo;
+
+ ///
+ /// txtDescription 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TextArea txtDescription;
+ }
+}