Exemple #1
0
    /// <summary>
    /// 绑定订单明细
    /// </summary>
    public void BindOrderDetail(int DisID)
    {
        SelectGoods.OrderDetail(KeyID, DisID, this.CompID);
        DataTable dt = Session["GoodsInfo"] as DataTable;

        this.rpDtl.DataSource = dt;
        this.rpDtl.DataBind();
        SelectGoods.Clear(DisID, this.CompID);
    }
Exemple #2
0
    protected void Bind()
    {
        this.txtDisUser.InnerText = Common.GetUserName(this.UserID);
        this.hidDisUserId.Value   = this.UserID.ToString();
        if (KeyID != 0)
        {
            if (!Common.PageCompOperable("Order", KeyID, CompID))
            {
                Response.Redirect("../../NoOperable.aspx");
                return;
            }

            Hi.Model.DIS_Order OrderInfoModel = OrderInfoBll.GetModel(KeyID);

            if (OrderInfoModel != null)
            {
                string js = "<script language=javascript>history.go(-1);</script>";
                //编辑订单时 判断订单状态
                if (OrderInfoModel.AddType == (int)Enums.AddType.企业补单 || OrderInfoModel.AddType == (int)Enums.AddType.App企业补单)
                {
                    //企业补单
                    if (OrderInfoModel.OState >= (int)Enums.OrderState.已审 && OrderInfoModel.PayState != (int)Enums.PayState.未支付)
                    {
                        HttpContext.Current.Response.Write(string.Format(js));
                    }
                }
                else
                {
                    //App下单 网页下单
                    if (OrderInfoModel.OState >= (int)Enums.OrderState.待审核)
                    {
                        HttpContext.Current.Response.Write(string.Format(js));
                    }
                }

                this.lblReceiptNo.InnerText = OrderInfoModel.ReceiptNo;

                DisId = OrderInfoModel.DisID;
                this.hidTotalAmount.Value = OrderInfoModel.TotalAmount.ToString("N");
                this.txtArriveDate.Value  = OrderInfoModel.ArriveDate == DateTime.MinValue ? "" : OrderInfoModel.ArriveDate.ToString("yyyy-MM-dd");
                this.txtDisUser.InnerText = Common.GetUserName(OrderInfoModel.DisUserID);
                this.hidDisUserId.Value   = OrderInfoModel.DisUserID.ToString();


                this.txtRemark.Value = OrderInfoModel.Remark;
            }
        }
        else
        {
            //清除商品数据
            SelectGoods.Clear();
        }
    }
Exemple #3
0
    /// <summary>
    /// 绑定订单明细
    /// </summary>
    public void BindOrderDetail(int DisID)
    {
        List <Hi.Model.BD_RebateDetail> list = OrderDetailBll.GetList("", " RebateID = " + KeyID + " and IsNull(dr,0) = 0 ", " createdate desc");

        if (list != null)
        {
            this.rpDtl.DataSource = list;
            this.rpDtl.DataBind();
        }
        else
        {
            this.rpDtl.DataSource = "";
            this.rpDtl.DataBind();
        }
        SelectGoods.Clear(DisID, this.CompID);
    }
Exemple #4
0
    public void BindGoods()
    {
        SelectGoods.Clear(this.CompID);
        SelectGoods.OrderDetail(KeyID, this.DisID, this.CompID);
        DataTable dt = Session["GoodsInfo"] as DataTable;

        if (dt != null)
        {
            this.rptgoods.DataSource = dt;
            this.rptgoods.DataBind();
        }
        else
        {
            this.rptgoods.DataSource = "";
            this.rptgoods.DataBind();
        }
        SelectGoods.Clear(this.DisID, this.CompID);
    }
Exemple #5
0
    /// <summary>
    /// 绑定订单明细
    /// </summary>
    public void BindOrderDetail(int OrderId, int DisID)
    {
        SelectGoods.Clear();
        SelectGoods.OrderDetail(OrderId, DisID, this.CompID);
        DataTable dt = Session["GoodsInfo"] as DataTable;

        if (dt != null)
        {
            this.rpDtl.DataSource = dt;
            this.rpDtl.DataBind();
        }
        else
        {
            this.rpDtl.DataSource = "";
            this.rpDtl.DataBind();
        }
        SelectGoods.Clear(DisID, this.CompID);
    }