Esempio n. 1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsRAD1SPOLDataSet1 = new RAD1SPOLDataSet();
     this.m_StartRow         = 0;
     this.Cursor             = Cursors.WaitCursor;
     this.m_GridLoading      = true;
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal);
 }
Esempio n. 2
0
        private void SetComboBoxColumnProperties(bool setColumnsWidth)
        {
            if (DataAdapterFactory.Provider == null)
            {
                DataAdapterFactory.Provider = new SimpleDataAdapterFactory();
            }
            DataSet dataSet = new RAD1SPOLDataSet();

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetRAD1SPOLDataAdapter().Fill(dataSet);
            }
            System.Data.DataView dataList = new System.Data.DataView(dataSet.Tables["RAD1SPOL"])
            {
                Sort = "RAD1SPOLNAZIV"
            };
            CreateValueList(this.DataGrid, "RAD1SPOLRAD1SPOLID", dataList, "RAD1SPOLID", "RAD1SPOLNAZIV");
            UltraGridColumn column2 = this.DataGrid.DisplayLayout.Bands["RAD1VEZASPOL"].Columns["RAD1SPOLID"];

            column2.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column2.ValueList = this.DataGrid.DisplayLayout.ValueLists["RAD1SPOLRAD1SPOLID"];
            if (setColumnsWidth)
            {
                column2.Width = 190;
            }
            DataSet set = new SPOLDataSet();

            if (DataAdapterFactory.Provider != null)
            {
                DataAdapterFactory.GetSPOLDataAdapter().Fill(set);
            }
            System.Data.DataView view = new System.Data.DataView(set.Tables["SPOL"])
            {
                Sort = "NAZIVSPOL"
            };
            CreateValueList(this.DataGrid, "SPOLIDSPOL", view, "IDSPOL", "NAZIVSPOL");
            UltraGridColumn column = this.DataGrid.DisplayLayout.Bands["RAD1VEZASPOL"].Columns["IDSPOL"];

            column.Style     = Infragistics.Win.UltraWinGrid.ColumnStyle.DropDownList;
            column.ValueList = this.DataGrid.DisplayLayout.ValueLists["SPOLIDSPOL"];
            if (setColumnsWidth)
            {
                column.Width = 190;
            }
        }
Esempio n. 3
0
 public void ChangeBinding()
 {
     this.bindingSourceRAD1SPOL.DataSource = this.RAD1SPOLController.DataSet;
     this.dsRAD1SPOLDataSet1 = this.RAD1SPOLController.DataSet;
 }
