52 lines
1.6 KiB
C#
52 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace Education.Forms.簽核
|
|
{
|
|
public partial class 簽核測試 : FormBase
|
|
{
|
|
DAC_表單簽核明細 Dao表單簽核明細;
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
FunctionName = "簽核測試";
|
|
Dao表單簽核主檔 = new DAC_表單簽核主檔(conn);
|
|
Dao表單簽核明細 = new DAC_表單簽核明細(conn);
|
|
}
|
|
|
|
protected void Button1_Click(object sender, EventArgs e)
|
|
{
|
|
if (Dao表單簽核主檔.可送簽(txt表單類別.Text, txt單號.Text))
|
|
{
|
|
//txt簽核單號.Text = Dao表單簽核主檔.送簽(txt表單類別.Text, txt單號.Text, "X001", ddl下關人員.SelectedValue, txt單號.Text).ToString();
|
|
}
|
|
|
|
}
|
|
|
|
protected void Button2_Click(object sender, EventArgs e)
|
|
{
|
|
int 簽核ID = Convert.ToInt32(txt簽核單號.Text);
|
|
表單簽核明細 lastStatus = Dao表單簽核明細.GetLast(簽核ID);
|
|
|
|
switch (rbl簽核結果.SelectedValue)
|
|
{
|
|
case "Y":
|
|
Dao表單簽核主檔.核准(簽核ID, lastStatus.簽核人員, txt簽核意見.Text, ddl下關人員.SelectedValue);
|
|
break;
|
|
case "N":
|
|
Dao表單簽核主檔.不核准(簽核ID, lastStatus.簽核人員, txt簽核意見.Text);
|
|
break;
|
|
}
|
|
}
|
|
|
|
protected void Button3_Click(object sender, EventArgs e)
|
|
{
|
|
int 簽核ID = Convert.ToInt32(txt簽核單號.Text);
|
|
Dao表單簽核主檔.取消簽核(簽核ID);
|
|
}
|
|
}
|
|
} |