using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CY.Model; using CY.BLL.OA; namespace CY.WebForm.Pages.procurement { public partial class ProcurementDetail : BasePage { OA_Procurement procurenment = null; OA_ProcurementBLL _OA_ProcurementBLL = null; OA_GoodsInfo goodsInfo = null; OA_GoodsInfoBLL _OA_GoodsInfoBLL = null; public ProcurementDetail() { procurenment = new OA_Procurement(); _OA_GoodsInfoBLL = new OA_GoodsInfoBLL(); _OA_ProcurementBLL = new OA_ProcurementBLL(); goodsInfo = new OA_GoodsInfo(); } protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { InitialData(); } } protected void InitialData() { procurenment = _OA_ProcurementBLL.SelectSingleModel(Request["Keyid"].ToString()); goodsInfo = _OA_GoodsInfoBLL.SelectSingleModel(procurenment.GoodsId.ToString()); spanAllMoney.InnerText =string.Format("{0:F}", procurenment.AllMoney); spanBrandName.InnerText = procurenment.BrandName; spanClearingStatus.InnerText = procurenment.ClearingStatus; spanGoodsName.InnerText = procurenment.GoodsName; spanGoodsType.InnerText = goodsInfo.CommodityName; spanOperator.InnerText = procurenment.Operator; spanPrice.InnerText = string.Format("{0:F}", procurenment.Price); spanRemark.InnerText = procurenment.Remark; spanWarehouseName.InnerText = procurenment.WarehouseName; spanPurchaseStatus.InnerText = procurenment.PurchaseStatus; spanPurchaseTime.InnerText = procurenment.PurchaseTime.ToString(); spanQuantity.InnerText = procurenment.Quantity.ToString(); spanSpecificationName.InnerText = procurenment.SpeceicationName; spanSuppliers.InnerText = procurenment.SuppliersName; if (procurenment.PaperWeightName != "") { this.spanPaperWeight.InnerText = procurenment.PaperWeightName; } else { this.TrPaperWeight.Visible = false; } } } }