From 797759e2d47f5492363e82204d48d218a2912d0e Mon Sep 17 00:00:00 2001 From: 10191 <506754232@qq.com> Date: Thu, 14 Aug 2025 10:42:15 +0800 Subject: [PATCH] =?UTF-8?q?=E7=84=8A=E5=B7=A5=E7=A1=AE=E8=AE=A4=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PersonManage/HJGL_PersonManageService.cs | 5 +- HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj | 8 + .../WeldMat/UsingSentMat/FaceRecognition.aspx | 8 +- .../WeldMat/UsingSentMat/WelderConfirm.aspx | 191 ++++++++++++++++++ .../UsingSentMat/WelderConfirm.aspx.cs | 86 ++++++++ .../WelderConfirm.aspx.designer.cs | 125 ++++++++++++ 6 files changed, 416 insertions(+), 7 deletions(-) create mode 100644 HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/WelderConfirm.aspx create mode 100644 HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/WelderConfirm.aspx.cs create mode 100644 HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/WelderConfirm.aspx.designer.cs diff --git a/HJGL_DS/BLL/HJGL/PersonManage/HJGL_PersonManageService.cs b/HJGL_DS/BLL/HJGL/PersonManage/HJGL_PersonManageService.cs index 2dd5b20..6e3c733 100644 --- a/HJGL_DS/BLL/HJGL/PersonManage/HJGL_PersonManageService.cs +++ b/HJGL_DS/BLL/HJGL/PersonManage/HJGL_PersonManageService.cs @@ -205,7 +205,10 @@ namespace BLL { return Funs.DB.HJGL_BS_Welder.FirstOrDefault(x => x.WED_ID == wenid); } - + public static Model.HJGL_BS_Welder GetWelderByWedCode(string wedcode) + { + return Funs.DB.HJGL_BS_Welder.FirstOrDefault(x => x.WED_Code == wedcode); + } /// /// 根据计划获取领料焊工 /// diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj index 8f6b207..b1e26bc 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj @@ -1341,6 +1341,7 @@ + @@ -7004,6 +7005,13 @@ UsingMat.aspx + + WelderConfirm.aspx + ASPXCodeBehind + + + WelderConfirm.aspx + UsingMatCheck.aspx ASPXCodeBehind diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/FaceRecognition.aspx b/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/FaceRecognition.aspx index 8f1de76..b565dfb 100644 --- a/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/FaceRecognition.aspx +++ b/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/FaceRecognition.aspx @@ -94,10 +94,7 @@ video.style = ""; canvas.style = "display:none"; - } - - - + } }); function upLoadFile(data) { @@ -125,7 +122,7 @@ var node = { - iframeUrl: './WeldMat/UsingSentMat/UsingMat.aspx?welderCode=' + data.d, + iframeUrl: './WeldMat/UsingSentMat/WelderConfirm.aspx?welderCode=' + data.d, title: "焊材领用", id: "UsingMat" + getFormattedDate() }; @@ -144,7 +141,6 @@ const hours = String(now.getHours()).padStart(2, '0'); const minutes = String(now.getMinutes()).padStart(2, '0'); const seconds = String(now.getSeconds()).padStart(2, '0'); - return year + month + day + hours + minutes + seconds; } diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/WelderConfirm.aspx b/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/WelderConfirm.aspx new file mode 100644 index 0000000..851bf88 --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/WelderConfirm.aspx @@ -0,0 +1,191 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WelderConfirm.aspx.cs" Inherits="FineUIPro.Web.WeldMat.UsingSentMat.WelderConfirm" %> + + + + + 领料确认单 + + + + + + +
+ + + +
+ + + + + + + + + +
+ 焊工确认 + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ 焊工姓名: + + + + 焊工代号: + + +
+ 身份证号: + + + + 焊工等级: + + +
+ 证书编号: + + + + 有效期限: + + +
+
+ + + + + + + + + + + +
+ + +
+
+
+ + + + + \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/WelderConfirm.aspx.cs b/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/WelderConfirm.aspx.cs new file mode 100644 index 0000000..e9ff95a --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/WelderConfirm.aspx.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using BLL; + +namespace FineUIPro.Web.WeldMat.UsingSentMat +{ + public partial class WelderConfirm : PageBase + { + + public string welderCode + { + get + { + return (string)ViewState["welderCode"]; + } + set + { + ViewState["welderCode"] = value; + } + } + #region 加载 + /// + /// 加载页面 + /// + /// + /// + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + welderCode = Request.Params["welderCode"]; + + + var person = BLL.HJGL_PersonManageService.GetWelderByWedCode(welderCode); + if (person != null) + { + + //this.drpEducation.Items.Clear(); + //this.drpEducation.DataTextField = "TeamGroupName"; + //this.drpEducation.DataValueField = "TeamGroupId"; + //this.drpEducation.DataSource = BLL.Base_TeamGroupService.GetTeamGroupByUnit(drpUnit.SelectedValue); + //this.drpEducation.DataBind(); + //Funs.FineUIPleaseSelect(this.drpEducation); + + //if (!String.IsNullOrEmpty(person.EDU_ID)) + //{ + // var q = BLL.Base_TeamGroupService.GetTeamGroupByTeamGroupId(person.EDU_ID); + // if (q != null) + // { + // this.drpEducation.SelectedValue = person.EDU_ID; + // } + //} + + this.txtName.Text = person.WED_Name; + this.txtCode.Text = person.WED_Code; + this.txtWorkCode.Text = person.WED_WorkCode; + this.txtClass.Text = person.WED_Class; + + + this.txtLimitDate.Text = string.Format("{0:yyyy-MM-dd}", person.LimitDate); + this.txtIdentityCard.Text = person.IdentityCard; + + } + + + } + } + #endregion + + + + + + protected void btnClose_Click(object sender, EventArgs e) + { + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + + + } +} \ No newline at end of file diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/WelderConfirm.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/WelderConfirm.aspx.designer.cs new file mode 100644 index 0000000..e15600b --- /dev/null +++ b/HJGL_DS/FineUIPro.Web/WeldMat/UsingSentMat/WelderConfirm.aspx.designer.cs @@ -0,0 +1,125 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.WeldMat.UsingSentMat +{ + + + public partial class WelderConfirm + { + + /// + /// Head1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlHead Head1; + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + + /// + /// txtName 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtName; + + /// + /// txtCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtCode; + + /// + /// txtIdentityCard 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtIdentityCard; + + /// + /// txtClass 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtClass; + + /// + /// txtWorkCode 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtWorkCode; + + /// + /// txtLimitDate 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Label txtLimitDate; + + /// + /// btnWelder 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.Button btnWelder; + + /// + /// Window2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window2; + } +}