corporation_reg_input.aspx.cs

来自「ASP.NET的一些开发实例,有论坛管理系统等」· CS 代码 · 共 156 行

CS
156
字号
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace BDStudioBase.syssoft
{
	/// <summary>
	/// corporation_reg_input 的摘要说明。
	/// </summary>
	public class corporation_reg_input : FormBase
	{
		protected System.Web.UI.WebControls.Label Label02;
		protected System.Web.UI.WebControls.Label Out_Label1;
		protected System.Web.UI.WebControls.TextBox In_TextBox1;
		protected System.Web.UI.WebControls.Label Out_Label2;
		protected System.Web.UI.WebControls.TextBox In_TextBox2;
		protected System.Web.UI.WebControls.Label Out_Label3;
		protected System.Web.UI.WebControls.TextBox In_TextBox3;
		protected System.Web.UI.WebControls.Label Out_Label4;
		protected System.Web.UI.WebControls.Label Out_Label5;
		protected System.Web.UI.WebControls.Label Out_Label6;
		protected System.Web.UI.WebControls.DropDownList In_TextBox6;
		protected System.Web.UI.WebControls.Button cbSaveReturn;
		protected System.Web.UI.WebControls.Button cbSaveRun;
		protected System.Web.UI.WebControls.Button cbSaveSearch;
		protected System.Web.UI.WebControls.Button cbReturn;
		protected System.Web.UI.WebControls.TextBox In_TextBox4;
		protected System.Web.UI.WebControls.DropDownList In_TextBox5;
		protected System.Web.UI.WebControls.Label Out_Label7;
		protected System.Web.UI.WebControls.TextBox In_TextBox7;
		protected System.Web.UI.WebControls.Label Out_Label8;
		protected System.Web.UI.WebControls.TextBox In_TextBox8;
		protected System.Web.UI.WebControls.Label Out_Label9;
		protected System.Web.UI.WebControls.TextBox In_TextBox9;
		protected System.Web.UI.WebControls.Label Out_Label10;
		protected System.Web.UI.WebControls.TextBox In_TextBox10;
		protected System.Web.UI.WebControls.Label Out_Label11;
		protected System.Web.UI.WebControls.TextBox In_TextBox11;
		protected System.Web.UI.WebControls.Label Out_Label12;
		protected System.Web.UI.WebControls.DropDownList In_TextBox12;
		protected System.Web.UI.WebControls.Label Out_Label13;
		protected System.Web.UI.WebControls.TextBox In_TextBox13;
		protected System.Web.UI.WebControls.Label Out_Label14;
		protected System.Web.UI.WebControls.TextBox In_TextBox14;
		protected System.Web.UI.WebControls.Label Out_Label15;
		protected System.Web.UI.WebControls.TextBox In_TextBox15;
		protected System.Web.UI.WebControls.Label Out_Label16;
		protected System.Web.UI.WebControls.TextBox In_TextBox16;
		protected System.Web.UI.WebControls.Label Out_Label17;
		protected System.Web.UI.WebControls.TextBox In_TextBox17;
		protected System.Web.UI.WebControls.Label Out_Label18;
		protected System.Web.UI.WebControls.TextBox In_TextBox18;
		protected System.Web.UI.WebControls.Label Out_Label19;
		protected System.Web.UI.WebControls.TextBox In_TextBox19;
		protected System.Web.UI.WebControls.Label Out_Label20;
		protected System.Web.UI.WebControls.TextBox In_TextBox20;
		protected System.Web.UI.WebControls.Label Out_Label21;
		protected System.Web.UI.WebControls.TextBox In_TextBox21;
		protected System.Web.UI.WebControls.Label Out_Label22;
		protected System.Web.UI.WebControls.TextBox In_TextBox22;
		protected System.Web.UI.WebControls.Label labMessage1;

		private string m_num="259";
		protected COM_SystemClient COM_SystemClient=new COM_SystemClient();
	
		private void Page_Load(object sender, System.EventArgs e)
		{
			// 在此处放置用户代码以初始化页面
			this.o_str_FormName = "corporation_reg_input";
			this.o_str_FormUrl = "corporation_reg_input.aspx";
			this.o_str_DisplayFile1 = "corporation_reg_display.aspx";

			if(!Page.IsPostBack)
			{
				//填充标签内容
				this.Out_label(m_num,"InputFace",this);
				
			}
		}
		

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

		}
		#endregion
		private void DataSave(string InsertType)
		{
			DataSet dsData=this.SetFaceDataToDataSet(m_num,"InputFace",this);
			string sReturn=string.Empty;
			//			DataGrid1.DataSource=dsData;
			//			DataGrid1.DataBind();
			this.COM_SystemClient.InsertData(dsData,InsertType,ref sReturn);
			this.labMessage1.Text=sReturn;
		}

		private void cbSaveReturn_Click(object sender, System.EventArgs e)
		{
			this.DataSave("0");
			if (this.labMessage1.Text == "增加成功")
			{
				this.ReturnToParent(this.o_str_FormName);
			}
		}

		private void cbSaveRun_Click(object sender, System.EventArgs e)
		{
			this.DataSave("0");
		}

		private void cbSaveSearch_Click(object sender, System.EventArgs e)
		{
			this.DataSave("1");
			if (this.labMessage1.Text != "增加失败")
			{
				this.Param_Open("corporation_reg_display");
				this.Param_set("as_pk",this.labMessage1.Text);
				this.Param_set("as_sendid","W");
				this.CreatUserLogParentWindow("corporation_reg_display",this.o_str_FormUrl);//建立子窗口的父窗口数据值
				Response.Redirect(this.o_str_DisplayFile1);
			}
		}

		private void cbReturn_Click(object sender, System.EventArgs e)
		{
			this.ReturnToParent(this.o_str_FormName);
		}
	}
}

⌨️ 快捷键说明

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