当前位置: 首页>>代码示例>>C#>>正文


C# CAACommon.Check_Between_BeginEnd_Value方法代码示例

本文整理汇总了C#中PIC.VDS2G.ACM.CAA.CAACommon.Check_Between_BeginEnd_Value方法的典型用法代码示例。如果您正苦于以下问题:C# CAACommon.Check_Between_BeginEnd_Value方法的具体用法?C# CAACommon.Check_Between_BeginEnd_Value怎么用?C# CAACommon.Check_Between_BeginEnd_Value使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PIC.VDS2G.ACM.CAA.CAACommon的用法示例。


在下文中一共展示了CAACommon.Check_Between_BeginEnd_Value方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Check_Condition

    /// <summary>
    /// 檢查條件
    /// </summary>
    /// <returns></returns>
    static ArrayList Check_Condition(string[] s_Array_ServerString)
    {
        #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日期格式

        if (s_Array_ServerString[2] == "____/__/__")
        { s_Array_ServerString[2] = string.Empty; }
        if (s_Array_ServerString[3] == "____/__/__")
        { s_Array_ServerString[3] = string.Empty; }

        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);

        #endregion

        #region 如果基本檢查有誤,則Return

        if (arl_Return[1].ToString() != string.Empty)
        { return arl_Return; }

        #endregion

        #region 檢查Between欄位

        #region 欄位[利潤中心]

        if (s_Array_ServerString[8] != string.Empty ||
            s_Array_ServerString[9] != string.Empty)
        {
            #region 檢查Between欄位如果輸入其中一個欄位則另一個欄位也必須填值

            arl_Return = CAAComm.Check_Between_BeginEnd_Value
                (s_Array_ServerString[8],
                 s_Array_ServerString[9],
                 "利潤中心",
                 "1",
                 s_Array_ServerString[8],
                 s_Array_ServerString[9],
                 arl_Return);

            #endregion

            #region 檢查Between欄位結束欄位一定要大於或等於開始欄位

            arl_Return = CAAComm.Check_Between_End_GreaterThan_Begin
                (s_Array_ServerString[8],
                 s_Array_ServerString[9],
                 "string",
                 "欄位[利潤中心]結束欄位一定要大於或等於開始欄位",
                 "1",
                 s_Array_ServerString[9],
                 arl_Return);

            #endregion
        }

        #endregion

        #region 欄位[營業所]

        if (s_Array_ServerString[10] != string.Empty ||
            s_Array_ServerString[11] != string.Empty)
        {
            #region 檢查Between欄位如果輸入其中一個欄位則另一個欄位也必須填值

            arl_Return = CAAComm.Check_Between_BeginEnd_Value
                (s_Array_ServerString[10],
                 s_Array_ServerString[11],
                 "營業所",
                 "1",
                 s_Array_ServerString[10],
                 s_Array_ServerString[11],
                 arl_Return);

            #endregion

            #region 檢查Between欄位結束欄位一定要大於或等於開始欄位

            arl_Return = CAAComm.Check_Between_End_GreaterThan_Begin
                (s_Array_ServerString[10],
                 s_Array_ServerString[11],
                 "string",
                 "欄位[營業所]結束欄位一定要大於或等於開始欄位",
                 "1",
                 s_Array_ServerString[10],
                 arl_Return);

            #endregion
//.........这里部分代码省略.........
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:101,代码来源:CAA321.aspx.cs

示例2: Check_Condition

    /// <summary>
    /// 檢查條件
    /// </summary>
    /// <param name="s_Type"></param>
    /// <returns></returns>
    static ArrayList Check_Condition(string s_Type, 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_Type == "0")
        {
            #region 檢查SLP日期格式

            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[13], "欄位[折讓日期]開始欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[14], "欄位[折讓日期]結束欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[16], "欄位[異動折讓日期]開始欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[17], "欄位[異動折讓日期]結束欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[19], "欄位[憑證已回日期]開始欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[20], "欄位[憑證已回日期]結束欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[25], "欄位[作廢日期]開始欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[26], "欄位[作廢日期]結束欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[28], "欄位[申報日期]開始欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[29], "欄位[申報日期]結束欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[31], "欄位[暫收日期]開始欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[32], "欄位[暫收日期]結束欄位日期格式錯誤", "1", string.Empty, arl_Return);

            #endregion

            #region 檢查SLP數字格式

            arl_Return = CAAComm.Check_Format_Int(s_Array_ServerString[36], "欄位[折讓金額(未稅)]數字格式錯誤", "32", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Int(s_Array_ServerString[38], "欄位[折讓稅額]數字格式錯誤", "32", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Int(s_Array_ServerString[40], "欄位[總金額]數字格式錯誤", "32", "1", string.Empty, arl_Return);

            //20110505 rika insert
            arl_Return = CAAComm.Check_Format_Int(s_Array_ServerString[48], "欄位[累積沖帳金額]數字格式錯誤", "32", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Int(s_Array_ServerString[50], "欄位[折讓餘額]數字格式錯誤", "32", "1", string.Empty, arl_Return);

            #endregion

            #region 檢查SLP年月格式

            arl_Return = CAAComm.Check_Format_YearMonth(s_Array_ServerString[42], "欄位[結帳年月起]年月格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_YearMonth(s_Array_ServerString[43], "欄位[結帳年月迄]年月格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_YearMonth(s_Array_ServerString[44], "欄位[結帳年月-財會起]年月格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_YearMonth(s_Array_ServerString[45], "欄位[結帳年月-財會迄]年月格式錯誤", "1", string.Empty, arl_Return);

            //20110506 rika insert
            arl_Return = CAAComm.Check_Format_YearMonth(s_Array_ServerString[46], "欄位[申報期別起]年月格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_YearMonth(s_Array_ServerString[47], "欄位[申報期別迄]年月格式錯誤", "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[13] != string.Empty ||
                s_Array_ServerString[14] != string.Empty)
            {
                #region 檢查Between欄位如果輸入其中一個欄位則另一個欄位也必須填值

                arl_Return = CAAComm.Check_Between_BeginEnd_Value
                    (s_Array_ServerString[13],
                     s_Array_ServerString[14],
                     "折讓日期",
                     "1",
                     string.Empty,
                     string.Empty,
                     arl_Return);

                #endregion

                #region 檢查Between欄位結束欄位一定要大於或等於開始欄位

                arl_Return = CAAComm.Check_Between_End_GreaterThan_Begin
                    (s_Array_ServerString[13],
                     s_Array_ServerString[14],
                     "date",
                     "欄位[折讓日期]結束欄位一定要大於或等於開始欄位",
                     "1",
                     string.Empty,
                     arl_Return);

//.........这里部分代码省略.........
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:101,代码来源:CAA181.aspx.cs

示例3: 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;
    }
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:97,代码来源:CAA251.aspx.cs

示例4: 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 SLP轉型

        TextBox txt_CHG_DISC_DATE_B = (TextBox)((ASP.wui_slp_slp_slpdate_ascx)this.slp_CHG_DISC_DATE.FindControl("SLP_SLPDate1")).FindControl("TextBoxCode");//[異動折讓日期]起
        TextBox txt_CHG_DISC_DATE_E = (TextBox)((ASP.wui_slp_slp_slpdate_ascx)this.slp_CHG_DISC_DATE.FindControl("SLP_SLPDate2")).FindControl("TextBoxCode");//[異動折讓日期]迄

        #endregion

        #region BUTTON [查詢]鈕

        if (s_Type == "BUTTON [查詢]鈕")
        {
            #region 檢查SLP年月格式

            arl_Return = CAAComm.Check_Format_YearMonth(this.slp_PERIOD_MONTH_B.Text, "欄位[申報起迄年月]開始欄位年月格式錯誤", "1", this.slp_PERIOD_MONTH_B.TextBoxCode_Object.ClientID, arl_Return);
            arl_Return = CAAComm.Check_Format_YearMonth(this.slp_PERIOD_MONTH_E.Text, "欄位[申報起迄年月]結束欄位年月格式錯誤", "1", this.slp_PERIOD_MONTH_E.TextBoxCode_Object.ClientID, arl_Return);

            #endregion

            #region 檢查SLP日期格式

            arl_Return = CAAComm.Check_Format_Date(this.slp_CHG_DISC_DATE.StartDate, "欄位[異動折讓日期]開始欄位日期格式錯誤", "1", txt_CHG_DISC_DATE_B.ClientID, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(this.slp_CHG_DISC_DATE.EndDate, "欄位[異動折讓日期]結束欄位日期格式錯誤", "1", txt_CHG_DISC_DATE_E.ClientID, arl_Return);

            #endregion

            #region 檢查List欄位的選擇狀態

            if (this.rad_CHECK_FLG.SelectedIndex < 0)
            { arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[勾選狀態]請選擇一選項", "1", string.Empty); }

            if (this.rad_PERIOD_FLG.SelectedIndex < 0)
            { 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 檢查Between欄位[發票年月]

            if (this.slp_PERIOD_MONTH_B.Text != string.Empty ||
                this.slp_PERIOD_MONTH_E.Text != string.Empty)
            {
                #region 檢查Between欄位如果輸入其中一個欄位則另一個欄位也必須填值

                arl_Return = CAAComm.Check_Between_BeginEnd_Value
                    (this.slp_PERIOD_MONTH_B.Text,
                    this.slp_PERIOD_MONTH_E.Text,
                    "申報起迄年月",
                    "1",
                    this.slp_PERIOD_MONTH_B.TextBoxCode_Object.ClientID,
                    this.slp_PERIOD_MONTH_E.TextBoxCode_Object.ClientID,
                    arl_Return);

                #endregion

                #region 檢查Between欄位結束欄位一定要大於或等於開始欄位

                arl_Return = CAAComm.Check_Between_End_GreaterThan_Begin
                    (this.slp_PERIOD_MONTH_B.Text,
                    this.slp_PERIOD_MONTH_E.Text,
                    "string",
                    "欄位[申報起迄年月]結束欄位一定要大於或等於開始欄位",
                    "1",
                    this.slp_PERIOD_MONTH_E.TextBoxCode_Object.ClientID,
                    arl_Return);

                #endregion
            }

            #endregion

            #region 欄位[異動折讓日期]

            if (this.slp_CHG_DISC_DATE.StartDate != string.Empty ||
                this.slp_CHG_DISC_DATE.EndDate != string.Empty)
            {
                #region 檢查Between欄位如果輸入其中一個欄位則另一個欄位也必須填值

                arl_Return = CAAComm.Check_Between_BeginEnd_Value
                    (this.slp_CHG_DISC_DATE.StartDate,
//.........这里部分代码省略.........
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:101,代码来源:CAA031.aspx.cs

示例5: 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,
//.........这里部分代码省略.........
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:101,代码来源:CAA341.aspx.cs

示例6: 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_FUNC_NO_B = (TextBox)this.slp_FUNC_NO_B.FindControl("TextBoxCode");//[功能號]起
        TextBox txt_FUNC_NO_E = (TextBox)this.slp_FUNC_NO_E.FindControl("TextBoxCode");//[功能號]迄
        TextBox txt_UPDATEDATE_B = (TextBox)((ASP.wui_slp_slp_slpdate_ascx)this.slp_UPDATEDATE.FindControl("SLP_SLPDate1")).FindControl("TextBoxCode");//[維護日期]起
        TextBox txt_UPDATEDATE_E = (TextBox)((ASP.wui_slp_slp_slpdate_ascx)this.slp_UPDATEDATE.FindControl("SLP_SLPDate2")).FindControl("TextBoxCode");//[維護日期]迄
        TextBox txt_MONTH_CLOSE_B = (TextBox)((ASP.wui_slp_slp_numberupdown_ascx)this.slp_MONTH_CLOSE_B.FindControl("SLP_NumberUpDown1")).FindControl("TextBoxCode");//[月結月份]起
        TextBox txt_MONTH_CLOSE_E = (TextBox)((ASP.wui_slp_slp_numberupdown_ascx)this.slp_MONTH_CLOSE_E.FindControl("SLP_NumberUpDown1")).FindControl("TextBoxCode");//[月結月份]迄


        #endregion

        #region 檢查SLP年月格式

        arl_Return = CAAComm.Check_Format_YearMonth(this.slp_MONTH_CLOSE_B.Text, "欄位[月結月份]開始欄位格式錯誤", "1", txt_MONTH_CLOSE_B.ClientID, arl_Return);
        arl_Return = CAAComm.Check_Format_YearMonth(this.slp_MONTH_CLOSE_E.Text, "欄位[月結月份]結束欄位格式錯誤", "1", txt_MONTH_CLOSE_E.ClientID, arl_Return);

        #endregion

        #region 檢查日期格式

        arl_Return = CAAComm.Check_Format_Date(this.slp_UPDATEDATE.StartDate, "欄位[維護日期]開始欄位日期格式錯誤", "1", txt_UPDATEDATE_B.ClientID, arl_Return);
        arl_Return = CAAComm.Check_Format_Date(this.slp_UPDATEDATE.EndDate, "欄位[維護日期]結束欄位日期格式錯誤", "1", txt_UPDATEDATE_E.ClientID, arl_Return);

        #endregion

        #region 如果基本檢查有誤,則Return

        if (arl_Return[1].ToString() != string.Empty)
        { return arl_Return; }

        #endregion

        #region 檢查Between欄位[功能號]

        if (this.slp_FUNC_NO_B.Text != string.Empty ||
            this.slp_FUNC_NO_E.Text != string.Empty)
        {
            #region 檢查Between欄位如果輸入其中一個欄位則另一個欄位也必須填值

            arl_Return = CAAComm.Check_Between_BeginEnd_Value
                (this.slp_FUNC_NO_B.Text,
                this.slp_FUNC_NO_E.Text,
                "功能號",
                "1",
                txt_FUNC_NO_B.ClientID,
                txt_FUNC_NO_E.ClientID,
                arl_Return);

            #endregion

            #region 檢查Between欄位結束欄位一定要大於或等於開始欄位

            arl_Return = CAAComm.Check_Between_End_GreaterThan_Begin
                (this.slp_FUNC_NO_B.Text,
                this.slp_FUNC_NO_E.Text,
                "string",
                "欄位[功能號]結束欄位一定要大於或等於開始欄位",
                "1",
                txt_FUNC_NO_E.ClientID,
                arl_Return);

            #endregion
        }

        #endregion

        #region 檢查Between欄位[月結月份]

        if (this.slp_MONTH_CLOSE_B.Text != string.Empty ||
            this.slp_MONTH_CLOSE_E.Text != string.Empty)
        {
            #region 檢查Between欄位如果輸入其中一個欄位則另一個欄位也必須填值

            arl_Return = CAAComm.Check_Between_BeginEnd_Value
                (this.slp_MONTH_CLOSE_B.Text,
                this.slp_MONTH_CLOSE_E.Text,
                "月結月份",
                "1",
                txt_MONTH_CLOSE_B.ClientID,
                txt_MONTH_CLOSE_E.ClientID,
                arl_Return);

            #endregion

//.........这里部分代码省略.........
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:101,代码来源:CAA281.aspx.cs

示例7: 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);

//.........这里部分代码省略.........
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:101,代码来源:CAA121.aspx.cs

示例8: 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

//.........这里部分代码省略.........
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:101,代码来源:CAA201.aspx.cs

示例9: Check_Condition

    /// <summary>
    /// 檢查條件
    /// </summary>
    /// <param name="s_Type"></param>
    /// <returns></returns>
    static ArrayList Check_Condition(string s_Type, 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 BUTTON [查詢]鈕

        if (s_Type == "BUTTON [查詢]鈕")
        {
            #   region 檢查SLP日期格式

            if (s_Array_ServerString[12] == "____/__/__")
            { s_Array_ServerString[12] = string.Empty; }
            if (s_Array_ServerString[13] == "____/__/__")
            { s_Array_ServerString[13] = string.Empty; }

            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[12], "欄位[開立日期]開始欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[13], "欄位[開立日期]結束欄位日期格式錯誤", "1", string.Empty, arl_Return);

            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[14], "欄位[帳款到期日]開始欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[15], "欄位[帳款到期日]結束欄位日期格式錯誤", "1", string.Empty, arl_Return);

            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[17], "欄位[作廢日期]開始欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[18], "欄位[作廢日期]結束欄位日期格式錯誤", "1", string.Empty, arl_Return);

            #endregion

            #region 檢查SLP年月格式

            arl_Return = CAAComm.Check_Format_YearMonth(s_Array_ServerString[10], "欄位[結帳年月]開始欄位年月格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_YearMonth(s_Array_ServerString[11], "欄位[結帳年月]結束欄位年月格式錯誤", "1", string.Empty, arl_Return);

            #endregion

            #region 檢查SLP數字格式

            arl_Return = CAAComm.Check_Format_Int(s_Array_ServerString[27], "欄位[累積沖帳金額]數字格式錯誤", "32", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Int(s_Array_ServerString[29], "欄位[應收餘額]數字格式錯誤", "32", "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],
                     "string",
                     "欄位[店群]結束欄位一定要大於或等於開始欄位",
                     "1",
                     string.Empty,
                     arl_Return);

                #endregion
            }

            #endregion

            #region 欄位[利潤中心]

            if (s_Array_ServerString[4] != string.Empty ||
                s_Array_ServerString[5] != string.Empty)
            {
//.........这里部分代码省略.........
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:101,代码来源:CAA331.aspx.cs

示例10: Check_Condition

    /// <summary>
    /// 檢查條件
    /// </summary>
    /// <param name="s_Type"></param>
    /// <returns></returns>
    static ArrayList Check_Condition(string s_Type, 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_Type == "0")
        {
            #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[18], "欄位[建立日期]開始欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[19], "欄位[建立日期]結束欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[21], "欄位[維護日期]開始欄位日期格式錯誤", "1", string.Empty, arl_Return);
            arl_Return = CAAComm.Check_Format_Date(s_Array_ServerString[22], "欄位[維護日期]結束欄位日期格式錯誤", "1", string.Empty, arl_Return);

            #endregion

            #region 檢查SLP數字格式

            arl_Return = CAAComm.Check_Format_Int(s_Array_ServerString[9], "欄位[交易金額]數字格式錯誤", "32", "1", string.Empty, arl_Return);

            #endregion

            #region 檢查欄位輸入的代號是否正確

            if (s_Array_ServerString[26] == "查無資料")
            { arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[客戶編號]開始欄位輸入的代號不正確", "1", string.Empty); }

            if (s_Array_ServerString[27] == "查無資料")
            { arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[客戶編號]結束欄位輸入的代號不正確", "1", string.Empty); }

            if (s_Array_ServerString[28] == "查無資料")
            { arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[店群]開始欄位輸入的代號不正確", "1", string.Empty); }

            if (s_Array_ServerString[29] == "查無資料")
            { arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[店群]結束欄位輸入的代號不正確", "1", string.Empty); }

            if (s_Array_ServerString[30] == "查無資料")
            { arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[建立人員]輸入的代號不正確", "1", string.Empty); }

            if (s_Array_ServerString[31] == "查無資料")
            { 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 檢查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
//.........这里部分代码省略.........
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:101,代码来源:CAA101.aspx.cs

示例11: Check_Condition

    /// <summary>
    /// 檢查條件
    /// </summary>
    /// <returns></returns>
    static ArrayList Check_Condition(string[] s_Array_ServerString)
    {
        #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 檢查必填欄位

        if (s_Array_ServerString[1] == string.Empty && s_Array_ServerString[2] == string.Empty &&
            s_Array_ServerString[3] == string.Empty && s_Array_ServerString[4] == string.Empty &&
            s_Array_ServerString[5] == string.Empty && s_Array_ServerString[6] == string.Empty)
        { arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[結帳年月][入帳日期][簽收日期]必須擇一輸入", "1", string.Empty); }

        if (s_Array_ServerString[21] == string.Empty)
        { arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[狀態]必須擇一輸入", "1", string.Empty); }

        #endregion

        #region 檢查SLP年月格式

        arl_Return = CAAComm.Check_Format_YearMonth(s_Array_ServerString[1], "欄位[結帳年月]開始欄位年月格式錯誤", "1", string.Empty, arl_Return);
        arl_Return = CAAComm.Check_Format_YearMonth(s_Array_ServerString[2], "欄位[結帳年月]結束欄位年月格式錯誤", "1", string.Empty, arl_Return);

        #endregion

        #region 檢查SLP日期格式

        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);

        #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],
                 "string",
                 "欄位[結帳年月]結束欄位一定要大於或等於開始欄位",
                 "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,
//.........这里部分代码省略.........
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:101,代码来源:CAM311.aspx.cs

示例12: Check_Condition

    /// <summary>
    /// 檢查條件
    /// </summary>
    /// <returns></returns>
    static ArrayList Check_Condition(string[] s_Array_ServerString)
    {
        #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 檢查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 檢查必填欄位

        if (s_Array_ServerString[4] == string.Empty && s_Array_ServerString[5] == string.Empty &&
            s_Array_ServerString[6] == string.Empty && s_Array_ServerString[7] == string.Empty &&
            s_Array_ServerString[8] == string.Empty && s_Array_ServerString[9] == string.Empty)
        { arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "欄位[店群][店號][營業所][帳務人員]必須擇一輸入", "1", string.Empty); }

        if (s_Array_ServerString[16] == string.Empty)
        { arl_Return = CAAComm.ToMakeUp_Err_ArrayList(arl_Return, "[筆數]要輸入", "1", string.Empty); }

        if (s_Array_ServerString[16] != string.Empty && int.Parse(s_Array_ServerString[16]) < 1)
        {
            arl_Return[0] = string.Empty;
            arl_Return[1] = "[筆數]要大於零<br/>";
        }

        #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[4] != string.Empty ||
            s_Array_ServerString[5] != string.Empty)
        {
            #region 檢查Between欄位如果輸入其中一個欄位則另一個欄位也必須填值

            arl_Return = CAAComm.Check_Between_BeginEnd_Value
                (s_Array_ServerString[4],
                 s_Array_ServerString[5],
                 "店群",
                 "1",
                 string.Empty,
                 string.Empty,
                 arl_Return);

            #endregion
//.........这里部分代码省略.........
开发者ID:ChiangHanLung,项目名称:PIC_VDS,代码行数:101,代码来源:CAM351.aspx.cs


注:本文中的PIC.VDS2G.ACM.CAA.CAACommon.Check_Between_BeginEnd_Value方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。