Пример #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        HttpCookie cookie  = Request.Cookies["currStore"];
        int        storeId = Convert.ToInt32(cookie.Values["currStoreId"]);

        WEC_CY_TYPE conf2 = new WEC_CY_TYPE();

        conf2.STORE_ID = storeId;
        typeList       = BLLTable <WEC_CY_TYPE> .Factory("conn_canyin").Select(new WEC_CY_TYPE(), conf2);

        WEC_CY_DISH conf = new WEC_CY_DISH();

        conf.TYPE_ID  = typeList[0].ID;
        conf.STORE_ID = storeId;
        dishList      = BLLTable <WEC_CY_DISH> .Factory("conn_canyin").Select(new WEC_CY_DISH(), conf);

        num = CYUtil.getItemCount();
    }
Пример #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        int storeid = Convert.ToInt32(Request["storeid"]);
        //  CYUtil.setStoreId(storeid);

        WEC_CY_STOREMANAGER conf2     = new WEC_CY_STOREMANAGER();
        WEC_CY_STOREMANAGER currStore = BLLTable <WEC_CY_STOREMANAGER> .GetRowData(conf2);

        HttpCookie cookie = new HttpCookie("currStore");

        cookie.Values.Add("currStoreId", "" + storeid);
        cookie.Values.Add("currStoreAddress", HttpUtility.UrlEncode("" + currStore.ADDRESS));
        cookie.Values.Add("currStoreTel", "" + currStore.TEL);
        //HttpCookie cookie2 = new HttpCookie("currStoreAddress", "" +currStore.ADDRESS );
        //HttpCookie cookie3 = new HttpCookie("currStoreTel", "" + currStore.TEL);
        DateTime dt = DateTime.Now;
        TimeSpan ts = new TimeSpan(1, 0, 0, 0);

        cookie.Expires = dt.Add(ts);
        Response.AppendCookie(cookie);
        //HttpCookie C= Request.Cookies[""];

        WEC_CY_SELECTDISH conf = new WEC_CY_SELECTDISH();

        conf.OrderBy(WEC_CY_SELECTDISH.Attribute.ORDER_DISPLAY);
        conf.STORE_ID = storeid;
        list          = BLLTable <WEC_CY_SELECTDISH> .Factory("conn_canyin").Select(new WEC_CY_SELECTDISH(), conf);

        //BLLTable.SQL_Test.ToString();

        foreach (WEC_CY_SELECTDISH s in list)
        {
            nums.Append("," + s.FIT_NUM);
        }
        if (nums.Length > 0)
        {
            nums.Remove(0, 1);
        }

        num = CYUtil.getItemCount();
    }
Пример #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     num = CYUtil.getItemCount();
 }