using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace SuperMap.RealEstate.HighWay.Handler { /// /// ServerBusiness 的摘要说明 /// public class ServerBusiness : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string reString = ""; string action_type = HttpContext.Current.Request.Form["action_type"]; string action_data = HttpContext.Current.Request.Form["action_data"]; if (string.IsNullOrEmpty(action_type)) { action_type = HttpContext.Current.Request.QueryString["action_type"]; } if (string.IsNullOrEmpty(action_data)) { action_data = HttpContext.Current.Request.QueryString["action_data"]; } SuperMap.RealEstate.ServiceModel.Transaction _Transaction = new SuperMap.RealEstate.ServiceModel.Transaction(); if (action_type == "getServerPartBus") { //getbusiness //获得当前的营收综合 string StrSql = "SELECT NVL(SUM(CURRAMOUNT),0) FROM HIGHWAY_STORAGE.T_CONNECTPOINT WHERE CONNECT_DATE >= TRUNC(SYSDATE)"; SuperMap.RealEstate.HighWay.Storage.Business.COMMODITY _COMMODITY = new Storage.Business.COMMODITY(_Transaction); reString = _COMMODITY.ExecuteDataTable(StrSql).Rows[0][0].ToString(); } _Transaction.AutoCommit(); _Transaction.Release(); _Transaction.Dispose(); context.Response.ContentType = "text/plain"; context.Response.Write(reString); context.Response.End(); } public bool IsReusable { get { return false; } } } }