username@email.com
2021-09-02 9da546cd8de37882147f19f6f090544476bfe5ae
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
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<CY.Model.InquiryDetail> list = _inquiryBLL.GetInquiryDetailListByInside(model, Guid.Parse(firmId), customerIdGuId);
                        this.RepInquiryResultList.DataSource = list;
                        this.RepInquiryResultList.DataBind();
                    }
                }
            }
        }
    }
}