码迷,mamicode.com
首页 > 数据库 > 详细

purple-accessData

时间:2016-01-15 23:10:44      阅读:386      评论:0      收藏:0      [点我收藏+]

标签:

ylbtech-class:purple-accessData

 

A, 返回顶部

1,送货时间

技术分享
 #region 送货时间
        /// <summary>
        /// 送货时间
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public IList<SelectListItemInfo> GetShippingTime(string value = "只有工作日")
        {
            string[] letters = { "只有工作日", "只有周末", "任何时间" };
            IList<SelectListItemInfo> dals = new List<SelectListItemInfo>();
            foreach (string str in letters)
            {
                if (value == str)
                {
                    dals.Add(new SelectListItemInfo() { Text = str, Value = str, Selected = selected_str });
                }
                else
                {
                    dals.Add(new SelectListItemInfo() { Text = str, Value = str });
                }
            }

            return dals;
        }
        #endregion
View Code

2,发票(发票类型、发票科目)

技术分享
#region Invoice
        /// <summary>
        /// 发票类型
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public IList<SelectListItemInfo> GetInvoiceType(string value = "-1")
        {
            IList<SelectListItemInfo> dals = new List<SelectListItemInfo>();

            dals.Add(new SelectListItemInfo() { Text = "-1", Value = "不开发票", Selected = selected_str });
            dals.Add(new SelectListItemInfo() { Text = "0", Value = "个人", Selected = selected_str });
            dals.Add(new SelectListItemInfo() { Text = "1", Value = "公司", Selected = selected_str });

            return dals;
        }
        /// <summary>
        /// 发票科目
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public IList<SelectListItemInfo> GetInvoiceSubject(string value = "1")
        {
            IList<SelectListItemInfo> dals = new List<SelectListItemInfo>();

            dals.Add(new SelectListItemInfo() { Text = "1", Value = "商品明细", Selected = selected_str });
            dals.Add(new SelectListItemInfo() { Text = "2", Value = "服装", Selected = selected_str });
            dals.Add(new SelectListItemInfo() { Text = "3", Value = "皮具", Selected = selected_str });
            dals.Add(new SelectListItemInfo() { Text = "4", Value = "化妆品", Selected = selected_str });
            dals.Add(new SelectListItemInfo() { Text = "5", Value = "箱包", Selected = selected_str });
            dals.Add(new SelectListItemInfo() { Text = "6", Value = "", Selected = selected_str });

            dals.Add(new SelectListItemInfo() { Text = "7", Value = "饰品", Selected = selected_str });
            dals.Add(new SelectListItemInfo() { Text = "8", Value = "家居用品", Selected = selected_str });
            dals.Add(new SelectListItemInfo() { Text = "9", Value = "珠宝", Selected = selected_str });

            return dals;
        }
        #endregion
View Code

3,订单状态

技术分享
#region Order
        /// <summary>
        /// 订单状态
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public IList<SelectListItemInfo> GetOrderStatus(string value = "1")
        {
            IList<SelectListItemInfo> dals = new List<SelectListItemInfo>();

            dals.Add(new SelectListItemInfo() { Text = "1", Value = "全部状态", Selected = selected_str });
            dals.Add(new SelectListItemInfo() { Text = "2", Value = "等待付款", Selected = selected_str });
            dals.Add(new SelectListItemInfo() { Text = "3", Value = "等待自提", Selected = selected_str });
            dals.Add(new SelectListItemInfo() { Text = "4", Value = "等待收货", Selected = selected_str });
            dals.Add(new SelectListItemInfo() { Text = "5", Value = "处理中", Selected = selected_str });
            dals.Add(new SelectListItemInfo() { Text = "6", Value = "有效", Selected = selected_str });

            dals.Add(new SelectListItemInfo() { Text = "7", Value = "已完成", Selected = selected_str });
            dals.Add(new SelectListItemInfo() { Text = "-1", Value = "已取消", Selected = selected_str });

            return dals;
        }
        #endregion
View Code

4,职位分类

技术分享
#region 职位分类
        /// <summary>
        /// 职位分类
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public IList<SelectListItemInfo> GetJobType(string value = "服务员")
        {
            string[] letters = { "服务员", "推销员", "业务员","电工","水电","其他" };
            IList<SelectListItemInfo> dals = new List<SelectListItemInfo>();
            foreach (string str in letters)
            {
                if (value == str)
                {
                    dals.Add(new SelectListItemInfo() { Text = str, Value = str, Selected = selected_str });
                }
                else
                {
                    dals.Add(new SelectListItemInfo() { Text = str, Value = str });
                }
            }

            return dals;
        }
        #endregion
View Code

5,租赁分类

技术分享
#region 租赁分类
        /// <summary>
        /// 租赁分类 
        /// 【大家知道、熟悉的卖场、大厦】
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public IList<SelectListItemInfo> GetRentType(string value = "商铺租赁")
        {
            string[] letters = { "商铺租赁", "场地租赁", "写字楼租赁", "写字楼销售", "会议室租赁", "其他" };
            IList<SelectListItemInfo> dals = new List<SelectListItemInfo>();
            foreach (string str in letters)
            {
                if (value == str)
                {
                    dals.Add(new SelectListItemInfo() { Text = str, Value = str, Selected = selected_str });
                }
                else
                {
                    dals.Add(new SelectListItemInfo() { Text = str, Value = str });
                }
            }

            return dals;
        }
        #endregion
View Code

6,

B,返回顶部

6,租赁金额单位类型

技术分享
#region 租赁金额单位类型
        /// <summary>
        /// 租赁金额单位类型
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public IList<SelectListItemInfo> GetRentUnitType(string value = "月/天")
        {
            string[] letters = { "元/天", "月/天", "元/年" };
            IList<SelectListItemInfo> dals = new List<SelectListItemInfo>();
            foreach (string str in letters)
            {
                if (value == str)
                {
                    dals.Add(new SelectListItemInfo() { Text = str, Value = str, Selected = selected_str });
                }
                else
                {
                    dals.Add(new SelectListItemInfo() { Text = str, Value = str });
                }
            }

            return dals;
        }
        #endregion
View Code

7,

8,

9,

10,

11,

C,返回顶部

11,

技术分享 作者:ylbtech
出处:http://storebook.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

purple-accessData

标签:

原文地址:http://www.cnblogs.com/ylbtech/p/5134654.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!