Пример #1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsFINPOREZDataSet1 = new FINPOREZDataSet();
     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 FINPOREZDataSet();

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetFINPOREZDataAdapter().Fill(dataSet);
            }
            System.Data.DataView dataList = new System.Data.DataView(dataSet.Tables["FINPOREZ"])
            {
                Sort = "FINPOREZNAZIVPOREZ"
            };
            CreateValueList(this.DataGrid, "FINPOREZFINPOREZIDPOREZ", dataList, "FINPOREZIDPOREZ", "FINPOREZNAZIVPOREZ");
            UltraGridColumn column = this.DataGrid.DisplayLayout.Bands["PROIZVOD"].Columns["FINPOREZIDPOREZ"];

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

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetJEDINICAMJEREDataAdapter().Fill(set2);
            }
            System.Data.DataView view2 = new System.Data.DataView(set2.Tables["JEDINICAMJERE"])
            {
                Sort = "NAZIVJEDINICAMJERE"
            };
            CreateValueList(this.DataGrid, "JEDINICAMJEREIDJEDINICAMJERE", view2, "IDJEDINICAMJERE", "NAZIVJEDINICAMJERE");
            UltraGridColumn column2 = this.DataGrid.DisplayLayout.Bands["PROIZVOD"].Columns["IDJEDINICAMJERE"];

            column2.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column2.ValueList = this.DataGrid.DisplayLayout.ValueLists["JEDINICAMJEREIDJEDINICAMJERE"];
            if (setColumnsWidth)
            {
                column2.Width = 370;
            }
        }
Пример #3
0
 public void ChangeBinding()
 {
     this.bindingSourceFINPOREZ.DataSource = this.FINPOREZController.DataSet;
     this.dsFINPOREZDataSet1 = this.FINPOREZController.DataSet;
 }
