SystemInit.aspx.cs
上传用户:tiancihang
上传日期:2014-03-12
资源大小:21387k
文件大小:1k
源码类别:

.net编程

开发平台:

C#

  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Collections;
  5. using System.Web;
  6. using System.Web.Security;
  7. using System.Web.UI;
  8. using System.Web.UI.WebControls;
  9. using System.Web.UI.WebControls.WebParts;
  10. using System.Web.UI.HtmlControls;
  11. using com.etong.DAL.FC;
  12. public partial class SysManage_SystemInit : System.Web.UI.Page
  13. {
  14.     protected void Page_Load(object sender, EventArgs e)
  15.     {
  16.     }
  17.     protected void Init_Click(object sender, ImageClickEventArgs e)
  18.     {
  19.         EtongFlyChouInit EFlyInit = new EtongFlyChouInit();
  20.         try
  21.         {
  22.             EFlyInit.OrgInit();
  23.             EFlyInit.EmpInit();
  24.         }
  25.         catch (Exception ex)
  26.         {
  27.             this.ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert('" + ex.Message.Replace("'", "").Replace("rn", "").Replace("n", "") + "');</script>");
  28.             return;
  29.         }
  30.         this.ClientScript.RegisterStartupScript(this.GetType(),"","alert('系统提示:系统初始化成功!');",true);
  31.     }
  32. }