fenglinyong 2 년 전
부모
커밋
c205c0e334
2개의 변경된 파일0개의 추가작업 그리고 17개의 파일을 삭제
  1. 0 15
      wwwroot/Global.asax
  2. 0 2
      wwwroot/start.ashx

+ 0 - 15
wwwroot/Global.asax

@@ -20,19 +20,16 @@
     void Application_End(object sender, EventArgs e)
     {
         //  在应用程序关闭时运行的代码
-
     }
 
     void Application_Error(object sender, EventArgs e)
     {
         // 在出现未处理的错误时运行的代码
-
     }
 
     void Session_Start(object sender, EventArgs e)
     {
         // 在新会话启动时运行的代码
-
     }
 
     void Session_End(object sender, EventArgs e)
@@ -41,7 +38,6 @@
         // 注意: 只有在 Web.config 文件中的 sessionstate 模式设置为
         // InProc 时,才会引发 Session_End 事件。如果会话模式设置为 StateServer
         // 或 SQLServer,则不引发该事件。
-
     }
 
     //定时器任务 自动结转数据===============================
@@ -58,11 +54,9 @@
 
     void tr_Elapsed(object sender, EventArgs e)
     {
-
         using (IDataAccess conn = DataAccess.Create())
         {
             string guid = Guid.NewGuid().ToString().Replace("-", "").ToUpper();
-
             try
             {
                 #region 读取可结转的表
@@ -89,14 +83,11 @@
                 ");
 
                 Logger.Debug("轮询结转配置表!");
-
                 #endregion
 
                 if (dt.Rows.Count > 0)
                 {
-
                     #region 开始结转
-
                     string message = "开始结转:" + DateTime.Now.ToString();
                     conn.ExecuteNonQuery(@"
                         INSERT INTO JZ_LOG (
@@ -124,7 +115,6 @@
                     );
 
                     Logger.Debug("表名:" + dt.Rows[0]["RPTNAME"].ToString() + " 开始结转!");
-
                     #endregion
 
                     #region 结转处理
@@ -134,7 +124,6 @@
 
                     Logger.Debug("表名:" + dt.Rows[0]["RPTNAME"].ToString() + " 结转接口" + dt.Rows[0]["APIURL"].ToString() + "执行完成!");
                     Logger.Debug(jsonStr);
-
                     #endregion
 
                     #region 结转完成,更新日志
@@ -153,9 +142,7 @@
                     );
 
                     Logger.Debug("表名:" + dt.Rows[0]["RPTNAME"].ToString() + " 结转完成!");
-
                     #endregion
-
                 }
             }
             catch (Exception ex)
@@ -176,8 +163,6 @@
                 Logger.Error(ex);
                 #endregion
             }
-
         }
     }
-
 </script>

+ 0 - 2
wwwroot/start.ashx

@@ -4,7 +4,6 @@ using System;
 using System.Web;
 
 public class test : IHttpHandler {
-    
     public void ProcessRequest (HttpContext context) {
         context.Response.ContentType = "text/plain";
         context.Response.Write("启动成功!");
@@ -15,5 +14,4 @@ public class test : IHttpHandler {
             return false;
         }
     }
-
 }