Пример #4
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(FINPOREZFormUserControl));

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

            this.layoutManagerformFINPOREZ.Size        = size;
            this.layoutManagerformFINPOREZ.ColumnCount = 2;
            this.layoutManagerformFINPOREZ.RowCount    = 5;
            this.layoutManagerformFINPOREZ.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformFINPOREZ.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformFINPOREZ.RowStyles.Add(new RowStyle());
            this.layoutManagerformFINPOREZ.RowStyles.Add(new RowStyle());
            this.layoutManagerformFINPOREZ.RowStyles.Add(new RowStyle());
            this.layoutManagerformFINPOREZ.RowStyles.Add(new RowStyle());
            this.layoutManagerformFINPOREZ.RowStyles.Add(new RowStyle());
            this.label1FINPOREZIDPOREZ    = new UltraLabel();
            this.textFINPOREZIDPOREZ      = new UltraNumericEditor();
            this.label1FINPOREZNAZIVPOREZ = new UltraLabel();
            this.textFINPOREZNAZIVPOREZ   = new UltraTextEditor();
            this.label1FINPOREZSTOPA      = new UltraLabel();
            this.textFINPOREZSTOPA        = new UltraNumericEditor();
            this.label1OSNOVICAUKNIZIIRA  = new UltraLabel();
            this.textOSNOVICAUKNIZIIRA    = new UltraNumericEditor();
            ((ISupportInitialize)this.textFINPOREZIDPOREZ).BeginInit();
            ((ISupportInitialize)this.textFINPOREZNAZIVPOREZ).BeginInit();
            ((ISupportInitialize)this.textFINPOREZSTOPA).BeginInit();
            ((ISupportInitialize)this.textOSNOVICAUKNIZIIRA).BeginInit();
            this.dsFINPOREZDataSet1 = new FINPOREZDataSet();
            this.dsFINPOREZDataSet1.BeginInit();
            this.SuspendLayout();
            this.dsFINPOREZDataSet1.DataSetName   = "dsFINPOREZ";
            this.dsFINPOREZDataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceFINPOREZ.DataSource = this.dsFINPOREZDataSet1;
            this.bindingSourceFINPOREZ.DataMember = "FINPOREZ";
            ((ISupportInitialize)this.bindingSourceFINPOREZ).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1FINPOREZIDPOREZ.Location               = point;
            this.label1FINPOREZIDPOREZ.Name                   = "label1FINPOREZIDPOREZ";
            this.label1FINPOREZIDPOREZ.TabIndex               = 1;
            this.label1FINPOREZIDPOREZ.Tag                    = "labelFINPOREZIDPOREZ";
            this.label1FINPOREZIDPOREZ.Text                   = "Šifra:";
            this.label1FINPOREZIDPOREZ.StyleSetName           = "FieldUltraLabel";
            this.label1FINPOREZIDPOREZ.AutoSize               = true;
            this.label1FINPOREZIDPOREZ.Anchor                 = AnchorStyles.Left;
            this.label1FINPOREZIDPOREZ.Appearance.TextVAlign  = VAlign.Middle;
            this.label1FINPOREZIDPOREZ.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1FINPOREZIDPOREZ.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1FINPOREZIDPOREZ.ImageSize            = size;
            this.label1FINPOREZIDPOREZ.Appearance.ForeColor = Color.Black;
            this.label1FINPOREZIDPOREZ.BackColor            = Color.Transparent;
            this.layoutManagerformFINPOREZ.Controls.Add(this.label1FINPOREZIDPOREZ, 0, 0);
            this.layoutManagerformFINPOREZ.SetColumnSpan(this.label1FINPOREZIDPOREZ, 1);
            this.layoutManagerformFINPOREZ.SetRowSpan(this.label1FINPOREZIDPOREZ, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1FINPOREZIDPOREZ.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1FINPOREZIDPOREZ.MinimumSize = size;
            size = new System.Drawing.Size(0x2d, 0x17);
            this.label1FINPOREZIDPOREZ.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textFINPOREZIDPOREZ.Location    = point;
            this.textFINPOREZIDPOREZ.Name        = "textFINPOREZIDPOREZ";
            this.textFINPOREZIDPOREZ.Tag         = "FINPOREZIDPOREZ";
            this.textFINPOREZIDPOREZ.TabIndex    = 0;
            this.textFINPOREZIDPOREZ.Anchor      = AnchorStyles.Left;
            this.textFINPOREZIDPOREZ.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textFINPOREZIDPOREZ.ReadOnly    = false;
            this.textFINPOREZIDPOREZ.PromptChar  = ' ';
            this.textFINPOREZIDPOREZ.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textFINPOREZIDPOREZ.DataBindings.Add(new Binding("Value", this.bindingSourceFINPOREZ, "FINPOREZIDPOREZ"));
            this.textFINPOREZIDPOREZ.NumericType = NumericType.Integer;
            this.textFINPOREZIDPOREZ.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformFINPOREZ.Controls.Add(this.textFINPOREZIDPOREZ, 1, 0);
            this.layoutManagerformFINPOREZ.SetColumnSpan(this.textFINPOREZIDPOREZ, 1);
            this.layoutManagerformFINPOREZ.SetRowSpan(this.textFINPOREZIDPOREZ, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textFINPOREZIDPOREZ.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textFINPOREZIDPOREZ.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textFINPOREZIDPOREZ.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1FINPOREZNAZIVPOREZ.Location              = point;
            this.label1FINPOREZNAZIVPOREZ.Name                  = "label1FINPOREZNAZIVPOREZ";
            this.label1FINPOREZNAZIVPOREZ.TabIndex              = 1;
            this.label1FINPOREZNAZIVPOREZ.Tag                   = "labelFINPOREZNAZIVPOREZ";
            this.label1FINPOREZNAZIVPOREZ.Text                  = "Naziv:";
            this.label1FINPOREZNAZIVPOREZ.StyleSetName          = "FieldUltraLabel";
            this.label1FINPOREZNAZIVPOREZ.AutoSize              = true;
            this.label1FINPOREZNAZIVPOREZ.Anchor                = AnchorStyles.Left;
            this.label1FINPOREZNAZIVPOREZ.Appearance.TextVAlign = VAlign.Middle;
            this.label1FINPOREZNAZIVPOREZ.Appearance.ForeColor  = Color.Black;
            this.label1FINPOREZNAZIVPOREZ.BackColor             = Color.Transparent;
            this.layoutManagerformFINPOREZ.Controls.Add(this.label1FINPOREZNAZIVPOREZ, 0, 1);
            this.layoutManagerformFINPOREZ.SetColumnSpan(this.label1FINPOREZNAZIVPOREZ, 1);
            this.layoutManagerformFINPOREZ.SetRowSpan(this.label1FINPOREZNAZIVPOREZ, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1FINPOREZNAZIVPOREZ.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1FINPOREZNAZIVPOREZ.MinimumSize = size;
            size = new System.Drawing.Size(0x35, 0x17);
            this.label1FINPOREZNAZIVPOREZ.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textFINPOREZNAZIVPOREZ.Location    = point;
            this.textFINPOREZNAZIVPOREZ.Name        = "textFINPOREZNAZIVPOREZ";
            this.textFINPOREZNAZIVPOREZ.Tag         = "FINPOREZNAZIVPOREZ";
            this.textFINPOREZNAZIVPOREZ.TabIndex    = 0;
            this.textFINPOREZNAZIVPOREZ.Anchor      = AnchorStyles.Left;
            this.textFINPOREZNAZIVPOREZ.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textFINPOREZNAZIVPOREZ.ReadOnly    = false;
            this.textFINPOREZNAZIVPOREZ.DataBindings.Add(new Binding("Text", this.bindingSourceFINPOREZ, "FINPOREZNAZIVPOREZ"));
            this.textFINPOREZNAZIVPOREZ.MaxLength = 30;
            this.layoutManagerformFINPOREZ.Controls.Add(this.textFINPOREZNAZIVPOREZ, 1, 1);
            this.layoutManagerformFINPOREZ.SetColumnSpan(this.textFINPOREZNAZIVPOREZ, 1);
            this.layoutManagerformFINPOREZ.SetRowSpan(this.textFINPOREZNAZIVPOREZ, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textFINPOREZNAZIVPOREZ.Margin = padding;
            size = new System.Drawing.Size(0xe2, 0x16);
            this.textFINPOREZNAZIVPOREZ.MinimumSize = size;
            size = new System.Drawing.Size(0xe2, 0x16);
            this.textFINPOREZNAZIVPOREZ.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1FINPOREZSTOPA.Location              = point;
            this.label1FINPOREZSTOPA.Name                  = "label1FINPOREZSTOPA";
            this.label1FINPOREZSTOPA.TabIndex              = 1;
            this.label1FINPOREZSTOPA.Tag                   = "labelFINPOREZSTOPA";
            this.label1FINPOREZSTOPA.Text                  = "Stopa:";
            this.label1FINPOREZSTOPA.StyleSetName          = "FieldUltraLabel";
            this.label1FINPOREZSTOPA.AutoSize              = true;
            this.label1FINPOREZSTOPA.Anchor                = AnchorStyles.Left;
            this.label1FINPOREZSTOPA.Appearance.TextVAlign = VAlign.Middle;
            this.label1FINPOREZSTOPA.Appearance.ForeColor  = Color.Black;
            this.label1FINPOREZSTOPA.BackColor             = Color.Transparent;
            this.layoutManagerformFINPOREZ.Controls.Add(this.label1FINPOREZSTOPA, 0, 2);
            this.layoutManagerformFINPOREZ.SetColumnSpan(this.label1FINPOREZSTOPA, 1);
            this.layoutManagerformFINPOREZ.SetRowSpan(this.label1FINPOREZSTOPA, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1FINPOREZSTOPA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1FINPOREZSTOPA.MinimumSize = size;
            size = new System.Drawing.Size(0x37, 0x17);
            this.label1FINPOREZSTOPA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textFINPOREZSTOPA.Location    = point;
            this.textFINPOREZSTOPA.Name        = "textFINPOREZSTOPA";
            this.textFINPOREZSTOPA.Tag         = "FINPOREZSTOPA";
            this.textFINPOREZSTOPA.TabIndex    = 0;
            this.textFINPOREZSTOPA.Anchor      = AnchorStyles.Left;
            this.textFINPOREZSTOPA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textFINPOREZSTOPA.ReadOnly    = false;
            this.textFINPOREZSTOPA.PromptChar  = ' ';
            this.textFINPOREZSTOPA.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textFINPOREZSTOPA.DataBindings.Add(new Binding("Value", this.bindingSourceFINPOREZ, "FINPOREZSTOPA"));
            this.textFINPOREZSTOPA.NumericType = NumericType.Double;
            this.textFINPOREZSTOPA.MaxValue    = 79228162514264337593543950335M;
            this.textFINPOREZSTOPA.MinValue    = -79228162514264337593543950335M;
            this.textFINPOREZSTOPA.MaskInput   = "{LOC}-nnn.nn";
            this.layoutManagerformFINPOREZ.Controls.Add(this.textFINPOREZSTOPA, 1, 2);
            this.layoutManagerformFINPOREZ.SetColumnSpan(this.textFINPOREZSTOPA, 1);
            this.layoutManagerformFINPOREZ.SetRowSpan(this.textFINPOREZSTOPA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textFINPOREZSTOPA.Margin = padding;
            size = new System.Drawing.Size(0x37, 0x16);
            this.textFINPOREZSTOPA.MinimumSize = size;
            size = new System.Drawing.Size(0x37, 0x16);
            this.textFINPOREZSTOPA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1OSNOVICAUKNIZIIRA.Location              = point;
            this.label1OSNOVICAUKNIZIIRA.Name                  = "label1OSNOVICAUKNIZIIRA";
            this.label1OSNOVICAUKNIZIIRA.TabIndex              = 1;
            this.label1OSNOVICAUKNIZIIRA.Tag                   = "labelOSNOVICAUKNIZIIRA";
            this.label1OSNOVICAUKNIZIIRA.Text                  = "Osnovica iz Knjige IRA:";
            this.label1OSNOVICAUKNIZIIRA.StyleSetName          = "FieldUltraLabel";
            this.label1OSNOVICAUKNIZIIRA.AutoSize              = true;
            this.label1OSNOVICAUKNIZIIRA.Anchor                = AnchorStyles.Left;
            this.label1OSNOVICAUKNIZIIRA.Appearance.TextVAlign = VAlign.Middle;
            this.label1OSNOVICAUKNIZIIRA.Appearance.ForeColor  = Color.Black;
            this.label1OSNOVICAUKNIZIIRA.BackColor             = Color.Transparent;
            this.layoutManagerformFINPOREZ.Controls.Add(this.label1OSNOVICAUKNIZIIRA, 0, 3);
            this.layoutManagerformFINPOREZ.SetColumnSpan(this.label1OSNOVICAUKNIZIIRA, 1);
            this.layoutManagerformFINPOREZ.SetRowSpan(this.label1OSNOVICAUKNIZIIRA, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1OSNOVICAUKNIZIIRA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1OSNOVICAUKNIZIIRA.MinimumSize = size;
            size = new System.Drawing.Size(160, 0x17);
            this.label1OSNOVICAUKNIZIIRA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textOSNOVICAUKNIZIIRA.Location    = point;
            this.textOSNOVICAUKNIZIIRA.Name        = "textOSNOVICAUKNIZIIRA";
            this.textOSNOVICAUKNIZIIRA.Tag         = "OSNOVICAUKNIZIIRA";
            this.textOSNOVICAUKNIZIIRA.TabIndex    = 0;
            this.textOSNOVICAUKNIZIIRA.Anchor      = AnchorStyles.Left;
            this.textOSNOVICAUKNIZIIRA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textOSNOVICAUKNIZIIRA.ReadOnly    = false;
            this.textOSNOVICAUKNIZIIRA.PromptChar  = ' ';
            this.textOSNOVICAUKNIZIIRA.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textOSNOVICAUKNIZIIRA.DataBindings.Add(new Binding("Value", this.bindingSourceFINPOREZ, "OSNOVICAUKNIZIIRA"));
            this.textOSNOVICAUKNIZIIRA.NumericType = NumericType.Integer;
            this.textOSNOVICAUKNIZIIRA.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformFINPOREZ.Controls.Add(this.textOSNOVICAUKNIZIIRA, 1, 3);
            this.layoutManagerformFINPOREZ.SetColumnSpan(this.textOSNOVICAUKNIZIIRA, 1);
            this.layoutManagerformFINPOREZ.SetRowSpan(this.textOSNOVICAUKNIZIIRA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textOSNOVICAUKNIZIIRA.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textOSNOVICAUKNIZIIRA.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textOSNOVICAUKNIZIIRA.Size = size;
            this.Controls.Add(this.layoutManagerformFINPOREZ);
            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.bindingSourceFINPOREZ;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "FINPOREZFormUserControl";
            this.Text       = "FINPOREZ";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.FINPOREZFormUserControl_Load);
            this.layoutManagerformFINPOREZ.ResumeLayout(false);
            this.layoutManagerformFINPOREZ.PerformLayout();
            ((ISupportInitialize)this.bindingSourceFINPOREZ).EndInit();
            ((ISupportInitialize)this.textFINPOREZIDPOREZ).EndInit();
            ((ISupportInitialize)this.textFINPOREZNAZIVPOREZ).EndInit();
            ((ISupportInitialize)this.textFINPOREZSTOPA).EndInit();
            ((ISupportInitialize)this.textOSNOVICAUKNIZIIRA).EndInit();
            this.dsFINPOREZDataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }