myBook.Web/webAdmin/order/EditOrder.aspx.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using myBook.BLL;
using System.Data;
using myBook.Model;
public partial class webAdmin_order_EditOrder : System.Web.UI.Page
{
orderDetailBLL odBLL = new orderDetailBLL();
orderBLL oBLL = new orderBLL();
bookBLL bBLL = new bookBLL();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request.QueryString["id"] != null)
{
this.HFOrder.Value = Request.QueryString["id"].ToString();
this.BindOrder();
this.BindOderById();
}
}
}
/// <summary>
///
/// </summary>
private void BindOderById()
{
orderModel model = oBLL.GetModel(Convert.ToInt16(this.HFOrder.Value));
this.txtOrderNumber.Text = model.orderNum;
this.txtPhone.Text = model.phone;
this.txtPrice.Text = model.price.ToString();
this.txtName.Text = model.getName;
this.txtCreateTime.Text = model.createTime.ToString();
this.setTime.Text = model.setTime.ToString();
this.getTime.Text = model.getTime.ToString();
this.DropDownList1.SelectedValue = model.status.ToString();
this.DropDownList2.SelectedValue = model.ispay.ToString();
this.adress.Text = model.address;
}
/// <summary>
/// 分页
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void lbLast_Command(object sender, CommandEventArgs e)
{
int pageIndex = int.Parse(this.hfPageIndex.Value);
int startIndex = int.Parse(this.hfStartIndex.Value);
int endIndex = int.Parse(this.hfEndIndex.Value);
int pageSize = int.Parse(this.hfPageSize.Value);
后面还有 158 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
