コード例 #1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsBENEFICIRANIDataSet1 = new BENEFICIRANIDataSet();
     this.m_StartRow             = 0;
     this.Cursor        = Cursors.WaitCursor;
     this.m_GridLoading = true;
     ThreadPool.QueueUserWorkItem(new WaitCallback(this.FillDataThread), Thread.CurrentPrincipal);
 }
コード例 #2
0
 public void ChangeBinding()
 {
     this.bindingSourceBENEFICIRANI.DataSource = this.Controller.DataSet;
     this.dsBENEFICIRANIDataSet1 = this.Controller.DataSet;
 }
コード例 #3
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     Infragistics.Win.Appearance appearance1 = new Infragistics.Win.Appearance();
     Infragistics.Win.Appearance appearance2 = new Infragistics.Win.Appearance();
     Infragistics.Win.Appearance appearance3 = new Infragistics.Win.Appearance();
     this.contextMenu1                  = new System.Windows.Forms.ContextMenu();
     this.SetNullItem                   = new System.Windows.Forms.MenuItem();
     this.toolTip1                      = new System.Windows.Forms.ToolTip(this.components);
     this.errorProvider1                = new System.Windows.Forms.ErrorProvider(this.components);
     this.bindingSourceBENEFICIRANI     = new System.Windows.Forms.BindingSource(this.components);
     this.dsBENEFICIRANIDataSet1        = new Placa.BENEFICIRANIDataSet();
     this.errorProviderValidator1       = new Deklarit.Win.ErrorProviderValidator(this.components);
     this.layoutManagerformBENEFICIRANI = new System.Windows.Forms.TableLayoutPanel();
     this.label1IDBENEFICIRANI          = new Infragistics.Win.Misc.UltraLabel();
     this.textIDBENEFICIRANI            = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
     this.label1NAZIVBENEFICIRANI       = new Infragistics.Win.Misc.UltraLabel();
     this.textNAZIVBENEFICIRANI         = new Infragistics.Win.UltraWinEditors.UltraTextEditor();
     this.label1BROJPRIZNATIHMJESECI    = new Infragistics.Win.Misc.UltraLabel();
     this.textBROJPRIZNATIHMJESECI      = new Infragistics.Win.UltraWinEditors.UltraNumericEditor();
     ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.bindingSourceBENEFICIRANI)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsBENEFICIRANIDataSet1)).BeginInit();
     this.layoutManagerformBENEFICIRANI.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.textIDBENEFICIRANI)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.textNAZIVBENEFICIRANI)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.textBROJPRIZNATIHMJESECI)).BeginInit();
     this.SuspendLayout();
     //
     // contextMenu1
     //
     this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.SetNullItem
     });
     this.contextMenu1.Popup += new System.EventHandler(this.contextMenu1_Popup);
     //
     // SetNullItem
     //
     this.SetNullItem.Index  = 0;
     this.SetNullItem.Text   = "Set Null";
     this.SetNullItem.Click += new System.EventHandler(this.SetNullItem_Click);
     //
     // errorProvider1
     //
     this.errorProvider1.ContainerControl = this;
     this.errorProvider1.DataSource       = this.bindingSourceBENEFICIRANI;
     //
     // bindingSourceBENEFICIRANI
     //
     this.bindingSourceBENEFICIRANI.DataMember = "BENEFICIRANI";
     this.bindingSourceBENEFICIRANI.DataSource = this.dsBENEFICIRANIDataSet1;
     //
     // dsBENEFICIRANIDataSet1
     //
     this.dsBENEFICIRANIDataSet1.DataSetName = "dsBENEFICIRANI";
     this.dsBENEFICIRANIDataSet1.Locale      = new System.Globalization.CultureInfo("hr-HR");
     //
     // errorProviderValidator1
     //
     this.errorProviderValidator1.ErrorProvider   = this.errorProvider1;
     this.errorProviderValidator1.ToolTipProvider = null;
     //
     // layoutManagerformBENEFICIRANI
     //
     this.layoutManagerformBENEFICIRANI.AutoSize     = true;
     this.layoutManagerformBENEFICIRANI.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
     this.layoutManagerformBENEFICIRANI.ColumnCount  = 2;
     this.layoutManagerformBENEFICIRANI.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.layoutManagerformBENEFICIRANI.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
     this.layoutManagerformBENEFICIRANI.Controls.Add(this.label1IDBENEFICIRANI, 0, 0);
     this.layoutManagerformBENEFICIRANI.Controls.Add(this.textIDBENEFICIRANI, 1, 0);
     this.layoutManagerformBENEFICIRANI.Controls.Add(this.label1NAZIVBENEFICIRANI, 0, 1);
     this.layoutManagerformBENEFICIRANI.Controls.Add(this.textNAZIVBENEFICIRANI, 1, 1);
     this.layoutManagerformBENEFICIRANI.Controls.Add(this.label1BROJPRIZNATIHMJESECI, 0, 2);
     this.layoutManagerformBENEFICIRANI.Controls.Add(this.textBROJPRIZNATIHMJESECI, 1, 2);
     this.errorProviderValidator1.SetDisplayName(this.layoutManagerformBENEFICIRANI, "");
     this.layoutManagerformBENEFICIRANI.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.layoutManagerformBENEFICIRANI.Location = new System.Drawing.Point(0, 0);
     this.layoutManagerformBENEFICIRANI.Name     = "layoutManagerformBENEFICIRANI";
     this.errorProviderValidator1.SetRegularExpression(this.layoutManagerformBENEFICIRANI, "");
     this.errorProviderValidator1.SetRegularExpressionMessage(this.layoutManagerformBENEFICIRANI, "");
     this.errorProviderValidator1.SetRequired(this.layoutManagerformBENEFICIRANI, false);
     this.errorProviderValidator1.SetRequiredMessage(this.layoutManagerformBENEFICIRANI, "");
     this.layoutManagerformBENEFICIRANI.RowCount = 4;
     this.layoutManagerformBENEFICIRANI.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.layoutManagerformBENEFICIRANI.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.layoutManagerformBENEFICIRANI.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.layoutManagerformBENEFICIRANI.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.layoutManagerformBENEFICIRANI.Size     = new System.Drawing.Size(590, 150);
     this.layoutManagerformBENEFICIRANI.TabIndex = 0;
     //
     // label1IDBENEFICIRANI
     //
     this.label1IDBENEFICIRANI.Anchor            = System.Windows.Forms.AnchorStyles.Left;
     appearance1.ForeColor                       = System.Drawing.Color.Black;
     appearance1.ImageHAlign                     = Infragistics.Win.HAlign.Right;
     appearance1.TextVAlignAsString              = "Middle";
     this.label1IDBENEFICIRANI.Appearance        = appearance1;
     this.label1IDBENEFICIRANI.AutoSize          = true;
     this.label1IDBENEFICIRANI.BackColorInternal = System.Drawing.Color.Transparent;
     this.errorProviderValidator1.SetDisplayName(this.label1IDBENEFICIRANI, "");
     this.label1IDBENEFICIRANI.ImageSize = new System.Drawing.Size(7, 10);
     this.label1IDBENEFICIRANI.Location  = new System.Drawing.Point(3, 5);
     this.label1IDBENEFICIRANI.Margin    = new System.Windows.Forms.Padding(3, 1, 5, 2);
     this.label1IDBENEFICIRANI.Name      = "label1IDBENEFICIRANI";
     this.errorProviderValidator1.SetRegularExpression(this.label1IDBENEFICIRANI, "");
     this.errorProviderValidator1.SetRegularExpressionMessage(this.label1IDBENEFICIRANI, "");
     this.errorProviderValidator1.SetRequired(this.label1IDBENEFICIRANI, false);
     this.errorProviderValidator1.SetRequiredMessage(this.label1IDBENEFICIRANI, "");
     this.label1IDBENEFICIRANI.Size         = new System.Drawing.Size(170, 14);
     this.label1IDBENEFICIRANI.StyleSetName = "FieldUltraLabel";
     this.label1IDBENEFICIRANI.TabIndex     = 1;
     this.label1IDBENEFICIRANI.Tag          = "labelIDBENEFICIRANI";
     this.label1IDBENEFICIRANI.Text         = "Šifra beneficiranog radnog staža:";
     //
     // textIDBENEFICIRANI
     //
     this.textIDBENEFICIRANI.Anchor = System.Windows.Forms.AnchorStyles.Left;
     this.textIDBENEFICIRANI.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bindingSourceBENEFICIRANI, "IDBENEFICIRANI", true));
     this.errorProviderValidator1.SetDisplayName(this.textIDBENEFICIRANI, "");
     this.textIDBENEFICIRANI.Location    = new System.Drawing.Point(221, 1);
     this.textIDBENEFICIRANI.Margin      = new System.Windows.Forms.Padding(0, 1, 3, 2);
     this.textIDBENEFICIRANI.MaxLength   = 1;
     this.textIDBENEFICIRANI.MinimumSize = new System.Drawing.Size(23, 22);
     this.textIDBENEFICIRANI.Name        = "textIDBENEFICIRANI";
     this.errorProviderValidator1.SetRegularExpression(this.textIDBENEFICIRANI, "");
     this.errorProviderValidator1.SetRegularExpressionMessage(this.textIDBENEFICIRANI, "");
     this.errorProviderValidator1.SetRequired(this.textIDBENEFICIRANI, false);
     this.errorProviderValidator1.SetRequiredMessage(this.textIDBENEFICIRANI, "");
     this.textIDBENEFICIRANI.Size        = new System.Drawing.Size(23, 22);
     this.textIDBENEFICIRANI.TabIndex    = 0;
     this.textIDBENEFICIRANI.Tag         = "IDBENEFICIRANI";
     this.textIDBENEFICIRANI.MouseEnter += new System.EventHandler(this.mouseEnter_Text);
     //
     // label1NAZIVBENEFICIRANI
     //
     this.label1NAZIVBENEFICIRANI.Anchor = System.Windows.Forms.AnchorStyles.Left;
     appearance2.ForeColor                          = System.Drawing.Color.Black;
     appearance2.TextVAlignAsString                 = "Middle";
     this.label1NAZIVBENEFICIRANI.Appearance        = appearance2;
     this.label1NAZIVBENEFICIRANI.AutoSize          = true;
     this.label1NAZIVBENEFICIRANI.BackColorInternal = System.Drawing.Color.Transparent;
     this.errorProviderValidator1.SetDisplayName(this.label1NAZIVBENEFICIRANI, "");
     this.label1NAZIVBENEFICIRANI.Location = new System.Drawing.Point(3, 29);
     this.label1NAZIVBENEFICIRANI.Margin   = new System.Windows.Forms.Padding(3, 1, 5, 2);
     this.label1NAZIVBENEFICIRANI.Name     = "label1NAZIVBENEFICIRANI";
     this.errorProviderValidator1.SetRegularExpression(this.label1NAZIVBENEFICIRANI, "");
     this.errorProviderValidator1.SetRegularExpressionMessage(this.label1NAZIVBENEFICIRANI, "");
     this.errorProviderValidator1.SetRequired(this.label1NAZIVBENEFICIRANI, false);
     this.errorProviderValidator1.SetRequiredMessage(this.label1NAZIVBENEFICIRANI, "");
     this.label1NAZIVBENEFICIRANI.Size         = new System.Drawing.Size(175, 14);
     this.label1NAZIVBENEFICIRANI.StyleSetName = "FieldUltraLabel";
     this.label1NAZIVBENEFICIRANI.TabIndex     = 1;
     this.label1NAZIVBENEFICIRANI.Tag          = "labelNAZIVBENEFICIRANI";
     this.label1NAZIVBENEFICIRANI.Text         = "Naziv beneficiranog radnog staža:";
     //
     // textNAZIVBENEFICIRANI
     //
     this.textNAZIVBENEFICIRANI.Anchor = System.Windows.Forms.AnchorStyles.Left;
     this.textNAZIVBENEFICIRANI.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bindingSourceBENEFICIRANI, "NAZIVBENEFICIRANI", true));
     this.errorProviderValidator1.SetDisplayName(this.textNAZIVBENEFICIRANI, "");
     this.textNAZIVBENEFICIRANI.Location    = new System.Drawing.Point(221, 26);
     this.textNAZIVBENEFICIRANI.Margin      = new System.Windows.Forms.Padding(0, 1, 3, 2);
     this.textNAZIVBENEFICIRANI.MaxLength   = 50;
     this.textNAZIVBENEFICIRANI.MinimumSize = new System.Drawing.Size(366, 22);
     this.textNAZIVBENEFICIRANI.Name        = "textNAZIVBENEFICIRANI";
     this.errorProviderValidator1.SetRegularExpression(this.textNAZIVBENEFICIRANI, "");
     this.errorProviderValidator1.SetRegularExpressionMessage(this.textNAZIVBENEFICIRANI, "");
     this.errorProviderValidator1.SetRequired(this.textNAZIVBENEFICIRANI, false);
     this.errorProviderValidator1.SetRequiredMessage(this.textNAZIVBENEFICIRANI, "");
     this.textNAZIVBENEFICIRANI.Size        = new System.Drawing.Size(366, 22);
     this.textNAZIVBENEFICIRANI.TabIndex    = 0;
     this.textNAZIVBENEFICIRANI.Tag         = "NAZIVBENEFICIRANI";
     this.textNAZIVBENEFICIRANI.MouseEnter += new System.EventHandler(this.mouseEnter_Text);
     //
     // label1BROJPRIZNATIHMJESECI
     //
     this.label1BROJPRIZNATIHMJESECI.Anchor = System.Windows.Forms.AnchorStyles.Left;
     appearance3.ForeColor                             = System.Drawing.Color.Black;
     appearance3.TextVAlignAsString                    = "Middle";
     this.label1BROJPRIZNATIHMJESECI.Appearance        = appearance3;
     this.label1BROJPRIZNATIHMJESECI.AutoSize          = true;
     this.label1BROJPRIZNATIHMJESECI.BackColorInternal = System.Drawing.Color.Transparent;
     this.errorProviderValidator1.SetDisplayName(this.label1BROJPRIZNATIHMJESECI, "");
     this.label1BROJPRIZNATIHMJESECI.Location = new System.Drawing.Point(3, 53);
     this.label1BROJPRIZNATIHMJESECI.Margin   = new System.Windows.Forms.Padding(3, 1, 5, 2);
     this.label1BROJPRIZNATIHMJESECI.Name     = "label1BROJPRIZNATIHMJESECI";
     this.errorProviderValidator1.SetRegularExpression(this.label1BROJPRIZNATIHMJESECI, "");
     this.errorProviderValidator1.SetRegularExpressionMessage(this.label1BROJPRIZNATIHMJESECI, "");
     this.errorProviderValidator1.SetRequired(this.label1BROJPRIZNATIHMJESECI, false);
     this.errorProviderValidator1.SetRequiredMessage(this.label1BROJPRIZNATIHMJESECI, "");
     this.label1BROJPRIZNATIHMJESECI.Size         = new System.Drawing.Size(213, 14);
     this.label1BROJPRIZNATIHMJESECI.StyleSetName = "FieldUltraLabel";
     this.label1BROJPRIZNATIHMJESECI.TabIndex     = 1;
     this.label1BROJPRIZNATIHMJESECI.Tag          = "labelBROJPRIZNATIHMJESECI";
     this.label1BROJPRIZNATIHMJESECI.Text         = "Broj priznatih mjeseci za 12 mjeseci rada:";
     //
     // textBROJPRIZNATIHMJESECI
     //
     this.textBROJPRIZNATIHMJESECI.Anchor = System.Windows.Forms.AnchorStyles.Left;
     this.textBROJPRIZNATIHMJESECI.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.bindingSourceBENEFICIRANI, "BROJPRIZNATIHMJESECI", true));
     this.errorProviderValidator1.SetDisplayName(this.textBROJPRIZNATIHMJESECI, "");
     this.textBROJPRIZNATIHMJESECI.Location    = new System.Drawing.Point(221, 50);
     this.textBROJPRIZNATIHMJESECI.Margin      = new System.Windows.Forms.Padding(0, 1, 3, 2);
     this.textBROJPRIZNATIHMJESECI.MaskInput   = "{LOC}-nn";
     this.textBROJPRIZNATIHMJESECI.MinimumSize = new System.Drawing.Size(31, 22);
     this.textBROJPRIZNATIHMJESECI.Name        = "textBROJPRIZNATIHMJESECI";
     this.textBROJPRIZNATIHMJESECI.PromptChar  = ' ';
     this.errorProviderValidator1.SetRegularExpression(this.textBROJPRIZNATIHMJESECI, "");
     this.errorProviderValidator1.SetRegularExpressionMessage(this.textBROJPRIZNATIHMJESECI, "");
     this.errorProviderValidator1.SetRequired(this.textBROJPRIZNATIHMJESECI, false);
     this.errorProviderValidator1.SetRequiredMessage(this.textBROJPRIZNATIHMJESECI, "");
     this.textBROJPRIZNATIHMJESECI.Size        = new System.Drawing.Size(31, 22);
     this.textBROJPRIZNATIHMJESECI.TabIndex    = 0;
     this.textBROJPRIZNATIHMJESECI.Tag         = "BROJPRIZNATIHMJESECI";
     this.textBROJPRIZNATIHMJESECI.Enter      += new System.EventHandler(this.numericEditor_Enter);
     this.textBROJPRIZNATIHMJESECI.MouseEnter += new System.EventHandler(this.mouseEnter_Text);
     //
     // BENEFICIRANIFormUserControl
     //
     this.AutoScroll = true;
     this.AutoSize   = true;
     this.Controls.Add(this.layoutManagerformBENEFICIRANI);
     this.errorProviderValidator1.SetDisplayName(this, "");
     this.Name = "BENEFICIRANIFormUserControl";
     this.errorProviderValidator1.SetRegularExpression(this, "");
     this.errorProviderValidator1.SetRegularExpressionMessage(this, "");
     this.errorProviderValidator1.SetRequired(this, false);
     this.errorProviderValidator1.SetRequiredMessage(this, "");
     this.Size  = new System.Drawing.Size(590, 150);
     this.Load += new System.EventHandler(this.BENEFICIRANIFormUserControl_Load);
     ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.bindingSourceBENEFICIRANI)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dsBENEFICIRANIDataSet1)).EndInit();
     this.layoutManagerformBENEFICIRANI.ResumeLayout(false);
     this.layoutManagerformBENEFICIRANI.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.textIDBENEFICIRANI)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.textNAZIVBENEFICIRANI)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.textBROJPRIZNATIHMJESECI)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }