1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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();
            }
        }
        /// <summary>
        /// 绑定单个数据
        /// </summary>
        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();
        
        }
    }
}