protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPForm MyModel = new ZWL.BLL.ERPForm(); MyModel.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.Label1.Text = MyModel.FormName; this.Label2.Text = MyModel.FormType; this.Label3.Text = MyModel.ShiYongUserList; this.Label4.Text = MyModel.TiaoJianList; this.Label5.Text = MyModel.UserName; this.Label6.Text = MyModel.TimeStr.ToString(); this.Label7.Text = MyModel.ContentStr; } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.Common.PublicMethod.BindDDL(this.DropDownList3, ZWL.DBUtility.DbHelperSQL.GetSHSL("select top 1 FormTypeList from ERPFormType")); //绑定表单类别 ZWL.BLL.ERPForm MyModel = new ZWL.BLL.ERPForm(); MyModel.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.TextBox1.Text = MyModel.FormName; this.DropDownList3.SelectedValue = MyModel.FormType; this.TextBox3.Text = MyModel.ShiYongUserList; this.TxtContent.Text = MyModel.ContentStr; ZWL.Common.PublicMethod.SetSessionValue("TiaoJiaoList", MyModel.TiaoJianList); ZWL.Common.PublicMethod.BindDDL(this.DropDownList1, ZWL.Common.PublicMethod.GetSessionValue("TiaoJiaoList")); } }