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; } } } } }