2025-03-27 15:05:14 +08:00

91 lines
2.9 KiB
C#

using System;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Net;
using System.IO;
using System.Web;
using System.Web.Script.Serialization;
using NJ = Newtonsoft.Json;
using NJL = Newtonsoft.Json.Linq;
using SuperMap.RealEstate.CoreFrameWork.Dictionary.Business;
using Business = SuperMap.RealEstate.HighWay.Storage.Business;
using HZQR.Common;
using QRWL.Common;
using QRWL.Web.Common;
namespace SuperMap.RealEstate.Finance.Handler
{
/// <summary>
/// handler_ajax 的摘要说明
/// </summary>
public class handler_ajax : IHttpHandler
{
//AppID(应用ID)
//public const string AppID = "wx85e69a5fb601be16";
//AppSecret(应用密钥)
//public const string AppSecret = "dfcf7748e6c7027695cbec8ffedc04dc";
protected string _serverpart_id = ConfigurationManager.AppSettings["UmiformCommodity"].ToString().Split('|')[0];
protected string _PROVINCE_CODE = ConfigurationManager.AppSettings["UmiformCommodity"].ToString().Split('|')[2];
public void ProcessRequest(HttpContext context)
{
DataTable _DataTable = null;
SuperMap.RealEstate.ServiceModel.Transaction _Transaction = new SuperMap.RealEstate.ServiceModel.Transaction();
string action_type = HttpContext.Current.Request.Form["action_type"];
string action_data = HttpContext.Current.Request.Form["action_data"];
string action_record = "";
string reString = string.Empty;
string StrSql = string.Empty;
if (string.IsNullOrEmpty(action_type))
{
action_type = HttpContext.Current.Request.Params["action_type"];
action_data = HttpContext.Current.Request.Params["action_data"];
}
switch (action_type)
{
case "GetImageList":
reString = CommonInterface.BusinessHelper.GetImageList(_Transaction);
break;
default:
reString = "error";
break;
}
try
{
if (_Transaction.IsOpen)
{
_Transaction.Commit();
_Transaction.Dispose();
}
}
catch { }
context.Response.ContentType = "text/plain";
context.Response.Write(reString);
context.Response.End();
}
public bool IsReusable
{
get
{
return false;
}
}
public static bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors)
{
return true;
}
}
}