using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data; using Ajax; public partial class Common_wxd_dy : System.Web.UI.Page { //创建一个共用的外协单bll层 Maticsoft.BLL.nr_z_ddwxd wxdbll = new Maticsoft.BLL.nr_z_ddwxd(); //创建一个共用的外协单模板 Maticsoft.Model.nr_z_ddwxd wxdmodel = new Maticsoft.Model.nr_z_ddwxd(); //创建一个共用的订单bll层 Maticsoft.BLL.nr_z_dd ddbll = new Maticsoft.BLL.nr_z_dd(); public string userinfo = ""; protected void Page_Load(object sender, EventArgs e) { Utility.RegisterTypeForAjax(typeof(Common_wxd_dy)); if (!IsPostBack) { if (Session["user"] == null) { Response.Redirect("../index.aspx"); } Maticsoft.Model.nr_z_yhzh user = (Maticsoft.Model.nr_z_yhzh)(Session["user"]); string uid = Request["uid"].ToString(); initdata(uid); setwxxm(uid); DataSet gsdt = DBHlper.Execute("select * from nr_sysuserinfo"); } DataTable dtuserinfo = DBHlper.Execute("select mingcheng,logourl from nr_sysuserinfo").Tables[0]; userinfo = dtuserinfo.Rows[0]["mingcheng"].ToString(); if (dtuserinfo.Rows.Count > 0) { img_logo.Src = "../UseFile/" + dtuserinfo.Rows[0]["logourl"].ToString(); } else { img_logo.Visible = false; } } #region 修改时添加项目 private void setwxxm(string wxid) { //修改页面时,首先吧项目明细的表头加载出来 string biao = "
生产编号 | 客户编号 | 产品货号 | " + "产品名称 | 种类 | 烧成方式 | " + "外发数量 | 交货日期 | " + "备注 |
" + r["scdh"] + " | " + "" + r["khbh"] + " | " + "" + r["cphh"] + " | " + "" + r["cpmc"] + " | " + "" + r["cpzl"] + " | " + "" + r["scfs"] + " | " + "" + r["wfsl"] + " | " + "" + Convert.ToDateTime(r["jhrq"]).ToString("yyyy-MM-dd") + " | " + "" + r["bz"] + " |