Пример #1
0
        public void setForToday()
        {
            clsServiceItems.openAll();

            //Opens the last 15 and next 5 service dates from today
            clsDaysOpen.openTopTwentyWithinDate(DateTime.Today);

            FoodItems    = new List <ServiceItem>();
            NonFoodItems = new List <ServiceItem>();

            findSvcDate();   //Figure out what the best service date to use is
            fillItemsList(); //Fill the service items collections

            firstFoodItemDescSet = false;
        }
Пример #2
0
        public ServiceDaysForm()
        {
            InitializeComponent();

            clsSvcItems = new ServiceItems(GlobalVariables.connectionString);
            clsSvcDays  = new ServiceDays(GlobalVariables.connectionString);

            panel1.BackColor = Color.LightGreen;
            setTodayLable(DateTime.Today);
            getDateFormat(DateTime.Today);

            clsSvcItems.openAll();
            loadList();

            //calSvcDates.DayRender += new DayRenderEventHandler(calSvcDates_DayRender);
        }