コード例 #1
0
        private void GetList()
        {
            ShowShop.BLL.Order.Orders bll = new ShowShop.BLL.Order.Orders();
            ChangeHope.DataBase.DataByPage datapage = bll.GetListByPage("");
            ChangeHope.WebPage.Table table = new ChangeHope.WebPage.Table();
            ShowShop.Common.OrdersStatusEnum ose = new ShowShop.Common.OrdersStatusEnum();
            table.AddHead("<input type=\"checkbox\"  id=\"cheAll\" onclick=\"SelectAll(cheAll)\"/>/,订单号/,用户名/,下单时间/,商品金额/,<img src=\"..\\images\\notice.gif\" title=\"订单金额=商品总价+运费+支付手续费\" >订单金额/,订单状态/,付款状态/,物流状态/");

            int index = 0;
            if(datapage.DataReader!=null)
            {
                while(datapage.DataReader.Read())
                {
                    index++;
                    table.AddCol(string.Format("<input type=\"checkbox\" name=\"checkboxid\" value=\"{0}\">", datapage.DataReader["Id"].ToString()));
                    string TypeStr = string.Empty;
                    if (datapage.DataReader["OrderType"].ToString() == "1")
                    {
                        TypeStr = "<span style='color:red'>拍</span>";
                    }
                    else if (datapage.DataReader["OrderType"].ToString() == "2")
                    {
                        TypeStr = "<span style='color:red'>团</span>";
                    }
                    table.AddCol(TypeStr + "<a href='order_order_info.aspx?OrderId=" + datapage.DataReader["Id"].ToString() + "'>" + datapage.DataReader["OrderId"].ToString() + "</a>");
                    table.AddCol("<span title='" + datapage.DataReader["UserId"].ToString() + "'>" + ChangeHope.Common.StringHelper.SubString(datapage.DataReader["UserId"].ToString(), 10) + "</span>");
                    table.AddCol(datapage.DataReader["OrderDate"].ToString());
                    table.AddCol("¥" + Convert.ToDouble(datapage.DataReader["TotalPrice"].ToString()).ToString("f2") + " 元");
                    table.AddCol("¥" + Convert.ToDouble(datapage.DataReader["FactPrice"].ToString()).ToString("f2") + " 元");
                    table.AddCol(ose.OrderStatus(int.Parse(datapage.DataReader["OrderStatus"].ToString())));
                    table.AddCol(ose.PaymentStatus(int.Parse(datapage.DataReader["PaymentStatus"].ToString())));
                    table.AddCol(ose.OgisticsStatu(int.Parse(datapage.DataReader["OgisticsStatus"].ToString())));
                    table.AddRow();
                }
            }

            this.ltlView.Text = table.GetTable() + datapage.PageToolBar;
            table = null;
            datapage.Dispose();
            datapage = null;
            bll = null;
        }
コード例 #2
0
        private void OrderInfo(int id)
        {
            ShowShop.BLL.Order.Orders bll = new ShowShop.BLL.Order.Orders();
            ShowShop.Model.Order.Orders model=bll.GetModel(id);
            if (model != null)
            {
                ShowShop.BLL.Member.MemberAccount mabll = new ShowShop.BLL.Member.MemberAccount();
                ShowShop.Model.Member.MemberAccount mamodel = mabll.GetModel(model.UserId);
                if (mamodel != null)
                {

                    this.lbUserName.Text = "<a href='../member/member_view.aspx?uid=" + mamodel.UID + "'>" + model.UserId + "</a>";
                }
                else
                {
                    this.lbUserName.Text = model.UserId ;
                }
                this.lbName.Text = model.ConsigneeName;
                this.blOrderNo.Text = model.OrderId;
                ShowShop.Common.OrdersStatusEnum ose = new ShowShop.Common.OrdersStatusEnum();
                this.lbOrderStatue.Text = ose.OrderStatus(model.OrderStatus);
                this.lbLogisticsStatus.Text = ose.OgisticsStatu(model.OgisticsStatus);
                this.lbPayment.Text = ose.PaymentStatus(model.PaymentStatus);
                this.lbOrderDateTime.Text = model.OrderDate.ToString();
                this.lbConsigneeName.Text = model.ConsigneeName;
                this.lbConsigneeAddress.Text = model.ConsigneeAddress;
                this.lbConsigneeEmail.Text = model.ConsigneeEmail;
                this.lbConsigneeModile.Text = model.ConsigneePhone;
                this.lbConsigneeTel.Text = model.ConsigneeTel;
                this.lbConsigneeZip.Text = model.ConsigneeZip;
                this.lbConstructionSigns.Text = model.ConsigneeRealName;
                this.lbConsigneTime.Text = model.ConsigneeFax;
                this.lbPaymentMode.Text = Payments(model.PaymentType);
                this.lbDeliveryMode.Text = this.Courier(int.Parse(model.Carriage.ToString()));
                this.lbOrderTotalPrice.Text =Convert.ToDouble(model.FactPrice).ToString("f2");
                this.lbCarriage.Text = Convert.ToDouble(model.Courier).ToString("f4");
                this.lbpaid.Text = GetPayed(model.OrderId.ToString());
            }
        }
