using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CY.BLL.OA; using CY.Infrastructure.Common; using CY.Model; namespace CY.WebForm.Pages.procurement { public partial class CargoSpaceList: BasePage { OA_CargoSpaceBLL _OA_CargoSpaceBLL = null; OA_CargoSpace CargoSpace = null; public CargoSpaceList() { _OA_CargoSpaceBLL = new OA_CargoSpaceBLL(); CargoSpace = new OA_CargoSpace(); } protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { InitialData(); } } /// /// 绑定单个数据 /// protected void InitialData() { CargoSpace = _OA_CargoSpaceBLL.getSingleModel(Request["Keyid"].ToString2()); this.spanHeight.InnerText = CargoSpace.Height.ToString2(); this.spanLength.InnerText = CargoSpace.Length.ToString2(); this.spanName.InnerText = CargoSpace.Name; this.spanOpretor.InnerText = CargoSpace.Operator; this.spanStatus.InnerText = CargoSpace.CargoSpaceStatus.Name; this.spanWarehouseId.InnerText = CargoSpace.OA_WarehouseInfo.WarehouseName; this.spanWidth.InnerText = CargoSpace.Width.ToString2(); } } }