username@email.com
2025-05-15 6fe02a16e55f17e45a3997171e1b2284d45af25b
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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;
            }
 
 
        }
 
    }
}