Пример #1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsURAVRSTAIZNOSADataSet1 = new URAVRSTAIZNOSADataSet();
     this.m_StartRow    = 0;
     this.Cursor        = Cursors.WaitCursor;
     this.m_GridLoading = true;
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal);
 }
Пример #2
0
        private void SetComboBoxColumnProperties(bool setColumnsWidth)
        {
            if (DataAdapterFactory.Provider == null)
            {
                DataAdapterFactory.Provider = new SimpleDataAdapterFactory();
            }
            DataSet dataSet = new PARTNERDataSet();

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetPARTNERDataAdapter().Fill(dataSet);
            }
            System.Data.DataView dataList = new System.Data.DataView(dataSet.Tables["PARTNER"])
            {
                Sort = "PT"
            };
            CreateValueList(this.DataGrid, "PARTNERPARTNERSHEMAURAIDPARTNER", dataList, "IDPARTNER", "PT");
            UltraGridColumn column = this.DataGrid.DisplayLayout.Bands["SHEMAURA"].Columns["PARTNERSHEMAURAIDPARTNER"];

            column.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column.ValueList = this.DataGrid.DisplayLayout.ValueLists["PARTNERPARTNERSHEMAURAIDPARTNER"];
            if (setColumnsWidth)
            {
                column.Width = 370;
            }
            DataSet set3 = new KONTODataSet();

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetKONTODataAdapter().Fill(set3);
            }
            System.Data.DataView view3 = new System.Data.DataView(set3.Tables["KONTO"])
            {
                Sort = "KONT"
            };
            CreateValueList(this.DataGrid, "KONTOSHEMAURAKONTOIDKONTO", view3, "IDKONTO", "KONT");
            UltraGridColumn column3 = this.DataGrid.DisplayLayout.Bands["SHEMAURA_SHEMAURASHEMAURAKONTIRANJE"].Columns["SHEMAURAKONTOIDKONTO"];

            column3.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column3.ValueList = this.DataGrid.DisplayLayout.ValueLists["KONTOSHEMAURAKONTOIDKONTO"];
            if (setColumnsWidth)
            {
                column3.Width = 370;
            }
            DataSet set6 = new STRANEKNJIZENJADataSet();

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetSTRANEKNJIZENJADataAdapter().Fill(set6);
            }
            System.Data.DataView view6 = new System.Data.DataView(set6.Tables["STRANEKNJIZENJA"])
            {
                Sort = "NAZIVSTRANEKNJIZENJA"
            };
            CreateValueList(this.DataGrid, "STRANEKNJIZENJASHEMAURASTRANEIDSTRANEKNJIZENJA", view6, "IDSTRANEKNJIZENJA", "NAZIVSTRANEKNJIZENJA");
            UltraGridColumn column6 = this.DataGrid.DisplayLayout.Bands["SHEMAURA_SHEMAURASHEMAURAKONTIRANJE"].Columns["SHEMAURASTRANEIDSTRANEKNJIZENJA"];

            column6.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column6.ValueList = this.DataGrid.DisplayLayout.ValueLists["STRANEKNJIZENJASHEMAURASTRANEIDSTRANEKNJIZENJA"];
            if (setColumnsWidth)
            {
                column6.Width = 280;
            }
            DataSet set2 = new URAVRSTAIZNOSADataSet();

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetURAVRSTAIZNOSADataAdapter().Fill(set2);
            }
            System.Data.DataView view2 = new System.Data.DataView(set2.Tables["URAVRSTAIZNOSA"])
            {
                Sort = "URAVRSTAIZNOSANAZIV"
            };
            CreateValueList(this.DataGrid, "URAVRSTAIZNOSAIDURAVRSTAIZNOSA", view2, "IDURAVRSTAIZNOSA", "URAVRSTAIZNOSANAZIV");
            UltraGridColumn column2 = this.DataGrid.DisplayLayout.Bands["SHEMAURA_SHEMAURASHEMAURAKONTIRANJE"].Columns["IDURAVRSTAIZNOSA"];

            column2.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column2.ValueList = this.DataGrid.DisplayLayout.ValueLists["URAVRSTAIZNOSAIDURAVRSTAIZNOSA"];
            if (setColumnsWidth)
            {
                column2.Width = 280;
            }
            DataSet set4 = new MJESTOTROSKADataSet();

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetMJESTOTROSKADataAdapter().Fill(set4);
            }
            System.Data.DataView view4 = new System.Data.DataView(set4.Tables["MJESTOTROSKA"])
            {
                Sort = "mt"
            };
            CreateValueList(this.DataGrid, "MJESTOTROSKASHEMAURAMTIDMJESTOTROSKA", view4, "IDMJESTOTROSKA", "mt");
            UltraGridColumn column4 = this.DataGrid.DisplayLayout.Bands["SHEMAURA_SHEMAURASHEMAURAKONTIRANJE"].Columns["SHEMAURAMTIDMJESTOTROSKA"];

            column4.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column4.ValueList = this.DataGrid.DisplayLayout.ValueLists["MJESTOTROSKASHEMAURAMTIDMJESTOTROSKA"];
            if (setColumnsWidth)
            {
                column4.Width = 370;
            }
            DataSet set5 = new ORGJEDDataSet();

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetORGJEDDataAdapter().Fill(set5);
            }
            System.Data.DataView view5 = new System.Data.DataView(set5.Tables["ORGJED"])
            {
                Sort = "oj"
            };
            CreateValueList(this.DataGrid, "ORGJEDSHEMAURAOJIDORGJED", view5, "IDORGJED", "oj");
            UltraGridColumn column5 = this.DataGrid.DisplayLayout.Bands["SHEMAURA_SHEMAURASHEMAURAKONTIRANJE"].Columns["SHEMAURAOJIDORGJED"];

            column5.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column5.ValueList = this.DataGrid.DisplayLayout.ValueLists["ORGJEDSHEMAURAOJIDORGJED"];
            if (setColumnsWidth)
            {
                column5.Width = 370;
            }
        }
