本文整理汇总了C#中PIC.VDS2G.ACM.CAA.CAACommon.Check_MustFillin_Column方法的典型用法代码示例。如果您正苦于以下问题:C# CAACommon.Check_MustFillin_Column方法的具体用法?C# CAACommon.Check_MustFillin_Column怎么用?C# CAACommon.Check_MustFillin_Column使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PIC.VDS2G.ACM.CAA.CAACommon
的用法示例。
在下文中一共展示了CAACommon.Check_MustFillin_Column方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Check_Condition
/// <summary>
/// 檢查條件
/// </summary>
/// <returns></returns>
private ArrayList Check_Condition(string s_Type)
{
#region 宣告
CAAModel.CAACommon CAAComm = new CAAModel.CAACommon();
ArrayList arl_Return = new ArrayList();
arl_Return.Add(string.Empty);//該欄位放Focus欄位之ClientID
arl_Return.Add(string.Empty);//該欄位放錯誤訊息
#endregion
#region SLP轉型
TextBox txt_CHG_INCOME_DATE = (TextBox)this.SLP_CHG_INCOME_DATE.FindControl("TextBoxCode");//轉其他收入日期
#endregion
#region 新增模式
if (s_Type == "Insert")
{
#region 檢查SLP數字格式
arl_Return = CAAComm.Check_Format_Int(this.SLP_TEMPAMT.Text, "欄位[暫收金額]數字格式錯誤", "64", "1", this.SLP_TEMPAMT.TextBox_Code.ClientID, arl_Return);
#endregion
#region 檢查SLP年月格式
arl_Return = CAAComm.Check_Format_YearMonth(this.txtCLOSE_MONTH.Text, "欄位[結帳年月]年月格式錯誤", "1", this.txtCLOSE_MONTH.TextBoxCode_Object.ClientID, arl_Return);
#endregion
#region 檢查SLP日期格式
arl_Return = CAAComm.Check_Format_Date(this.SLP_CHG_INCOME_DATE.Text, "欄位[轉其他收入日期]日期格式錯誤", "1", txt_CHG_INCOME_DATE.ClientID, arl_Return);
#endregion
#region 檢查必填欄位
arl_Return = CAAComm.Check_MustFillin_Column(this.SLP_STORE_ID.Text, "text", "欄位[店號]為必填欄位", "1", this.SLP_STORE_ID.TextBox_Code.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.SLP_ROOT_NO.Text, "text", "欄位[商品群分類]為必填欄位", "1", this.SLP_ROOT_NO.TextBox_Code.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.ddlTaxType.Text, "text", "欄位[稅別]為必填欄位", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.SLP_TEMPAMT.Text, "text", "欄位[暫收金額]為必填欄位", "1", this.SLP_TEMPAMT.TextBox_Code.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.txtCLOSE_MONTH.Text, "text", "欄位[結帳年月]為必填欄位", "1", this.txtCLOSE_MONTH.ClientID, arl_Return);
#endregion
#region 如果基本檢查有誤,則Return
if (arl_Return[1].ToString() != string.Empty)
{ return arl_Return; }
#endregion
#region 自訂檢查
#region 檢查店號
//新增模式下,店號必須以 sysdate 為基準來做查詢
//編輯模式下,店號必須以該筆資料的 createdate 為基準來做查詢
if (Check_Store_Id(this.SLP_STORE_ID.Text, DateTime.Now) == false)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[店號]必須是有效的店號", "1", this.SLP_STORE_ID.TextBox_Code.ClientID); }
#endregion
#region 檢查商品群分類代碼
if (Check_RootNo(this.SLP_ROOT_NO.Text) == false)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[商品群分類]必須是有效的群分類代號", "1", this.SLP_ROOT_NO.TextBox_Code.ClientID); }
#endregion
#region 檢查欄位[暫收金額]不可為零
if (Int64.Parse(this.SLP_TEMPAMT.Text) <= 0)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[暫收金額]必須大於零", "1", this.SLP_TEMPAMT.TextBox_Code.ClientID); }
#endregion
#endregion
}
#endregion
#region 編輯模式
else if (s_Type == "Edit")
{
#region 檢查SLP數字格式
arl_Return = CAAComm.Check_Format_Int(this.SLP_TEMPAMT.Text, "欄位[暫收金額]數字格式錯誤", "64", "1", this.SLP_TEMPAMT.TextBox_Code.ClientID, arl_Return);
#endregion
//.........这里部分代码省略.........
示例2: Check_Condition
/// <summary>
/// 檢查條件
/// </summary>
/// <returns></returns>
private ArrayList Check_Condition()
{
#region 宣告
BCO.CAACommon CAAComm = new BCO.CAACommon();
ArrayList arl_Return = new ArrayList();
arl_Return.Add(string.Empty);//該欄位放Focus欄位之ClientID
arl_Return.Add(string.Empty);//該欄位放錯誤訊息
#endregion
#region SLP轉型
TextBox txt_INV_DATE = (TextBox)this.slp_INV_DATE.FindControl("TextBoxCode");//[折讓日期]起
TextBox txt_ROUTE_B = (TextBox)this.slp_ROUTE_B.FindControl("TextBoxCode");//[折讓日期]起
TextBox txt_ROUTE_E = (TextBox)this.slp_ROUTE_E.FindControl("TextBoxCode");//[折讓日期]起
#endregion
#region 檢查必填欄位
arl_Return = CAAComm.Check_MustFillin_Column(this.slp_INV_DATE.Text, "text", "欄位[發票日期]為必填欄位", "1", txt_INV_DATE.ClientID, arl_Return);
#endregion
#region 檢查SLP日期格式
arl_Return = CAAComm.Check_Format_Date(this.slp_INV_DATE.Text, "欄位[發票日期]日期格式錯誤", "1", txt_INV_DATE.ClientID, arl_Return);
#endregion
#region 如果基本檢查有誤,則Return
if (arl_Return[1].ToString() != string.Empty)
{ return arl_Return; }
#endregion
#region 自訂檢查
#region 欄位[路線]
if (this.slp_ROUTE_B.Text != string.Empty ||
this.slp_ROUTE_E.Text != string.Empty)
{
#region 檢查Between欄位如果輸入其中一個欄位則另一個欄位也必須填值
arl_Return = CAAComm.Check_Between_BeginEnd_Value
(this.slp_ROUTE_B.Text,
this.slp_ROUTE_E.Text,
"路線",
"1",
txt_ROUTE_B.ClientID,
txt_ROUTE_E.ClientID,
arl_Return);
#endregion
#region 檢查Between欄位結束欄位一定要大於或等於開始欄位
arl_Return = CAAComm.Check_Between_End_GreaterThan_Begin
(this.slp_ROUTE_B.Text,
this.slp_ROUTE_E.Text,
"string",
"欄位[路線]結束欄位一定要大於或等於開始欄位",
"1",
txt_ROUTE_E.ClientID,
arl_Return);
#endregion
}
#endregion
#region 欄位[發票號碼]和[路線]只能擇一輸入
if (this.txt_INV_NO.Text.Trim() != string.Empty &&
this.slp_ROUTE_B.Text.Trim() != string.Empty)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[發票號碼]和[路線]只能擇一輸入!", "1", string.Empty); }
#endregion
#region 欄位[發票對帳單送達]選擇[到店]時,欄位[路線]為必填欄位
if (this.slp_INVOICE_SEND.Text == "1")//到店
{ arl_Return = CAAComm.Check_MustFillin_Column(this.slp_ROUTE_B.Text, "text", "欄位[發票對帳單送達]選擇[到店]時,欄位[路線]為必填欄位", "1", this.slp_ROUTE_B.TextBox_Code.ClientID, arl_Return); }
#endregion
#endregion
return arl_Return;
}
示例3: Check_Condition
//.........这里部分代码省略.........
this.slp_3_PERIOD_MONTH_E.Text,
"string",
"欄位[申報期別]結束欄位一定要大於或等於開始欄位",
"1",
string.Empty,
arl_Return);
#endregion
}
#endregion
#region 欄位[結帳年月] 20110520 RIKA INSERT
if (this.slp_3_CLOSE_MONTH_B.Text != string.Empty ||
this.slp_3_CLOSE_MONTH_E.Text != string.Empty)
{
#region 檢查Between欄位如果輸入其中一個欄位則另一個欄位也必須填值
arl_Return = CAAComm.Check_Between_BeginEnd_Value
(this.slp_3_CLOSE_MONTH_B.Text,
this.slp_3_CLOSE_MONTH_E.Text,
"結帳年月",
"1",
string.Empty,
string.Empty,
arl_Return);
#endregion
#region 檢查Between欄位結束欄位一定要大於或等於開始欄位
arl_Return = CAAComm.Check_Between_End_GreaterThan_Begin
(this.slp_3_CLOSE_MONTH_B.Text,
this.slp_3_CLOSE_MONTH_E.Text,
"string",
"欄位[結帳年月]結束欄位一定要大於或等於開始欄位",
"1",
string.Empty,
arl_Return);
#endregion
}
#endregion
#region 欄位[結帳年月-財會] 20110520 RIKA INSERT
if (this.slp_3_CLOSE_MONTH_ACCT_B.Text != string.Empty ||
this.slp_3_CLOSE_MONTH_ACCT_E.Text != string.Empty)
{
#region 檢查Between欄位如果輸入其中一個欄位則另一個欄位也必須填值
arl_Return = CAAComm.Check_Between_BeginEnd_Value
(this.slp_3_CLOSE_MONTH_ACCT_B.Text,
this.slp_3_CLOSE_MONTH_ACCT_E.Text,
"結帳年月-財會",
"1",
string.Empty,
string.Empty,
arl_Return);
#endregion
#region 檢查Between欄位結束欄位一定要大於或等於開始欄位
arl_Return = CAAComm.Check_Between_End_GreaterThan_Begin
(this.slp_3_CLOSE_MONTH_ACCT_B.Text,
this.slp_3_CLOSE_MONTH_ACCT_E.Text,
"string",
"欄位[結帳年月-財會]結束欄位一定要大於或等於開始欄位",
"1",
string.Empty,
arl_Return);
#endregion
}
#endregion
#endregion
}
#endregion
#region TAB 月結
if (s_Type == "TAB 月結")
{
#region 檢查必填欄位
arl_Return = CAAComm.Check_MustFillin_Column(this.slp_4_CLOSE_MONTH.Text, "text", "欄位[月結年月]為必填欄位", "1", this.slp_4_CLOSE_MONTH.TextBoxCode_Object.ClientID, arl_Return);
#endregion
}
#endregion
return arl_Return;
}
示例4: Check_Condition
/// <summary>
/// 檢查條件
/// </summary>
/// <param name="s_Type"></param>
/// <returns></returns>
static ArrayList Check_Condition(string[] s_Array_ServerString)
{
#region 宣告
BCO.CAACommon CAAComm = new BCO.CAACommon();
ArrayList arl_Return = new ArrayList();
arl_Return.Add(string.Empty);//該欄位放Focus欄位之ClientID
arl_Return.Add(string.Empty);//該欄位放錯誤訊息
#endregion
#region 檢查必填欄位
arl_Return = CAAComm.Check_MustFillin_Column(s_Array_ServerString[1], "text", "欄位[結帳日期]開始欄位為必填欄位", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(s_Array_ServerString[2], "text", "欄位[結帳日期]結束欄位為必填欄位", "1", string.Empty, arl_Return);
#endregion
#region 檢查SLP日期格式
arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[1], "欄位[結帳日期]開始欄位日期格式錯誤", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[2], "欄位[結帳日期]結束欄位日期格式錯誤", "1", string.Empty, arl_Return);
#endregion
#region 如果基本檢查有誤,則Return
if (arl_Return[1].ToString() != string.Empty)
{ return arl_Return; }
#endregion
#region 檢查Between欄位
#region 欄位[結帳日期]
if (s_Array_ServerString[1] != string.Empty ||
s_Array_ServerString[2] != string.Empty)
{
#region 檢查Between欄位如果輸入其中一個欄位則另一個欄位也必須填值
arl_Return = CAAComm.Check_Between_BeginEnd_Value
(s_Array_ServerString[1],
s_Array_ServerString[2],
"結帳日期",
"1",
string.Empty,
string.Empty,
arl_Return);
#endregion
#region 檢查Between欄位結束欄位一定要大於或等於開始欄位
arl_Return = CAAComm.Check_Between_End_GreaterThan_Begin
(s_Array_ServerString[1],
s_Array_ServerString[2],
"date",
"欄位[結帳日期]結束欄位一定要大於或等於開始欄位",
"1",
string.Empty,
arl_Return);
#endregion
}
#endregion
#region 欄位[利潤中心]
if (s_Array_ServerString[3] != string.Empty ||
s_Array_ServerString[4] != string.Empty)
{
#region 檢查Between欄位如果輸入其中一個欄位則另一個欄位也必須填值
arl_Return = CAAComm.Check_Between_BeginEnd_Value
(s_Array_ServerString[3],
s_Array_ServerString[4],
"利潤中心",
"1",
string.Empty,
string.Empty,
arl_Return);
#endregion
#region 檢查Between欄位結束欄位一定要大於或等於開始欄位
arl_Return = CAAComm.Check_Between_End_GreaterThan_Begin
(s_Array_ServerString[3],
s_Array_ServerString[4],
"string",
"欄位[利潤中心]結束欄位一定要大於或等於開始欄位",
"1",
string.Empty,
//.........这里部分代码省略.........
示例5: Check_Condition
/// <summary>
/// 檢查條件
/// </summary>
/// <param name="s_Type"></param>
/// <returns></returns>
private ArrayList Check_Condition(string s_Type)
{
#region 宣告
CAAModel.CAACommon CAAComm = new CAAModel.CAACommon();
ArrayList arl_Return = new ArrayList();
arl_Return.Add(string.Empty);//該欄位放Focus欄位之ClientID
arl_Return.Add(string.Empty);//該欄位放錯誤訊息
#endregion
#region BUTTON [儲存]鈕,編輯狀態
if (s_Type == "BUTTON [儲存]鈕,編輯狀態")
{
#region 檢查日期格式
arl_Return = CAAComm.Check_Format_Date(this.slp_SAL_DATE.Text, "欄位[營業日期]日期格式錯誤", "1", this.slp_SAL_DATE.DateTextBox.ClientID, arl_Return);
arl_Return = CAAComm.Check_Format_Date(this.txt_COLL_DATE.Text, "欄位[交易日期]日期格式錯誤", "1", this.txt_COLL_DATE.ClientID, arl_Return);
arl_Return = CAAComm.Check_Format_Date(this.txt_COLL_TIME.Text, "欄位[交易時間]時間格式錯誤", "1", this.txt_COLL_TIME.ClientID, arl_Return);
#endregion
#region 檢查數字格式
arl_Return = CAAComm.Check_Format_Int(this.txt_COLL_SEQNO.Text, "欄位[交易序號]數字格式錯誤", "64", "1", this.txt_COLL_SEQNO.ClientID, arl_Return);
arl_Return = CAAComm.Check_Format_Int(this.txt_PAY_CHKNO.Text, "欄位[繳款識別碼]數字格式錯誤", "32", "1", this.txt_PAY_CHKNO.ClientID, arl_Return);
#endregion
#region 檢查欄位的Byte長度
if (CAAComm.Get_Byte_Length(this.txt_COLL_SEQNO.Text) > 10)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[交易序號]長度不可大於 10 Byte", "1", this.txt_COLL_SEQNO.ClientID); }
if (CAAComm.Get_Byte_Length(this.txt_PAY_CHKNO.Text) > 9)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[繳款識別碼]長度不可大於 9 Byte", "1", this.txt_PAY_CHKNO.ClientID); }
if (CAAComm.Get_Byte_Length(this.txt_MEMO.Text) > 200)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[原因說明]長度不可大於 200 Byte", "1", this.txt_MEMO.ClientID); }
#endregion
#region 檢查必填欄位
arl_Return = CAAComm.Check_MustFillin_Column(this.slp_CHARGE.Text, "text", "欄位[手續費]為必填欄位", "1", this.slp_CHARGE.TextBox_Code.ClientID, arl_Return);
#endregion
}
#endregion
#region BUTTON [編輯]鈕,檢視狀態
else if (s_Type == "BUTTON [編輯]鈕,檢視狀態")
{
}
#endregion
return arl_Return;
}
示例6: Check_Condition
/// <summary>
/// 檢查條件
/// </summary>
/// <returns></returns>
private ArrayList Check_Condition(string s_Type)
{
#region 宣告
BCO_CAA.CAACommon CAAComm = new BCO_CAA.CAACommon();
ArrayList arl_Return = new ArrayList();
arl_Return.Add(string.Empty);//該欄位放Focus欄位之ClientID
arl_Return.Add(string.Empty);//該欄位放錯誤訊息
#endregion
#region BUTTON [查詢]鈕
if (s_Type == "BUTTON [查詢]鈕")
{
#region 檢查必填欄位
arl_Return = CAAComm.Check_MustFillin_Column(this.slp_ST_ACCEPT_DATE.Text, "text", "欄位[門市進貨日]為必填欄位", "1", this.slp_ST_ACCEPT_DATE.DateTextBox.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.txt_PICK_BATCH.Text, "text", "欄位[理貨批次]為必填欄位", "1", this.txt_PICK_BATCH.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.txt_FULL_BARCODE.Text, "text", "欄位[商品條碼]為必填欄位", "1", this.txt_FULL_BARCODE.ClientID, arl_Return);
#endregion
#region 檢查SLP日期格式
arl_Return = CAAComm.Check_Format_Date(this.slp_ST_ACCEPT_DATE.Text, "欄位[門市進貨日]日期格式錯誤", "1", this.slp_ST_ACCEPT_DATE.DateTextBox.ClientID, arl_Return);
#endregion
#region 如果基本檢查有誤,則Return
if (arl_Return[1].ToString() != string.Empty)
{ return arl_Return; }
#endregion
#region 檢查Between欄位[理貨線]
if (this.ddl_LINE_B.SelectedValue != string.Empty ||
this.ddl_LINE_E.SelectedValue != string.Empty)
{
#region 檢查Between欄位結束欄位一定要大於或等於開始欄位
arl_Return = CAAComm.Check_Between_End_GreaterThan_Begin
(this.ddl_LINE_B.Text,
this.ddl_LINE_E.Text,
"string",
"欄位[理貨線]結束欄位一定要大於或等於開始欄位",
"1",
string.Empty,
arl_Return);
#endregion
}
#endregion
}
#endregion
#region BUTTON [檔案下載]鈕
else
{
#region 檢查儲存 GirdView 的 ViewState 是否有值
if (dt_Result == null ||
dt_Result.Rows.Count == 0)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "無資料可供下載", "1", string.Empty); }
#endregion
}
#endregion
return arl_Return;
}
示例7: Check_Condition
/// <summary>
/// 檢查條件
/// </summary>
/// <returns></returns>
private ArrayList Check_Condition(string s_Type)
{
#region 宣告
CAAModel.CAACommon CAAComm = new CAAModel.CAACommon();
ArrayList arl_Return = new ArrayList();
arl_Return.Add(string.Empty);//該欄位放Focus欄位之ClientID
arl_Return.Add(string.Empty);//該欄位放錯誤訊息
#endregion
#region 新增模式
if (s_Type == "Insert")
{
#region 檢查SLP數字格式
arl_Return = CAAComm.Check_Format_Int(this.SLP_DUE_AMT.Text, "欄位[調整金額]數字格式錯誤", "64", "1", this.SLP_DUE_AMT.TextBox_Code.ClientID, arl_Return);
#endregion
#region 檢查SLP年月格式
arl_Return = CAAComm.Check_Format_YearMonth(this.txtCLOSE_MONTH.Text, "欄位[結帳年月]年月格式錯誤", "1", this.txtCLOSE_MONTH.TextBoxCode_Object.ClientID, arl_Return);
#endregion
#region 檢查必填欄位
arl_Return = CAAComm.Check_MustFillin_Column(this.SLP_STORE_ID.Text, "text", "欄位[店號]為必填欄位", "1", this.SLP_STORE_ID.TextBox_Code.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.SLP_ROOT_NO.Text, "text", "欄位[商品群分類]為必填欄位", "1", this.SLP_ROOT_NO.TextBox_Code.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.ddlTaxType.Text, "text", "欄位[稅別]為必填欄位", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.SLP_DUE_AMT.Text, "text", "欄位[調整金額]為必填欄位", "1", this.SLP_DUE_AMT.TextBox_Code.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.txtCLOSE_MONTH.Text, "text", "欄位[結帳年月]為必填欄位", "1", this.txtCLOSE_MONTH.ClientID, arl_Return);
#endregion
#region 如果基本檢查有誤,則Return
if (arl_Return[1].ToString() != string.Empty)
{ return arl_Return; }
#endregion
#region 自訂檢查
#region 檢查店號
//新增模式下,店號必須以 sysdate 為基準來做查詢
//編輯模式下,店號必須以該筆資料的 createdate 為基準來做查詢
if (Check_Store_Id(this.SLP_STORE_ID.Text, DateTime.Now) == false)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[店號]必須是有效的店號", "1", this.SLP_STORE_ID.TextBox_Code.ClientID); }
#endregion
#region 檢查商品群分類代碼
if (Check_RootNo(this.SLP_ROOT_NO.Text) == false)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[商品群分類]必須是有效的群分類代號", "1", this.SLP_ROOT_NO.TextBox_Code.ClientID); }
#endregion
#region 檢查欄位[調整金額]不可為零(如果型式選擇(帳款互沖)為列外狀態可以為零)
if (SLP_SOURCE_TYPE.Text.Trim() != "3")
{
if (Int64.Parse(this.SLP_DUE_AMT.Text) <= 0)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[調整金額]必須大於零", "1", this.SLP_DUE_AMT.TextBox_Code.ClientID); }
}
#endregion
#endregion
}
#endregion
#region 編輯模式
else if (s_Type == "Edit")
{
#region 檢查SLP數字格式
arl_Return = CAAComm.Check_Format_Int(this.SLP_DUE_AMT.Text, "欄位[調整金額]數字格式錯誤", "64", "1", this.SLP_DUE_AMT.TextBox_Code.ClientID, arl_Return);
#endregion
#region 檢查SLP年月格式
arl_Return = CAAComm.Check_Format_YearMonth(this.txtCLOSE_MONTH.Text, "欄位[結帳年月]年月格式錯誤", "1", this.txtCLOSE_MONTH.TextBoxCode_Object.ClientID, arl_Return);
#endregion
#region 檢查必填欄位
arl_Return = CAAComm.Check_MustFillin_Column(this.SLP_STORE_ID.Text, "text", "欄位[店號]為必填欄位", "1", this.SLP_STORE_ID.TextBox_Code.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.SLP_ROOT_NO.Text, "text", "欄位[商品群分類]為必填欄位", "1", this.SLP_ROOT_NO.TextBox_Code.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.ddlTaxType.Text, "text", "欄位[稅別]為必填欄位", "1", string.Empty, arl_Return);
//.........这里部分代码省略.........
示例8: Check_Condition
/// <summary>
/// 檢查條件
/// </summary>
/// <returns></returns>
private ArrayList Check_Condition(string s_Type)
{
#region 宣告
BCO.CAACommon CAAComm = new BCO.CAACommon();
ArrayList arl_Return = new ArrayList();
arl_Return.Add(string.Empty);//該欄位放Focus欄位之ClientID
arl_Return.Add(string.Empty);//該欄位放錯誤訊息
#endregion
#region TAB1的檢查
if (s_Type == "TAB1")
{
#region 檢查必填欄位
arl_Return = CAAComm.Check_MustFillin_Column(this.slp_tab1_DATE_B.Text, "text", "欄位[起迄年月]開始欄位為必填欄位", "1", this.slp_tab1_DATE_B.TextBoxCode_Object.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.slp_tab1_DATE_E.Text, "text", "欄位[起迄年月]結束欄位為必填欄位", "1", this.slp_tab1_DATE_E.TextBoxCode_Object.ClientID, arl_Return);
#endregion
#region 檢查SLP年月格式
arl_Return = CAAComm.Check_Format_YearMonth(this.slp_tab1_DATE_B.Text, "欄位[起迄年月]開始欄位年月格式錯誤", "1", this.slp_tab1_DATE_B.TextBoxCode_Object.ClientID, arl_Return);
arl_Return = CAAComm.Check_Format_YearMonth(this.slp_tab1_DATE_E.Text, "欄位[起迄年月]結束欄位年月格式錯誤", "1", this.slp_tab1_DATE_E.TextBoxCode_Object.ClientID, arl_Return);
#endregion
#region 檢查Between欄位
#region 欄位[起迄年月]
if (this.slp_tab1_DATE_B.Text != string.Empty &&
this.slp_tab1_DATE_E.Text != string.Empty)
{
#region 檢查Between欄位結束欄位一定要大於或等於開始欄位
arl_Return = CAAComm.Check_Between_End_GreaterThan_Begin
(this.slp_tab1_DATE_B.Text,
this.slp_tab1_DATE_E.Text,
"string",
"欄位[起迄年月]結束欄位一定要大於或等於開始欄位",
"1",
this.slp_tab1_DATE_E.TextBoxCode_Object.ClientID,
arl_Return);
#endregion
}
#endregion
#endregion
}
#endregion
#region BUTTON [確定匯入]
else if (s_Type == "BUTTON [確定匯入]")
{
#region 自訂檢查
TextBox txt_UP11 = (TextBox)this.UploadStatusPanel1.FindControl("txtUP11");//處理總筆數
TextBox txt_UP12 = (TextBox)this.UploadStatusPanel1.FindControl("txtUP12");//成功筆數
TextBox txt_UP13 = (TextBox)this.UploadStatusPanel1.FindControl("txtUP13");//異常筆數
int i_Total_Count = int.Parse(txt_UP11.Text);
int i_Success_Count = int.Parse(txt_UP12.Text);
int i_Failure_Count = int.Parse(txt_UP13.Text);
if (((i_Total_Count == i_Success_Count) &&
(i_Failure_Count == 0)) == false)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "上傳檔案有誤,不可匯入", "1", string.Empty); }
#endregion
}
#endregion
return arl_Return;
}
示例9: Check_Condition_FileLine
/// <summary>
/// 檢查文字檔條件
/// </summary>
/// <param name="s_FileLine"></param>
/// <returns></returns>
private ArrayList Check_Condition_FileLine(string s_FileLine, DataTable dt_Temp)
{
#region 規則
/*
*格式代號 VARCHAR2(2) [INV_FORM] :1~2
*流水號 NUMBER(16) [SEQ_NO] :12~18
*年月 VARCHAR2(6) [INV_YM] :19~23
*客戶統編 VARCHAR2(10) [RFNO] :24~31
*銷項發票 VARCHAR2(10) [INV_NO] :40~49
*銷售額 NUMBER(12) [INV_UAMT] :50~61
*課稅別 NUMBER(1) [TAX_TYPE] :62
*稅額 NUMBER(12) [INV_TAX] :63~72
*/
#endregion
#region 宣告
BCO.CAACommon CAAComm = new BCO.CAACommon();
BCO.ImportCOLLPO bco = new BCO.ImportCOLLPO(ConntionDB);
ArrayList arl_Return = new ArrayList();
arl_Return.Add(string.Empty);//該欄位放Focus欄位之ClientID
arl_Return.Add(string.Empty);//該欄位放錯誤訊息
#endregion
#region 檢查字串長度
//字串每一行都固定有81個字
if (s_FileLine.Length < 81)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "字串長度不正確;", "1", string.Empty); }
#endregion
#region 如果檢查字串長度有誤,則Return
if (arl_Return[1].ToString() != string.Empty)
{ return arl_Return; }
#endregion
#region 檢查數字格式
arl_Return = CAAComm.Check_Format_Int(s_FileLine.Substring(11, 7), "[流水號]數字格式有誤;", "32", "1", string.Empty, arl_Return);//流水號
arl_Return = CAAComm.Check_Format_Int(s_FileLine.Substring(49, 12), "[銷售額]數字格式有誤;", "64", "1", string.Empty, arl_Return);//銷售額
arl_Return = CAAComm.Check_Format_Int(s_FileLine.Substring(62, 10), "[稅額]數字格式有誤;", "64", "1", string.Empty, arl_Return);//稅額
#endregion
#region 檢查必填欄位
arl_Return = CAAComm.Check_MustFillin_Column(s_FileLine.Substring(0, 2), "text", "[格式代號]為必填欄位;", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(s_FileLine.Substring(11, 7), "text", "[流水號]為必填欄位;", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(s_FileLine.Substring(18, 5), "text", "[年月]為必填欄位;", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(s_FileLine.Substring(39, 10), "text", "[銷項發票]為必填欄位;", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(s_FileLine.Substring(49, 12), "text", "[銷售額]為必填欄位;", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(s_FileLine.Substring(61, 1), "text", "[課稅別]為必填欄位;", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(s_FileLine.Substring(62, 10), "text", "[稅額]為必填欄位;", "1", string.Empty, arl_Return);
#endregion
#region 如果檢查數字格式,必填欄位有誤,則Return
if (arl_Return[1].ToString() != string.Empty)
{ return arl_Return; }
#endregion
#region 檢查年月格式
try
{
string s_YearMonth = Convert.ToString(int.Parse(s_FileLine.Substring(18, 5)) + 191100);
arl_Return = CAAComm.Check_Format_YearMonth(s_YearMonth, "[年月]年月格式有誤;", "1", string.Empty, arl_Return);//年月
}
catch
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "[年月]年月格式有誤;", "1", string.Empty); }
#endregion
#region 檢查格式代號
if (s_FileLine.Substring(0, 2) != "31" &&
s_FileLine.Substring(0, 2) != "32" &&
s_FileLine.Substring(0, 2) != "33" &&
s_FileLine.Substring(0, 2) != "34")
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "[格式代號]只有31,32,33,34四種格式;", "1", string.Empty); }
#endregion
#region 檢查發票字軌
System.Text.RegularExpressions.Regex reg1 = new System.Text.RegularExpressions.Regex(@"^[A-Z]+$");
bool b_Inv_Track = reg1.IsMatch(s_FileLine.Substring(39, 2));
//.........这里部分代码省略.........
示例10: Check_Condition
/// <summary>
/// 檢查條件
/// </summary>
/// <param name="s_Type"></param>
/// <returns></returns>
private ArrayList Check_Condition(string s_Type)
{
#region 宣告
BCO.CAACommon CAAComm = new BCO.CAACommon();
ArrayList arl_Return = new ArrayList();
arl_Return.Add(string.Empty);//該欄位放Focus欄位之ClientID
arl_Return.Add(string.Empty);//該欄位放錯誤訊息
#endregion
#region 頁籤=整批兌現
#region BUTTON [查詢]鈕
if (s_Type == "頁籤=整批兌現 BUTTON [查詢]鈕")
{
#region 檢查SLP日期格式
arl_Return = CAAComm.Check_Format_Date(this.slp_tab2_EX_DUE_DATE.StartDate, "欄位[票據預計兌現日]開始欄位日期格式錯誤", "1", this.slp_tab2_EX_DUE_DATE.RangeStartTextBox.ClientID, arl_Return);
arl_Return = CAAComm.Check_Format_Date(this.slp_tab2_EX_DUE_DATE.EndDate, "欄位[票據預計兌現日]結束欄位日期格式錯誤", "1", this.slp_tab2_EX_DUE_DATE.RangeEndTextBox.ClientID, arl_Return);
#endregion
#region 檢查必填欄位
arl_Return = CAAComm.Check_MustFillin_Column(this.slp_tab2_EX_DUE_DATE.StartDate, "text", "欄位[票據預計兌現日]開始欄位為必填欄位", "1", this.slp_tab2_EX_DUE_DATE.RangeStartTextBox.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.slp_tab2_EX_DUE_DATE.EndDate, "text", "欄位[票據預計兌現日]結束欄位為必填欄位", "1", this.slp_tab2_EX_DUE_DATE.RangeEndTextBox.ClientID, arl_Return);
#endregion
#region 如果基本檢查有誤,則Return
if (arl_Return[1].ToString() != string.Empty)
{ return arl_Return; }
#endregion
#region 檢查Between欄位
#region 欄位[票據預計兌現日]
if (this.slp_tab2_EX_DUE_DATE.StartDate != string.Empty ||
this.slp_tab2_EX_DUE_DATE.EndDate != string.Empty)
{
#region 檢查Between欄位如果輸入其中一個欄位則另一個欄位也必須填值
arl_Return = CAAComm.Check_Between_BeginEnd_Value
(this.slp_tab2_EX_DUE_DATE.StartDate,
this.slp_tab2_EX_DUE_DATE.EndDate,
"票據預計兌現日",
"1",
this.slp_tab2_EX_DUE_DATE.RangeStartTextBox.ClientID,
this.slp_tab2_EX_DUE_DATE.RangeEndTextBox.ClientID,
arl_Return);
#endregion
#region 檢查Between欄位結束欄位一定要大於或等於開始欄位
arl_Return = CAAComm.Check_Between_End_GreaterThan_Begin
(this.slp_tab2_EX_DUE_DATE.StartDate,
this.slp_tab2_EX_DUE_DATE.EndDate,
"date",
"欄位[票據預計兌現日]結束欄位一定要大於或等於開始欄位",
"1",
this.slp_tab2_EX_DUE_DATE.RangeEndTextBox.ClientID,
arl_Return);
#endregion
}
#endregion
#endregion
}
#endregion
#endregion
#region 頁籤=月結處理
else if (s_Type == "頁籤=月結處理")
{
#region 檢查SLP年月格式
arl_Return = CAAComm.Check_Format_YearMonth(this.slp_YearMonth.Text, "欄位[月結年月]年月格式錯誤", "1", this.slp_YearMonth.TextBoxCode_Object.ClientID, arl_Return);
#endregion
#region 檢查必填欄位
arl_Return = CAAComm.Check_MustFillin_Column(this.slp_YearMonth.Text, "text", "欄位[月結年月]為必填欄位", "1", this.slp_YearMonth.TextBoxCode_Object.ClientID, arl_Return);
//.........这里部分代码省略.........
示例11: Check_Condition
/// <summary>
/// 檢查條件
/// </summary>
/// <param name="s_Type"></param>
/// <returns></returns>
private ArrayList Check_Condition(string s_Type)
{
#region 宣告
BCO.CAACommon CAAComm = new BCO.CAACommon();
ArrayList arl_Return = new ArrayList();
arl_Return.Add(string.Empty);//該欄位放Focus欄位之ClientID
arl_Return.Add(string.Empty);//該欄位放錯誤訊息
#endregion
#region BUTTON [確定匯入]
if (s_Type == "BUTTON [確定匯入]")
{
#region 自訂檢查
TextBox txt_UP11 = (TextBox)this.UploadStatusPanel1.FindControl("txtUP11");//處理總筆數
TextBox txt_UP12 = (TextBox)this.UploadStatusPanel1.FindControl("txtUP12");//成功筆數
TextBox txt_UP13 = (TextBox)this.UploadStatusPanel1.FindControl("txtUP13");//異常筆數
int i_Total_Count = int.Parse(txt_UP11.Text);
int i_Success_Count = int.Parse(txt_UP12.Text);
int i_Failure_Count = int.Parse(txt_UP13.Text);
//20110211 Rika 因應沖正資料問題修改
if (i_Failure_Count >0 )
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "上傳檔案有誤,不可匯入", "1", string.Empty); }
#endregion
}
#endregion
#region BUTTON [解除月結]
else if (s_Type == "BUTTON [月結]" ||
s_Type == "BUTTON [解除月結]")
{
#region 檢查SLP年月格式
arl_Return = CAAComm.Check_Format_YearMonth(this.slp_YearMonth.Text, "欄位[月結月份]年月格式錯誤", "1", this.slp_YearMonth.TextBoxCode_Object.ClientID, arl_Return);
#endregion
#region 檢查必填欄位
arl_Return = CAAComm.Check_MustFillin_Column(this.slp_YearMonth.Text, "text", "欄位[月結月份]為必填欄位", "1", this.slp_YearMonth.TextBoxCode_Object.ClientID, arl_Return);
#endregion
}
#endregion
return arl_Return;
}
示例12: Check_Condition
/// <summary>
/// 檢查條件
/// </summary>
/// <param name="s_Type"></param>
/// <returns></returns>
private ArrayList Check_Condition()
{
#region 宣告
CAAModel.CAACommon CAAComm = new CAAModel.CAACommon();
ArrayList arl_Return = new ArrayList();
arl_Return.Add(string.Empty);//該欄位放Focus欄位之ClientID
arl_Return.Add(string.Empty);//該欄位放錯誤訊息
#endregion
#region 檢查必填欄位
arl_Return = CAAComm.Check_MustFillin_Column(this.slp_YearMonth_S.Text, "text", "欄位[結帳年月]開始欄位為必填欄位", "1", this.slp_YearMonth_S.TextBoxCode_Object.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.slp_YearMonth_E.Text, "text", "欄位[結帳年月]結束欄位為必填欄位", "1", this.slp_YearMonth_E.TextBoxCode_Object.ClientID, arl_Return);
#endregion
#region 檢查SLP年月格式
arl_Return = CAAComm.Check_Format_YearMonth(this.slp_YearMonth_S.Text, "欄位[發票年月]開始欄位年月格式錯誤", "1", this.slp_YearMonth_S.TextBoxCode_Object.ClientID, arl_Return);
arl_Return = CAAComm.Check_Format_YearMonth(this.slp_YearMonth_E.Text, "欄位[發票年月]結束欄位年月格式錯誤", "1", this.slp_YearMonth_E.TextBoxCode_Object.ClientID, arl_Return);
#endregion
#region 如果基本檢查有誤,則Return
if (arl_Return[1].ToString() != string.Empty)
{ return arl_Return; }
#endregion
#region 檢查Between欄位
#region 檢查Between欄位結束欄位一定要大於或等於開始欄位
arl_Return = CAAComm.Check_Between_End_GreaterThan_Begin
(this.slp_YearMonth_S.Text,
this.slp_YearMonth_E.Text,
"string",
"欄位[發票年月]結束欄位一定要大於或等於開始欄位",
"1",
this.slp_YearMonth_E.TextBoxCode_Object.ClientID,
arl_Return);
#endregion
#endregion
return arl_Return;
}
示例13: Check_Condition
private ArrayList Check_Condition()
{
#region 宣告
CAAModel.CAACommon CAAComm = new CAAModel.CAACommon();
ArrayList arl_Return = new ArrayList();
arl_Return.Add(string.Empty);//該欄位放Focus欄位之ClientID
arl_Return.Add(string.Empty);//該欄位放錯誤訊息
#endregion
#region 檢查必填欄位
arl_Return = CAAComm.Check_MustFillin_Column(this.slp_YearMonth.Text, "text", "欄位[所屬年月]為必填欄位", "1", this.slp_YearMonth.TextBoxCode_Object.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.txt_INVOICE_TRACK.Text, "text", "欄位[字軌]為必填欄位", "1", this.txt_INVOICE_TRACK.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.SLP_STAR_NO.Text, "text", "欄位[起始號碼]為必填欄位", "1", this.SLP_STAR_NO.TextBox_Code.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.SLP_END_NO.Text, "text", "欄位[迄止號碼]為必填欄位", "1", this.SLP_END_NO.TextBox_Code.ClientID, arl_Return);
#endregion
#region 檢查SLP年月格式
arl_Return = CAAComm.Check_Format_YearMonth(this.slp_YearMonth.Text, "欄位[所屬年月]開始欄位格式錯誤", "1", slp_YearMonth.TextBoxCode_Object.ClientID, arl_Return);
#endregion
#region 檢查SLP數字格式
arl_Return = CAAComm.Check_Format_Int(this.SLP_STAR_NO.Text, "欄位[起始號碼]數字格式錯誤", "32", "1", this.SLP_STAR_NO.TextBox_Code.ClientID, arl_Return);
arl_Return = CAAComm.Check_Format_Int(this.SLP_END_NO.Text, "欄位[迄止號碼]數字格式錯誤", "32", "1", this.SLP_END_NO.TextBox_Code.ClientID, arl_Return);
#endregion
#region 如果基本檢查有誤,則Return
if (arl_Return[1].ToString() != string.Empty)
{ return arl_Return; }
#endregion
#region 檢查發票字軌格式
System.Text.RegularExpressions.Regex reg1 = new System.Text.RegularExpressions.Regex(@"^[a-zA-Z]{2}$");
bool b_reg1 = reg1.IsMatch(this.txt_INVOICE_TRACK.Text);
if (b_reg1 == false)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[發票字軌]格式有誤", "1", this.txt_INVOICE_TRACK.ClientID); }
#endregion
#region 檢查欄位[起始號碼]必須為8碼數目字
System.Text.RegularExpressions.Regex reg2 = new System.Text.RegularExpressions.Regex(@"^[0-9]{8}$");
bool b_reg2 = reg2.IsMatch(this.SLP_STAR_NO.Text);
if (b_reg2 == false)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[起始號碼]必須為8碼數目字", "1", this.SLP_STAR_NO.TextBox_Code.ClientID); }
#endregion
#region 檢查欄位[迄止號碼]必須為8碼數目字
System.Text.RegularExpressions.Regex reg3 = new System.Text.RegularExpressions.Regex(@"^[0-9]{8}$");
bool b_reg3 = reg3.IsMatch(this.SLP_END_NO.Text);
if (b_reg3 == false)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[迄止號碼]必須為8碼數目字", "1", this.SLP_END_NO.TextBox_Code.ClientID); }
#endregion
#region 檢查欄位[迄止號碼]一定要大於於欄位[起始號碼]
if (int.Parse(this.SLP_STAR_NO.Text.Trim()) >= int.Parse(this.SLP_END_NO.Text.Trim()))
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[迄止號碼]一定要大於於欄位[起始號碼]", "1", this.SLP_END_NO.TextBox_Code.ClientID); }
#endregion
return arl_Return;
}
示例14: Check_Condition
private ArrayList Check_Condition()
{
#region 宣告
CAAModel.CAACommon CAAComm = new CAAModel.CAACommon();
ArrayList arl_Return = new ArrayList();
arl_Return.Add(string.Empty);//該欄位放Focus欄位之ClientID
arl_Return.Add(string.Empty);//該欄位放錯誤訊息
#endregion
#region 按下[儲存]鈕
#region 檢查必填欄位
arl_Return = CAAComm.Check_MustFillin_Column(this.txt_BOND_ID.Text, "text", "欄位[票據號碼]為必填欄位", "1", this.txt_BOND_ID.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.slp_DUE_DATE.Text, "text", "欄位[到期日]為必填欄位", "1", this.slp_DUE_DATE.DateTextBox.ClientID, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(this.slp_NB_COLL_DATE.Text, "text", "欄位[票據託收日/交換日]為必填欄位", "1", this.slp_NB_COLL_DATE.DateTextBox.ClientID, arl_Return);
#endregion
#region 如果基本檢查有誤,則Return
if (arl_Return[1].ToString() != string.Empty)
{ return arl_Return; }
#endregion
#region 自訂檢查
#region 檢查欄位[票據託收日/交換日]必須大於或等於欄位[收票日]
if (Convert.ToDateTime(this.slp_NB_COLL_DATE.Text).CompareTo(Convert.ToDateTime(this.slp_ACCEPT_BOND_DATE.Text)) == -1)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[票據託收日/交換日]必須大於或等於欄位[收票日]", "1", this.slp_NB_COLL_DATE.DateTextBox.ClientID); }
#endregion
#region 檢查[票據號碼]是否重複
if (Check_BOND_ID() == false)
{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[票據號碼]資料重複", "1", string.Empty); }
#endregion
#region 檢查該張支票是否退票
//20101202修正 和CAA16不同 因只有總帳使用且不會影響結帳 所以不需判斷是否退票
//if (this.lb_REJECT_DATE.Text != string.Empty)
//{ arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "此支票已退票,不允許儲存!", "1", string.Empty); }
#endregion
#endregion
#endregion
return arl_Return;
}
示例15: Check_Condition
/// <summary>
/// 檢查條件
/// </summary>
/// <param name="s_Array_ServerString"></param>
/// <returns></returns>
static ArrayList Check_Condition(string[] s_Array_ServerString)
{
#region 宣告
BCO.CAACommon CAAComm = new BCO.CAACommon();
ArrayList arl_Return = new ArrayList();
arl_Return.Add(string.Empty);//該欄位放Focus欄位之ClientID
arl_Return.Add(string.Empty);//該欄位放錯誤訊息
#endregion
#region 檢查必填欄位
if (s_Array_ServerString[1] == "DATE0")
{
arl_Return = CAAComm.Check_MustFillin_Column(s_Array_ServerString[2], "text", "欄位[收票日]開始欄位為必填欄位", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(s_Array_ServerString[3], "text", "欄位[收票日]結束欄位為必填欄位", "1", string.Empty, arl_Return);
}
else if (s_Array_ServerString[1] == "DATE1")
{
arl_Return = CAAComm.Check_MustFillin_Column(s_Array_ServerString[4], "text", "欄位[託收日]開始欄位為必填欄位", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(s_Array_ServerString[5], "text", "欄位[託收日]結束欄位為必填欄位", "1", string.Empty, arl_Return);
}
else if (s_Array_ServerString[1] == "DATE2")
{
arl_Return = CAAComm.Check_MustFillin_Column(s_Array_ServerString[6], "text", "欄位[收款單號日期]開始欄位為必填欄位", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(s_Array_ServerString[7], "text", "欄位[收款單號日期]結束欄位為必填欄位", "1", string.Empty, arl_Return);
}
if (s_Array_ServerString[8] == "TYPE0")
{
arl_Return = CAAComm.Check_MustFillin_Column(s_Array_ServerString[9], "text", "欄位[營業所]開始欄位為必填欄位", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_MustFillin_Column(s_Array_ServerString[10], "text", "欄位[營業所]結束欄位為必填欄位", "1", string.Empty, arl_Return);
}
else if (s_Array_ServerString[8] == "TYPE1")
{ arl_Return = CAAComm.Check_MustFillin_Column(s_Array_ServerString[11], "text", "欄位[營業人員]為必填欄位", "1", string.Empty, arl_Return); }
else if (s_Array_ServerString[8] == "TYPE2")
{ arl_Return = CAAComm.Check_MustFillin_Column(s_Array_ServerString[12], "text", "欄位[帳務人員]為必填欄位", "1", string.Empty, arl_Return); }
#endregion
#region 檢查SLP日期格式
arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[2], "欄位[收票日]開始欄位日期格式錯誤", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[3], "欄位[收票日]結束欄位為必填欄位", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[4], "欄位[託收日]開始欄位日期格式錯誤", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[5], "欄位[託收日]結束欄位為必填欄位", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[6], "欄位[收款單號日期]開始欄位日期格式錯誤", "1", string.Empty, arl_Return);
arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[7], "欄位[收款單號日期]結束欄位為必填欄位", "1", string.Empty, arl_Return);
#endregion
#region 如果基本檢查有誤,則Return
if (arl_Return[1].ToString() != string.Empty)
{ return arl_Return; }
#endregion
#region 檢查Between欄位
#region 欄位[收票日]
if (s_Array_ServerString[2] != string.Empty ||
s_Array_ServerString[3] != string.Empty)
{
#region 檢查Between欄位如果輸入其中一個欄位則另一個欄位也必須填值
arl_Return = CAAComm.Check_Between_BeginEnd_Value
(s_Array_ServerString[2],
s_Array_ServerString[3],
"收票日",
"1",
string.Empty,
string.Empty,
arl_Return);
#endregion
#region 檢查Between欄位結束欄位一定要大於或等於開始欄位
arl_Return = CAAComm.Check_Between_End_GreaterThan_Begin
(s_Array_ServerString[2],
s_Array_ServerString[3],
"date",
"欄位[收票日]結束欄位一定要大於或等於開始欄位",
"1",
string.Empty,
arl_Return);
#endregion
}
#endregion
//.........这里部分代码省略.........