예제 #1
0
        private void CreateGridView(Control container)
        {
            using (MixERPGridView grid = new MixERPGridView())
            {
                grid.ID = "SalesByGeographyGridView";
                grid.CssClass = "initially hidden";
                grid.DataSource = SalesByGeography.GetSalesByCountry(AppUsers.GetCurrentUserDB());
                grid.DataBind();

                container.Controls.Add(grid);
            }
        }
예제 #2
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.Attributes.Add("style", "min-width:1200px;max-width:2000px;");

            this.transactionGridView.RowDataBound += this.TransactionGridView_RowDataBound;
            GridViewColumnHelper.AddColumns(this.transactionGridView);

            container.Controls.Add(this.transactionGridView);
        }
예제 #3
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

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

            this.disposed = true;
        }
예제 #4
0
파일: GridPanel.cs 프로젝트: njmube/mixerp
        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);
        }
        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);
            }
        }
예제 #6
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;
        }
예제 #7
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);
        }
예제 #8
0
        private void CreateModalContent(HtmlGenericControl container)
        {
            using (HtmlGenericControl content = new HtmlGenericControl("div"))
            {
                content.Attributes.Add("class", "content");

                this.grid = new MixERPGridView(false);
                this.grid.CssClass += "relaxed";
                this.BindGridView();

                content.Controls.Add(this.grid);
                container.Controls.Add(content);
            }
        }
예제 #9
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 -= this.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;
        }
예제 #10
0
        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;
        }
예제 #11
0
        private void Dispose(bool disposing)
        {
            if (!disposing)
            {
                return;
            }

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

            this.disposed = true;
        }
예제 #12
0
 private void AddGridView()
 {
     this.grid = new MixERPGridView();
     this.grid.ID = "TransferRequestGridView";
     this.GridViewPlaceholder.Controls.Add(this.grid);
 }
예제 #13
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;
        }
예제 #14
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);
 }
예제 #15
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++;
                }
            }
        }
예제 #16
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;
        }
예제 #17
0
        private void CreateGridPanel(Control container)
        {
            this.grid = new MixERPGridView();
            this.grid.ID = "MenuAccessGridView";
            this.grid.RowDataBound += this.Grid_RowDataBound;

            container.Controls.Add(this.grid);
        }