Esempio n. 1
0
 public static void Display(IAppTaxApplicationService aApplication)
 {
     using (var frm = new CursorDemo())
     {
         frm.FApplication = aApplication;
         frm.ShowDialog();
     }
 }
Esempio n. 2
0
        public static void ShowProperties(IAppTaxApplicationService aApp)
        {
            using (var form = new AppProperiesForm())
            {
                form.txtlanguage.Text          = aApp.GetDefaultLanguage().ToString();
                form.txtExecutableName.Text    = aApp.GetExecutableName();
                form.cbIsCommAvailable.Checked = aApp.getIsCOMAvailable();
                form.checkBox1.Checked         = aApp.getIsDemo();
                form.checkBox2.Checked         = aApp.getIsEducative();
                form.checkBox3.Checked         = aApp.getIsEFILEGovernment();
                form.checkBox4.Checked         = aApp.GetIsFirstExecution();
                form.checkBox5.Checked         = aApp.getIsNetWork();
                form.checkBox6.Checked         = aApp.getIsNetworkAdvanced();
                form.checkBox7.Checked         = aApp.getIsNetworkRegular();

                form.textBox1.Text = aApp.GetName();
                form.textBox3.Text = aApp.GetProductName();
                form.textBox2.Text = aApp.GetProductSuffix();
                form.textBox4.Text = aApp.getProductType().ToString();
                form.textBox5.Text = aApp.GetSoftwareVersion();
                form.textBox8.Text = aApp.GetTitleName();
                form.textBox7.Text = aApp.GetVersionType();
                form.textBox9.Text = aApp.GetYear().ToString();

                form.txtCalcDllName.Text        = aApp.GetCalcDllName();
                form.txtCalcVersion.Text        = aApp.GetCalcVersion();
                form.txtComments.Text           = aApp.GetComments();
                form.txtCompanyName.Text        = aApp.GetCompanyName();
                form.txtExecutableName.Text     = aApp.GetExecutableName();
                form.txtFileDateTime.Text       = aApp.GetFileDateTime().ToString();
                form.txtFileDescription.Text    = aApp.GetFileDescription();
                form.txtFilePath.Text           = aApp.GetFilePath();
                form.txtFileTimeStr.Text        = aApp.GetFileTimeStr();
                form.txtFileVersion.Text        = aApp.GetFileVersion();
                form.txtInternalName.Text       = aApp.GetInternalName();
                form.txtLegalCopyright.Text     = aApp.GetLegalCopyright();
                form.txtLegalTrademark.Text     = aApp.GetLegalTradeMarks();
                form.txtOriginalFileName.Text   = aApp.GetOriginalFilename();
                form.txtPrivateBuild.Text       = aApp.GetPrivateBuild();
                form.txtProductVersion.Text     = aApp.GetProductVersion();
                form.txtSpecialBuild.Text       = aApp.GetSpecialBuild();
                form.txtUniqueID.Text           = aApp.GetMachineIdentifier();
                form.txtVersionProductName.Text = aApp.GetVersionProductName();
                form.ShowDialog();
            }
        }
        private void FillXLatCombo(ComboBox ACombo, AppLanguage ALanguage, int AColumn, IAppTaxCell ACell,
                                   IAppTaxApplicationService AApplication)
        {
            ACombo.Items.Clear();
            var LCount = ACell.GetXLatValuesCount(AppLanguage.lEnglish, AApplication);

            ACombo.Items.Clear();
            try
            {
                for (var i = 0; i < LCount; ++i)
                {
                    ACombo.Items.Add(ACell.GetXLatValue(AApplication, ALanguage, AColumn, i));
                }
                ACombo.SelectedIndex = 0;
            }
            catch
            {
            }
        }
Esempio n. 4
0
 public void Cleanup()
 {
     FApplication = null;
     FDocument    = null;
 }
Esempio n. 5
0
 public void Init()
 {
     FApplication = (IAppTaxApplicationService)TestHost.CurrentInstance.AppInstance;
     FDocument    = FApplication.GetCurrentDocReturn();
 }
Esempio n. 6
0
        private void DoAppProperties()
        {
            IAppTaxApplicationService aApplication = (IAppTaxApplicationService)_appInstance;

            AppProperiesForm.ShowProperties(aApplication);
        }
Esempio n. 7
0
 public void CleanUp()
 {
     FConfiguration     = null;
     FClientFileManager = null;
     FApplication       = null;
 }
