Пример #1
0
 protected void Page_Load(object sender, System.EventArgs e)
 {
     if (Request.QueryString["key"] != null)
     {
         System.DateTime dStartTime = System.DateTime.Now;
         Response.Write("Start time: " + dStartTime.ToLongTimeString().ToString() + ".\r\n");
         if ((new AdmPuMkDeploySystem()).UpdReleaseBuild(Int16.Parse(Request.QueryString["key"]), (new LoginSystem()).GetRbtVersion()))
         {
             Deploy dp = new Deploy();
             base.CSrc = new CurrSrc(true, null); base.CTar = new CurrTar(true, null);
             string sbWarnMsg = dp.PrepInstall(Int32.Parse(Request.QueryString["key"]), base.CSrc, base.CTar, LcSysConnString, LcAppPw);
             if (sbWarnMsg != string.Empty)
             {
                 PreMsgPopup(sbWarnMsg);
             }
             System.DateTime dEndTime = System.DateTime.Now;
             Response.Write("End time: " + dEndTime.ToLongTimeString().ToString() + ".\r\n");
             Response.Write("Total lapsed time: " + ((System.TimeSpan)(dEndTime - dStartTime)).ToString() + "\r\n");
             Response.Write("Deployment for release ID:" + Request.QueryString["key"] + " completed successfully.\r\n\r\n");
         }
         else
         {
             Response.Write("Deployment for release ID:" + Request.QueryString["key"] + " aborted, please try again.\r\n\r\n");
         }
         Response.End();
     }
 }