Exemplo n.º 1
0
 protected override void RunCommand()
 {
     try
     {
         ServiceFactory.InvokePubService("Aisino.Fwkp.RunInitial", new object[1]);
         ServiceFactory.InvokePubService("Aisino.Fwkp.SetCorpInfo", new object[1]);
         ServiceFactory.InvokePubService("Aisino.Fwkp.CheckCorpInfo", new object[1]);
         string str  = PropertyUtil.GetValue("FullInstall");
         string str2 = PropertyUtil.GetValue("SjqySuccess");
         if (((!string.IsNullOrEmpty(str) || string.IsNullOrEmpty(str2)) && (str.Equals("1") || string.IsNullOrEmpty(str2))) && DataMigrationToolForm.LinkParadox())
         {
             DataMigrationToolForm form = new DataMigrationToolForm();
             form.SetFuZhiBtnV(false);
             form.ShowDialog();
         }
         PropertyUtil.SetValue("SjqySuccess", "1");
         PropertyUtil.Save();
         ServiceFactory.InvokePubService("Aisino.Fwkp.Fpzpz.InsertDQBM_To_KHBM", new object[] { false });
     }
     catch (BaseException exception)
     {
         this._Loger.Error(exception.Message);
         ExceptionHandler.HandleError(exception);
     }
     catch (Exception exception2)
     {
         this._Loger.Error(exception2.Message);
         ExceptionHandler.HandleError(exception2);
     }
 }
 protected override object[] doService(object[] param)
 {
     try
     {
         if (DataMigrationToolForm.LinkParadox())
         {
             new DataMigrationToolForm().ShowDialog();
         }
         return(new object[] { 1 });
     }
     catch (BaseException exception)
     {
         this._Loger.Error(exception.Message);
         ExceptionHandler.HandleError(exception);
         return(null);
     }
     catch (Exception exception2)
     {
         this._Loger.Error(exception2.Message);
         ExceptionHandler.HandleError(exception2);
         return(null);
     }
 }