Esempio n. 8
0
 public void Init()
 {
     FApplication       = (IAppTaxApplicationService)TestHost.CurrentInstance.AppInstance;
     FClientFileManager = FApplication.GetClientFileManager();
     FConfiguration     = FApplication.Configuration;
 }
 public static void ShowCellProperties(IAppTaxCell aCell, IAppTaxApplicationService aApplication)
 {
     using (var form = new CellPropertieForm())
     {
         form.FCell               = aCell;
         form.FFormName           = aApplication.UFL.GetFormByFormNumber(((int)aCell.GetFormNum())).FormNAme;
         form.FReturn             = aApplication.GetCurrentDocReturn();
         form.txtName.Text        = aCell.GetCellNameWithGroup();
         form.lblType.Text        = aCell.GetCellTypeText();
         form.lblDefaultForm.Text = aCell.GetOwnerTaxData().GetFormName(aCell.GetFormNum());
         var lStringValue = "";
         if (aCell.ConvertToString(ref lStringValue))
         {
             form.txtValue.Text = lStringValue;
         }
         else
         {
             form.txtValue.Text = "";
         }
         form.cbHasInput.Checked            = aCell.HasInput();
         form.cbHasCalc.Checked             = aCell.HasCalc();
         form.cbHasImport.Checked           = aCell.IsImported();
         form.cbIsEmpty.Checked             = aCell.IsEmpty();
         form.cbIsEstimated.Checked         = aCell.IsEstimated();
         form.cbIsTracking.Checked          = aCell.IsTracking();
         form.cbHasFormNum.Checked          = aCell.HasFormNum();
         form.cbHasInternalOvrd.Checked     = aCell.HasInternalOvrd();
         form.cbHasRolledValue.Checked      = aCell.HasRolledValue();
         form.cbHasUserOvrd.Checked         = aCell.HasUserOvrd();
         form.cbIsPositiveOnly.Checked      = aCell.IsPositiveOnly();
         form.cbIsNA.Checked                = aCell.IsNA();
         form.cbIsSourceEstimate.Checked    = aCell.IsSourceEstimate();
         form.cbIsProtected.Checked         = aCell.IsProtected();
         form.cbHasRolledValue.Checked      = aCell.HasRolledValue();
         form.cbIsSelectable.Checked        = aCell.IsSelectable();
         form.cbIsRoundOnAssign.Checked     = aCell.IsRoundOnAssign();
         form.cbIsDeprecated.Checked        = aCell.IsDeprecated();
         form.cbHasTransferredValue.Checked = aCell.HasTransferredValue();
         form.cbIsLinkCell.Checked          = aCell.IsLinkCell();
         var  formNum  = aCell.GetFormNum();
         var  ufl      = aApplication.UFL;
         var  frm      = ufl.GetFormByFormNumber((int)formNum);
         var  formName = frm.FormNAme;
         var  LXlat    = aCell.GetAssociatedStringTable();
         uint repeatNum;
         var  group = aCell.GetOwnerTaxData().GetRepeatById(aCell.GetOwnerRepeatId(), out repeatNum);
         var  cells = "";
         for (uint iCellNum = 0; iCellNum < group.GetNumCells(); ++iCellNum)
         {
             var newCell = group.GetCellFromRepeat(iCellNum, repeatNum);
             cells += newCell.GetCellNameWithGroup() + "\r\n";
         }
         form.txtCells.Text = cells;
         if (LXlat >= 0)
         {
             form.lblXlatEnum.Text = LXlat.ToString();
             form.FillXLatCombo(form.cbXlatEng0, AppLanguage.lEnglish, 0, aCell, aApplication);
             form.FillXLatCombo(form.cbXlatEng1, AppLanguage.lEnglish, 1, aCell, aApplication);
             form.FillXLatCombo(form.cbXlatEng2, AppLanguage.lEnglish, 2, aCell, aApplication);
             form.FillXLatCombo(form.cbXlatFr0, AppLanguage.lFrench, 0, aCell, aApplication);
             form.FillXLatCombo(form.cbXlatFr1, AppLanguage.lFrench, 1, aCell, aApplication);
             form.FillXLatCombo(form.cbXlatFr2, AppLanguage.lFrench, 2, aCell, aApplication);
         }
         else
         {
             form.lblXlatEnum.Text = "None";
         }
         form.lblContentType.Text = aCell.GetCellTypeText();
         form.txtMask.Text        = aCell.GetEditControlMask(0);
         var LAliases = "";
         for (var i = 0; i < aCell.GetAliasNamesCount(); ++i)
         {
             LAliases += aCell.GetAliasNames(i) + "\r\n";
         }
         form.txtAliases.Text = string.Format("Aliases count {0}\r\nAliases:\r\n{1}",
                                              aCell.GetAliasNamesCount(), LAliases);
         form.ShowDialog();
     }
 }
Esempio n. 10
0
 public void CleanUp()
 {
     FLetters     = null;
     FApplication = null;
 }
Esempio n. 11
0
 public void Init()
 {
     FApplication = (IAppTaxApplicationService)TestHost.CurrentInstance.AppInstance;
     FLetters     = FApplication.ClientLetterManager;
 }
 public void CleanUp()
 {
     FApplication = null;
 }
 public void Init()
 {
     FApplication = (IAppTaxApplicationService)TestHost.CurrentInstance.AppInstance;
 }