62 lines
1.6 KiB
C#
62 lines
1.6 KiB
C#
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");
|
|
}
|
|
}
|