public BanksPage()
        {
            this.InitializeComponent();
            this.moduleInfo = CloureManager.GetModuleInfo();

            LoadData();
        }
예제 #2
0
        public DebitCardAddPage()
        {
            this.InitializeComponent();

            moduleInfo           = CloureManager.GetModuleInfo();
            txtNombrePrompt.Text = moduleInfo.locales.GetNamedString("name");
        }
예제 #3
0
        public CompanyPage()
        {
            this.InitializeComponent();

            moduleInfo = CloureManager.GetModuleInfo();
            txtTipoEmpresaPrompt.Text = moduleInfo.locales.GetNamedString("company_type");
            txtCompanyNamePrompt.Text = moduleInfo.locales.GetNamedString("company_name");
            txtWebPrompt.Text         = moduleInfo.locales.GetNamedString("website");

            Run run = new Run();

            run.Text = CloureManager.getPrimaryDomain();

            Hyperlink hyperlink = new Hyperlink();

            hyperlink.Inlines.Add(run);
            hyperlink.NavigateUri = new Uri("http://" + CloureManager.getPrimaryDomain());

            txtWeb.Text = "";
            txtWeb.Inlines.Add(hyperlink);

            txtCloureAccountDetails.Text = "Cloure " + CloureManager.getAccountType();

            GetBusinessTypes();

            LoadData();
        }
        public CompanyBranchesPage()
        {
            this.InitializeComponent();
            this.ModuleInfo = CloureManager.GetModuleInfo();

            LoadData();
        }
예제 #5
0
        public UserAddPage()
        {
            this.InitializeComponent();
            moduleInfo = CloureManager.GetModuleInfo();

            LoadUsersGroups();
            LoadGenders();
        }
        public TransportsPage()
        {
            this.InitializeComponent();
            moduleInfo = CloureManager.GetModuleInfo();

            txtNoResults.Text = moduleInfo.locales.GetNamedString("no_results");


            LoadData();
        }
        public SupportPage()
        {
            this.InitializeComponent();
            moduleInfo = CloureManager.GetModuleInfo();

            txtInquiryTypePrompt.Text = moduleInfo.locales.GetNamedString("inquiry_type");
            txtCommentsPrompt.Text    = moduleInfo.locales.GetNamedString("comments");

            GetSupportTypes();
        }
예제 #8
0
        public ChangePassPage()
        {
            this.InitializeComponent();

            ModuleInfo moduleInfo = CloureManager.GetModuleInfo();

            txtNewPassPrompt.Text    = moduleInfo.locales.GetNamedString("new_password");
            txtOldPassPrompt.Text    = moduleInfo.locales.GetNamedString("old_password");
            txtRepeatPassPrompt.Text = moduleInfo.locales.GetNamedString("repeat_password");
        }
예제 #9
0
        public BankAddPage()
        {
            this.InitializeComponent();

            moduleInfo = CloureManager.GetModuleInfo();

            txtNombrePrompt.Text        = moduleInfo.locales.GetNamedString("name");
            txtWebPrompt.Text           = moduleInfo.locales.GetNamedString("web");
            txtOnlineBankingPrompt.Text = moduleInfo.locales.GetNamedString("online_banking");
        }
        public ProductsServicesCategoriesPage()
        {
            this.InitializeComponent();

            this.moduleInfo           = CloureManager.GetModuleInfo();
            txtSearch.PlaceholderText = moduleInfo.locales.GetNamedString("search");
            txtNoResults.Text         = moduleInfo.locales.GetNamedString("no_results");

            LoadCategoriesTypes();
        }
        public CompanyBranchAddPage()
        {
            this.InitializeComponent();

            moduleInfo = CloureManager.GetModuleInfo();

            txtNombrePrompt.Text    = moduleInfo.locales.GetNamedString("name");
            txtDireccionPrompt.Text = moduleInfo.locales.GetNamedString("address");
            txtTelefonoPrompt.Text  = moduleInfo.locales.GetNamedString("phone");
        }
        public ProductServiceAddPage()
        {
            this.InitializeComponent();
            this.moduleInfo = CloureManager.GetModuleInfo();

            if (CloureManager.getAccountType() == "free" || CloureManager.getAccountType() == "test_free")
            {
                txtImgAdvice.Text = moduleInfo.locales.GetNamedString("warning_text_image_free");
            }

            LoadLocales();
            LoadProductTypes();
            LoadProductUnits();
        }
        public MyAccountPage()
        {
            this.InitializeComponent();

            moduleInfo             = CloureManager.GetModuleInfo();
            txtNombrePrompt.Text   = moduleInfo.locales.GetNamedString("name");
            txtApellidoPrompt.Text = moduleInfo.locales.GetNamedString("last_name");
            txtTelefonoPrompt.Text = moduleInfo.locales.GetNamedString("phone");
            txtMailPrompt.Text     = moduleInfo.locales.GetNamedString("email");
            txtPaisPrompt.Text     = moduleInfo.locales.GetNamedString("country");
            txtPaisN1Prompt.Text   = moduleInfo.locales.GetNamedString("state_province");

            LoadCountries();
        }
        public FinanceAdd()
        {
            this.InitializeComponent();

            moduleInfo = CloureManager.GetModuleInfo();

            cboOperationPrompt.Text     = moduleInfo.locales.GetNamedString("operation");
            cboPaymentMethodPrompt.Text = moduleInfo.locales.GetNamedString("payment_method");
            txtDescriptionPrompt.Text   = moduleInfo.locales.GetNamedString("description");
            txtAmountPrompt.Text        = moduleInfo.locales.GetNamedString("amount");

            GetOperations();
            GetPaymentsMethods();
        }
