Exemple #1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsBLGVRSTEDOKDataSet1 = new BLGVRSTEDOKDataSet();
     this.m_StartRow            = 0;
     this.Cursor        = Cursors.WaitCursor;
     this.m_GridLoading = true;
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal);
 }
Exemple #2
0
 public void ChangeBinding()
 {
     this.bindingSourceBLGVRSTEDOK.DataSource = this.BLGVRSTEDOKController.DataSet;
     this.dsBLGVRSTEDOKDataSet1 = this.BLGVRSTEDOKController.DataSet;
 }
Exemple #3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(BLGVRSTEDOKFormUserControl));

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

            this.layoutManagerformBLGVRSTEDOK.Size        = size;
            this.layoutManagerformBLGVRSTEDOK.ColumnCount = 2;
            this.layoutManagerformBLGVRSTEDOK.RowCount    = 3;
            this.layoutManagerformBLGVRSTEDOK.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformBLGVRSTEDOK.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformBLGVRSTEDOK.RowStyles.Add(new RowStyle());
            this.layoutManagerformBLGVRSTEDOK.RowStyles.Add(new RowStyle());
            this.layoutManagerformBLGVRSTEDOK.RowStyles.Add(new RowStyle());
            this.label1IDBLGVRSTEDOK = new UltraLabel();
            this.textIDBLGVRSTEDOK   = new UltraNumericEditor();
            this.label1NAZIVVRSTEDOK = new UltraLabel();
            this.textNAZIVVRSTEDOK   = new UltraTextEditor();
            ((ISupportInitialize)this.textIDBLGVRSTEDOK).BeginInit();
            ((ISupportInitialize)this.textNAZIVVRSTEDOK).BeginInit();
            this.dsBLGVRSTEDOKDataSet1 = new BLGVRSTEDOKDataSet();
            this.dsBLGVRSTEDOKDataSet1.BeginInit();
            this.SuspendLayout();
            this.dsBLGVRSTEDOKDataSet1.DataSetName   = "dsBLGVRSTEDOK";
            this.dsBLGVRSTEDOKDataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceBLGVRSTEDOK.DataSource = this.dsBLGVRSTEDOKDataSet1;
            this.bindingSourceBLGVRSTEDOK.DataMember = "BLGVRSTEDOK";
            ((ISupportInitialize)this.bindingSourceBLGVRSTEDOK).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDBLGVRSTEDOK.Location               = point;
            this.label1IDBLGVRSTEDOK.Name                   = "label1IDBLGVRSTEDOK";
            this.label1IDBLGVRSTEDOK.TabIndex               = 1;
            this.label1IDBLGVRSTEDOK.Tag                    = "labelIDBLGVRSTEDOK";
            this.label1IDBLGVRSTEDOK.Text                   = "Šif.dok.blagajne:";
            this.label1IDBLGVRSTEDOK.StyleSetName           = "FieldUltraLabel";
            this.label1IDBLGVRSTEDOK.AutoSize               = true;
            this.label1IDBLGVRSTEDOK.Anchor                 = AnchorStyles.Left;
            this.label1IDBLGVRSTEDOK.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDBLGVRSTEDOK.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDBLGVRSTEDOK.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDBLGVRSTEDOK.ImageSize            = size;
            this.label1IDBLGVRSTEDOK.Appearance.ForeColor = Color.Black;
            this.label1IDBLGVRSTEDOK.BackColor            = Color.Transparent;
            this.layoutManagerformBLGVRSTEDOK.Controls.Add(this.label1IDBLGVRSTEDOK, 0, 0);
            this.layoutManagerformBLGVRSTEDOK.SetColumnSpan(this.label1IDBLGVRSTEDOK, 1);
            this.layoutManagerformBLGVRSTEDOK.SetRowSpan(this.label1IDBLGVRSTEDOK, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDBLGVRSTEDOK.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDBLGVRSTEDOK.MinimumSize = size;
            size = new System.Drawing.Size(0x75, 0x17);
            this.label1IDBLGVRSTEDOK.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textIDBLGVRSTEDOK.Location    = point;
            this.textIDBLGVRSTEDOK.Name        = "textIDBLGVRSTEDOK";
            this.textIDBLGVRSTEDOK.Tag         = "IDBLGVRSTEDOK";
            this.textIDBLGVRSTEDOK.TabIndex    = 0;
            this.textIDBLGVRSTEDOK.Anchor      = AnchorStyles.Left;
            this.textIDBLGVRSTEDOK.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textIDBLGVRSTEDOK.ReadOnly    = false;
            this.textIDBLGVRSTEDOK.PromptChar  = ' ';
            this.textIDBLGVRSTEDOK.Enter      += new EventHandler(this.numericEditor_Enter);
            this.textIDBLGVRSTEDOK.DataBindings.Add(new Binding("Value", this.bindingSourceBLGVRSTEDOK, "IDBLGVRSTEDOK"));
            this.textIDBLGVRSTEDOK.NumericType = NumericType.Integer;
            this.textIDBLGVRSTEDOK.MaskInput   = "{LOC}-nnnnn";
            this.layoutManagerformBLGVRSTEDOK.Controls.Add(this.textIDBLGVRSTEDOK, 1, 0);
            this.layoutManagerformBLGVRSTEDOK.SetColumnSpan(this.textIDBLGVRSTEDOK, 1);
            this.layoutManagerformBLGVRSTEDOK.SetRowSpan(this.textIDBLGVRSTEDOK, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textIDBLGVRSTEDOK.Margin = padding;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDBLGVRSTEDOK.MinimumSize = size;
            size = new System.Drawing.Size(0x33, 0x16);
            this.textIDBLGVRSTEDOK.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1NAZIVVRSTEDOK.Location              = point;
            this.label1NAZIVVRSTEDOK.Name                  = "label1NAZIVVRSTEDOK";
            this.label1NAZIVVRSTEDOK.TabIndex              = 1;
            this.label1NAZIVVRSTEDOK.Tag                   = "labelNAZIVVRSTEDOK";
            this.label1NAZIVVRSTEDOK.Text                  = "Naziv dok.:";
            this.label1NAZIVVRSTEDOK.StyleSetName          = "FieldUltraLabel";
            this.label1NAZIVVRSTEDOK.AutoSize              = true;
            this.label1NAZIVVRSTEDOK.Anchor                = AnchorStyles.Left;
            this.label1NAZIVVRSTEDOK.Appearance.TextVAlign = VAlign.Middle;
            this.label1NAZIVVRSTEDOK.Appearance.ForeColor  = Color.Black;
            this.label1NAZIVVRSTEDOK.BackColor             = Color.Transparent;
            this.layoutManagerformBLGVRSTEDOK.Controls.Add(this.label1NAZIVVRSTEDOK, 0, 1);
            this.layoutManagerformBLGVRSTEDOK.SetColumnSpan(this.label1NAZIVVRSTEDOK, 1);
            this.layoutManagerformBLGVRSTEDOK.SetRowSpan(this.label1NAZIVVRSTEDOK, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1NAZIVVRSTEDOK.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1NAZIVVRSTEDOK.MinimumSize = size;
            size = new System.Drawing.Size(0x54, 0x17);
            this.label1NAZIVVRSTEDOK.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.textNAZIVVRSTEDOK.Location    = point;
            this.textNAZIVVRSTEDOK.Name        = "textNAZIVVRSTEDOK";
            this.textNAZIVVRSTEDOK.Tag         = "NAZIVVRSTEDOK";
            this.textNAZIVVRSTEDOK.TabIndex    = 0;
            this.textNAZIVVRSTEDOK.Anchor      = AnchorStyles.Left;
            this.textNAZIVVRSTEDOK.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.textNAZIVVRSTEDOK.ReadOnly    = false;
            this.textNAZIVVRSTEDOK.DataBindings.Add(new Binding("Text", this.bindingSourceBLGVRSTEDOK, "NAZIVVRSTEDOK"));
            this.textNAZIVVRSTEDOK.MaxLength = 30;
            this.layoutManagerformBLGVRSTEDOK.Controls.Add(this.textNAZIVVRSTEDOK, 1, 1);
            this.layoutManagerformBLGVRSTEDOK.SetColumnSpan(this.textNAZIVVRSTEDOK, 1);
            this.layoutManagerformBLGVRSTEDOK.SetRowSpan(this.textNAZIVVRSTEDOK, 1);
            padding = new Padding(0, 1, 3, 2);
            this.textNAZIVVRSTEDOK.Margin = padding;
            size = new System.Drawing.Size(0xe2, 0x16);
            this.textNAZIVVRSTEDOK.MinimumSize = size;
            size = new System.Drawing.Size(0xe2, 0x16);
            this.textNAZIVVRSTEDOK.Size = size;
            this.Controls.Add(this.layoutManagerformBLGVRSTEDOK);
            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.bindingSourceBLGVRSTEDOK;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "BLGVRSTEDOKFormUserControl";
            this.Text       = "BLGVRSTEDOK";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.BLGVRSTEDOKFormUserControl_Load);
            this.layoutManagerformBLGVRSTEDOK.ResumeLayout(false);
            this.layoutManagerformBLGVRSTEDOK.PerformLayout();
            ((ISupportInitialize)this.bindingSourceBLGVRSTEDOK).EndInit();
            ((ISupportInitialize)this.textIDBLGVRSTEDOK).EndInit();
            ((ISupportInitialize)this.textNAZIVVRSTEDOK).EndInit();
            this.dsBLGVRSTEDOKDataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }