private void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            if (this.grid != null)
            {
                this.grid.Dispose();
                this.grid = null;
            }

            if (this.flag != null)
            {
                this.flag.Dispose();
                this.flag = null;
            }

            if (this.selectedValuesHidden != null)
            {
                this.selectedValuesHidden.Dispose();
                this.selectedValuesHidden = null;
            }

            this.disposed = true;
        }
Beispiel #2
0
 private void CreateGridView(Control container)
 {
     this.grid             = new MixERPGridView();
     this.grid.ID          = "grid";
     this.grid.CssClass    = "ui striped collapsing table form";
     this.grid.GridLines   = GridLines.None;
     this.grid.RowCreated += this.Grid_RowCreated;
     container.Controls.Add(this.grid);
 }
Beispiel #3
0
        private void CreateGridView(Control container)
        {
            using (MixERPGridView grid = new MixERPGridView())
            {
                grid.ID         = "SalesByGeographyGridView";
                grid.CssClass   = "initially hidden";
                grid.DataSource = SalesByGeography.GetSalesByCountry();
                grid.DataBind();

                container.Controls.Add(grid);
            }
        }
Beispiel #4
0
        private void AddGridView(HtmlGenericControl container)
        {
            this.transactionGridView                     = new MixERPGridView();
            this.transactionGridView.ID                  = "TransactionGridView";
            this.transactionGridView.GridLines           = GridLines.None;
            this.transactionGridView.AutoGenerateColumns = false;
            this.transactionGridView.CssClass            = this.GridViewCssClass;
            this.transactionGridView.RowDataBound       += this.TransactionGridView_RowDataBound;
            GridViewColumnHelper.AddColumns(this.transactionGridView);

            container.Controls.Add(this.transactionGridView);
        }
Beispiel #5
0
        private void CreateGridView(HtmlGenericControl container)
        {
            this.statementGridView                     = new MixERPGridView();
            this.statementGridView.ID                  = "StatementGridView";
            this.statementGridView.CssClass            = "ui celled table nowrap";
            this.statementGridView.GridLines           = GridLines.None;
            this.statementGridView.BorderStyle         = BorderStyle.None;
            this.statementGridView.AutoGenerateColumns = false;

            this.CreateColumns();

            container.Controls.Add(this.statementGridView);
        }
        private void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            if (this.grid != null)
            {
                this.grid.Dispose();
                this.grid = null;
            }

            this.disposed = true;
        }
Beispiel #7
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            if (this.grid != null)
            {
                this.grid.Dispose();
                this.grid = null;
            }

            this.disposed = true;
        }
Beispiel #8
0
        private void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            if (this.userSelect != null)
            {
                this.userSelect.Dispose();
                this.userSelect = null;
            }

            if (this.officeSelect != null)
            {
                this.officeSelect.Dispose();
                this.officeSelect = null;
            }

            if (this.grid != null)
            {
                this.grid.RowDataBound -= Grid_RowDataBound;
                this.grid.Dispose();
                this.grid = null;
            }

            if (this.showButton != null)
            {
                this.showButton.Click -= this.ShowButton_Click;
                this.showButton.Dispose();
                this.showButton = null;
            }

            if (this.saveButton != null)
            {
                this.saveButton.Click -= this.SaveButton_Click;
                this.saveButton.Dispose();
                this.saveButton = null;
            }

            if (this.selectedMenusHidden != null)
            {
                this.selectedMenusHidden.Dispose();
                this.selectedMenusHidden = null;
            }

            this.disposed = true;
        }
Beispiel #9
0
        private void AddGrid(string cultureCode)
        {
            string cultureName = new CultureInfo(cultureCode).NativeName;

            this.CultureLiteral.Text = string.Format("<h2 class='ui red header'>{0}</h2>", cultureName);

            using (MixERPGridView gridView = new MixERPGridView())
            {
                gridView.ID         = "LocalizationGridView";
                gridView.CssClass   = "ui table initially hidden";
                gridView.DataSource = Factory.Get <DbGetLocalizationTableResult>("SELECT * FROM localization.get_localization_table(@0::text) ORDER BY row_number;", cultureCode);
                gridView.DataBind();

                this.Placeholder1.Controls.Add(gridView);
            }
        }
Beispiel #10
0
        private void CreateGrid(Control container)
        {
            using (HtmlGenericControl gridPanel = new HtmlGenericControl("div"))
            {
                gridPanel.Attributes.Add("style", "width:100%;");

                this.trialBalanceGridView           = new MixERPGridView();
                this.trialBalanceGridView.ID        = "TrialBalanceGridView";
                this.trialBalanceGridView.GridLines = GridLines.None;
                this.trialBalanceGridView.CssClass  = "ui celled segment table nowrap";

                this.CreateColumns();

                gridPanel.Controls.Add(this.trialBalanceGridView);

                container.Controls.Add(gridPanel);
            }
        }