コード例 #3
0
 private void OrderInfo(int id)
 {
     ShowShop.BLL.Order.Orders bll = new ShowShop.BLL.Order.Orders();
     ShowShop.Model.Order.Orders model = bll.GetModel(id);
     this.hlBackList.NavigateUrl = "order_order_info.aspx?OrderId=" + id;
     ShowShop.Common.SysParameter sp = new ShowShop.Common.SysParameter();
     this.txtProductName.Attributes.Add("readonly", "readonly");
     this.txtProductName.Attributes.Add("onclick", "selectFile('Product',new Array(" + this.hfid.ClientID + "," + this.txtProductName.ClientID + "),310,550,'" + sp.DummyPaht + "');");
     if (model != null)
     {
         ShowShop.BLL.Member.MemberAccount mabll = new ShowShop.BLL.Member.MemberAccount();
         ShowShop.Model.Member.MemberAccount mamodel = mabll.GetModel(model.UserId);
         if (mamodel != null)
         {
             ShowShop.BLL.Member.MemberInfo mibll = new ShowShop.BLL.Member.MemberInfo();
             ShowShop.Model.Member.MemberInfo mimodel = mibll.GetModel(mamodel.UID);
             if (mimodel != null)
             {
                 this.lbName.Text = mimodel.TrueName;
             }
             this.lbUserName.Text = "<a href='../member/member_view.aspx?uid=" + mamodel.UID + "'>" + model.UserId + "</a>";
         }
         else
         {
             this.lbUserName.Text = model.UserId;
         }
         this.paymentInfo(model.SaleUserType, model.SaleUserID);
         this.hfOrderId.Value = id.ToString();
         this.blOrderNo.Text = model.OrderId;
         ShowShop.Common.OrdersStatusEnum ose = new ShowShop.Common.OrdersStatusEnum();
         this.lbOrderStatue.Text = ose.OrderStatus(model.OrderStatus);
         this.lbLogisticsStatus.Text = ose.OgisticsStatu(model.OgisticsStatus);
         this.lbPayment.Text = ose.PaymentStatus(model.PaymentStatus);
         this.lbOrderDateTime.Text = model.OrderDate.ToString();
         this.txtConsigneeName.Text = model.ConsigneeName;
         this.txtConsigneeAddress.Text = model.ConsigneeAddress;
         this.txtConsigneeEmail.Text = model.ConsigneeEmail;
         this.txtConsigneeModile.Text = model.ConsigneePhone;
         this.txtConsigneeTel.Text = model.ConsigneeTel;
         this.txtConsigneeZip.Text = model.ConsigneeZip;
         this.txtConstructionSigns.Text = model.ConsigneeRealName;
         this.txtConsigneTime.Text = model.ConsigneeFax;
         this.txtRemark.Text = string.IsNullOrEmpty(model.Remark) ? "" : model.Remark;
         this.ddlPayMent.SelectedValue = model.PaymentType.ToString();
         this.ddlDeliver.SelectedValue = model.Carriage.ToString();
         this.lbOrderTotalPrice.Text =Convert.ToDouble(model.FactPrice).ToString("f2");
         this.txtCarriage.Text = Convert.ToDouble(model.Courier).ToString("f2");
     }
 }