using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using CY.BLL; using CY.BLL.Inquiry; using CY.Model; using CY.Model.Inquiry; namespace CY.WebForm.Pages.business { public partial class InsideInquiryDetail : BasePage { EC_MemberBasicBLL _eC_MemberBasicBLL = new EC_MemberBasicBLL(); PaperSizeDetailBLL _paperSizeDetailBLL = new PaperSizeDetailBLL(); PaperInfoBLL _paperInfoBLL = new PaperInfoBLL(); BrandInfoBLL _brandInfoBLL = new BrandInfoBLL(); InquiryBLL _inquiryBLL = new InquiryBLL(); RecordInfoBLL _recordInfoBLL = new RecordInfoBLL(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string firmId = string.Empty; string customerId = string.Empty; if (Request["fid"] != null) { firmId = Request["fid"].ToString(); customerId = Request["Cus"].ToString(); EC_MemberBasic memberModel = _eC_MemberBasicBLL.GetMemberByMemberId(Guid.Parse(firmId)); this.lblFirmName.Text = memberModel.Name; this.lblPhone.Text = memberModel.EC_MemberExtendMode.PhoneNum; this.lblQQ.Text = memberModel.EC_MemberExtendMode.QQ; InquiryCommonModel model = InquiryBLL.GetInquiryCommonModelByInside(); if (model != null) { this.hidPrintTypeId.Value = model.PrintTypeId.ToString(); this.lblPrintTypeName.Text = model.PrintTypeName; this.lblPrintMode.Text = model.PrintModeName; this.lblPrintCount.Text = model.PrintCountName; this.lblPrintDemand.Text = model.PrintDemand; this.lblAfterWorksDemand.Text = model.AfterWorksDemand; this.lblDeliveryMode.Text = model.DeliveryModeName; this.lblBillMode.Text = model.BillModeName; this.lblRemarks.Text = model.Remarks; Guid customerIdGuId=Guid.Empty; if (customerId != "-1") { customerIdGuId = Guid.Parse(customerId); } IList list = _inquiryBLL.GetInquiryDetailListByInside(model, Guid.Parse(firmId), customerIdGuId); this.RepInquiryResultList.DataSource = list; this.RepInquiryResultList.DataBind(); } } } } } }