public void MachineExecute()
        {
            //used to set wizard header
            Machine["ListSection"]    = LookupUtil.GetValues(LookupTable.WizEmployerRegistration, null, "{DisplaySortOrder}", null);
            Machine["CurrentSection"] = LookupUtil.GetLookupCode(LookupTable.WizEmployerRegistration, LookupTable_WizEmployerRegistration.EnterLiabilityInformation);
            Machine["ShowHeader"]     = false;

            //initialize EmployerRegistration object and required address objects
            Machine["EmployerRegistration"] = new EmployerRegistrationViewModel();
            Machine["EntityAddress"]        = new AddressLinkDto()
            {
                Address = new AddressDto()
            };
            Machine["PhysicalAddress"] = new AddressLinkDto()
            {
                Address = new AddressDto()
                {
                    StateCode = LookupTable_State.Washington, CountryCode = LookupTable_Country.UnitedStates
                }
            };
            Machine["BusinessAddress"] = new AddressLinkDto()
            {
                Address = new AddressDto()
            };
            Machine["YearList"] = PopulateYears(4, 0, true);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Method executes during page load
        /// </summary>
        public void MachineExecute()
        {
            //used to set wizard header
            Machine["ListSection"]    = LookupUtil.GetValues(LookupTable.WizEmployerRegistration, null, "{DisplaySortOrder}", null);
            Machine["CurrentSection"] = LookupUtil.GetLookupCode(LookupTable.WizEmployerRegistration, LookupTable_WizEmployerRegistration.EnterLiabilityInformation);
            Machine["ShowHeader"]     = false;

            //initialize EmployerRegistration object and required address objects
            Machine["EmployerRegistration"] = new EmployerRegistrationViewModel();
            Machine["EntityAddress"]        = new AddressLinkDto()
            {
                Address = new AddressDto()
                {
                    StateCode = LookupTable_StatePrvnc.Washington, CountryCode = LookupTable_Country.UnitedStates
                }, AddressTypeCode = LookupTable_AddressType.Mailing
            };
            Machine["PhysicalAddress"] = new AddressLinkDto()
            {
                Address = new AddressDto()
                {
                    StateCode = LookupTable_StatePrvnc.Washington, CountryCode = LookupTable_Country.UnitedStates
                }, AddressTypeCode = LookupTable_AddressType.Physical
            };
            Machine["BusinessAddress"] = new AddressLinkDto()
            {
                Address = new AddressDto()
                {
                    StateCode = LookupTable_StatePrvnc.Washington, CountryCode = LookupTable_Country.UnitedStates
                }, AddressTypeCode = LookupTable_AddressType.Business
            };
            Machine["YearList"] = DateUtil.PopulateYears(Convert.ToInt16(LookupTable_WageDetailUnitYears.YearsForWageFiling), 0, false);
        }
        public void MenuDataTableExecute()
        {
            Random random = new Random();

            int valueIndex = 0;
            List <HtmlValueText> values = LookupUtil.GetValues(LookupTable.State, null, null, null);

            List <DataTableSimpleRecord> dataTableSimpleRecords = new List <DataTableSimpleRecord>();

            for (int i = 0; i < 500; i++)
            {
                if (valueIndex >= values.Count)
                {
                    valueIndex = 0;
                }
                DataTableSimpleRecord record = new DataTableSimpleRecord {
                    Field1 = DateTimeUtil.Now.AddDays(random.Next(-1000, 1000)), Field2 = i + 1, Field3 = $"Row {i + 1}\n-\nCol 311", State = values[valueIndex++].Value.ToString()
                };

                record.Child        = new DataTableSimpleRecord();
                record.Child.Field1 = DateTimeUtil.Now;
                record.Child.Field2 = i + 1;
                record.Child.Field3 = $"Child {i + 1} - Col 3";
                record.Child.State  = record.State;

                dataTableSimpleRecords.Add(record);
            }
            Machine["DataTableRecords"] = dataTableSimpleRecords;
            Machine["DataTableSource"]  = dataTableSimpleRecords;
            MenuTransferExecute();
        }
Exemplo n.º 4
0
        /// <summary>
        /// Method executes during page load
        /// </summary>
        public void MachineExecute()
        {
            Machine["ListSection"]    = LookupUtil.GetValues(LookupTable.WizEmployerWageFiling, null, "{DisplaySortOrder}", null);
            Machine["CurrentSection"] = LookupUtil.GetLookupCode(LookupTable.WizEmployerWageFiling, LookupTable_WizEmployerWageFiling.SelectFilingMethod);

            Machine["ShowHeader"]        = true;
            Machine["ReportingYearList"] = DateUtil.PopulateYears(Convert.ToInt16(LookupTable_WageDetailUnitYears.YearsForWageFiling), 0, false);

            //Set Default Values for Year and Quarter
            SetReportingYearAndQuarterDefaultValues();
        }
        public void MenuBasicExecute()
        {
            Machine["BasicCheckBoxBool"]        = false;
            Machine["BasicCheckBoxString"]      = "No";
            Machine["BasicCheckBoxStringMulti"] = "";
            Machine["BasicCheckBoxArray"]       = new string[0];
            Machine["BasicCheckBoxList"]        = new List <string>();

            Machine["BasicRadioButtonBool"]   = false;
            Machine["BasicRadioButtonString"] = "No";
            Machine["BasicRadioButtonMulti"]  = "One";

            Machine["BasicBulletedListData"] = new string[] { "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine" };

            Machine["BasicDropDownList3"] = null;
            Machine["BasicDropDownList4"] = null;



            Random random = new Random();

            int valueIndex = 0;
            List <HtmlValueText> values = LookupUtil.GetValues(LookupTable.State, null, null, null);

            List <DataTableSimpleRecord> dataTableSimpleRecords = new List <DataTableSimpleRecord>();

            for (int i = 0; i < 10; i++)
            {
                if (valueIndex >= values.Count)
                {
                    valueIndex = 0;
                }
                DataTableSimpleRecord record = new DataTableSimpleRecord {
                    Field1 = DateTimeUtil.Now.AddDays(random.Next(-100, 100)), Field2 = i + 1, Field3 = $"Row {i + 1} - Col 3", State = values[valueIndex++].Value.ToString()
                };

                record.Child        = new DataTableSimpleRecord();
                record.Child.Field1 = DateTimeUtil.Now;
                record.Child.Field2 = i + 1;
                record.Child.Field3 = $"Child {i + 1} - Col 3";
                record.Child.State  = record.State;

                record.Children = new List <DataTableSimpleRecord>();
                for (int j = 0; j < 3; j++)
                {
                    record.Children.Add(new DataTableSimpleRecord {
                        Field1 = DateTimeUtil.Now.AddDays(random.Next(-100, 100)), Field2 = -(j + 1), Field3 = $"Row {-(j + 1)} - Col 3", State = values[valueIndex++].Value.ToString()
                    });
                }

                dataTableSimpleRecords.Add(record);
            }
            Machine["BasicRepeaterRecords"] = dataTableSimpleRecords;
        }
Exemplo n.º 6
0
        public void MachineExecute()
        {
            //TO DO
            //Get Values from the DB Context
            Machine["emprAccountID"] = 100101;
            Machine["emprName"]      = "Test Employer";
            Machine["dbaName"]       = "Test DBA";

            Machine["ListSection"]    = LookupUtil.GetValues(LookupTable.MakePaymentWizardFlow, null, "{DisplaySortOrder}", null);
            Machine["CurrentSection"] = LookupUtil.GetLookupCode(LookupTable.MakePaymentWizardFlow, LookupTable_MakePaymentWizardFlow.SelectPaymentMethod);
            Machine["ShowHeader"]     = true;
        }