1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CY.Model;
using CY.BLL;
using CY.Infrastructure.Common;
using System.Data;
using CY.BLL.Sys;
using System.Text;
 
namespace CY.WebForm.Pages.membermanage
{
    //吴辉
    //查看订单
    public partial class MemberOrderDetail : BasePage
    {
        Sys_DictionaryBLL bll_Sys_DictionaryBLL = null;
        EC_MemberBasicBLL bll_EC_MemberBasicBLL = null;
        EC_PaymentRecordBLL bll_EC_PaymentRecordBLL = null;
        OA_StaffBLL bll_OA_StaffBLL = null;
 
        //初始化
        public MemberOrderDetail()
        {
            bll_Sys_DictionaryBLL = new Sys_DictionaryBLL();
            bll_EC_MemberBasicBLL = new EC_MemberBasicBLL();
            bll_EC_PaymentRecordBLL = new EC_PaymentRecordBLL();
            bll_OA_StaffBLL = new OA_StaffBLL();
        }
 
        //页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (!IsPostBack)
                {
                    InitData();
                }
            }
            catch (Exception ex)
            {
                Response.Clear();
                Response.Write("");
            }
        }
 
        //绑定数据
        public void InitData()
        {
            EC_PaymentRecord m_EC_PaymentRecord = bll_EC_PaymentRecordBLL.GetModelByKeyid(Request["Keyid"].ToInt32());
            if (m_EC_PaymentRecord != null)
            {
                this.selOrderType.InnerText = m_EC_PaymentRecord.PayType;
                this.spanOperator.InnerText = m_EC_PaymentRecord.Operator;
                this.spanRemark.InnerText = m_EC_PaymentRecord.Remark;
                this.selAccountManagerId.InnerText = m_EC_PaymentRecord.AccountManagerId.ToString2();
                this.selBusinessManagerId.InnerText = m_EC_PaymentRecord.BusinessManagerId.ToString2();
                this.txtAdInstallments.InnerText = m_EC_PaymentRecord.AdInstallments;
                this.txtAdForum.InnerText = m_EC_PaymentRecord.AdForum;
                this.txtAdLocation.InnerText = m_EC_PaymentRecord.AdLocation;
                this.txtAdSize.InnerText = m_EC_PaymentRecord.AdSize;
                this.spanAdImg.InnerHtml = m_EC_PaymentRecord.AdImg;
                this.txtCompanyPhone.InnerText = m_EC_PaymentRecord.CompanyPhone;
                this.txtCompanyName.InnerText = m_EC_PaymentRecord.MemberName;
                this.txtContact.InnerText = m_EC_PaymentRecord.Contact;
                this.txtEmail.InnerText = m_EC_PaymentRecord.Email;
                this.txtQQ.InnerText = m_EC_PaymentRecord.QQ;
                this.txtSoftwarePermissions.InnerText = m_EC_PaymentRecord.SoftwarePermissions;
                this.txtSoftwarePermissions.Attributes.Add("readonly", "readonly");
                this.txtPayAllMoney.InnerText = m_EC_PaymentRecord.PayAllMoney.Value.ToString("0");
                //this.txtPayMoney.InnerText = m_EC_PaymentRecord.PayMoney.InnerText.ToString("0");
                this.txtPayStartTime.InnerText = (m_EC_PaymentRecord.PayStartTime ?? DateTime.Now).ToString("yyyy-MM-dd");
                this.txtPayEndTime.InnerText = (m_EC_PaymentRecord.PayEndTime ?? DateTime.Now).ToString("yyyy-MM-dd");
 
                switch (m_EC_PaymentRecord.PayType)
                {
                    case "印刷厂商注册费":
                        this.PanelAd.Visible = false;
                        this.PanelSoft.Visible = false;
                        break;
                    case "印刷厂商续费":
                        this.PanelAd.Visible = false;
                        this.PanelSoft.Visible = false;
                        break;
                    case "个人网店押金":
                        this.PanelAd.Visible = false;
                        this.PanelSoft.Visible = false;
                        break;
                    case "杂志广告费":
                        this.PanelAd.Visible = true;
                        this.PanelWebAd.Visible = false;
                        this.PanelBookAd.Visible = true;
                        this.PanelSoft.Visible = false;
                        break;
                    case "网站广告费":
                        this.PanelAd.Visible = true;
                        this.PanelWebAd.Visible = true;
                        this.PanelBookAd.Visible = false;
                        this.PanelSoft.Visible = false;
                        break;
                    case "管理软件费":
                        this.PanelAd.Visible = false;
                        this.PanelSoft.Visible = true;
                        break;
                    default:
                        break;
                }
            }
        }
    }
}