⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 materiel_c.ascx.cs

📁 可供共享学习.net环境下生产管理的实现
💻 CS
字号:
namespace Botheighten.Yanghui.Web.Controls
{
	using System;
	using System.Data;
	using System.Drawing;
	using System.Web;
	using System.Web.UI.WebControls;
	using System.Web.UI.HtmlControls;
	using Botheighten.Yanghui.BusinessFacade;
	using Botheighten.Yanghui.Framework;
	using Botheighten.Yanghui.BusinessRules;

	/// <summary>
	///		Materiel_C 的摘要说明。
	/// </summary>
	public abstract class Materiel_C : System.Web.UI.UserControl
	{
		protected System.Web.UI.WebControls.Label Label1;
		protected System.Web.UI.WebControls.Label lblCode;
		protected System.Web.UI.WebControls.Label Label2;
		protected System.Web.UI.WebControls.Label Label3;
		protected System.Web.UI.WebControls.Label lblFlag;
		protected System.Web.UI.WebControls.Label Label4;
		protected System.Web.UI.WebControls.Label Label5;
		protected System.Web.UI.WebControls.Label Label6;
		protected System.Web.UI.WebControls.Label lblDes;
		protected System.Web.UI.WebControls.Label lblUnit;
		protected System.Web.UI.WebControls.Label lblSpec;
		protected System.Web.UI.WebControls.Label lblMaterielCat;

		private void Page_Load(object sender, System.EventArgs e)
		{
			// 在此处放置用户代码以初始化页面
		}

		public void Bind()
		{
			string id=this.ViewState["ID"].ToString();
			if(id!="")
			{
				Materiel m=new Materiel();
				m.Id=id;
				m.Retrieve();
				if(m.IsPersistent)
				{
					this.lblCode.Text = m.Code;
					this.lblMaterielCat.Text= MaterielSystem.GetMaterielCatName(m.CatalogId);
					this.lblFlag.Text = m.Flag;
					this.lblUnit.Text = UnitSystem.GetUnitCode(m.Unit);
					this.lblSpec.Text = m.Spec;
					this.lblDes.Text = Common.GetHtmlCode(m.Description);
				}
			}
		}


		/// <summary>
		///		产品Id
		/// </summary>
		public string MId
		{
			set
			{
				this.ViewState["ID"] = value;
			}
			get
			{
				return this.ViewState["ID"].ToString ();
			}

		}

		#region Web Form Designer generated code
		override protected void OnInit(EventArgs e)
		{
			//
			// CODEGEN:该调用是 ASP.NET Web 窗体设计器所必需的。
			//
			InitializeComponent();
			base.OnInit(e);
		}
		
		///		设计器支持所需的方法 - 不要使用
		///		代码编辑器修改此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -