示例#1
0
        /// <summary>
        /// 获取数量
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        protected string GetQuantityById(int id)
        {
            string quantity = "";

            Model.order_goods model = new BLL.order_goods().GetModelorderid(id);
            if (model == null)
            {
                return(quantity = "暂无详情");
            }

            return(quantity = Convert.ToString(model.quantity));
        }
示例#2
0
        /// <summary>
        /// 获取价格
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        protected string GetPrcieById(int id)
        {
            string Prcie = "";

            Model.order_goods model = new BLL.order_goods().GetModelorderid(id);
            if (model == null)
            {
                return(Prcie = "暂无详情");
            }

            return(Prcie = Convert.ToString(model.goods_price));
        }
示例#3
0
        public string getgoodsorder(int orderid)
        {
            BLL.order_goods art = new BLL.order_goods();
            //var info = art.GetModelorderid(orderid);

            //// Vincent._Json json = new _Json();


            //return ObjectToJSON(info);
            var info = art.GetList(0, "order_id=" + orderid, "id desc");

            return(CreateJsonParameters(info.Tables[0]));
        }
示例#4
0
        /// <summary>
        /// 获取消费情况
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        protected string GetDescriptionById(int id)
        {
            string Description = "";

            Model.order_goods model = new BLL.order_goods().GetModelorderid(id);
            if (model == null)
            {
                return(Description = "暂无详情");
            }

            string title = Convert.ToString(model.goods_title);

            return(Description = title);
        }