예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            QOnT.classes.TrackerTools tt = new classes.TrackerTools();
            DateTime dt = tt.GetClosestNextRoastDate(DateTime.Now);

            lblRoastDate.Text = "<b>Next Roast date:</b> " + dt.ToShortDateString();

            // gvClients.EnableViewState = false;
        }
예제 #2
0
        private void InitializeOrderVars()
        {
            QOnT.classes.TrackerTools tt = new classes.TrackerTools();
            DateTime dt = tt.GetClosestNextRoastDate(DateTime.Now);

            OrderValues _MyOrderValues = new OrderValues();

            _MyOrderValues.CustomerID   = 0;
            _MyOrderValues.dtOrder      = DateTime.Now;
            _MyOrderValues.dtRoast      = dt;
            _MyOrderValues.dtRequiredBy = dt.AddDays(1);
            _MyOrderValues.DeliverByID  = Convert.ToInt16(ConfigurationManager.AppSettings["DefaultDeliveryID"]); // mzukisi?
            _MyOrderValues.IsConfirmed  = true;

            Session[SV_ORDERVALUES] = _MyOrderValues;
        }