Esempio n. 1
0
 public void Execute(IAppDocReturn aReturn)
 {
     if (_onExecute != null)
     {
         _onExecute(aReturn);
     }
 }
Esempio n. 2
0
 public static void ShowUFL(IAppUFL aUFL, IAppDocReturn aReturn)
 {
     using (var lDalog = new UFLDemo(aUFL, aReturn))
     {
         lDalog.ShowDialog();
     }
 }
 public static void ShowDemo(IAppClientLetterManager aLettersManager, IAppDocReturn aReturn, IAppUFL aUfl)
 {
     using (var LDialog = new ClientLettersDemo(aLettersManager, aReturn, aUfl))
     {
         LDialog.ShowDialog();
     }
 }
 public void Execute(IAppDocReturn aDocReturn, string AStatusName, int aOldValue, int AValue)
 {
     if (_onExecute != null)
     {
         _onExecute(aDocReturn, AStatusName, aOldValue, AValue);
     }
 }
Esempio n. 5
0
 public UFLDemo(IAppUFL aUfl, IAppDocReturn aReturn)
 {
     fUfl    = aUfl;
     FReturn = aReturn;
     InitializeComponent();
     lstMain.Items.Clear();
     cbLanguage.SelectedIndex = 0;
 }
 public ClientLettersDemo(IAppClientLetterManager aLettersManager, IAppDocReturn aReturn, IAppUFL aUfl)
 {
     FLettersManager = aLettersManager;
     FReturn         = aReturn;
     FUfl            = aUfl;
     InitializeComponent();
     lstMain.Items.Clear();
 }
Esempio n. 7
0
 public void Execute(IAppDocReturn aDocReturn, string AStatusName, int aOldValue, int AValue)
 {
     try
     {
         if (_onExecute != null)
         {
             _onExecute(aDocReturn, AStatusName, aOldValue, AValue);
         }
     }
     catch (Exception e)
     {
         if (!UnhandledExceptionManager.HandleException(this, e))
         {
             throw;
         }
     }
 }
Esempio n. 8
0
 public void Execute(IAppDocReturn aDocReturn)
 {
     try
     {
         if (_onExecute != null)
         {
             _onExecute(aDocReturn);
         }
     }
     catch (Exception e)
     {
         if (!UnhandledExceptionManager.HandleException(this, e))
         {
             throw;
         }
     }
 }
 public void Execute(IAppDocReturn aDocReturn, int ADiagGroup, string ADiagName)
 {
     try
     {
         if (_onExecute != null)
         {
             _onExecute(aDocReturn, ADiagGroup, ADiagName);
         }
     }
     catch (Exception e)
     {
         if (!UnhandledExceptionManager.HandleException(this, e))
         {
             throw;
         }
     }
 }
Esempio n. 10
0
 public bool Execute(IAppDocReturn aDocReturn, int AGroupNo, string ADiagName)
 {
     try
     {
         if (_onExecute != null)
         {
             return(_onExecute(aDocReturn, AGroupNo, ADiagName));
         }
     }
     catch (Exception e)
     {
         if (!UnhandledExceptionManager.HandleException(this, e))
         {
             throw;
         }
     }
     return(false);
 }
Esempio n. 11
0
        public static void ShowReturnproperties(IAppDocReturn AReturn)
        {
            var LStatus = AReturn.GetProperties();

            using (var form = new ReturnProperties())
            {
                form.txtStatus.Text = "";
                form.FStatus        = LStatus;
                form.txtStatus.Items.Clear();
                for (var i = 0; i < LStatus.Count; ++i)
                {
                    string LName;
                    LStatus.GetKeyAt(i, out LName);
                    form.txtStatus.Items.Add(string.Format("{0} = {1}\r\n", LName, LStatus.AsString(LName, "")));
                }
                form.txtReturnStatusEng.Text = LStatus.GetReturnStatus(AppLanguage.lEnglish);
                form.txtReturnStatusFr.Text  = LStatus.GetReturnStatus(AppLanguage.lFrench);
                form.ShowDialog();
                form.FStatus = null;
            }
            LStatus = null;
        }
Esempio n. 12
0
 public void Cleanup()
 {
     FApplication = null;
     FDocument    = null;
 }
Esempio n. 13
0
 private bool DoCalcAddinDiag(IAppDocReturn aDocReturn, int AGroupNo, string ADiagName)
 {
     return(AGroupNo == 0 && ADiagName.Equals("MyUniqueDiagIdentification") && CustomDiagOn);
 }
Esempio n. 14
0
 public void Init()
 {
     FApplication = (IAppTaxApplicationService)TestHost.CurrentInstance.AppInstance;
     FDocument    = FApplication.GetCurrentDocReturn();
 }
Esempio n. 15
0
 private void DoBeforeCalc(IAppDocReturn aReturn)
 {
     m_logger.Log(LogLevel.Trace, "DbEnv.BeforeCalc");
 }
Esempio n. 16
0
 private void DoClickAddinDiag(IAppDocReturn aDocReturn, int ADiagGroup, string ADiagName)
 {
     MessageBox.Show("Click on custom diag " + ADiagName);
 }
Esempio n. 17
0
 private void DoAfterCalc(IAppDocReturn aReturn)
 {
     m_logger.Log(LogLevel.Trace, "DbEnv.DoAfterCalc");
 }
Esempio n. 18
0
 private void DoOnCheckHeaderAlias(IAppDocReturn Document)
 {
     m_logger.Log(LogLevel.Trace, "DoOnCheckHeaderAlias : AReturnId={0}", Document.GetReturnId());
 }
Esempio n. 19
0
 private void DoOnUpdateReturnHeader(IAppDocReturn Document)
 {
     m_logger.Log(LogLevel.Trace, "DoOnUpdateReturnHeader : AReturnId={0}", Document.GetReturnId());
 }
Esempio n. 20
0
 private void DoBeforeReturnStatusChange(IAppDocReturn aDocReturn, string AStatusName, int aOldValue, int AValue)
 {
     m_logger.Log(LogLevel.Trace, "DoBeforeReturnStatusChange status '{0}' from '{1}' to '{2}'", AStatusName, aOldValue, AValue);
 }
 private void CellPropertieForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     FCell   = null;
     FReturn = null;
 }