From df0b2a4a6f9a60f1d25ac1f975106c52cc9d8527 Mon Sep 17 00:00:00 2001 From: Ling0925 <2449858657a@gmail.com> Date: Sat, 1 Jun 2024 11:14:26 +0800 Subject: [PATCH] =?UTF-8?q?Add=20=E6=88=90=E5=93=81=E5=85=A5=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- newyt/Module_data/Productin_Form.aspx | 7 +- newyt/Module_data/Productin_Form.aspx.cs | 4 +- newyt/Module_data/Productin_browse.aspx | 18 ++--- newyt/Module_data/Productin_browse.aspx.cs | 16 ++-- newyt/Module_data/Productin_list.aspx | 12 +-- newyt/Module_data/Productin_list.aspx.cs | 21 ++--- newyt/Module_data/Productout_browse.aspx.cs | 89 ++++++++++----------- 7 files changed, 82 insertions(+), 85 deletions(-) diff --git a/newyt/Module_data/Productin_Form.aspx b/newyt/Module_data/Productin_Form.aspx index 9771888..f1b5c66 100644 --- a/newyt/Module_data/Productin_Form.aspx +++ b/newyt/Module_data/Productin_Form.aspx @@ -1,4 +1,4 @@ -<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Productin_Form.aspx.cs" Inherits="Productout_Form" %> +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Productin_Form.aspx.cs" Inherits="Productin_Form" %> @@ -89,7 +89,8 @@
-

成品出库表单页   

回到列表
+

成品出库表单页   