Esempio n. 4
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(RAD1SPOLFormUserControl));

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

            this.layoutManagerformRAD1SPOL.Size        = size;
            this.layoutManagerformRAD1SPOL.ColumnCount = 2;
            this.layoutManagerformRAD1SPOL.RowCount    = 3;
            this.layoutManagerformRAD1SPOL.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformRAD1SPOL.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformRAD1SPOL.RowStyles.Add(new RowStyle());
            this.layoutManagerformRAD1SPOL.RowStyles.Add(new RowStyle());
            this.layoutManagerformRAD1SPOL.RowStyles.Add(new RowStyle());
            this.label1RAD1SPOLID    = new UltraLabel();
            this.textRAD1SPOLID      = new UltraNumericEditor();
            this.label1RAD1SPOLNAZIV = new UltraLabel();
            this.textRAD1SPOLNAZIV   = new UltraTextEditor();
            ((ISupportInitialize)this.textRAD1SPOLID).BeginInit();
            ((ISupportInitialize)this.textRAD1SPOLNAZIV).BeginInit();
            this.dsRAD1SPOLDataSet1 = new RAD1SPOLDataSet();
            this.dsRAD1SPOLDataSet1.BeginInit();
            this.SuspendLayout();
            this.dsRAD1SPOLDataSet1.DataSetName   = "dsRAD1SPOL";
            this.dsRAD1SPOLDataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceRAD1SPOL.DataSource = this.dsRAD1SPOLDataSet1;
            this.bindingSourceRAD1SPOL.DataMember = "RAD1SPOL";
            ((ISupportInitialize)this.bindingSourceRAD1SPOL).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1RAD1SPOLID.Location               = point;
            this.label1RAD1SPOLID.Name                   = "label1RAD1SPOLID";
            this.label1RAD1SPOLID.TabIndex               = 1;
            this.label1RAD1SPOLID.Tag                    = "labelRAD1SPOLID";
            this.label1RAD1SPOLID.Text                   = "RAD1 SPOLID:";
            this.label1RAD1SPOLID.StyleSetName           = "FieldUltraLabel";
            this.label1RAD1SPOLID.AutoSize               = true;
            this.label1RAD1SPOLID.Anchor                 = AnchorStyles.Left;
            this.label1RAD1SPOLID.Appearance.TextVAlign  = VAlign.Middle;
            this.label1RAD1SPOLID.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1RAD1SPOLID.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1RAD1SPOLID.ImageSize            = size;
            this.label1RAD1SPOLID.Appearance.ForeColor = Color.Black;
            this.label1RAD1SPOLID.BackColor            = Color.Transparent;
            this.layoutManagerformRAD1SPOL.Controls.Add(this.label1RAD1SPOLID, 0, 0);
            this.layoutManagerformRAD1SPOL.SetColumnSpan(this.label1RAD1SPOLID, 1);
            this.layoutManagerformRAD1SPOL.SetRowSpan(this.label1RAD1SPOLID, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1RAD1SPOLID.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1RAD1SPOLID.MinimumSize = size;
            size = new System.Drawing.Size(0x66, 0x17);
            this.label1RAD1SPOLID.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textRAD1SPOLID.Location    = point;
            this.textRAD1SPOLID.Name        = "textRAD1SPOLID";
            this.textRAD1SPOLID.Tag         = "RAD1SPOLID";
            this.textRAD1SPOLID.TabIndex    = 0;
            this.textRAD1SPOLID.Anchor      = AnchorStyles.Left;
            this.textRAD1SPOLID.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textRAD1SPOLID.ReadOnly    = false;
            this.textRAD1SPOLID.PromptChar  = ' ';
            this.textRAD1SPOLID.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textRAD1SPOLID.DataBindings.Add(new Binding("Value", this.bindingSourceRAD1SPOL, "RAD1SPOLID"));
            this.textRAD1SPOLID.NumericType = NumericType.Integer;
            this.textRAD1SPOLID.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformRAD1SPOL.Controls.Add(this.textRAD1SPOLID, 1, 0);
            this.layoutManagerformRAD1SPOL.SetColumnSpan(this.textRAD1SPOLID, 1);
            this.layoutManagerformRAD1SPOL.SetRowSpan(this.textRAD1SPOLID, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textRAD1SPOLID.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textRAD1SPOLID.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textRAD1SPOLID.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1RAD1SPOLNAZIV.Location              = point;
            this.label1RAD1SPOLNAZIV.Name                  = "label1RAD1SPOLNAZIV";
            this.label1RAD1SPOLNAZIV.TabIndex              = 1;
            this.label1RAD1SPOLNAZIV.Tag                   = "labelRAD1SPOLNAZIV";
            this.label1RAD1SPOLNAZIV.Text                  = "RAD1 SPOLNAZIV:";
            this.label1RAD1SPOLNAZIV.StyleSetName          = "FieldUltraLabel";
            this.label1RAD1SPOLNAZIV.AutoSize              = true;
            this.label1RAD1SPOLNAZIV.Anchor                = AnchorStyles.Left;
            this.label1RAD1SPOLNAZIV.Appearance.TextVAlign = VAlign.Middle;
            this.label1RAD1SPOLNAZIV.Appearance.ForeColor  = Color.Black;
            this.label1RAD1SPOLNAZIV.BackColor             = Color.Transparent;
            this.layoutManagerformRAD1SPOL.Controls.Add(this.label1RAD1SPOLNAZIV, 0, 1);
            this.layoutManagerformRAD1SPOL.SetColumnSpan(this.label1RAD1SPOLNAZIV, 1);
            this.layoutManagerformRAD1SPOL.SetRowSpan(this.label1RAD1SPOLNAZIV, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1RAD1SPOLNAZIV.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1RAD1SPOLNAZIV.MinimumSize = size;
            size = new System.Drawing.Size(130, 0x17);
            this.label1RAD1SPOLNAZIV.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textRAD1SPOLNAZIV.Location    = point;
            this.textRAD1SPOLNAZIV.Name        = "textRAD1SPOLNAZIV";
            this.textRAD1SPOLNAZIV.Tag         = "RAD1SPOLNAZIV";
            this.textRAD1SPOLNAZIV.TabIndex    = 0;
            this.textRAD1SPOLNAZIV.Anchor      = AnchorStyles.Left;
            this.textRAD1SPOLNAZIV.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textRAD1SPOLNAZIV.ReadOnly    = false;
            this.textRAD1SPOLNAZIV.DataBindings.Add(new Binding("Text", this.bindingSourceRAD1SPOL, "RAD1SPOLNAZIV"));
            this.textRAD1SPOLNAZIV.MaxLength = 20;
            this.layoutManagerformRAD1SPOL.Controls.Add(this.textRAD1SPOLNAZIV, 1, 1);
            this.layoutManagerformRAD1SPOL.SetColumnSpan(this.textRAD1SPOLNAZIV, 1);
            this.layoutManagerformRAD1SPOL.SetRowSpan(this.textRAD1SPOLNAZIV, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textRAD1SPOLNAZIV.Margin = padding;
            size = new System.Drawing.Size(0x9c, 0x16);
            this.textRAD1SPOLNAZIV.MinimumSize = size;
            size = new System.Drawing.Size(0x9c, 0x16);
            this.textRAD1SPOLNAZIV.Size = size;
            this.Controls.Add(this.layoutManagerformRAD1SPOL);
            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.bindingSourceRAD1SPOL;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "RAD1SPOLFormUserControl";
            this.Text       = "RAD1SPOL";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.RAD1SPOLFormUserControl_Load);
            this.layoutManagerformRAD1SPOL.ResumeLayout(false);
            this.layoutManagerformRAD1SPOL.PerformLayout();
            ((ISupportInitialize)this.bindingSourceRAD1SPOL).EndInit();
            ((ISupportInitialize)this.textRAD1SPOLID).EndInit();
            ((ISupportInitialize)this.textRAD1SPOLNAZIV).EndInit();
            this.dsRAD1SPOLDataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }