Пример #1
0
    private void ShowInfo(int _id)
    {
        model.GetModel(_id);
        //绑定商品列表
        tbl_order_goods bll = new tbl_order_goods();
        string          sql = " order_id =" + _id;

        DataTable dt = bll.GetList(sql).Tables[0];

        this.rptList.DataSource = dt;
        this.rptList.DataBind();

        //获得商家信息
        if (model.user_id != null)
        {
            tbl_huiyuan user_info = new tbl_huiyuan();
            user_info.GetModel_hui_id(model.user_id);
            user_name.Text       = model.user_bianhao;
            title.Text           = model.user_bianhao;
            contact_address.Text = model.address;
            contact_name.Text    = model.shouhuo_name;
            contact_tel.Text     = model.phone;
            wuliu_company.Text   = model.wuliu_company;
            wuliu_no.Text        = model.wuliu_no;
        }
        //根据订单状态,显示各类操作按钮
        switch (model.status)
        {
        case 1:     //订单为已生成状态
            //确认订单、取消订单显示
            btnConfirm.Visible = btnCancel.Visible = true;
            //修改订单备注、调价按钮显示
            btnEditRemark.Visible = btnEditPaymentFee.Visible = true;
            break;

        case 2:     //如果订单为已确认状态
            //完成显示
            btnComplete.Visible = true;
            //修改订单备注按钮可见
            btnEditRemark.Visible = true;
            break;
        }
        this.zf_type.Text    = zhifu_type(model.payment_id);
        this.contact_ly.Text = model.message;
    }
Пример #2
0
    private void ShowInfo(string _order_no)
    {
        model.GetModel(_order_no);

        tbl_order_goods bll = new tbl_order_goods();
        string          sql = " order_id =" + model.id;
        DataTable       dt  = bll.GetList(sql).Tables[0];

        this.rptList.DataSource = dt;
        this.rptList.DataBind();
        //获得商家信息
        //获得商家信息
        if (model.user_id != null)
        {
            tbl_huiyuan user_info = new tbl_huiyuan();
            user_info.GetModel_hui_id(model.user_id);

            title.Text           = model.user_bianhao;
            contact_address.Text = model.address;
            contact_name.Text    = model.shouhuo_name;
            contact_tel.Text     = model.phone;
        }
    }