diff --git a/newyt/Common/wxfk_dy.aspx b/newyt/Common/wxfk_dy.aspx index 7ac055b..f256297 100644 --- a/newyt/Common/wxfk_dy.aspx +++ b/newyt/Common/wxfk_dy.aspx @@ -54,7 +54,7 @@ 外协单编号 - 客户订单号 + 总金额 付款金额 付款方式 diff --git a/newyt/Common/wxfk_dy.aspx.cs b/newyt/Common/wxfk_dy.aspx.cs index 34e4b5b..8be91cb 100644 --- a/newyt/Common/wxfk_dy.aspx.cs +++ b/newyt/Common/wxfk_dy.aspx.cs @@ -27,40 +27,48 @@ public partial class Common_wxfk_dy : System.Web.UI.Page [Ajax.AjaxMethod] public string[] getxinxi(int[] zu) { - string[]code =new string[2]; + string[] code = new string[2]; string code1 = ""; string khname = ""; - foreach (int i in zu) + try { - DataSet ds = DBHlper.Execute("select *,(SELECT ISNULL(SUM(wxfyze), 0) FROM dbo.view_nr_z_ddwxd WHERE (wxdh=view_nr_z_wxfk.wxdh)) as zje from view_nr_z_wxfk where id='" + i + "' order by id "); - if (ds != null && ds.Tables[0].Rows.Count > 0) + foreach (int i in zu) { - //如果当前订单下存在明细就加载成tr行 - foreach (DataRow r in ds.Tables[0].Rows) + DataSet ds = DBHlper.Execute("select *,(SELECT ISNULL(SUM(wxfyze), 0) FROM dbo.view_nr_z_ddwxd WHERE (wxdh=view_nr_z_wxfk.wxdh)) as zje from view_nr_z_wxfk where id='" + i + "' order by id "); + if (ds != null && ds.Tables[0].Rows.Count > 0) { - khname = r["mingcheng"].ToString(); - code1 += "" - + " " + r["wxdh"].ToString() + "" - + "" + r["gdh"].ToString() + "" - + "" + r["zje"].ToString() + "" - + "" + r["fkje"].ToString() + "" - + "" + r["fkfs"].ToString() + "" - + "" + r["fpje"].ToString() + "" - + "" + Convert.ToDateTime(r["fkrq"]).ToString("yyyy-MM-dd") + "" - + "" + r["bz"].ToString() + ""; + //如果当前订单下存在明细就加载成tr行 + foreach (DataRow r in ds.Tables[0].Rows) + { + khname = r["mingcheng"].ToString(); + code1 += "" + + " " + r["wxdh"].ToString() + "" + //+ "" + r["gdh"].ToString() + "" + + "" + r["zje"].ToString() + "" + + "" + r["fkje"].ToString() + "" + + "" + r["fkfs"].ToString() + "" + + "" + r["fpje"].ToString() + "" + + "" + Convert.ToDateTime(r["fkrq"]).ToString("yyyy-MM-dd") + "" + + "" + r["bz"].ToString() + ""; + } } } } + catch (Exception ex) + { + Console.WriteLine(ex.ToString()); + } + code[0] = code1; code[1] = khname; return code; - + } [Ajax.AjaxMethod] public string hsdx(string zje) { - return DBHlper.ConvertToChineseNum(zje); + return DBHlper.ConvertToChineseNum(zje); } } \ No newline at end of file diff --git a/newyt/Js/TcOrder.js b/newyt/Js/TcOrder.js index 12f7b73..bd837eb 100644 --- a/newyt/Js/TcOrder.js +++ b/newyt/Js/TcOrder.js @@ -199,8 +199,8 @@ function setcpxm() { //var scfs = document.getElementById(scfsid).value; var dhslid = "dhsl" + trid; var dhsl = document.getElementById(dhslid).value; - var tqslid = "tqsl" + trid; - var tqsl = document.getElementById(tqslid).name; + //var tqslid = "tqsl" + trid; + //var tqsl = document.getElementById(tqslid).name; var scslid = "scsl" + trid; var scsl = document.getElementById(scslid).value; var jhrqid = "jhrq" + trid; @@ -216,7 +216,7 @@ function setcpxm() { jsonStr2 += "\"zl\":\"" + zl + "\","; //jsonStr2 += "\"scfs\":\"" + scfs + "\","; jsonStr2 += "\"ddsl\":\"" + dhsl + "\","; - jsonStr2 += "\"tqkc\":\"" + tqsl + "\","; + //jsonStr2 += "\"tqkc\":\"" + tqsl + "\","; jsonStr2 += "\"scsl\":\"" + scsl + "\","; jsonStr2 += "\"jhrq\":\"" + jhrq + "\","; jsonStr2 += "\"bz\":\"" + beizhu + "\""; diff --git a/newyt/Module_data/Dispatch_Form.aspx b/newyt/Module_data/Dispatch_Form.aspx index 81a413b..6f2ece1 100644 --- a/newyt/Module_data/Dispatch_Form.aspx +++ b/newyt/Module_data/Dispatch_Form.aspx @@ -19,7 +19,7 @@ @@ -141,34 +89,6 @@
- diff --git a/newyt/Module_data/Dispatch_Form.aspx.cs b/newyt/Module_data/Dispatch_Form.aspx.cs index 3f8b459..2662825 100644 --- a/newyt/Module_data/Dispatch_Form.aspx.cs +++ b/newyt/Module_data/Dispatch_Form.aspx.cs @@ -9,17 +9,17 @@ using System.Data; using System.Data.SqlClient; using Ajax; public partial class Dispatch_Form : CommonPage -{ +{ //创建一个共用的生产单bll层 Maticsoft.BLL.nr_z_scd scdbll = new Maticsoft.BLL.nr_z_scd(); //创建一个共用的生产单模板 - Maticsoft.Model.nr_z_scd scd = new Maticsoft.Model.nr_z_scd(); + Maticsoft.Model.nr_z_scd scd = new Maticsoft.Model.nr_z_scd(); //创建一个操作项目bll Maticsoft.BLL.nr_z_scd_cp scdcpbll = new Maticsoft.BLL.nr_z_scd_cp(); //创建一个操作记录模板 Maticsoft.Model.nr_sys_rizhi rizhi = new Maticsoft.Model.nr_sys_rizhi(); //创建一个操作记录bll - Maticsoft.BLL.nr_sys_rizhi rizhibll = new Maticsoft.BLL.nr_sys_rizhi(); + Maticsoft.BLL.nr_sys_rizhi rizhibll = new Maticsoft.BLL.nr_sys_rizhi(); //创建一个共用的编码bll层 Maticsoft.BLL.nr_sys_bianma bm = new Maticsoft.BLL.nr_sys_bianma(); //创建一个共用的类型BLL层 @@ -37,24 +37,24 @@ public partial class Dispatch_Form : CommonPage Maticsoft.Model.nr_z_yhzh user = (Maticsoft.Model.nr_z_yhzh)(Session["user"]); binddata(); if (Request.QueryString["uid"] != null && Request.QueryString["uid"].ToString().Length > 0) - { + { string uid = Request.QueryString["uid"].ToString(); - id.Value = uid; + id.Value = uid; initdata(uid); updatewlxx(Convert.ToInt32(uid)); } else if (Request.QueryString["jsxmid"] != null && Request.QueryString["jsxmid"].ToString().Length > 0) - { + { jssccpxx(); } - + } } #region 获取页面参数赋值model对象 private void getmd() - { + { scd.sclx = sclx.Text; scd.xdrq = Convert.ToDateTime(xdrq.Value); scd.wgrq = Convert.ToDateTime(wgrq.Value); @@ -71,20 +71,20 @@ public partial class Dispatch_Form : CommonPage #region 获取真正数据值 private void initdata(string did) { - DataSet scdds=DBHlper.Execute("select * from view_nr_z_scd where id='" + did + "'"); - if (scdds != null && scdds.Tables[0].Rows.Count > 0) - { - bh.Value = scdds.Tables[0].Rows[0]["bh"].ToString(); - sclx.Text = scdds.Tables[0].Rows[0]["sclx"].ToString(); - xdrq.Value = Convert.ToDateTime(scdds.Tables[0].Rows[0]["xdrq"]).ToString("yyyy-MM-dd"); - wgrq.Value = Convert.ToDateTime(scdds.Tables[0].Rows[0]["wgrq"]).ToString("yyyy-MM-dd"); - ywy.Value = scdds.Tables[0].Rows[0]["kdr"].ToString(); - ddbz.Value = scdds.Tables[0].Rows[0]["bz"].ToString(); - } + DataSet scdds = DBHlper.Execute("select * from view_nr_z_scd where id='" + did + "'"); + if (scdds != null && scdds.Tables[0].Rows.Count > 0) + { + bh.Value = scdds.Tables[0].Rows[0]["bh"].ToString(); + sclx.Text = scdds.Tables[0].Rows[0]["sclx"].ToString(); + xdrq.Value = Convert.ToDateTime(scdds.Tables[0].Rows[0]["xdrq"]).ToString("yyyy-MM-dd"); + wgrq.Value = Convert.ToDateTime(scdds.Tables[0].Rows[0]["wgrq"]).ToString("yyyy-MM-dd"); + ywy.Value = scdds.Tables[0].Rows[0]["kdr"].ToString(); + ddbz.Value = scdds.Tables[0].Rows[0]["bz"].ToString(); + } } #endregion - string cpmxstring = ""; + string cpmxstring = ""; #region 接收生产单项目 private void jssccpxx() { @@ -92,15 +92,16 @@ public partial class Dispatch_Form : CommonPage string biao = "" + "" + "" - + "" + //+ "" + + "" + ""; - DataSet jsds=DBHlper.Execute("select * from view_nr_z_scdjs_tccp where id in (" + Request.QueryString["jsxmid"].ToString()+")"); - foreach(DataRow r in jsds.Tables[0].Rows ) + DataSet jsds = DBHlper.Execute("select * from view_nr_z_scdjs_tccp where id in (" + Request.QueryString["jsxmid"].ToString() + ")"); + foreach (DataRow r in jsds.Tables[0].Rows) { if (r["mxlx"].ToString() == "产品") { //为保证唯一性,获取id拼接,保证稳定性 - string hcount = "cp"+r["id"].ToString(); + string hcount = "cp" + r["id"].ToString(); biao += "" + "" + "" @@ -109,15 +110,15 @@ public partial class Dispatch_Form : CommonPage + "" + "" + "" - + "" + //+ "" + "" + "" + ""; } else { - cpmxstring=""; - biao+=getcpmx(r["mxlx"].ToString(), r["cpid"].ToString(), Convert.ToDecimal(r["dhsl"]), r["bh"].ToString(), r["kh_bh"].ToString(), r["scfs"].ToString(), Convert.ToDateTime(r["jhrq"]).ToString("yyyy-MM-dd"), r["bz"].ToString()); + cpmxstring = ""; + biao += getcpmx(r["mxlx"].ToString(), r["cpid"].ToString(), Convert.ToDecimal(r["dhsl"]), r["bh"].ToString(), r["kh_bh"].ToString(), r["scfs"].ToString(), Convert.ToDateTime(r["jhrq"]).ToString("yyyy-MM-dd"), r["bz"].ToString()); } @@ -127,16 +128,22 @@ public partial class Dispatch_Form : CommonPage cpxx.InnerHtml = biao + "
单据编号客户编号产品货号产品名称种类 特殊工艺订单数量提取库存数量生产数量交货日期提取库存数量生产数量交货日期备注
"; } #endregion - private string getcpmx(string zjlx, string zjid, decimal bhsl,string djbh,string khbh,string scfs,string jhrq,string bz) + private string getcpmx(string zjlx, string zjid, decimal bhsl, string djbh, string khbh, string scfs, string jhrq, string bz) { + + /* + tptq + sptq + bdtq + */ if (zjlx == "产品") { DataSet ds = DBHlper.Execute("select * from dbo.view_nr_z_cpkc where id='" + zjid + "'"); //为保证唯一性,获取id拼接,保证稳定性 - if(ds!=null&&ds.Tables[0].Rows.Count>0) - { - - string hcount ="bm"+ds.Tables[0].Rows[0]["id"].ToString(); + if (ds != null && ds.Tables[0].Rows.Count > 0) + { + + string hcount = "bm" + ds.Tables[0].Rows[0]["id"].ToString(); cpmxstring += "" + "" + "" @@ -144,38 +151,39 @@ public partial class Dispatch_Form : CommonPage + "" + "" + "" - + "" + + "" + "" - + "" + + "" + " " - + " "; - } + + " "; + } return cpmxstring; } else - { + { DataSet ds = DBHlper.Execute("select * from view_nr_z_cpbom_xm where bomid='" + zjid + "'"); foreach (DataRow r in ds.Tables[0].Rows) { decimal cpmxbhsl = bhsl * Convert.ToDecimal(r["mtsl"]); - getcpmx(r["cplx"].ToString(), r["zjid"].ToString(),cpmxbhsl,djbh,khbh,scfs,jhrq,bz); - + getcpmx(r["cplx"].ToString(), r["zjid"].ToString(), cpmxbhsl, djbh, khbh, scfs, jhrq, bz); + } return cpmxstring; } } - + #region 修改时用来加载项目 private void updatewlxx(int scdid) - { + { //修改页面时,首先吧项目明细的表头加载出来 string biao = "" + "" + "" - + "" + //+ "" + + "" + ""; DataSet ds = DBHlper.Execute("select * from view_nr_z_allscdxm where scdid='" + scdid + "' order by id "); @@ -184,10 +192,11 @@ public partial class Dispatch_Form : CommonPage //如果当前订单下存在明细就加载成tr行 foreach (DataRow r in ds.Tables[0].Rows) { - DataSet tqds=DBHlper.Execute("select * from nr_z_scd_cp_tqkc where xmid='" + r["id"] + "'"); - string dqxmid=""; - string tqxxst=""; - if(tqds!=null&&tqds.Tables[0].Rows.Count>0){ + DataSet tqds = DBHlper.Execute("select * from nr_z_scd_cp_tqkc where xmid='" + r["id"] + "'"); + string dqxmid = ""; + string tqxxst = ""; + if (tqds != null && tqds.Tables[0].Rows.Count > 0) + { dqxmid = tqds.Tables[0].Rows[0]["id"].ToString(); tqxxst = tqds.Tables[0].Rows[0]["tptqsl"].ToString() + "," + tqds.Tables[0].Rows[0]["sptqsl"].ToString() + "," + tqds.Tables[0].Rows[0]["bdtqsl"].ToString(); } @@ -201,19 +210,19 @@ public partial class Dispatch_Form : CommonPage + "" + "" + "" - + "" + //+ "" + "" + "" + ""; } } - cpxx.InnerHtml = biao + "
单据编号客户编号产品货号产品名称种类 特殊工艺订单数量提取库存数量生产数量交货日期提取库存数量生产数量交货日期备注
"; + cpxx.InnerHtml = biao + ""; } #endregion #region 用来初始化绑定下拉框等值 private void binddata() - { + { Maticsoft.Model.nr_z_yhzh zh = (Maticsoft.Model.nr_z_yhzh)Session["user"]; ywy.Value = zh.zhanghao; xdrq.Value = DateTime.Now.ToString("yyyy-MM-dd"); @@ -259,26 +268,26 @@ public partial class Dispatch_Form : CommonPage public string hqyscpscfs() { string cpxmscfs = ""; - DataSet hylx = bmlx.GetAllList(); - DataRow[] dr = hylx.Tables[0].Select("leixing='特殊工艺'"); - if (dr != null && dr.Length > 0) - { - DataSet hy = bm.GetList("zhongleiid='" + dr[0]["id"] + "'"); + //DataSet hylx = bmlx.GetAllList(); + //DataRow[] dr = hylx.Tables[0].Select("leixing='特殊工艺'"); + //if (dr != null && dr.Length > 0) + //{ + // DataSet hy = bm.GetList("zhongleiid='" + dr[0]["id"] + "'"); - if (hy != null) - { - foreach (DataRow r in hy.Tables[0].Rows) - { - cpxmscfs += ""; + // if (hy != null) + // { + // foreach (DataRow r in hy.Tables[0].Rows) + // { + // cpxmscfs += ""; - } - } - } - else - { - cpxmscfs += ""; + // } + // } + //} + //else + //{ + // cpxmscfs += ""; - } + //} return cpxmscfs; } @@ -324,16 +333,16 @@ public partial class Dispatch_Form : CommonPage { try { - string caozuo = "添加"; - + string caozuo = "添加"; + //接收成功参数值 - int rtx = 0; + int rtx = 0; //判断uid是否存在值,有值为修改,无值为添加 if (id.Value != null && id.Value != "") { scd = scdbll.GetModel(Convert.ToInt32(id.Value)); getmd(); - caozuo = "修改"; + caozuo = "修改"; scd.id = Convert.ToInt32(id.Value); if (scdbll.Update(scd)) { @@ -360,26 +369,26 @@ public partial class Dispatch_Form : CommonPage foreach (Maticsoft.Model.nr_z_scd_cp x in sccpxmds) { ci = ci + 1; - int cpxmid=0; + int cpxmid = 0; x.scdid = Convert.ToInt32(rtx); //判断如果存在id的时候且是修改操作时 if (x.id > 0 && Request.QueryString["uid"] != null) { scdcpbll.Update(x); deletecmd += " and id !=" + x.id; - cpxmid=x.id; + cpxmid = x.id; } else { int mxid = scdcpbll.Add(x); deletecmd += " and id !=" + mxid; - cpxmid=mxid; + cpxmid = mxid; } - if (x.tqkc !=0) + if (x.tqkc != 0) { - int tqrt=DBHlper.excutecmd("update nr_z_scd_cp_tqkc set xmid='" + cpxmid + "' where id='"+x.tqkc+"'"); - } + int tqrt = DBHlper.excutecmd("update nr_z_scd_cp_tqkc set xmid='" + cpxmid + "' where id='" + x.tqkc + "'"); + } } DBHlper.excutecmd(deletecmd); @@ -387,7 +396,7 @@ public partial class Dispatch_Form : CommonPage catch { Response.Write(""); - } + } //将session转换对象取值 Maticsoft.Model.nr_z_yhzh zh = (Maticsoft.Model.nr_z_yhzh)Session["user"]; @@ -409,7 +418,7 @@ public partial class Dispatch_Form : CommonPage Response.Redirect("../Common/error.aspx"); } - } + } [Ajax.AjaxMethod] public string getcpkc(string cphh) { @@ -429,7 +438,7 @@ public partial class Dispatch_Form : CommonPage public string getxmyt(string ytxmid) { string code = ""; - DataSet ds = DBHlper.Execute("select tptqsl,sptqsl,bdtqsl from nr_z_scd_cp_tqkc where id='"+ytxmid+"'"); + DataSet ds = DBHlper.Execute("select tptqsl,sptqsl,bdtqsl from nr_z_scd_cp_tqkc where id='" + ytxmid + "'"); if (ds != null && ds.Tables[0].Rows.Count > 0) { code = ds.Tables[0].Rows[0]["tptqsl"].ToString() + "&" + ds.Tables[0].Rows[0]["sptqsl"].ToString() + "&" + ds.Tables[0].Rows[0]["bdtqsl"].ToString(); @@ -441,17 +450,17 @@ public partial class Dispatch_Form : CommonPage return code; } [Ajax.AjaxMethod] - public int settqsl(string tpsl,string spsl,string bdsl,string cphh) + public int settqsl(string tpsl, string spsl, string bdsl, string cphh) { int code = DBHlper.ExecuteReid("insert into nr_z_scd_cp_tqkc(xmid,tptqsl,sptqsl,bdtqsl,cphh) values ('0','" + tpsl + "','" + spsl + "','" + bdsl + "','" + cphh + "');SELECT id from nr_z_scd_cp_tqkc WHERE (id = @@IDENTITY)"); return code; } - [Ajax.AjaxMethod] + [Ajax.AjaxMethod] public int deletetqlc(string tqid) { int gshrt = DBHlper.excutecmd("delete nr_z_scd_cp_tqkc where id='" + tqid + "'"); - return gshrt; + return gshrt; } } \ No newline at end of file diff --git a/newyt/Module_data/Dispatch_browse.aspx.cs b/newyt/Module_data/Dispatch_browse.aspx.cs index cfeec74..d041e4e 100644 --- a/newyt/Module_data/Dispatch_browse.aspx.cs +++ b/newyt/Module_data/Dispatch_browse.aspx.cs @@ -130,7 +130,8 @@ public partial class Dispatch_browse : CommonPage string biao = "" + "" + "" - + "" + //+ "" + + "" + ""; //查询数据视图,获取当前订单下的所有明细 DataSet ds = DBHlper.Execute("select * from nr_z_scd_cp where scdid='" + scdid + "' order by id "); @@ -152,7 +153,7 @@ public partial class Dispatch_browse : CommonPage + "" + "" + "" - + " " + //+ " " + " " + " " + ""; diff --git a/newyt/Module_data/ProductLibrary_list.aspx.cs b/newyt/Module_data/ProductLibrary_list.aspx.cs index afb7505..8c5d4e6 100644 --- a/newyt/Module_data/ProductLibrary_list.aspx.cs +++ b/newyt/Module_data/ProductLibrary_list.aspx.cs @@ -414,21 +414,21 @@ public partial class ProductLibrary_list : System.Web.UI.Page rizhi.leixing = "产品库盘库"; string pksqlst = ""; string cxsl = ""; - if (kf == "土坯仓") - { - pksqlst = "update nr_z_cpkc set tpcsl='" + pksl + "' where id='" + id + "'"; - cxsl = "select isnull(tpcsl,0) from nr_z_cpkc where id='" + id + "'"; - } - if (kf == "素坯仓") - { - pksqlst = "update nr_z_cpkc set spcsl='" + pksl + "' where id='" + id + "'"; - cxsl = "select isnull(spcsl,0) from nr_z_cpkc where id='" + id + "'"; - } - if (kf == "白地仓") - { - pksqlst = "update nr_z_cpkc set bdcsl='" + pksl + "' where id='" + id + "'"; - cxsl = "select isnull(bdcsl,0) from nr_z_cpkc where id='" + id + "'"; - } + //if (kf == "土坯仓") + //{ + // pksqlst = "update nr_z_cpkc set tpcsl='" + pksl + "' where id='" + id + "'"; + // cxsl = "select isnull(tpcsl,0) from nr_z_cpkc where id='" + id + "'"; + //} + //if (kf == "素坯仓") + //{ + // pksqlst = "update nr_z_cpkc set spcsl='" + pksl + "' where id='" + id + "'"; + // cxsl = "select isnull(spcsl,0) from nr_z_cpkc where id='" + id + "'"; + //} + //if (kf == "白地仓") + //{ + // pksqlst = "update nr_z_cpkc set bdcsl='" + pksl + "' where id='" + id + "'"; + // cxsl = "select isnull(bdcsl,0) from nr_z_cpkc where id='" + id + "'"; + //} if (kf == "产品仓") { pksqlst = "update nr_z_cpkc set sl='" + pksl + "' where id='" + id + "'"; diff --git a/newyt/Module_data/Productin_browse.aspx b/newyt/Module_data/Productin_browse.aspx index 27f6ecd..3b9fc0a 100644 --- a/newyt/Module_data/Productin_browse.aspx +++ b/newyt/Module_data/Productin_browse.aspx @@ -61,11 +61,10 @@ - - + diff --git a/newyt/Print_File/DispatchPrint.aspx.cs b/newyt/Print_File/DispatchPrint.aspx.cs index c51454f..c46de32 100644 --- a/newyt/Print_File/DispatchPrint.aspx.cs +++ b/newyt/Print_File/DispatchPrint.aspx.cs @@ -11,15 +11,15 @@ public partial class DispatchPrint : System.Web.UI.Page //创建一个共用的订单bll层 Maticsoft.BLL.nr_z_dd ddbll = new Maticsoft.BLL.nr_z_dd(); //创建一个共用的订单模板 - Maticsoft.Model.nr_z_dd dd = new Maticsoft.Model.nr_z_dd(); + Maticsoft.Model.nr_z_dd dd = new Maticsoft.Model.nr_z_dd(); //创建一个共用的客户bll层 Maticsoft.BLL.nr_z_kehu kehubll = new Maticsoft.BLL.nr_z_kehu(); - //创建一个操作记录模板 + //创建一个操作记录模板 Maticsoft.Model.nr_sys_rizhi rizhi = new Maticsoft.Model.nr_sys_rizhi(); //创建一个操作记录bll Maticsoft.BLL.nr_sys_rizhi rizhibll = new Maticsoft.BLL.nr_sys_rizhi(); public string userinfo = ""; - + protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) @@ -44,7 +44,7 @@ public partial class DispatchPrint : System.Web.UI.Page id.Value = Request.QueryString["uid"].ToString(); } initdata(id.Value); - getsccpxm(Convert.ToInt32(id.Value)); + getsccpxm(Convert.ToInt32(id.Value)); } } @@ -60,7 +60,7 @@ public partial class DispatchPrint : System.Web.UI.Page wgrq.Text = Convert.ToDateTime(scdds.Tables[0].Rows[0]["wgrq"]).ToString("yyyy-MM-dd"); ywy.Text = scdds.Tables[0].Rows[0]["kdr"].ToString(); ddbz.Text = scdds.Tables[0].Rows[0]["bz"].ToString(); - zt.Text = scdds.Tables[0].Rows[0]["zt"].ToString(); + zt.Text = scdds.Tables[0].Rows[0]["zt"].ToString(); } } #endregion @@ -70,9 +70,16 @@ public partial class DispatchPrint : System.Web.UI.Page { //修改页面时,首先吧项目明细的表头加载出来 string biao = "
单据编号客户编号产品货号产品名称种类 特殊工艺订单数量提取库存数量生产数量交货日期提取库存数量生产数量交货日期备注
" + r["cphh"].ToString() + "" + r["cpmc"] + "" + r["zl"].ToString() + "" + r["scfs"].ToString() + " " + r["ddsl"].ToString() + "" + tqxxst + "" + tqxxst + "" + r["scsl"].ToString() + "" + Convert.ToDateTime(r["jhrq"]).ToString("yyyy-MM-dd") + "" + r["bz"].ToString() + "
联系人: 联系电话: 经手人:送货人: 状态:
送货地址:
备注:
" - + "" - + "" - + "" + + "" + + "" + + "" + + " " + + "" + + "" + + //+ "" + + "<" + + "td>交货日期" + ""; //查询数据视图,获取当前订单下的所有明细 DataSet ds = DBHlper.Execute("select * from nr_z_scd_cp where scdid='" + scdid + "' order by id "); @@ -90,11 +97,14 @@ public partial class DispatchPrint : System.Web.UI.Page tqxxst = tqds.Tables[0].Rows[0]["tptqsl"].ToString() + "," + tqds.Tables[0].Rows[0]["sptqsl"].ToString() + "," + tqds.Tables[0].Rows[0]["bdtqsl"].ToString(); } biao += "" - + "" + + "" + + "" + "" - + "" - + "" - + " " + + "" + + "" + + "" + + "" + //+ " " + " " + " " + "";
单据编号客户编号产品货号产品名称种类 工艺要求订单数量提取库存数量生产数量交货日期单据编号客户编号产品货号产品名称" + + "种类工艺要求订单数量提取库存数量生产数量备注
" + r["djbh"].ToString() + "" + r["khbh"].ToString() + "" + r["djbh"].ToString() + "" + r["khbh"].ToString() + "" + r["cphh"].ToString() + "" + r["cpmc"] + "" + r["zl"].ToString() + "" + r["scfs"].ToString() + " " + r["ddsl"].ToString() + "" + tqxxst + "" + r["cpmc"] + "" + r["zl"].ToString() + "" + r["scfs"].ToString() + " " + r["ddsl"].ToString() + "" + tqxxst + "" + r["scsl"].ToString() + "" + Convert.ToDateTime(r["jhrq"]).ToString("yyyy-MM-dd") + "" + r["bz"].ToString() + "