Exemplo n.º 1
0
        public static bool IsBranchAllowUOBBooking(string strBranchCode, ref int nWeekDayOffPeekMax
			, ref int nWeekDayPeekMax, ref int nWeekEndOffPeekMax, ref int nWeekEndPeekMax)
        {
            TblUOBBooking uobBooking = new TblUOBBooking();
            uobBooking.StrBranchCode = strBranchCode;
            DataTable table = uobBooking.SelectOne();
            if (table.Rows.Count > 0)
            {
                nWeekDayOffPeekMax = ACMS.Convert.ToInt32(uobBooking.NWeekDayOffPeak);
                nWeekDayPeekMax = ACMS.Convert.ToInt32(uobBooking.NWeekDayPeak);
                nWeekEndOffPeekMax = ACMS.Convert.ToInt32(uobBooking.NWeekEndOffPeak);
                nWeekEndPeekMax = ACMS.Convert.ToInt32(uobBooking.NWeekEndPeak);
            }
            return table.Rows.Count == 1;
        }
Exemplo n.º 2
0
        public static bool IsBranchAllowUOBBooking(string strBranchCode, ref int nWeekDayOffPeekMax
                                                   , ref int nWeekDayPeekMax, ref int nWeekEndOffPeekMax, ref int nWeekEndPeekMax)
        {
            TblUOBBooking uobBooking = new TblUOBBooking();

            uobBooking.StrBranchCode = strBranchCode;
            DataTable table = uobBooking.SelectOne();

            if (table.Rows.Count > 0)
            {
                nWeekDayOffPeekMax = ACMS.Convert.ToInt32(uobBooking.NWeekDayOffPeak);
                nWeekDayPeekMax    = ACMS.Convert.ToInt32(uobBooking.NWeekDayPeak);
                nWeekEndOffPeekMax = ACMS.Convert.ToInt32(uobBooking.NWeekEndOffPeak);
                nWeekEndPeekMax    = ACMS.Convert.ToInt32(uobBooking.NWeekEndPeak);
            }
            return(table.Rows.Count == 1);
        }