public void aa() { Model.order myorder = new Model.order(); myorder.id = Convert.ToInt32(Request.QueryString["id"]); BLL.BLLorderupdate blll = new BLL.BLLorderupdate(); SqlDataReader dr = blll.readorder(myorder); if (dr.Read()) { proid.Text = dr["_id"].ToString(); needbill.Text = dr["_needbill"].ToString(); waysgive.Text = dr["_waysgive"].ToString(); pronum.Text = dr["_ordernum"].ToString(); ordertime.Text = dr["_ordertime"].ToString(); sellremarks.Text = dr["_sellremarks"].ToString(); count.Text = dr["_count"].ToString(); address.Text = dr["_address"].ToString(); sumpric.Text = dr["_sumprice"].ToString(); name.Text = dr["_name"].ToString(); tel.Text = dr["_tel"].ToString(); mobile.Text = dr["_mobile"].ToString(); buyremarks.Text = dr["_buyremarks"].ToString(); mail.Text = dr["_mail"].ToString(); } dr.Close(); }
public void aa() { Model.order myorder = new Model.order(); myorder.id = Convert.ToInt32(Request.QueryString["id"]); BLL.BLLorderupdate blll = new BLL.BLLorderupdate(); SqlDataReader dr = blll.readorder(myorder); if (dr.Read()) { ordernum.Text = dr["_ordernum"].ToString(); sellremarks.Text = dr["_sellremarks"].ToString(); proid.Text = dr["_id"].ToString(); if (dr["_paystate"].ToString() == "1") { ispay.Checked = true; } else { notpay.Checked = true; } if (dr["_prostate"].ToString() == "1") { ispro.Checked = true; } else { notpro.Checked = true; } } dr.Close(); }
protected void change_Click(object sender, EventArgs e) { Model.order myorder = new Model.order(); myorder.id = Convert.ToInt32(Request.QueryString["id"]); myorder.sellremarks = sellremarks.Text; if (ispay.Checked == true) { myorder.paystate = 1; } if (notpay.Checked == true) { myorder.paystate = 0; } if (ispro.Checked == true) { myorder.prostate = 1; } if (notpro.Checked == true) { myorder.prostate = 0; } BLL.BLLorderupdate blll = new BLL.BLLorderupdate(); int result = blll.update(myorder); if (result > 0) { Common.MessageAlert.AlertLocation(Page, "if(confirm('更新成功,是否返回订单列表?')) location.href='orderselect.aspx'"); } }
protected void change_Click(object sender, EventArgs e) { Model.order myorder = new Model.order(); myorder.id = Convert.ToInt32(Request.QueryString["id"]); myorder.sellremarks = sellremarks.Text; if (ispay.Checked == true) { myorder.paystate = 1; } if(notpay .Checked ==true ) { myorder.paystate = 0; } if (ispro.Checked == true) { myorder.prostate = 1; } if(notpro .Checked ==true ) { myorder.prostate = 0; } BLL.BLLorderupdate blll = new BLL.BLLorderupdate(); int result = blll.update(myorder ); if (result > 0) { Common .MessageAlert .AlertLocation (Page , "if(confirm('更新成功,是否返回订单列表?')) location.href='orderselect.aspx'"); } }
public void aa() { Model.order myorder = new Model.order(); myorder.id = Convert .ToInt32( Request.QueryString["id"]); BLL.BLLorderupdate blll = new BLL.BLLorderupdate(); MySqlDataReader dr = blll.readorder(myorder); if (dr.Read()) { ordernum .Text =dr["_ordernum"].ToString (); sellremarks.Text = dr["_sellremarks"].ToString(); proid.Text = dr["_id"].ToString(); if (dr["_paystate"].ToString() == "1") { ispay.Checked = true; } else { notpay.Checked = true; } if (dr["_prostate"].ToString() == "1") { ispro.Checked = true; } else { notpro.Checked = true; } } dr.Close(); }
public void aa() { Model.order myorder = new Model.order(); myorder.id = Convert.ToInt32(Request.QueryString["id"]); BLL.BLLorderupdate blll = new BLL.BLLorderupdate(); MySqlDataReader dr = blll.readorder(myorder); if (dr.Read()) { proid.Text = dr["_id"].ToString(); needbill.Text = dr["_needbill"].ToString(); waysgive.Text = dr["_waysgive"].ToString(); pronum.Text = dr["_ordernum"].ToString(); ordertime.Text = dr["_ordertime"].ToString(); sellremarks.Text = dr["_sellremarks"].ToString(); count.Text = dr["_count"].ToString(); address.Text = dr["_address"].ToString(); sumpric.Text = dr["_sumprice"].ToString(); name.Text = dr["_name"].ToString(); tel.Text = dr["_tel"].ToString(); mobile.Text = dr["_mobile"].ToString(); buyremarks.Text = dr["_buyremarks"].ToString(); mail.Text = dr["_mail"].ToString(); } dr.Close (); }
public void bindgr() { Model.orderdetail myorderdetail = new Model.orderdetail(); myorderdetail.ordernum = Request.QueryString["ordernum"].ToString (); BLL.BLLorderupdate blll = new BLL.BLLorderupdate(); DataSet ds = blll.bindgr(myorderdetail); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); }
public void bindgr() { Model.orderdetail myorderdetail = new Model.orderdetail(); myorderdetail.ordernum = pronum.Text; BLL.BLLorderupdate blll = new BLL.BLLorderupdate(); DataSet ds = blll.bindgr(myorderdetail); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); }
public void bindgr() { Model.orderdetail myorderdetail = new Model.orderdetail(); myorderdetail.ordernum = Request.QueryString["_order_num"].ToString(); BLL.BLLorderupdate blll = new BLL.BLLorderupdate(); DataSet ds = blll.bindgr(myorderdetail); GridView1.DataSource = ds.Tables[0]; GridView1.DataBind(); }