Beispiel #11
0
        private void AddGridView(Panel p)
        {
            this.formGridView                              = new MixERPGridView();
            this.formGridView.ID                           = "FormGridView";
            this.formGridView.GridLines                    = GridLines.None;
            this.formGridView.CssClass                     = this.GetGridViewCssClass();
            this.formGridView.RowStyle.CssClass            = this.GetGridViewRowCssClass();
            this.formGridView.AlternatingRowStyle.CssClass = this.GetGridViewAlternateRowCssClass();
            this.formGridView.AutoGenerateColumns          = true;
            this.formGridView.RowDataBound                += this.FormGridView_RowDataBound;

            var selectField = new TemplateField();

            selectField.HeaderText      = String.Empty;
            selectField.ItemStyle.Width = 20;
            this.formGridView.Columns.Add(selectField);

            p.Controls.Add(this.formGridView);
        }
Beispiel #12
0
        private void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            if (this.container != null)
            {
                this.container.Dispose();
                this.container = null;
            }

            if (this.filterSelect != null)
            {
                this.filterSelect.DataBound -= this.FilterSelectDataBound;
                this.filterSelect.Dispose();
                this.filterSelect = null;
            }

            if (this.filterInputText != null)
            {
                this.filterInputText.Dispose();
                this.filterInputText = null;
            }

            if (this.searchGridView != null)
            {
                this.searchGridView.RowDataBound -= this.SearchGridView_RowDataBound;
                this.searchGridView.Dispose();
                this.searchGridView = null;
            }

            if (this.goButton != null)
            {
                this.goButton.Click -= this.GoButton_Click;
                this.goButton.Dispose();
                this.goButton = null;
            }

            this.disposed = true;
        }
Beispiel #13
0
        private void LoadGrid(string indices, string styles)
        {
            List <string> styleList = styles.Split(',').ToList();

            int counter = 0;

            foreach (string data in indices.Split(','))
            {
                string style = styleList[counter];

                string ds = data.Trim();

                if (!string.IsNullOrWhiteSpace(ds))
                {
                    int index = Conversion.TryCastInteger(ds);

                    using (MixERPGridView grid = new MixERPGridView())
                    {
                        grid.EnableTheming = false;

                        grid.ID            = "GridView" + ds;
                        grid.CssClass      = "report";
                        grid.Width         = Unit.Percentage(100);
                        grid.GridLines     = GridLines.None;
                        grid.RowDataBound += this.GridView_RowDataBound;

                        grid.DataBound += this.GridView_DataBound;
                        this.gridPlaceHolder.Controls.Add(grid);

                        grid.DataSource = this.dataTableCollection[index];
                        grid.DataBind();

                        if (!string.IsNullOrWhiteSpace(style))
                        {
                            grid.Attributes.Add("style", style);
                        }
                    }

                    counter++;
                }
            }
        }
Beispiel #14
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            if (this.valueDateTextBox != null)
            {
                this.valueDateTextBox.Dispose();
                this.valueDateTextBox = null;
            }

            if (this.storeHiddenField != null)
            {
                this.storeHiddenField.Dispose();
                this.storeHiddenField = null;
            }

            if (this.showButton != null)
            {
                this.showButton.Click -= this.ShowButton_Click;

                this.showButton.Dispose();
                this.showButton = null;
            }

            if (this.grid != null)
            {
                this.grid.RowCreated -= this.Grid_RowCreated;
                this.grid.Dispose();
                this.grid = null;
            }


            this.disposed = true;
        }
Beispiel #15
0
        private void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

            if (this.accountOverviewTab != null)
            {
                this.accountOverviewTab.Dispose();
                this.accountOverviewTab = null;
            }

            if (this.headerLiteral != null)
            {
                this.headerLiteral.Dispose();
                this.headerLiteral = null;
            }

            if (this.itemCodeInputText != null)
            {
                this.itemCodeInputText.Dispose();
                this.itemCodeInputText = null;
            }

            if (this.itemSelect != null)
            {
                this.itemSelect.Dispose();
                this.itemSelect = null;
            }

            if (this.storeSelect != null)
            {
                this.storeSelect.Dispose();
                this.storeSelect = null;
            }

            if (this.selectedValuesHidden != null)
            {
                this.selectedValuesHidden.Dispose();
                this.selectedValuesHidden = null;
            }

            if (this.showButton != null)
            {
                this.showButton.Dispose();
                this.showButton = null;
            }

            if (this.statementGridView != null)
            {
                this.statementGridView.Dispose();
                this.statementGridView = null;
            }

            if (this.toDateTextBox != null)
            {
                this.toDateTextBox.Dispose();
                this.toDateTextBox = null;
            }


            this.disposed = true;
        }