56 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C#
		
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C#
		
	
	
	
using System;
 | 
						|
using System.Collections.Generic;
 | 
						|
using System.Linq;
 | 
						|
using System.Web;
 | 
						|
using System.Web.UI;
 | 
						|
using System.Web.UI.WebControls;
 | 
						|
 | 
						|
namespace FineUIPro.Web.JDGL.Check
 | 
						|
{
 | 
						|
    public partial class QuantityListView : PageBase
 | 
						|
    {
 | 
						|
        /// <summary>
 | 
						|
        /// 项目id
 | 
						|
        /// </summary>
 | 
						|
        public string ProjectId
 | 
						|
        {
 | 
						|
            get
 | 
						|
            {
 | 
						|
                return (string)ViewState["ProjectId"];
 | 
						|
            }
 | 
						|
            set
 | 
						|
            {
 | 
						|
                ViewState["ProjectId"] = value;
 | 
						|
            }
 | 
						|
        }
 | 
						|
        protected void Page_Load(object sender, EventArgs e)
 | 
						|
        {
 | 
						|
            if (!IsPostBack)
 | 
						|
            {
 | 
						|
 | 
						|
                this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
 | 
						|
                //BLL.CNProfessionalService.InitCNProfessionalDownList(this.drpCNProfessionalId, true);
 | 
						|
                string QuantityListId = Request.Params["QuantityListId"];
 | 
						|
                if (!string.IsNullOrEmpty(QuantityListId))
 | 
						|
                {
 | 
						|
 | 
						|
                    Model.JDGL_QuantityList QuantityList = BLL.QuantityListService.GetQuantityListById(QuantityListId);
 | 
						|
                    if (QuantityList != null)
 | 
						|
                    {
 | 
						|
                        this.ProjectId = QuantityList.ProjectId;
 | 
						|
                        this.txtName.Text = QuantityList.Name;
 | 
						|
                        //if (!string.IsNullOrEmpty(QuantityList.CNProfessionalId))
 | 
						|
                        //{
 | 
						|
                        //    this.drpCNProfessionalId.SelectedValue = QuantityList.CNProfessionalId;
 | 
						|
                        //}
 | 
						|
                        this.txtUnit.Text = QuantityList.Unit;
 | 
						|
                        if (QuantityList.DesignNum != null)
 | 
						|
                        {
 | 
						|
                            this.txtDesignNum.Text = QuantityList.DesignNum.ToString();
 | 
						|
                        }
 | 
						|
                    }
 | 
						|
                }
 | 
						|
            }
 | 
						|
        }
 | 
						|
    }
 | 
						|
} |