Пример #3
0
 public void ChangeBinding()
 {
     this.bindingSourceURAVRSTAIZNOSA.DataSource = this.URAVRSTAIZNOSAController.DataSet;
     this.dsURAVRSTAIZNOSADataSet1 = this.URAVRSTAIZNOSAController.DataSet;
 }
Пример #4
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(URAVRSTAIZNOSAFormUserControl));

            this.contextMenu1                = new ContextMenu();
            this.SetNullItem                 = new MenuItem();
            this.toolTip1                    = new System.Windows.Forms.ToolTip(this.components);
            this.errorProvider1              = new ErrorProvider();
            this.errorProviderValidator1     = new ErrorProviderValidator(this.components);
            this.bindingSourceURAVRSTAIZNOSA = new BindingSource(this.components);
            ((ISupportInitialize)this.bindingSourceURAVRSTAIZNOSA).BeginInit();
            this.layoutManagerformURAVRSTAIZNOSA = new TableLayoutPanel();
            this.layoutManagerformURAVRSTAIZNOSA.SuspendLayout();
            this.layoutManagerformURAVRSTAIZNOSA.AutoSize     = true;
            this.layoutManagerformURAVRSTAIZNOSA.Dock         = DockStyle.Fill;
            this.layoutManagerformURAVRSTAIZNOSA.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            this.layoutManagerformURAVRSTAIZNOSA.AutoScroll   = false;
            System.Drawing.Point point = new System.Drawing.Point(0, 0);
            this.layoutManagerformURAVRSTAIZNOSA.Location = point;
            Size size = new System.Drawing.Size(0, 0);

            this.layoutManagerformURAVRSTAIZNOSA.Size        = size;
            this.layoutManagerformURAVRSTAIZNOSA.ColumnCount = 2;
            this.layoutManagerformURAVRSTAIZNOSA.RowCount    = 3;
            this.layoutManagerformURAVRSTAIZNOSA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformURAVRSTAIZNOSA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformURAVRSTAIZNOSA.RowStyles.Add(new RowStyle());
            this.layoutManagerformURAVRSTAIZNOSA.RowStyles.Add(new RowStyle());
            this.layoutManagerformURAVRSTAIZNOSA.RowStyles.Add(new RowStyle());
            this.label1IDURAVRSTAIZNOSA    = new UltraLabel();
            this.textIDURAVRSTAIZNOSA      = new UltraNumericEditor();
            this.label1URAVRSTAIZNOSANAZIV = new UltraLabel();
            this.textURAVRSTAIZNOSANAZIV   = new UltraTextEditor();
            ((ISupportInitialize)this.textIDURAVRSTAIZNOSA).BeginInit();
            ((ISupportInitialize)this.textURAVRSTAIZNOSANAZIV).BeginInit();
            this.dsURAVRSTAIZNOSADataSet1 = new URAVRSTAIZNOSADataSet();
            this.dsURAVRSTAIZNOSADataSet1.BeginInit();
            this.SuspendLayout();
            this.dsURAVRSTAIZNOSADataSet1.DataSetName   = "dsURAVRSTAIZNOSA";
            this.dsURAVRSTAIZNOSADataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceURAVRSTAIZNOSA.DataSource = this.dsURAVRSTAIZNOSADataSet1;
            this.bindingSourceURAVRSTAIZNOSA.DataMember = "URAVRSTAIZNOSA";
            ((ISupportInitialize)this.bindingSourceURAVRSTAIZNOSA).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDURAVRSTAIZNOSA.Location               = point;
            this.label1IDURAVRSTAIZNOSA.Name                   = "label1IDURAVRSTAIZNOSA";
            this.label1IDURAVRSTAIZNOSA.TabIndex               = 1;
            this.label1IDURAVRSTAIZNOSA.Tag                    = "labelIDURAVRSTAIZNOSA";
            this.label1IDURAVRSTAIZNOSA.Text                   = "Šifra:";
            this.label1IDURAVRSTAIZNOSA.StyleSetName           = "FieldUltraLabel";
            this.label1IDURAVRSTAIZNOSA.AutoSize               = true;
            this.label1IDURAVRSTAIZNOSA.Anchor                 = AnchorStyles.Left;
            this.label1IDURAVRSTAIZNOSA.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDURAVRSTAIZNOSA.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDURAVRSTAIZNOSA.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDURAVRSTAIZNOSA.ImageSize            = size;
            this.label1IDURAVRSTAIZNOSA.Appearance.ForeColor = Color.Black;
            this.label1IDURAVRSTAIZNOSA.BackColor            = Color.Transparent;
            this.layoutManagerformURAVRSTAIZNOSA.Controls.Add(this.label1IDURAVRSTAIZNOSA, 0, 0);
            this.layoutManagerformURAVRSTAIZNOSA.SetColumnSpan(this.label1IDURAVRSTAIZNOSA, 1);
            this.layoutManagerformURAVRSTAIZNOSA.SetRowSpan(this.label1IDURAVRSTAIZNOSA, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDURAVRSTAIZNOSA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDURAVRSTAIZNOSA.MinimumSize = size;
            size = new System.Drawing.Size(0x2d, 0x17);
            this.label1IDURAVRSTAIZNOSA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDURAVRSTAIZNOSA.Location    = point;
            this.textIDURAVRSTAIZNOSA.Name        = "textIDURAVRSTAIZNOSA";
            this.textIDURAVRSTAIZNOSA.Tag         = "IDURAVRSTAIZNOSA";
            this.textIDURAVRSTAIZNOSA.TabIndex    = 0;
            this.textIDURAVRSTAIZNOSA.Anchor      = AnchorStyles.Left;
            this.textIDURAVRSTAIZNOSA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDURAVRSTAIZNOSA.ReadOnly    = false;
            this.textIDURAVRSTAIZNOSA.PromptChar  = ' ';
            this.textIDURAVRSTAIZNOSA.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textIDURAVRSTAIZNOSA.DataBindings.Add(new Binding("Value", this.bindingSourceURAVRSTAIZNOSA, "IDURAVRSTAIZNOSA"));
            this.textIDURAVRSTAIZNOSA.NumericType = NumericType.Integer;
            this.textIDURAVRSTAIZNOSA.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformURAVRSTAIZNOSA.Controls.Add(this.textIDURAVRSTAIZNOSA, 1, 0);
            this.layoutManagerformURAVRSTAIZNOSA.SetColumnSpan(this.textIDURAVRSTAIZNOSA, 1);
            this.layoutManagerformURAVRSTAIZNOSA.SetRowSpan(this.textIDURAVRSTAIZNOSA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDURAVRSTAIZNOSA.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDURAVRSTAIZNOSA.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDURAVRSTAIZNOSA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1URAVRSTAIZNOSANAZIV.Location              = point;
            this.label1URAVRSTAIZNOSANAZIV.Name                  = "label1URAVRSTAIZNOSANAZIV";
            this.label1URAVRSTAIZNOSANAZIV.TabIndex              = 1;
            this.label1URAVRSTAIZNOSANAZIV.Tag                   = "labelURAVRSTAIZNOSANAZIV";
            this.label1URAVRSTAIZNOSANAZIV.Text                  = "Naziv:";
            this.label1URAVRSTAIZNOSANAZIV.StyleSetName          = "FieldUltraLabel";
            this.label1URAVRSTAIZNOSANAZIV.AutoSize              = true;
            this.label1URAVRSTAIZNOSANAZIV.Anchor                = AnchorStyles.Left;
            this.label1URAVRSTAIZNOSANAZIV.Appearance.TextVAlign = VAlign.Middle;
            this.label1URAVRSTAIZNOSANAZIV.Appearance.ForeColor  = Color.Black;
            this.label1URAVRSTAIZNOSANAZIV.BackColor             = Color.Transparent;
            this.layoutManagerformURAVRSTAIZNOSA.Controls.Add(this.label1URAVRSTAIZNOSANAZIV, 0, 1);
            this.layoutManagerformURAVRSTAIZNOSA.SetColumnSpan(this.label1URAVRSTAIZNOSANAZIV, 1);
            this.layoutManagerformURAVRSTAIZNOSA.SetRowSpan(this.label1URAVRSTAIZNOSANAZIV, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1URAVRSTAIZNOSANAZIV.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1URAVRSTAIZNOSANAZIV.MinimumSize = size;
            size = new System.Drawing.Size(0x35, 0x17);
            this.label1URAVRSTAIZNOSANAZIV.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textURAVRSTAIZNOSANAZIV.Location    = point;
            this.textURAVRSTAIZNOSANAZIV.Name        = "textURAVRSTAIZNOSANAZIV";
            this.textURAVRSTAIZNOSANAZIV.Tag         = "URAVRSTAIZNOSANAZIV";
            this.textURAVRSTAIZNOSANAZIV.TabIndex    = 0;
            this.textURAVRSTAIZNOSANAZIV.Anchor      = AnchorStyles.Left;
            this.textURAVRSTAIZNOSANAZIV.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textURAVRSTAIZNOSANAZIV.ReadOnly    = false;
            this.textURAVRSTAIZNOSANAZIV.DataBindings.Add(new Binding("Text", this.bindingSourceURAVRSTAIZNOSA, "URAVRSTAIZNOSANAZIV"));
            this.textURAVRSTAIZNOSANAZIV.MaxLength = 30;
            this.layoutManagerformURAVRSTAIZNOSA.Controls.Add(this.textURAVRSTAIZNOSANAZIV, 1, 1);
            this.layoutManagerformURAVRSTAIZNOSA.SetColumnSpan(this.textURAVRSTAIZNOSANAZIV, 1);
            this.layoutManagerformURAVRSTAIZNOSA.SetRowSpan(this.textURAVRSTAIZNOSANAZIV, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textURAVRSTAIZNOSANAZIV.Margin = padding;
            size = new System.Drawing.Size(0xe2, 0x16);
            this.textURAVRSTAIZNOSANAZIV.MinimumSize = size;
            size = new System.Drawing.Size(0xe2, 0x16);
            this.textURAVRSTAIZNOSANAZIV.Size = size;
            this.Controls.Add(this.layoutManagerformURAVRSTAIZNOSA);
            this.SetNullItem.Index   = 0;
            this.SetNullItem.Text    = "Set Null";
            this.SetNullItem.Click  += new EventHandler(this.SetNullItem_Click);
            this.contextMenu1.Popup += new EventHandler(this.contextMenu1_Popup);
            this.contextMenu1.MenuItems.AddRange(new MenuItem[] { this.SetNullItem });
            this.errorProvider1.DataSource             = this.bindingSourceURAVRSTAIZNOSA;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "URAVRSTAIZNOSAFormUserControl";
            this.Text       = "Vrste iznosa URA";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.URAVRSTAIZNOSAFormUserControl_Load);
            this.layoutManagerformURAVRSTAIZNOSA.ResumeLayout(false);
            this.layoutManagerformURAVRSTAIZNOSA.PerformLayout();
            ((ISupportInitialize)this.bindingSourceURAVRSTAIZNOSA).EndInit();
            ((ISupportInitialize)this.textIDURAVRSTAIZNOSA).EndInit();
            ((ISupportInitialize)this.textURAVRSTAIZNOSANAZIV).EndInit();
            this.dsURAVRSTAIZNOSADataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }