Beispiel #1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsIRAVRSTAIZNOSADataSet1 = new IRAVRSTAIZNOSADataSet();
     this.m_StartRow    = 0;
     this.Cursor        = Cursors.WaitCursor;
     this.m_GridLoading = true;
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal);
 }
Beispiel #2
0
 public void ChangeBinding()
 {
     this.bindingSourceIRAVRSTAIZNOSA.DataSource = this.IRAVRSTAIZNOSAController.DataSet;
     this.dsIRAVRSTAIZNOSADataSet1 = this.IRAVRSTAIZNOSAController.DataSet;
 }
Beispiel #3
0
        private void SetComboBoxColumnProperties(bool setColumnsWidth)
        {
            if (DataAdapterFactory.Provider == null)
            {
                DataAdapterFactory.Provider = new SimpleDataAdapterFactory();
            }
            DataSet dataSet = new DOKUMENTDataSet();

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetDOKUMENTDataAdapter().Fill(dataSet);
            }
            System.Data.DataView dataList = new System.Data.DataView(dataSet.Tables["DOKUMENT"])
            {
                Sort = "NAZIVDOKUMENT"
            };
            CreateValueList(this.DataGrid, "DOKUMENTSHEMAIRADOKIDDOKUMENT", dataList, "IDDOKUMENT", "NAZIVDOKUMENT");
            UltraGridColumn column = this.DataGrid.DisplayLayout.Bands["SHEMAIRA"].Columns["SHEMAIRADOKIDDOKUMENT"];

            column.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column.ValueList = this.DataGrid.DisplayLayout.ValueLists["DOKUMENTSHEMAIRADOKIDDOKUMENT"];
            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, "KONTOSHEMAIRAKONTOIDKONTO", view3, "IDKONTO", "KONT");
            UltraGridColumn column3 = this.DataGrid.DisplayLayout.Bands["SHEMAIRA_SHEMAIRASHEMAIRAKONTIRANJE"].Columns["SHEMAIRAKONTOIDKONTO"];

            column3.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column3.ValueList = this.DataGrid.DisplayLayout.ValueLists["KONTOSHEMAIRAKONTOIDKONTO"];
            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, "STRANEKNJIZENJASHEMAIRASTRANEIDSTRANEKNJIZENJA", view6, "IDSTRANEKNJIZENJA", "NAZIVSTRANEKNJIZENJA");
            UltraGridColumn column6 = this.DataGrid.DisplayLayout.Bands["SHEMAIRA_SHEMAIRASHEMAIRAKONTIRANJE"].Columns["SHEMAIRASTRANEIDSTRANEKNJIZENJA"];

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

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetIRAVRSTAIZNOSADataAdapter().Fill(set2);
            }
            System.Data.DataView view2 = new System.Data.DataView(set2.Tables["IRAVRSTAIZNOSA"])
            {
                Sort = "IRAVRSTAIZNOSANAZIV"
            };
            CreateValueList(this.DataGrid, "IRAVRSTAIZNOSAIDIRAVRSTAIZNOSA", view2, "IDIRAVRSTAIZNOSA", "IRAVRSTAIZNOSANAZIV");
            UltraGridColumn column2 = this.DataGrid.DisplayLayout.Bands["SHEMAIRA_SHEMAIRASHEMAIRAKONTIRANJE"].Columns["IDIRAVRSTAIZNOSA"];

            column2.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column2.ValueList = this.DataGrid.DisplayLayout.ValueLists["IRAVRSTAIZNOSAIDIRAVRSTAIZNOSA"];
            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, "MJESTOTROSKASHEMAIRAMTIDMJESTOTROSKA", view4, "IDMJESTOTROSKA", "mt");
            UltraGridColumn column4 = this.DataGrid.DisplayLayout.Bands["SHEMAIRA_SHEMAIRASHEMAIRAKONTIRANJE"].Columns["SHEMAIRAMTIDMJESTOTROSKA"];

            column4.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column4.ValueList = this.DataGrid.DisplayLayout.ValueLists["MJESTOTROSKASHEMAIRAMTIDMJESTOTROSKA"];
            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, "ORGJEDSHEMAIRAOJIDORGJED", view5, "IDORGJED", "oj");
            UltraGridColumn column5 = this.DataGrid.DisplayLayout.Bands["SHEMAIRA_SHEMAIRASHEMAIRAKONTIRANJE"].Columns["SHEMAIRAOJIDORGJED"];

            column5.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column5.ValueList = this.DataGrid.DisplayLayout.ValueLists["ORGJEDSHEMAIRAOJIDORGJED"];
            if (setColumnsWidth)
            {
                column5.Width = 370;
            }
        }