예제 #15
0
        public ProductsServicesPage()
        {
            this.InitializeComponent();
            this.moduleInfo = CloureManager.GetModuleInfo();

            txtSearch.PlaceholderText = moduleInfo.locales.GetNamedString("search");
            txtNoResults.Text         = moduleInfo.locales.GetNamedString("no_results");

            foreach (ModuleFilter moduleFilters in moduleInfo.moduleFilters)
            {
                TextBlock textBlock = new TextBlock();
                textBlock.Text = moduleFilters.Title;
                textBlock.HorizontalAlignment = HorizontalAlignment.Stretch;
                textBlock.VerticalAlignment   = VerticalAlignment.Top;
                textBlock.Margin     = new Thickness(5, 5, 5, 0);
                textBlock.Height     = 20;
                textBlock.Foreground = new SolidColorBrush(Colors.White);
                textBlock.FontSize   = 14;
                grdFiltersContent.Children.Add(textBlock);

                if (moduleFilters.Type == "combo")
                {
                    //showDialog(moduleFilters.Default);
                    ComboBox comboFilter = new ComboBox();
                    comboFilter.Name = moduleFilters.Name;
                    comboFilter.HorizontalAlignment = HorizontalAlignment.Stretch;
                    comboFilter.Margin            = new Thickness(5, 0, 5, 10);
                    comboFilter.ItemsSource       = moduleFilters.FilterItems;
                    comboFilter.SelectedValuePath = "Id";
                    comboFilter.DisplayMemberPath = "Title";
                    //comboBox.SelectedIndex = 0;
                    comboFilter.SelectionChanged += ComboFilter_SelectionChanged;
                    grdFiltersContent.Children.Add(comboFilter);
                    comboFilter.SelectedValue = moduleFilters.Default;
                }
            }

            Button applybutton = new Button();

            applybutton.Content             = moduleInfo.locales.GetNamedString("apply");
            applybutton.HorizontalAlignment = HorizontalAlignment.Center;
            applybutton.Style  = (Style)Application.Current.Resources["CloureFilterButton"];
            applybutton.Click += Applybutton_Click;
            grdFiltersContent.Children.Add(applybutton);

            LoadData();
        }
 public ProductServiceCategoryAddPage()
 {
     this.InitializeComponent();
     moduleInfo           = CloureManager.GetModuleInfo();
     txtNombrePrompt.Text = moduleInfo.locales.GetNamedString("name");
 }
