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

📄 modifymodel_1.aspx.cs

📁 企业管理信息化之财务管理系统
💻 CS
字号:
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;
using com.unicafe.ui;
using com.unicafe.common;
using com.unicafe.security;
using com.ascs.plp.common;
using com.ascs.plp.cg;
using com.ascs.plp.publics;


namespace com.ascs.plp.publics
{
	/// <summary>
	/// ModifyModel_1 的摘要说明。
	/// </summary>
	public class ModifyModel_1 : com.unicafe.ui.UnicafePage
	{
		protected System.Web.UI.WebControls.Label Label1;
		protected System.Web.UI.WebControls.Label Label2;
		protected System.Web.UI.WebControls.Label Label3;
		protected System.Web.UI.WebControls.Label Label4;
		protected System.Web.UI.WebControls.Label Label5;
		protected System.Web.UI.WebControls.Button Button1;
	
		private void Page_Load(object sender, System.EventArgs e)
		{
			// 在此处放置用户代码以初始化页面
			try
			{
				Label1.Text = this.Request.QueryString["ckdm"];
				Label2.Text = this.Request.QueryString["kwdm"];
				Label3.Text = this.Request.QueryString["cpdm"];
				Label4.Text = this.Request.QueryString["ztbz"];
				Label5.Text = this.Request.QueryString["rkrq"];
			}
			catch
			{}
		}

		#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.Button1.Click += new System.EventHandler(this.Button1_Click);
			this.Load += new System.EventHandler(this.Page_Load);

		}
		#endregion



		/// <summary>
		/// 将修改后的内容提交数据库
		/// </summary>
		/// <param name="sender"></param>
		/// <param name="e"></param>
		private void Button1_Click(object sender, System.EventArgs e)
		{
			//生成返回的URL
			string ReturnURL = CommonService.CreatReturnURL(this);
			this.Response.Write("<script language=javascript>alert('" + ReturnURL + "')</script>;");

			//对表对象进行赋值
			//代码略

			//调用修改方法进行修改
			//bool Flag = Mod***(***);
			bool Flag = true;    //使用时用上一行语句代替

			//执行完毕,提示后返回
			if(Flag == true)
			{
				//使用时将下面代码中的"MainModel_1.aspx"改到特定页面的打开页面的URL
				Response.Write("<script language=javascript>alert('本信息已经成功修改!');window.opener.location='" + ReturnURL + "';window.close();</script>");  
			}
			else
			{
				//使用时将下面代码中的"MainModel_1.aspx"改到特定页面的打开页面的URL
				Response.Write("<script language=javascript>window.opener.location='../Publics/Error.aspx?errmsg=该项未能成功修改。';window.close();</script>");  
			}
		}



	}
}

⌨️ 快捷键说明

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