username@email.com
2025-05-09 66beb245e516809514642c00922f0339bf760518
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CY.Model.Inquiry;
using CY.Infrastructure.Common;
using CY.BLL.Inquiry;
using CY.WebForm.Pages.front;
namespace CY.WebForm.Pages.business
{
    public partial class TTTInsideInquiry : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Guid FirmId = Request["BussinessID"].ToGuid2();
            Session["PrintTypeId"] = Request["PrintTypeId"].ToInt32().Value;
            if (Request["sumit"] != null)
            {
                string result = string.Empty;
                int pageIndex = 1;
                int pageSize = 5;
                if (Request["hidPageIndex"] != null)
                    pageIndex = Request["hidPageIndex"].ToString().ToInt32().Value;
                InquiryCommonModel model = InquiryOnLine.GetInquiryCommonModel();
                string xmlStr = InquiryBLL.GetInquiryCommonModelXMLStr(model);
                xmlStr = SerializationHelper.EncryptDES(xmlStr, "ssssssss");
                int index = xmlStr.Length / 2;
                string xmlStr1 = xmlStr.Substring(0, index);
                string xmlStr2 = xmlStr.Substring(index, xmlStr.Length - index);
                Utils.WriteCookie("TTTInsideInquiryRecord1", xmlStr1);
                Utils.WriteCookie("TTTInsideInquiryRecord2", xmlStr2);
                InquiryBLL _inquiryBLL = new InquiryBLL();
                int pageCount = 0;
                Guid customerId = Guid.Empty;
                if (Session["CustomerId"] != null)
                    customerId = Guid.Parse(Session["CustomerId"].ToString());
                else
                {
                    customerId = Guid.Empty;
                }
                IList<InquiryResultModel> inquiryResultList = _inquiryBLL.GetInquiryResultListByInside(model, FirmId, customerId,-1,string.Empty,string.Empty,string.Empty,string.Empty,pageIndex, pageSize, ref pageCount);
                string jsonStr = JsonHelper.GetJsonStringByObject(inquiryResultList);
                result = "{ pageCount:" + pageCount + ",inquiryList:" + jsonStr + "}";
                Response.Write(result);
                Response.End();
            }
        }
    }
}