예제 #17
0
        public UsersPage()
        {
            this.InitializeComponent();
            this.moduleInfo = CloureManager.GetModuleInfo();

            txtSearch.PlaceholderText = moduleInfo.locales.GetNamedString("search");

            /*
             * foreach (GlobalCommand globalCommand in moduleInfo.globalCommands)
             * {
             *  Button globalCommandButton = new Button();
             *  globalCommandButton.Name = globalCommand.Name;
             *  globalCommandButton.HorizontalContentAlignment = HorizontalAlignment.Center;
             *  globalCommandButton.Style = (Style)Application.Current.Resources["CloureButton"];
             *  globalCommandButton.Content = globalCommand.Title;
             *  //Windows.UI.Xaml.Shapes.Path path = new Windows.UI.Xaml.Shapes.Path();
             *  ToolBar.Children.Add(globalCommandButton);
             *  globalCommandButton.Click += GlobalCommand_Click;
             * }
             */

            foreach (ModuleFilter moduleFilters in moduleInfo.moduleFilters)
            {
                TextBlock textBlock = new TextBlock();
                textBlock.Text = moduleFilters.Title;
                textBlock.HorizontalAlignment = HorizontalAlignment.Stretch;
                textBlock.VerticalAlignment   = VerticalAlignment.Top;
                textBlock.Margin     = new Thickness(5, 5, 5, 0);
                textBlock.Height     = 20;
                textBlock.Foreground = new SolidColorBrush(Colors.White);
                textBlock.FontSize   = 14;
                grdFiltersContent.Children.Add(textBlock);

                if (moduleFilters.Type == "combo")
                {
                    //showDialog(moduleFilters.Default);
                    ComboBox comboFilter = new ComboBox();
                    comboFilter.Name = moduleFilters.Name;
                    comboFilter.HorizontalAlignment = HorizontalAlignment.Stretch;
                    comboFilter.Margin            = new Thickness(5, 0, 5, 10);
                    comboFilter.ItemsSource       = moduleFilters.FilterItems;
                    comboFilter.SelectedValuePath = "Id";
                    comboFilter.DisplayMemberPath = "Title";
                    //comboBox.SelectedIndex = 0;
                    comboFilter.SelectionChanged += ComboFilter_SelectionChanged;
                    grdFiltersContent.Children.Add(comboFilter);
                    comboFilter.SelectedValue = moduleFilters.Default;
                }
                if (moduleFilters.Type == "date")
                {
                    Button           button       = new Button();
                    DatePickerFlyout pickerFlyout = new DatePickerFlyout();
                    button.Flyout              = pickerFlyout;
                    button.Content             = "Seleccione una fecha";
                    button.Name                = moduleFilters.Name;
                    button.Foreground          = new SolidColorBrush(Colors.White);
                    button.HorizontalAlignment = HorizontalAlignment.Stretch;
                    button.Margin              = new Thickness(5, 0, 5, 10);
                    pickerFlyout.DatePicked   += PickerFlyout_DatePicked;
                    pickerFlyout.Closed       += PickerFlyout_Closed;
                    grdFiltersContent.Children.Add(button);
                }
            }

            Button applybutton = new Button();

            applybutton.Content             = "Aplicar";
            applybutton.HorizontalAlignment = HorizontalAlignment.Center;
            applybutton.Style  = (Style)Application.Current.Resources["CloureFilterButton"];
            applybutton.Click += Applybutton_Click;
            grdFiltersContent.Children.Add(applybutton);

            LoadData();
        }
        public financesPage()
        {
            this.InitializeComponent();
            this.NavigationCacheMode = NavigationCacheMode.Enabled;
            moduleInfo = CloureManager.GetModuleInfo();

            grdFilters.Visibility = Visibility.Collapsed;
            grdFiltersContent.Children.Clear();

            /*
             * foreach (GlobalCommand globalCommand in moduleInfo.globalCommands)
             * {
             *  if (globalCommand.Name != "filters")
             *  {
             *      Button globalCommandButton = new Button();
             *      globalCommandButton.Name = globalCommand.Name;
             *      globalCommandButton.HorizontalContentAlignment = HorizontalAlignment.Center;
             *      globalCommandButton.Style = (Style)Application.Current.Resources["CloureButton"];
             *      globalCommandButton.Content = globalCommand.Title;
             *      //Windows.UI.Xaml.Shapes.Path path = new Windows.UI.Xaml.Shapes.Path();
             *      ToolBar.Children.Add(globalCommandButton);
             *      globalCommandButton.Click += GlobalCommand_Click;
             *  }
             * }
             */

            txtIngresosPrompt.Text   = moduleInfo.locales.GetNamedString("incoming_prompt");
            txtGastosPrompt.Text     = moduleInfo.locales.GetNamedString("outcoming_prompt");
            txtSaldoPrompt.Text      = moduleInfo.locales.GetNamedString("balance_prompt");
            txtSearch.Text           = moduleInfo.locales.GetNamedString("search");
            txtNoRegistersFound.Text = moduleInfo.locales.GetNamedString("no_registers_found");

            foreach (ModuleFilter moduleFilters in moduleInfo.moduleFilters)
            {
                TextBlock textBlock = new TextBlock();
                textBlock.Text = moduleFilters.Title;
                textBlock.HorizontalAlignment = HorizontalAlignment.Stretch;
                textBlock.VerticalAlignment   = VerticalAlignment.Top;
                textBlock.Margin     = new Thickness(5, 5, 5, 0);
                textBlock.Height     = 20;
                textBlock.Foreground = new SolidColorBrush(Colors.White);
                textBlock.FontSize   = 14;
                grdFiltersContent.Children.Add(textBlock);

                if (moduleFilters.Type == "combo")
                {
                    //showDialog(moduleFilters.Default);
                    ComboBox comboFilter = new ComboBox();
                    comboFilter.Name = moduleFilters.Name;
                    comboFilter.HorizontalAlignment = HorizontalAlignment.Stretch;
                    comboFilter.Margin            = new Thickness(5, 0, 5, 10);
                    comboFilter.ItemsSource       = moduleFilters.FilterItems;
                    comboFilter.SelectedValuePath = "Id";
                    comboFilter.DisplayMemberPath = "Title";
                    //comboBox.SelectedIndex = 0;
                    comboFilter.SelectionChanged += ComboFilter_SelectionChanged;
                    grdFiltersContent.Children.Add(comboFilter);
                    comboFilter.SelectedValue = moduleFilters.Default;
                }
                if (moduleFilters.Type == "date")
                {
                    Button           button       = new Button();
                    DatePickerFlyout pickerFlyout = new DatePickerFlyout();
                    button.Flyout              = pickerFlyout;
                    button.Content             = moduleInfo.locales.GetNamedString("select_date");
                    button.Name                = moduleFilters.Name;
                    button.Foreground          = new SolidColorBrush(Colors.White);
                    button.HorizontalAlignment = HorizontalAlignment.Stretch;
                    button.Margin              = new Thickness(5, 0, 5, 10);
                    pickerFlyout.DatePicked   += PickerFlyout_DatePicked;
                    pickerFlyout.Closed       += PickerFlyout_Closed;
                    grdFiltersContent.Children.Add(button);
                }
            }

            Button applybutton = new Button();

            applybutton.Content             = moduleInfo.locales.GetNamedString("apply");
            applybutton.HorizontalAlignment = HorizontalAlignment.Center;
            applybutton.Style  = (Style)Application.Current.Resources["CloureFilterButton"];
            applybutton.Click += Applybutton_Click;
            grdFiltersContent.Children.Add(applybutton);

            LoadData();
        }