Beispiel #4
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(IRAVRSTAIZNOSAFormUserControl));

            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.bindingSourceIRAVRSTAIZNOSA = new BindingSource(this.components);
            ((ISupportInitialize)this.bindingSourceIRAVRSTAIZNOSA).BeginInit();
            this.layoutManagerformIRAVRSTAIZNOSA = new TableLayoutPanel();
            this.layoutManagerformIRAVRSTAIZNOSA.SuspendLayout();
            this.layoutManagerformIRAVRSTAIZNOSA.AutoSize     = true;
            this.layoutManagerformIRAVRSTAIZNOSA.Dock         = DockStyle.Fill;
            this.layoutManagerformIRAVRSTAIZNOSA.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            this.layoutManagerformIRAVRSTAIZNOSA.AutoScroll   = false;
            System.Drawing.Point point = new System.Drawing.Point(0, 0);
            this.layoutManagerformIRAVRSTAIZNOSA.Location = point;
            Size size = new System.Drawing.Size(0, 0);

            this.layoutManagerformIRAVRSTAIZNOSA.Size        = size;
            this.layoutManagerformIRAVRSTAIZNOSA.ColumnCount = 2;
            this.layoutManagerformIRAVRSTAIZNOSA.RowCount    = 3;
            this.layoutManagerformIRAVRSTAIZNOSA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformIRAVRSTAIZNOSA.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformIRAVRSTAIZNOSA.RowStyles.Add(new RowStyle());
            this.layoutManagerformIRAVRSTAIZNOSA.RowStyles.Add(new RowStyle());
            this.layoutManagerformIRAVRSTAIZNOSA.RowStyles.Add(new RowStyle());
            this.label1IDIRAVRSTAIZNOSA    = new UltraLabel();
            this.textIDIRAVRSTAIZNOSA      = new UltraNumericEditor();
            this.label1IRAVRSTAIZNOSANAZIV = new UltraLabel();
            this.textIRAVRSTAIZNOSANAZIV   = new UltraTextEditor();
            ((ISupportInitialize)this.textIDIRAVRSTAIZNOSA).BeginInit();
            ((ISupportInitialize)this.textIRAVRSTAIZNOSANAZIV).BeginInit();
            this.dsIRAVRSTAIZNOSADataSet1 = new IRAVRSTAIZNOSADataSet();
            this.dsIRAVRSTAIZNOSADataSet1.BeginInit();
            this.SuspendLayout();
            this.dsIRAVRSTAIZNOSADataSet1.DataSetName   = "dsIRAVRSTAIZNOSA";
            this.dsIRAVRSTAIZNOSADataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceIRAVRSTAIZNOSA.DataSource = this.dsIRAVRSTAIZNOSADataSet1;
            this.bindingSourceIRAVRSTAIZNOSA.DataMember = "IRAVRSTAIZNOSA";
            ((ISupportInitialize)this.bindingSourceIRAVRSTAIZNOSA).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDIRAVRSTAIZNOSA.Location               = point;
            this.label1IDIRAVRSTAIZNOSA.Name                   = "label1IDIRAVRSTAIZNOSA";
            this.label1IDIRAVRSTAIZNOSA.TabIndex               = 1;
            this.label1IDIRAVRSTAIZNOSA.Tag                    = "labelIDIRAVRSTAIZNOSA";
            this.label1IDIRAVRSTAIZNOSA.Text                   = "IDIRAVRSTAIZNOSA:";
            this.label1IDIRAVRSTAIZNOSA.StyleSetName           = "FieldUltraLabel";
            this.label1IDIRAVRSTAIZNOSA.AutoSize               = true;
            this.label1IDIRAVRSTAIZNOSA.Anchor                 = AnchorStyles.Left;
            this.label1IDIRAVRSTAIZNOSA.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDIRAVRSTAIZNOSA.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDIRAVRSTAIZNOSA.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDIRAVRSTAIZNOSA.ImageSize            = size;
            this.label1IDIRAVRSTAIZNOSA.Appearance.ForeColor = Color.Black;
            this.label1IDIRAVRSTAIZNOSA.BackColor            = Color.Transparent;
            this.layoutManagerformIRAVRSTAIZNOSA.Controls.Add(this.label1IDIRAVRSTAIZNOSA, 0, 0);
            this.layoutManagerformIRAVRSTAIZNOSA.SetColumnSpan(this.label1IDIRAVRSTAIZNOSA, 1);
            this.layoutManagerformIRAVRSTAIZNOSA.SetRowSpan(this.label1IDIRAVRSTAIZNOSA, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDIRAVRSTAIZNOSA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDIRAVRSTAIZNOSA.MinimumSize = size;
            size = new System.Drawing.Size(0x91, 0x17);
            this.label1IDIRAVRSTAIZNOSA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDIRAVRSTAIZNOSA.Location    = point;
            this.textIDIRAVRSTAIZNOSA.Name        = "textIDIRAVRSTAIZNOSA";
            this.textIDIRAVRSTAIZNOSA.Tag         = "IDIRAVRSTAIZNOSA";
            this.textIDIRAVRSTAIZNOSA.TabIndex    = 0;
            this.textIDIRAVRSTAIZNOSA.Anchor      = AnchorStyles.Left;
            this.textIDIRAVRSTAIZNOSA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDIRAVRSTAIZNOSA.ReadOnly    = false;
            this.textIDIRAVRSTAIZNOSA.PromptChar  = ' ';
            this.textIDIRAVRSTAIZNOSA.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textIDIRAVRSTAIZNOSA.DataBindings.Add(new Binding("Value", this.bindingSourceIRAVRSTAIZNOSA, "IDIRAVRSTAIZNOSA"));
            this.textIDIRAVRSTAIZNOSA.NumericType = NumericType.Integer;
            this.textIDIRAVRSTAIZNOSA.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformIRAVRSTAIZNOSA.Controls.Add(this.textIDIRAVRSTAIZNOSA, 1, 0);
            this.layoutManagerformIRAVRSTAIZNOSA.SetColumnSpan(this.textIDIRAVRSTAIZNOSA, 1);
            this.layoutManagerformIRAVRSTAIZNOSA.SetRowSpan(this.textIDIRAVRSTAIZNOSA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDIRAVRSTAIZNOSA.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDIRAVRSTAIZNOSA.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDIRAVRSTAIZNOSA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1IRAVRSTAIZNOSANAZIV.Location              = point;
            this.label1IRAVRSTAIZNOSANAZIV.Name                  = "label1IRAVRSTAIZNOSANAZIV";
            this.label1IRAVRSTAIZNOSANAZIV.TabIndex              = 1;
            this.label1IRAVRSTAIZNOSANAZIV.Tag                   = "labelIRAVRSTAIZNOSANAZIV";
            this.label1IRAVRSTAIZNOSANAZIV.Text                  = "IRAVRSTAIZNOSANAZIV:";
            this.label1IRAVRSTAIZNOSANAZIV.StyleSetName          = "FieldUltraLabel";
            this.label1IRAVRSTAIZNOSANAZIV.AutoSize              = true;
            this.label1IRAVRSTAIZNOSANAZIV.Anchor                = AnchorStyles.Left;
            this.label1IRAVRSTAIZNOSANAZIV.Appearance.TextVAlign = VAlign.Middle;
            this.label1IRAVRSTAIZNOSANAZIV.Appearance.ForeColor  = Color.Black;
            this.label1IRAVRSTAIZNOSANAZIV.BackColor             = Color.Transparent;
            this.layoutManagerformIRAVRSTAIZNOSA.Controls.Add(this.label1IRAVRSTAIZNOSANAZIV, 0, 1);
            this.layoutManagerformIRAVRSTAIZNOSA.SetColumnSpan(this.label1IRAVRSTAIZNOSANAZIV, 1);
            this.layoutManagerformIRAVRSTAIZNOSA.SetRowSpan(this.label1IRAVRSTAIZNOSANAZIV, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1IRAVRSTAIZNOSANAZIV.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IRAVRSTAIZNOSANAZIV.MinimumSize = size;
            size = new System.Drawing.Size(0xad, 0x17);
            this.label1IRAVRSTAIZNOSANAZIV.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIRAVRSTAIZNOSANAZIV.Location    = point;
            this.textIRAVRSTAIZNOSANAZIV.Name        = "textIRAVRSTAIZNOSANAZIV";
            this.textIRAVRSTAIZNOSANAZIV.Tag         = "IRAVRSTAIZNOSANAZIV";
            this.textIRAVRSTAIZNOSANAZIV.TabIndex    = 0;
            this.textIRAVRSTAIZNOSANAZIV.Anchor      = AnchorStyles.Left;
            this.textIRAVRSTAIZNOSANAZIV.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIRAVRSTAIZNOSANAZIV.ReadOnly    = false;
            this.textIRAVRSTAIZNOSANAZIV.DataBindings.Add(new Binding("Text", this.bindingSourceIRAVRSTAIZNOSA, "IRAVRSTAIZNOSANAZIV"));
            this.textIRAVRSTAIZNOSANAZIV.MaxLength = 30;
            this.layoutManagerformIRAVRSTAIZNOSA.Controls.Add(this.textIRAVRSTAIZNOSANAZIV, 1, 1);
            this.layoutManagerformIRAVRSTAIZNOSA.SetColumnSpan(this.textIRAVRSTAIZNOSANAZIV, 1);
            this.layoutManagerformIRAVRSTAIZNOSA.SetRowSpan(this.textIRAVRSTAIZNOSANAZIV, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIRAVRSTAIZNOSANAZIV.Margin = padding;
            size = new System.Drawing.Size(0xe2, 0x16);
            this.textIRAVRSTAIZNOSANAZIV.MinimumSize = size;
            size = new System.Drawing.Size(0xe2, 0x16);
            this.textIRAVRSTAIZNOSANAZIV.Size = size;
            this.Controls.Add(this.layoutManagerformIRAVRSTAIZNOSA);
            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.bindingSourceIRAVRSTAIZNOSA;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "IRAVRSTAIZNOSAFormUserControl";
            this.Text       = "Vrste iznosa IRA";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.IRAVRSTAIZNOSAFormUserControl_Load);
            this.layoutManagerformIRAVRSTAIZNOSA.ResumeLayout(false);
            this.layoutManagerformIRAVRSTAIZNOSA.PerformLayout();
            ((ISupportInitialize)this.bindingSourceIRAVRSTAIZNOSA).EndInit();
            ((ISupportInitialize)this.textIDIRAVRSTAIZNOSA).EndInit();
            ((ISupportInitialize)this.textIRAVRSTAIZNOSANAZIV).EndInit();
            this.dsIRAVRSTAIZNOSADataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }