当前位置: 首页>>代码示例>>C#>>正文


C# BLL.orders.GetList方法代码示例

本文整理汇总了C#中BLL.orders.GetList方法的典型用法代码示例。如果您正苦于以下问题:C# BLL.orders.GetList方法的具体用法?C# BLL.orders.GetList怎么用?C# BLL.orders.GetList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BLL.orders的用法示例。


在下文中一共展示了BLL.orders.GetList方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: RptBind

        private void RptBind(string _strWhere, string _orderby)
        {
            Model.wx_userweixin weixin = GetWeiXinCode();
            this.page = MXRequest.GetQueryInt("page", 1);
            
            txtKeywords.Text = this.keywords;
            BLL.orders bll = new BLL.orders();
            DataSet ds = bll.GetList(weixin.id,this.pageSize, this.page, _strWhere, _orderby, out this.totalCount); ;
            if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0)
            {
                DataRow dr;
                for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
                {
                    dr = ds.Tables[0].Rows[i];
                    dr["statusName"] = GetOrderStatus(MyCommFun.Obj2Int(dr["id"]), MyCommFun.Obj2Int(dr["status"]), MyCommFun.Obj2Int(dr["payment_status"]), MyCommFun.Obj2Int(dr["express_status"]));

                }
            }
            this.rptList.DataSource = ds;
            this.rptList.DataBind();

            //绑定页码
            txtPageNum.Text = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("order_confirm.aspx", "keywords={0}&page={1}", this.keywords, "__id__");
            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
        }
开发者ID:wujiang1984,项目名称:WechatBuilder,代码行数:26,代码来源:order_confirm.aspx.cs

示例2: RptBind

        private void RptBind(string _strWhere, string _orderby)
        {
            this.page = DTRequest.GetQueryInt("page", 1);
            if (this.status > 0)
            {
                this.ddlStatus.SelectedValue = this.status.ToString();
            }
            if (this.payment_status > 0)
            {
                this.ddlPaymentStatus.SelectedValue = this.payment_status.ToString();
            }
            if (this.distribution_status > 0)
            {
                this.ddlDistributionStatus.SelectedValue = this.distribution_status.ToString();
            }
            this.txtKeywords.Text = this.keywords;
            BLL.orders bll = new BLL.orders();
            this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
            this.rptList.DataBind();

            //绑定页码
            txtPageNum.Text = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("order_list.aspx", "status={0}&payment_status={1}&distribution_status={2}&keywords={3}&page={4}",
                this.status.ToString(), this.payment_status.ToString(), this.distribution_status.ToString(), this.keywords, "__id__");
            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
        }
开发者ID:sichina,项目名称:or-dtcms2.0,代码行数:26,代码来源:order_list.aspx.cs

示例3: RptBind

        private void RptBind(string _strWhere, string _orderby)
        {
            this.page = DTRequest.GetQueryInt("page", 1);
            txtKeywords.Text = this.keywords;
            BLL.orders bll = new BLL.orders();
            this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
            this.rptList.DataBind();

            //绑定页码
            txtPageNum.Text = this.pageSize.ToString();
            string pageUrl = Utils.CombUrlTxt("order_confirm.aspx", "keywords={0}&page={1}", this.keywords, "__id__");
            PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
        }
开发者ID:silverdan,项目名称:ahxrmyy2.0,代码行数:13,代码来源:order_confirm.aspx.cs

示例4: ProcessRequest

        public void ProcessRequest(HttpContext context)
        {
            int page = DTRequest.GetQueryInt("page");
            int pagesize = DTRequest.GetQueryInt("pagesize");
            string where = DTRequest.GetQueryString("where");
            string order = DTRequest.GetQueryString("order");

            BLL.orders bll = new BLL.orders();
            int totalCount;
            DataTable dt = bll.GetList(pagesize, page, where, order, out totalCount).Tables[0];

            //DataTable new_dt = new DataTable();
            //new_dt.Columns.Add("网店订单编号");
            //new_dt.Columns.Add("商品名称");
            //new_dt.Columns.Add("商品编码");
            //new_dt.Columns.Add("数量");
            //new_dt.Columns.Add("单价");
            //new_dt.Columns.Add("订单日期");
            //new_dt.Columns.Add("收货人名称");
            //new_dt.Columns.Add("收货人电话");
            //new_dt.Columns.Add("收货人手机");
            //new_dt.Columns.Add("省份");
            //new_dt.Columns.Add("市");
            //new_dt.Columns.Add("区");
            //new_dt.Columns.Add("收货地址");
            //new_dt.Columns.Add("买家帐号");
            //new_dt.Columns.Add("物流公司");
            //new_dt.Columns.Add("物流单号");
            //new_dt.Columns.Add("买家运费");
            //new_dt.Columns.Add("买家留言");
            //new_dt.Columns.Add("卖家备注");
            //new_dt.Columns.Add("发票抬头");

            string str_table = "<table border=\"1\"><tr>"
                + "<td>网店订单编号</td>"
                + "<td>商品名称</td>"
                + "<td>商品编码</td>"
                + "<td>数量</td>"
                + "<td>单价</td>"
                + "<td>订单日期</td>"
                + "<td>收货人名称</td>"
                + "<td>收货人电话</td>"
                + "<td>收货人手机</td>"
                + "<td>省份</td>"
                + "<td>市</td>"
                + "<td>区</td>"
                + "<td>收货地址</td>"
                + "<td>买家帐号</td>"
                + "<td>物流公司</td>"
                + "<td>物流单号</td>"
                + "<td>买家运费</td>"
                + "<td>买家留言</td>"
                + "<td>卖家备注</td>"
                + "<td>发票抬头</td>"
                + "</tr>";

            foreach (DataRow dr in dt.Rows)
            {
                Model.orders model = bll.GetModel(Convert.ToInt32(dr["id"]));
                if (model != null)
                {
                    int good_count = 1;
                    if (model.order_goods != null)
                    {
                        good_count = model.order_goods.Count;
                    }
                    string[] address = model.address.Split('|');
                    int flg = 0;
                    if (model.order_goods != null)
                    {
                        foreach (Model.order_goods item in model.order_goods)
                        {
                            str_table += "<tr>";
                            if (flg < 1)
                            {
                                str_table += "<td rowspan=\"" + good_count + "\">" + model.order_no + "</td>";
                            }
                            string unit = "";
                            if (!string.IsNullOrEmpty(item.unit))
                            {
                                unit = "单位:" + item.unit;
                            }

                            str_table += "<td>" + item.goods_title + "(" + new DTcms.BLL.standard_value().get_standrad(item.standard) + unit + ")" + "</td>";
                            str_table += "<td>" + item.good_no + "</td>";
                            str_table += "<td>" + item.quantity + "</td>";
                            str_table += "<td>" + item.real_price + "</td>";

                            if (flg < 1)
                            {
                                str_table += "<td rowspan=\"" + good_count + "\">" + model.add_time + "</td>";
                                str_table += "<td rowspan=\"" + good_count + "\">" + model.accept_name + "</td>";
                                str_table += "<td rowspan=\"" + good_count + "\">" + model.telphone + "</td>";
                                str_table += "<td rowspan=\"" + good_count + "\">" + model.mobile + "</td>";
                                if (address.Length >= 1)
                                {
                                    str_table += "<td rowspan=\"" + good_count + "\">" + address[0] + "</td>";
                                }
                                else
                                {
//.........这里部分代码省略.........
开发者ID:wangjinfang,项目名称:DTCMS,代码行数:101,代码来源:export_ajax.ashx.cs


注:本文中的BLL.orders.GetList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。