예제 #19
0
        public PhotographersPerformancePage()
        {
            this.InitializeComponent();

            this.NavigationCacheMode = NavigationCacheMode.Enabled;
            moduleInfo = CloureManager.GetModuleInfo();

            grdFilters.Visibility = Visibility.Collapsed;
            grdFiltersContent.Children.Clear();

            foreach (ModuleFilter moduleFilters in moduleInfo.moduleFilters)
            {
                TextBlock textBlock = new TextBlock();
                textBlock.Text = moduleFilters.Title;
                textBlock.HorizontalAlignment = HorizontalAlignment.Stretch;
                textBlock.VerticalAlignment   = VerticalAlignment.Top;
                textBlock.Margin     = new Thickness(5, 5, 5, 0);
                textBlock.Height     = 20;
                textBlock.Foreground = new SolidColorBrush(Colors.White);
                textBlock.FontSize   = 14;
                grdFiltersContent.Children.Add(textBlock);

                if (moduleFilters.Type == "combo")
                {
                    //showDialog(moduleFilters.Default);
                    ComboBox comboFilter = new ComboBox();
                    comboFilter.Name = moduleFilters.Name;
                    comboFilter.HorizontalAlignment = HorizontalAlignment.Stretch;
                    comboFilter.Margin            = new Thickness(5, 0, 5, 10);
                    comboFilter.ItemsSource       = moduleFilters.FilterItems;
                    comboFilter.SelectedValuePath = "Id";
                    comboFilter.DisplayMemberPath = "Title";
                    //comboBox.SelectedIndex = 0;
                    comboFilter.SelectionChanged += ComboFilter_SelectionChanged;
                    grdFiltersContent.Children.Add(comboFilter);
                    comboFilter.SelectedValue = moduleFilters.Default;
                }
                if (moduleFilters.Type == "date")
                {
                    Button           button       = new Button();
                    DatePickerFlyout pickerFlyout = new DatePickerFlyout();
                    button.Flyout              = pickerFlyout;
                    button.Content             = "Seleccione una fecha";
                    button.Name                = moduleFilters.Name;
                    button.Foreground          = new SolidColorBrush(Colors.White);
                    button.HorizontalAlignment = HorizontalAlignment.Stretch;
                    button.Margin              = new Thickness(5, 0, 5, 10);
                    pickerFlyout.DatePicked   += PickerFlyout_DatePicked;
                    pickerFlyout.Closed       += PickerFlyout_Closed;
                    grdFiltersContent.Children.Add(button);
                }
            }

            Button applybutton = new Button();

            applybutton.Content             = "Aplicar";
            applybutton.HorizontalAlignment = HorizontalAlignment.Center;
            applybutton.Style  = (Style)Application.Current.Resources["CloureSecondaryButton"];
            applybutton.Click += Applybutton_Click;
            grdFiltersContent.Children.Add(applybutton);

            LoadData();
        }