예제 #1
0
 public virtual void Fill()
 {
     this.PreFill();
     this.dsZAPOSLENIDataSet1 = new ZAPOSLENIDataSet();
     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.bindingSourceZAPOSLENI.DataSource = this.ZAPOSLENIController.DataSet;
     this.dsZAPOSLENIDataSet1 = this.ZAPOSLENIController.DataSet;
 }
예제 #3
0
        private void InitializeComponent()
        {
            this.components = new Container();
            ResourceManager manager = new ResourceManager(typeof(ZAPOSLENIFormUserControl));

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

            this.layoutManagerformZAPOSLENI.Size        = size;
            this.layoutManagerformZAPOSLENI.ColumnCount = 2;
            this.layoutManagerformZAPOSLENI.RowCount    = 3;
            this.layoutManagerformZAPOSLENI.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformZAPOSLENI.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle());
            this.layoutManagerformZAPOSLENI.RowStyles.Add(new RowStyle());
            this.layoutManagerformZAPOSLENI.RowStyles.Add(new RowStyle());
            this.layoutManagerformZAPOSLENI.RowStyles.Add(new RowStyle());
            this.label1IDRADNIK            = new UltraLabel();
            this.comboIDRADNIK             = new PregledRadnikaComboBox();
            this.label1DATUMZAPOSLENJA     = new UltraLabel();
            this.datePickerDATUMZAPOSLENJA = new UltraDateTimeEditor();
            this.dsZAPOSLENIDataSet1       = new ZAPOSLENIDataSet();
            this.dsZAPOSLENIDataSet1.BeginInit();
            this.SuspendLayout();
            this.dsZAPOSLENIDataSet1.DataSetName   = "dsZAPOSLENI";
            this.dsZAPOSLENIDataSet1.Locale        = new CultureInfo("hr-HR");
            this.bindingSourceZAPOSLENI.DataSource = this.dsZAPOSLENIDataSet1;
            this.bindingSourceZAPOSLENI.DataMember = "ZAPOSLENI";
            ((ISupportInitialize)this.bindingSourceZAPOSLENI).BeginInit();
            point = new System.Drawing.Point(0, 0);
            this.label1IDRADNIK.Location               = point;
            this.label1IDRADNIK.Name                   = "label1IDRADNIK";
            this.label1IDRADNIK.TabIndex               = 1;
            this.label1IDRADNIK.Tag                    = "labelIDRADNIK";
            this.label1IDRADNIK.Text                   = "Šifra radnika:";
            this.label1IDRADNIK.StyleSetName           = "FieldUltraLabel";
            this.label1IDRADNIK.AutoSize               = true;
            this.label1IDRADNIK.Anchor                 = AnchorStyles.Left;
            this.label1IDRADNIK.Appearance.TextVAlign  = VAlign.Middle;
            this.label1IDRADNIK.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1IDRADNIK.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1IDRADNIK.ImageSize            = size;
            this.label1IDRADNIK.Appearance.ForeColor = Color.Black;
            this.label1IDRADNIK.BackColor            = Color.Transparent;
            this.layoutManagerformZAPOSLENI.Controls.Add(this.label1IDRADNIK, 0, 0);
            this.layoutManagerformZAPOSLENI.SetColumnSpan(this.label1IDRADNIK, 1);
            this.layoutManagerformZAPOSLENI.SetRowSpan(this.label1IDRADNIK, 1);
            Padding padding = new Padding(3, 1, 5, 2);

            this.label1IDRADNIK.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1IDRADNIK.MinimumSize = size;
            size = new System.Drawing.Size(0x60, 0x17);
            this.label1IDRADNIK.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.comboIDRADNIK.Location                  = point;
            this.comboIDRADNIK.Name                      = "comboIDRADNIK";
            this.comboIDRADNIK.Tag                       = "IDRADNIK";
            this.comboIDRADNIK.TabIndex                  = 0;
            this.comboIDRADNIK.Anchor                    = AnchorStyles.Left;
            this.comboIDRADNIK.MouseEnter               += new EventHandler(this.mouseEnter_Text);
            this.comboIDRADNIK.DropDownStyle             = DropDownStyle.DropDown;
            this.comboIDRADNIK.ComboBox.DropDownStyle    = DropDownStyle.DropDown;
            this.comboIDRADNIK.ComboBox.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.Suggest;
            this.comboIDRADNIK.Enabled                   = true;
            this.comboIDRADNIK.DataBindings.Add(new Binding("Value", this.bindingSourceZAPOSLENI, "IDRADNIK"));
            this.comboIDRADNIK.ShowPictureBox     = true;
            this.comboIDRADNIK.PictureBoxClicked += new EventHandler(this.PictureBoxClickedIDRADNIK);
            this.comboIDRADNIK.ValueMember        = "IDRADNIK";
            this.comboIDRADNIK.SelectionChanged  += new EventHandler(this.SelectedIndexChangedIDRADNIK);
            this.layoutManagerformZAPOSLENI.Controls.Add(this.comboIDRADNIK, 1, 0);
            this.layoutManagerformZAPOSLENI.SetColumnSpan(this.comboIDRADNIK, 1);
            this.layoutManagerformZAPOSLENI.SetRowSpan(this.comboIDRADNIK, 1);
            padding = new Padding(0, 1, 3, 2);
            this.comboIDRADNIK.Margin = padding;
            size = new System.Drawing.Size(0x268, 0x17);
            this.comboIDRADNIK.MinimumSize = size;
            size = new System.Drawing.Size(0x268, 0x17);
            this.comboIDRADNIK.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.label1DATUMZAPOSLENJA.Location               = point;
            this.label1DATUMZAPOSLENJA.Name                   = "label1DATUMZAPOSLENJA";
            this.label1DATUMZAPOSLENJA.TabIndex               = 1;
            this.label1DATUMZAPOSLENJA.Tag                    = "labelDATUMZAPOSLENJA";
            this.label1DATUMZAPOSLENJA.Text                   = "Datum zasnivanja radnog odnosa:";
            this.label1DATUMZAPOSLENJA.StyleSetName           = "FieldUltraLabel";
            this.label1DATUMZAPOSLENJA.AutoSize               = true;
            this.label1DATUMZAPOSLENJA.Anchor                 = AnchorStyles.Left;
            this.label1DATUMZAPOSLENJA.Appearance.TextVAlign  = VAlign.Middle;
            this.label1DATUMZAPOSLENJA.Appearance.Image       = RuntimeHelpers.GetObjectValue(manager.GetObject("pictureBoxKey.Image"));
            this.label1DATUMZAPOSLENJA.Appearance.ImageHAlign = HAlign.Right;
            size = new System.Drawing.Size(7, 10);
            this.label1DATUMZAPOSLENJA.ImageSize            = size;
            this.label1DATUMZAPOSLENJA.Appearance.ForeColor = Color.Black;
            this.label1DATUMZAPOSLENJA.BackColor            = Color.Transparent;
            this.layoutManagerformZAPOSLENI.Controls.Add(this.label1DATUMZAPOSLENJA, 0, 1);
            this.layoutManagerformZAPOSLENI.SetColumnSpan(this.label1DATUMZAPOSLENJA, 1);
            this.layoutManagerformZAPOSLENI.SetRowSpan(this.label1DATUMZAPOSLENJA, 1);
            padding = new Padding(3, 1, 5, 2);
            this.label1DATUMZAPOSLENJA.Margin = padding;
            size = new System.Drawing.Size(0, 0);
            this.label1DATUMZAPOSLENJA.MinimumSize = size;
            size = new System.Drawing.Size(0xdf, 0x17);
            this.label1DATUMZAPOSLENJA.Size = size;
            point = new System.Drawing.Point(0, 0);
            this.datePickerDATUMZAPOSLENJA.Location    = point;
            this.datePickerDATUMZAPOSLENJA.Name        = "datePickerDATUMZAPOSLENJA";
            this.datePickerDATUMZAPOSLENJA.Tag         = "DATUMZAPOSLENJA";
            this.datePickerDATUMZAPOSLENJA.TabIndex    = 0;
            this.datePickerDATUMZAPOSLENJA.Anchor      = AnchorStyles.Left;
            this.datePickerDATUMZAPOSLENJA.MouseEnter += new EventHandler(this.mouseEnter_Text);
            this.datePickerDATUMZAPOSLENJA.Enabled     = true;
            this.layoutManagerformZAPOSLENI.Controls.Add(this.datePickerDATUMZAPOSLENJA, 1, 1);
            this.layoutManagerformZAPOSLENI.SetColumnSpan(this.datePickerDATUMZAPOSLENJA, 1);
            this.layoutManagerformZAPOSLENI.SetRowSpan(this.datePickerDATUMZAPOSLENJA, 1);
            padding = new Padding(0, 1, 3, 2);
            this.datePickerDATUMZAPOSLENJA.Margin = padding;
            size = new System.Drawing.Size(100, 0x16);
            this.datePickerDATUMZAPOSLENJA.MinimumSize = size;
            size = new System.Drawing.Size(100, 0x16);
            this.datePickerDATUMZAPOSLENJA.Size = size;
            this.Controls.Add(this.layoutManagerformZAPOSLENI);
            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.bindingSourceZAPOSLENI;
            this.errorProviderValidator1.ErrorProvider = this.errorProvider1;
            this.Name       = "ZAPOSLENIFormUserControl";
            this.Text       = "ZAPOSLENI";
            this.AutoSize   = true;
            this.AutoScroll = true;
            this.Load      += new EventHandler(this.ZAPOSLENIFormUserControl_Load);
            this.layoutManagerformZAPOSLENI.ResumeLayout(false);
            this.layoutManagerformZAPOSLENI.PerformLayout();
            ((ISupportInitialize)this.bindingSourceZAPOSLENI).EndInit();
            this.dsZAPOSLENIDataSet1.EndInit();
            this.ResumeLayout(false);
            this.PerformLayout();
        }