+ 回到列表
保存 重置表单 @@ -157,7 +158,7 @@
- + diff --git a/newyt/Module_data/Productin_Form.aspx.cs b/newyt/Module_data/Productin_Form.aspx.cs index aa56da1..3ff8738 100644 --- a/newyt/Module_data/Productin_Form.aspx.cs +++ b/newyt/Module_data/Productin_Form.aspx.cs @@ -6,7 +6,7 @@ using System.Web.UI; using System.Web.UI.WebControls; using System.Data; -public partial class Productout_Form : System.Web.UI.Page +public partial class Productin_Form : System.Web.UI.Page { //创建一个操作记录bll Maticsoft.BLL.nr_sys_rizhi rizhibll = new Maticsoft.BLL.nr_sys_rizhi(); @@ -170,7 +170,7 @@ public partial class Productout_Form : System.Web.UI.Page rizhi.leixing = "成品出库"; rizhi.riqi = DateTime.Now; rizhibll.Add(rizhi); - Response.Redirect("Productout_browse.aspx?uid=" + rtx, false); + Response.Redirect("Productin_browse.aspx?uid=" + rtx, false); } else { diff --git a/newyt/Module_data/Productin_browse.aspx b/newyt/Module_data/Productin_browse.aspx index 50d6dc6..27f6ecd 100644 --- a/newyt/Module_data/Productin_browse.aspx +++ b/newyt/Module_data/Productin_browse.aspx @@ -1,4 +1,4 @@ -<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Productin_browse.aspx.cs" Inherits="Productout_browse" %> +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Productin_browse.aspx.cs" Inherits="Productin_browse" %> @@ -18,7 +18,7 @@ @@ -26,23 +26,23 @@
-

成品出库详细页   

回到列表
+

成品入库详细页   

回到列表
-添加 +添加 -   - +   +      
-

出库基本信息

+

入库基本信息

- - + + diff --git a/newyt/Module_data/Productin_browse.aspx.cs b/newyt/Module_data/Productin_browse.aspx.cs index 42c26db..13e6407 100644 --- a/newyt/Module_data/Productin_browse.aspx.cs +++ b/newyt/Module_data/Productin_browse.aspx.cs @@ -6,7 +6,7 @@ using System.Web.UI; using System.Web.UI.WebControls; using System.Data; -public partial class Productout_browse : System.Web.UI.Page +public partial class Productin_browse : System.Web.UI.Page { Maticsoft.Model.nr_z_cprk cpckmodel = new Maticsoft.Model.nr_z_cprk(); Maticsoft.BLL.nr_z_cprk cpckbll = new Maticsoft.BLL.nr_z_cprk(); @@ -96,7 +96,7 @@ public partial class Productout_browse : System.Web.UI.Page if (DBHlper.GetPermission(juese, "成品入库", "nr_z_cprk", "入库确认")) { - ckqr.Visible = true; + rkqr.Visible = true; } if (DBHlper.GetPermission(juese, "成品入库", "nr_z_cprk", "入库冲红")) @@ -111,8 +111,8 @@ public partial class Productout_browse : System.Web.UI.Page if (zhuangtai.Text == "已入库") { - ckqr.Enabled = false; - ckqr.BackColor = System.Drawing.Color.Gray; + rkqr.Enabled = false; + rkqr.BackColor = System.Drawing.Color.Gray; shanchu.Enabled = false; shanchu.BackColor = System.Drawing.Color.Gray; bt_tj.Enabled = false; @@ -132,7 +132,7 @@ public partial class Productout_browse : System.Web.UI.Page #endregion protected void bt_tj_Click(object sender, EventArgs e) { - Response.Redirect("Productout_Form.aspx?uid=" + id.Value); + Response.Redirect("Productin_Form.aspx?uid=" + id.Value); } protected void Button1_Click(object sender, EventArgs e) { @@ -149,7 +149,7 @@ public partial class Productout_browse : System.Web.UI.Page rizhi.jilu = zh.zhanghao + "删除了成品入库,入库单号为:" + cpbh.Text.Trim(); rizhi.yonghuming = zh.zhanghao.ToString(); rizhibll.Add(rizhi); - Response.Redirect("Productout_list.aspx", false); + Response.Redirect("Productin_list.aspx", false); } else { @@ -182,7 +182,7 @@ public partial class Productout_browse : System.Web.UI.Page rizhi.jilu = zh.zhanghao + "执行了入库冲红,入库单号为:" + ckdh.Text.Trim(); rizhi.yonghuming = zh.zhanghao.ToString(); rizhibll.Add(rizhi); - Response.Redirect("Productout_browse.aspx?uid=" + id.Value); + Response.Redirect("Productin_browse.aspx?uid=" + id.Value); } @@ -218,7 +218,7 @@ public partial class Productout_browse : System.Web.UI.Page rizhi.jilu = zh.zhanghao + "执行了成品入库,成品入库号为:" + ckdh.Text.Trim(); rizhi.yonghuming = zh.zhanghao.ToString(); rizhibll.Add(rizhi); - Response.Redirect("Productout_browse.aspx?uid=" + id.Value); + Response.Redirect("Productin_browse.aspx?uid=" + id.Value); } } diff --git a/newyt/Module_data/Productin_list.aspx b/newyt/Module_data/Productin_list.aspx index b82d445..36e8b4c 100644 --- a/newyt/Module_data/Productin_list.aspx +++ b/newyt/Module_data/Productin_list.aspx @@ -1,4 +1,4 @@ -<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Productin_list.aspx.cs" Inherits="Productout_list" %> +<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Productin_list.aspx.cs" Inherits="Productin_list" %> @@ -17,7 +17,7 @@ "); + Response.Write(""); } //给日志模板赋值 rizhi.riqi = DateTime.Now; - rizhi.leixing = "成品出库"; + rizhi.leixing = "成品入库"; //将session转换对象取值 Maticsoft.Model.nr_z_yhzh zh = (Maticsoft.Model.nr_z_yhzh)Session["user"]; //拼接字符串插入日志 - rizhi.jilu = zh.zhanghao + "执行了出库冲红,出库单号为:" + ckdh.Text.Trim(); + rizhi.jilu = zh.zhanghao + "执行了入库冲红,入库单号为:" + ckdh.Text.Trim(); rizhi.yonghuming = zh.zhanghao.ToString(); rizhibll.Add(rizhi); Response.Redirect("Productout_browse.aspx?uid=" + id.Value); @@ -209,13 +204,13 @@ public partial class Productout_browse : System.Web.UI.Page else { DBHlper.excutecmd("update nr_z_cpkc set sl=" + (sl - nowsl) + " where id=" + dt.Rows[0]["id"]); - DBHlper.excutecmd("update nr_z_cpck set zt='已出库' where id=" + id.Value); + DBHlper.excutecmd("update nr_z_cprk set zt='已入库' where id=" + id.Value); rizhi.riqi = DateTime.Now; - rizhi.leixing = "成品出库"; + rizhi.leixing = "成品入库"; //将session转换对象取值 Maticsoft.Model.nr_z_yhzh zh = (Maticsoft.Model.nr_z_yhzh)Session["user"]; //拼接字符串插入日志 - rizhi.jilu = zh.zhanghao + "执行了成品出库,成品出库号为:" + ckdh.Text.Trim(); + rizhi.jilu = zh.zhanghao + "执行了成品入库,成品入库号为:" + ckdh.Text.Trim(); rizhi.yonghuming = zh.zhanghao.ToString(); rizhibll.Add(rizhi); Response.Redirect("Productout_browse.aspx?uid=" + id.Value);
出库编号:出库日期:入库编号:入库日期: 单据编号: 客户名称: 产品编号: