Exemplo n.º 1
0
        private void BindData()
        {
            dtfInfo = DateTimeFormatInfo.InvariantInfo;
            MODEL.Criteria.reqKitchen req = new MODEL.Criteria.reqKitchen();
            req.foodStatusID = "1";
            req.restaurantID = hdRestaurantID.Value;///Session["session_restaurantID"].ToString().Trim();
            req.currentDate  = DateTime.Today.ToString("MM/dd/yyyy", dtfInfo);

            List <MODEL.FoodView> model = new List <MODEL.FoodView>();

            DAL.Restaurant sv = new DAL.Restaurant();
            model = sv.getFoodsViewForKitchen(req);
            this.RadListView1.DataSource = model;
            RadListView1.DataBind();
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                hdRestaurantID.Value = getRestaurantID();
                hdMemberID.Value     = getMemberID();
                dtfInfo = DateTimeFormatInfo.InvariantInfo;
                MODEL.Criteria.reqKitchen req = new MODEL.Criteria.reqKitchen();
                req.foodStatusID = "1";
                req.restaurantID = hdRestaurantID.Value;//Session["session_restaurantID"].ToString().Trim();
                req.currentDate  = DateTime.Today.ToString("MM/dd/yyyy", dtfInfo);

                List <MODEL.FoodView> model = new List <MODEL.FoodView>();
                DAL.Restaurant        sv    = new DAL.Restaurant();
                model = sv.getCashierView(req);
                this.RadListView1.DataSource = model;
                RadListView1.DataBind();
            }
        }