?? kjnd_add.aspx.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.Ascs.Plp.CW;
using com.ascs.plp.publics;
namespace Com.Ascs.Plp.CWZZ
{
/// <summary>
/// KJND_ADD 的摘要說明。
/// </summary>
public class KJND_ADD : com.unicafe.ui.UnicafePage
{
protected System.Web.UI.WebControls.LinkButton LinkButton1;
protected System.Web.UI.WebControls.TextBox TextBox1;
private void Page_Load(object sender, System.EventArgs e)
{
// 在此處放置用戶代碼以初始化頁面
this.VerifyPage();
if(!this.IsPostBack)
{
this.VerifyPage("zt_kjnd_mgr");
}
}
#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.LinkButton1.Click += new System.EventHandler(this.LinkButton1_Click);
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
private void LinkButton1_Click(object sender, System.EventArgs e)
{
Com.Ascs.Plp.CW.CW_KJND thisKJND = new CW_KJND();
Com.Ascs.Plp.CW.CW_KJNDMgr thisKJNDMgr = new CW_KJNDMgr();
//獲取關鍵字并給結轉損益設置對象的各屬性賦值
thisKJND.KJND = TextBox1.Text; //會計年度
//檢查是否主關鍵字重復
if(thisKJNDMgr.GetCW_KJND(thisKJND.KJND) != null)
{
Prompt.PromptAlert(this,"該會計年度已經存在!");
return;
}
//執(zhí)行修改操作,失敗則給出錯誤提示
if (thisKJNDMgr.AddCW_KJND(thisKJND) == false)
{
Prompt.PromptError(this,"新增會計年度時產生錯誤。");
return;
}
else
{
//關閉窗口,返回父頁面
CommonService.Return(this);
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -