From 337a47286fc8a1af122740fd35307b9725a4c467 Mon Sep 17 00:00:00 2001 From: Ling0925 <2449858657a@gmail.com> Date: Thu, 6 Jun 2024 11:13:54 +0800 Subject: [PATCH] Update --- newyt/Module_data/Productin_browse.aspx.cs | 26 +++++++++++----------- newyt/Module_data/Productin_list.aspx.cs | 24 ++++++++++---------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/newyt/Module_data/Productin_browse.aspx.cs b/newyt/Module_data/Productin_browse.aspx.cs index 13e6407..3f8f0b4 100644 --- a/newyt/Module_data/Productin_browse.aspx.cs +++ b/newyt/Module_data/Productin_browse.aspx.cs @@ -8,8 +8,8 @@ using System.Data; 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(); + Maticsoft.Model.nr_z_cprk cprkmodel = new Maticsoft.Model.nr_z_cprk(); + Maticsoft.BLL.nr_z_cprk cprkbll = new Maticsoft.BLL.nr_z_cprk(); //创建一个操作记录模板 Maticsoft.Model.nr_sys_rizhi rizhi = new Maticsoft.Model.nr_sys_rizhi(); //创建一个操作记录bll @@ -37,27 +37,27 @@ public partial class Productin_browse : System.Web.UI.Page #region 获取真正数据值 private void initdata(int did) { - cpckmodel = cpckbll.GetModel(did); - ckdh.Text = cpckmodel.rkbh; - riqi.Text = cpckmodel.riqi.ToString("yyyy-MM-dd"); - scdh.Text = cpckmodel.scdh; + cprkmodel = cprkbll.GetModel(did); + ckdh.Text = cprkmodel.rkbh; + riqi.Text = cprkmodel.riqi.ToString("yyyy-MM-dd"); + scdh.Text = cprkmodel.scdh; //khming.Text = cpckmodel.; //cpbh.Text = cpckmodel.cpmc; - cpmc.Text = cpckmodel.cpmc; + cpmc.Text = cprkmodel.cpmc; //danjia.Text = cpckmodel..ToString(); //guige.Text = cpckmodel.guige.ToString(); - zzshuliang.Text = cpckmodel.zzsl.ToString(); - lingtou.Text = cpckmodel.lt.ToString(); - shuliang.Text = cpckmodel.sl.ToString(); + zzshuliang.Text = cprkmodel.zzsl.ToString(); + lingtou.Text = cprkmodel.lt.ToString(); + shuliang.Text = cprkmodel.sl.ToString(); //danwei.Text = cpckmodel.danwei; //lxr.Text = cpckmodel.lxr; //zongjine.Text = cpckmodel.zje.ToString(); //lxdh.Text = cpckmodel.lxdh; - jingshouren.Text = cpckmodel.jsr; + jingshouren.Text = cprkmodel.jsr; //shr.Text = cpckmodel.shr; //dizhi.Text = cpckmodel.shdizhi; //txt_beizhu.Text = cpckmodel.beizhu; - zhuangtai.Text = cpckmodel.zt; + zhuangtai.Text = cprkmodel.zt; } #endregion @@ -138,7 +138,7 @@ public partial class Productin_browse : System.Web.UI.Page { - if (cpckbll.Delete(Convert.ToInt32(id.Value))) + if (cprkbll.Delete(Convert.ToInt32(id.Value))) { //给日志模板赋值 rizhi.riqi = DateTime.Now; diff --git a/newyt/Module_data/Productin_list.aspx.cs b/newyt/Module_data/Productin_list.aspx.cs index 64bde90..62bfb5c 100644 --- a/newyt/Module_data/Productin_list.aspx.cs +++ b/newyt/Module_data/Productin_list.aspx.cs @@ -12,10 +12,10 @@ using System.Collections; using System.Text; public partial class Productin_list : System.Web.UI.Page { - //创建一个客户模板 - Maticsoft.Model.nr_z_ddwxd kehumd = new Maticsoft.Model.nr_z_ddwxd(); - //创建一个共用的客户bll - Maticsoft.BLL.nr_z_ddwxd kehubll = new Maticsoft.BLL.nr_z_ddwxd(); + // //创建一个客户模板 + // Maticsoft.Model.nr_z_ddwxd kehumd = new Maticsoft.Model.nr_z_ddwxd(); + // //创建一个共用的客户bll + // Maticsoft.BLL.nr_z_ddwxd kehubll = new Maticsoft.BLL.nr_z_ddwxd(); //创建一个操作记录模板 Maticsoft.Model.nr_sys_rizhi rizhi = new Maticsoft.Model.nr_sys_rizhi(); //创建一个操作记录bll @@ -45,12 +45,12 @@ public partial class Productin_list : System.Web.UI.Page { Maticsoft.Model.nr_z_yhzh zhanghao = (Maticsoft.Model.nr_z_yhzh)Session["user"]; string htmlcode = ""; - string isexits = string.Format("select count(*) from nr_lt_paixu where userid='{0}' and tblname='{1}'", zhanghao.id, "nr_z_cpck"); + string isexits = string.Format("select count(*) from nr_lt_paixu where userid='{0}' and tblname='{1}'", zhanghao.id, "nr_z_cprk"); int exitscount = DBHlper.getcount(isexits); if (exitscount > 0) { - string paixuselct = string.Format("select * from nr_lt_paixu where userid='{0}' and tblname='{1}' and isxianshi={2} order by shuixu ", zhanghao.id, "nr_z_cpck", 1); + string paixuselct = string.Format("select * from nr_lt_paixu where userid='{0}' and tblname='{1}' and isxianshi={2} order by shuixu ", zhanghao.id, "nr_z_cprk", 1); DataTable dtselect = DBHlper.Execute(paixuselct).Tables[0]; string wherecode = string.Format("select top {0} ", pageitem); foreach (DataRow dtr in dtselect.Rows) @@ -58,14 +58,14 @@ public partial class Productin_list : System.Web.UI.Page wherecode += dtr["lieming"] + ","; } wherecode += "id"; - if (DBHlper.GetPermission(zhanghao.juese, "成品出库", "nr_z_cpck", "查看全部")) + if (DBHlper.GetPermission(zhanghao.juese, "成品入库", "nr_z_cprk", "查看全部")) { - wherecode += string.Format(" from nr_z_cpck where " + tiaojian + " id not in(select top ({0}*{1}) id from nr_z_cpck)" + paixu, pg, pageitem); + wherecode += string.Format(" from nr_z_cprk where " + tiaojian + " id not in(select top ({0}*{1}) id from nr_z_cprk)" + paixu, pg, pageitem); } - else if (DBHlper.GetPermission(zhanghao.juese, "成品出库", "nr_z_cpck", "查看个人")) + else if (DBHlper.GetPermission(zhanghao.juese, "成品入库", "nr_z_cprk", "查看个人")) { - wherecode += string.Format(" from nr_z_cpck where jsr='" + zhanghao.zhanghao + "' and " + tiaojian + " id not in(select top ({0}*{1}) id from nr_z_cpck)" + paixu, pg, pageitem); + wherecode += string.Format(" from nr_z_cprk where jsr='" + zhanghao.zhanghao + "' and " + tiaojian + " id not in(select top ({0}*{1}) id from nr_z_cprk)" + paixu, pg, pageitem); } DataTable dt_paixu = DBHlper.Execute(wherecode).Tables[0]; @@ -88,13 +88,13 @@ public partial class Productin_list : System.Web.UI.Page } else { - string lieselect = string.Format("select * from nr_sys_lieming where tblname='{0}' ORDER BY xh", "nr_z_cpck"); + string lieselect = string.Format("select * from nr_sys_lieming where tblname='{0}' ORDER BY xh", "nr_z_cprk"); DataTable liedt = DBHlper.Execute(lieselect).Tables[0]; int lieshuixu = 0; foreach (DataRow liedr in liedt.Rows) { lieshuixu++; - string cmdinsert = string.Format("insert into nr_lt_paixu values('{0}','{1}','{2}','{3}',{4},{5})", zhanghao.id, "nr_z_cpck", liedr["ywlieming"], liedr["zwlieming"], lieshuixu, 1); + string cmdinsert = string.Format("insert into nr_lt_paixu values('{0}','{1}','{2}','{3}',{4},{5})", zhanghao.id, "nr_z_cprk", liedr["ywlieming"], liedr["zwlieming"], lieshuixu, 1); DBHlper.excutecmd(cmdinsert); } return "";