chore: 首次簽入 Thinkyu ASP.NET 專案
- 加入 Visual Studio / ASP.NET .gitignore - 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
using System.Collections;
|
||||
using System.Web;
|
||||
using System.Web.Security;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Web.UI.WebControls.WebParts;
|
||||
using System.Web.UI.HtmlControls;
|
||||
|
||||
/// <summary>
|
||||
/// 年度接單科目對應設定
|
||||
/// </summary>
|
||||
public partial class forms_customer_fmBpaaSub : Wellan.Web.UI.WUserControlBase
|
||||
{
|
||||
private string _BPNUM = "";
|
||||
private string _BPPNM = "";
|
||||
private string _BPPYN = "";
|
||||
private string _BPYER = "";
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
}
|
||||
|
||||
protected override void OnInit(EventArgs e)
|
||||
{
|
||||
base.OnInit(e);
|
||||
dsBPAA.ConnectionString = ConnectionString;
|
||||
dsBPAB.ConnectionString = ConnectionString;
|
||||
dsBPABBig.ConnectionString = ConnectionString;
|
||||
dsBPABSmall.ConnectionString = ConnectionString;
|
||||
|
||||
_BPNUM = GetStringParam("BPNUM");
|
||||
_BPPNM = GetStringParam("BPPNM");
|
||||
_BPPYN = GetStringParam("BPPYN");
|
||||
_BPYER = GetStringParam("BPYER");
|
||||
|
||||
dsBPAA.SelectParameters["BPPNM"].DefaultValue = _BPPNM;
|
||||
dsBPAA.SelectParameters["BPYER"].DefaultValue = _BPYER;
|
||||
|
||||
dsBPAB.SelectParameters["BPPYN"].DefaultValue = _BPPYN;
|
||||
dsBPABBig.SelectParameters["BPPYN"].DefaultValue = _BPPYN;
|
||||
dsBPABSmall.SelectParameters["BPPYN"].DefaultValue = _BPPYN;
|
||||
}
|
||||
|
||||
protected void BPAAForm_ItemCommand(object sender, FormViewCommandEventArgs e)
|
||||
{
|
||||
switch (e.CommandName)
|
||||
{
|
||||
case "Cancel":
|
||||
DoAfterCommand("BPAA");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
protected void BPAAForm_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
|
||||
{
|
||||
DoAfterCommand("BPAA");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user