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