コード例 #1
0
        /// <summary> 
        /// Required method for Designer support - do not modify 
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            Resco.Controls.SmartGrid.Style style1 = new Resco.Controls.SmartGrid.Style();
            Resco.Controls.SmartGrid.Style style2 = new Resco.Controls.SmartGrid.Style();
            Resco.Controls.SmartGrid.Style style3 = new Resco.Controls.SmartGrid.Style();
            Resco.Controls.SmartGrid.Style style4 = new Resco.Controls.SmartGrid.Style();
            this.Lokacija = new Resco.Controls.SmartGrid.Column();
            this.Zona = new Resco.Controls.SmartGrid.Column();
            this.Sifra = new Resco.Controls.SmartGrid.Column();
            this.Naziv = new Resco.Controls.SmartGrid.Column();
            this.Dobavljac = new Resco.Controls.SmartGrid.Column();
            this.Izlaz = new Resco.Controls.SmartGrid.Column();
            this.SkenIzlaz = new Resco.Controls.SmartGrid.Column();
            this.Ulaz = new Resco.Controls.SmartGrid.Column();
            this.SkenUlaz = new Resco.Controls.SmartGrid.Column();
            this.txtDokument = new System.Windows.Forms.TextBox();
            this.lblDok = new System.Windows.Forms.Label();
            this.btnTrazi = new System.Windows.Forms.Button();
            this.pnlTop = new System.Windows.Forms.Panel();
            this.sgStavka = new Resco.Controls.SmartGrid.SmartGrid();
            this.pnlBottom = new System.Windows.Forms.Panel();
            this.btnLokacije = new System.Windows.Forms.Button();
            this.btnIzLok = new System.Windows.Forms.Button();
            this.btnOdustani = new System.Windows.Forms.Button();
            this.btnDodijeliBarkod = new System.Windows.Forms.Button();
            this.pnlTop.SuspendLayout();
            this.pnlBottom.SuspendLayout();
            this.SuspendLayout();
            // 
            // Lokacija
            // 
            this.Lokacija.CustomizeCells = true;
            this.Lokacija.DataMember = "OptiLok";
            this.Lokacija.HeaderText = "Lokacija";
            this.Lokacija.Name = "Lokacija";
            this.Lokacija.Width = 90;
            // 
            // Zona
            // 
            this.Zona.CustomizeCells = true;
            this.Zona.DataMember = "OptiZon";
            this.Zona.HeaderText = "Zona";
            this.Zona.Name = "Zona";
            this.Zona.Width = 0;
            // 
            // Sifra
            // 
            this.Sifra.CustomizeCells = true;
            this.Sifra.DataMember = "RobaSifra";
            this.Sifra.HeaderText = "Šifra";
            this.Sifra.Name = "Sifra";
            this.Sifra.Width = 150;
            // 
            // Naziv
            // 
            this.Naziv.CustomizeCells = true;
            this.Naziv.DataMember = "RobaNaziv";
            this.Naziv.HeaderText = "Naziv";
            this.Naziv.Name = "Naziv";
            this.Naziv.Width = 190;
            // 
            // Dobavljac
            // 
            this.Dobavljac.CustomizeCells = true;
            this.Dobavljac.DataMember = "RobaSifDobav";
            this.Dobavljac.HeaderText = "Dobavljač";
            this.Dobavljac.Name = "Dobavljac";
            this.Dobavljac.Width = 180;
            // 
            // Izlaz
            // 
            this.Izlaz.Alignment = Resco.Controls.SmartGrid.Alignment.TopRight;
            this.Izlaz.CustomizeCells = true;
            this.Izlaz.DataMember = "Izlaz";
            this.Izlaz.HeaderText = "Izlaz";
            this.Izlaz.Name = "Izlaz";
            this.Izlaz.Width = 140;
            // 
            // SkenIzlaz
            // 
            this.SkenIzlaz.Alignment = Resco.Controls.SmartGrid.Alignment.TopRight;
            this.SkenIzlaz.CustomizeCells = true;
            this.SkenIzlaz.DataMember = "SkenIzlaz";
            this.SkenIzlaz.HeaderText = "Sken.izlaz";
            this.SkenIzlaz.Name = "SkenIzlaz";
            this.SkenIzlaz.Width = 140;
            // 
            // Ulaz
            // 
            this.Ulaz.Alignment = Resco.Controls.SmartGrid.Alignment.TopRight;
            this.Ulaz.CustomizeCells = true;
            this.Ulaz.DataMember = "Ulaz";
            this.Ulaz.HeaderText = "Ulaz";
            this.Ulaz.Name = "Ulaz";
            this.Ulaz.Width = 140;
            // 
            // SkenUlaz
            // 
            this.SkenUlaz.Alignment = Resco.Controls.SmartGrid.Alignment.TopRight;
            this.SkenUlaz.CustomizeCells = true;
            this.SkenUlaz.DataMember = "SkenUlaz";
            this.SkenUlaz.HeaderText = "Sken.ulaz";
            this.SkenUlaz.Name = "SkenUlaz";
            this.SkenUlaz.Width = 140;
            // 
            // txtDokument
            // 
            this.txtDokument.Location = new System.Drawing.Point(92, 4);
            this.txtDokument.Margin = new System.Windows.Forms.Padding(4);
            this.txtDokument.MaxLength = 19;
            this.txtDokument.Name = "txtDokument";
            this.txtDokument.Size = new System.Drawing.Size(190, 27);
            this.txtDokument.TabIndex = 2;
            // 
            // lblDok
            // 
            this.lblDok.Location = new System.Drawing.Point(3, 7);
            this.lblDok.Name = "lblDok";
            this.lblDok.Size = new System.Drawing.Size(82, 27);
            this.lblDok.TabIndex = 1;
            this.lblDok.Text = "Dokument";
            // 
            // btnTrazi
            // 
            this.btnTrazi.Location = new System.Drawing.Point(289, 4);
            this.btnTrazi.Name = "btnTrazi";
            this.btnTrazi.Size = new System.Drawing.Size(190, 27);
            this.btnTrazi.TabIndex = 3;
            this.btnTrazi.Text = "Traži";
            this.btnTrazi.UseVisualStyleBackColor = true;
            this.btnTrazi.Click += new System.EventHandler(this.btnTrazi_Click);
            // 
            // pnlTop
            // 
            this.pnlTop.Controls.Add(this.btnTrazi);
            this.pnlTop.Controls.Add(this.txtDokument);
            this.pnlTop.Controls.Add(this.lblDok);
            this.pnlTop.Dock = System.Windows.Forms.DockStyle.Top;
            this.pnlTop.Location = new System.Drawing.Point(0, 0);
            this.pnlTop.Name = "pnlTop";
            this.pnlTop.Size = new System.Drawing.Size(1200, 40);
            this.pnlTop.TabIndex = 0;
            // 
            // sgStavka
            // 
            this.sgStavka.ActiveColumnIndex = -1;
            this.sgStavka.ActiveRowIndex = -1;
            this.sgStavka.AutoScroll = true;
            this.sgStavka.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.sgStavka.Columns.Add(this.Lokacija);
            this.sgStavka.Columns.Add(this.Zona);
            this.sgStavka.Columns.Add(this.Sifra);
            this.sgStavka.Columns.Add(this.Naziv);
            this.sgStavka.Columns.Add(this.Dobavljac);
            this.sgStavka.Columns.Add(this.Izlaz);
            this.sgStavka.Columns.Add(this.SkenIzlaz);
            this.sgStavka.Columns.Add(this.Ulaz);
            this.sgStavka.Columns.Add(this.SkenUlaz);
            this.sgStavka.Dock = System.Windows.Forms.DockStyle.Fill;
            this.sgStavka.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
            this.sgStavka.HeaderBackColor = System.Drawing.Color.Turquoise;
            this.sgStavka.HeaderFont = new System.Drawing.Font("Tahoma", 10F, System.Drawing.FontStyle.Bold);
            this.sgStavka.Location = new System.Drawing.Point(0, 40);
            this.sgStavka.Name = "sgStavka";
            this.sgStavka.RowHeight = 22;
            this.sgStavka.ScrollHeight = 25;
            this.sgStavka.ScrollWidth = 25;
            this.sgStavka.SelectionBackColor = System.Drawing.Color.Navy;
            this.sgStavka.SelectionForeColor = System.Drawing.Color.White;
            this.sgStavka.Size = new System.Drawing.Size(1200, 476);
            style1.BackColor = System.Drawing.Color.White;
            style1.Font = new System.Drawing.Font("Tahoma", 12F);
            style1.ForeColor = System.Drawing.Color.Black;
            style1.Name = "Neobradjivani";
            style2.BackColor = System.Drawing.Color.SpringGreen;
            style2.Font = new System.Drawing.Font("Tahoma", 12F);
            style2.ForeColor = System.Drawing.Color.Black;
            style2.Name = "Obradjeni";
            style3.BackColor = System.Drawing.Color.Yellow;
            style3.Font = new System.Drawing.Font("Tahoma", 12F);
            style3.ForeColor = System.Drawing.Color.Black;
            style3.Name = "Nedovrseni";
            style4.BackColor = System.Drawing.Color.Navy;
            style4.Font = new System.Drawing.Font("Tahoma", 12F);
            style4.ForeColor = System.Drawing.Color.White;
            style4.Name = "Selektirani";
            this.sgStavka.Styles.Add(style1);
            this.sgStavka.Styles.Add(style2);
            this.sgStavka.Styles.Add(style3);
            this.sgStavka.Styles.Add(style4);
            this.sgStavka.TabIndex = 4;
            this.sgStavka.CustomizeCell += new Resco.Controls.SmartGrid.CustomizeCellHandler(this.sgStavka_CustomizeCell);
            this.sgStavka.CellClick += new Resco.Controls.SmartGrid.CellClickHandler(this.sgStavka_CellClick);
            // 
            // pnlBottom
            // 
            this.pnlBottom.Controls.Add(this.btnLokacije);
            this.pnlBottom.Controls.Add(this.btnIzLok);
            this.pnlBottom.Controls.Add(this.btnOdustani);
            this.pnlBottom.Controls.Add(this.btnDodijeliBarkod);
            this.pnlBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.pnlBottom.Location = new System.Drawing.Point(0, 516);
            this.pnlBottom.Name = "pnlBottom";
            this.pnlBottom.Size = new System.Drawing.Size(1200, 60);
            this.pnlBottom.TabIndex = 5;
            // 
            // btnLokacije
            // 
            this.btnLokacije.Location = new System.Drawing.Point(395, 3);
            this.btnLokacije.Name = "btnLokacije";
            this.btnLokacije.Size = new System.Drawing.Size(190, 54);
            this.btnLokacije.TabIndex = 8;
            this.btnLokacije.Text = "Lokacije robe";
            this.btnLokacije.UseVisualStyleBackColor = true;
            this.btnLokacije.Visible = false;
            this.btnLokacije.Click += new System.EventHandler(this.btnLokacije_Click);
            // 
            // btnIzLok
            // 
            this.btnIzLok.Location = new System.Drawing.Point(591, 3);
            this.btnIzLok.Name = "btnIzLok";
            this.btnIzLok.Size = new System.Drawing.Size(190, 54);
            this.btnIzLok.TabIndex = 9;
            this.btnIzLok.Text = "Izlazna lokacija";
            this.btnIzLok.UseVisualStyleBackColor = true;
            this.btnIzLok.Visible = false;
            this.btnIzLok.Click += new System.EventHandler(this.btnIzLok_Click);
            // 
            // btnOdustani
            // 
            this.btnOdustani.Location = new System.Drawing.Point(3, 3);
            this.btnOdustani.Name = "btnOdustani";
            this.btnOdustani.Size = new System.Drawing.Size(190, 54);
            this.btnOdustani.TabIndex = 6;
            this.btnOdustani.Text = "Odustani";
            this.btnOdustani.UseVisualStyleBackColor = true;
            this.btnOdustani.Click += new System.EventHandler(this.btnOdustani_Click);
            // 
            // btnDodijeliBarkod
            // 
            this.btnDodijeliBarkod.Location = new System.Drawing.Point(199, 3);
            this.btnDodijeliBarkod.Name = "btnDodijeliBarkod";
            this.btnDodijeliBarkod.Size = new System.Drawing.Size(190, 54);
            this.btnDodijeliBarkod.TabIndex = 7;
            this.btnDodijeliBarkod.Text = "Dodijeli barkod";
            this.btnDodijeliBarkod.UseVisualStyleBackColor = true;
            this.btnDodijeliBarkod.Click += new System.EventHandler(this.btnDodijeliBarkod_Click);
            // 
            // Skladok
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 19F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.AutoScroll = true;
            this.Controls.Add(this.sgStavka);
            this.Controls.Add(this.pnlBottom);
            this.Controls.Add(this.pnlTop);
            this.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238)));
            this.Margin = new System.Windows.Forms.Padding(4);
            this.Name = "Skladok";
            this.Size = new System.Drawing.Size(1200, 576);
            this.pnlTop.ResumeLayout(false);
            this.pnlTop.PerformLayout();
            this.pnlBottom.ResumeLayout(false);
            this.ResumeLayout(false);

        }
コード例 #2
0
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Resco.Controls.SmartGrid.Column column1 = new Resco.Controls.SmartGrid.Column();
     Resco.Controls.SmartGrid.Column column2 = new Resco.Controls.SmartGrid.Column();
     Resco.Controls.SmartGrid.Column column3 = new Resco.Controls.SmartGrid.Column();
     Resco.Controls.SmartGrid.Column column4 = new Resco.Controls.SmartGrid.Column();
     Resco.Controls.SmartGrid.Column column5 = new Resco.Controls.SmartGrid.Column();
     Resco.Controls.SmartGrid.Column column6 = new Resco.Controls.SmartGrid.Column();
     Resco.Controls.SmartGrid.Column column7 = new Resco.Controls.SmartGrid.Column();
     Resco.Controls.SmartGrid.Column column8 = new Resco.Controls.SmartGrid.Column();
     Resco.Controls.SmartGrid.Column column9 = new Resco.Controls.SmartGrid.Column();
     Resco.Controls.SmartGrid.Style style1 = new Resco.Controls.SmartGrid.Style();
     Resco.Controls.SmartGrid.Style style2 = new Resco.Controls.SmartGrid.Style();
     Resco.Controls.SmartGrid.Style style3 = new Resco.Controls.SmartGrid.Style();
     Resco.Controls.SmartGrid.Style style4 = new Resco.Controls.SmartGrid.Style();
     this.btnOdustani = new System.Windows.Forms.Button();
     this.lblDok = new System.Windows.Forms.Label();
     this.txtDokument = new System.Windows.Forms.TextBox();
     this.btnTrazi = new System.Windows.Forms.Button();
     this.lblDokument = new System.Windows.Forms.Label();
     this.btnLokacije = new System.Windows.Forms.Button();
     this.btnIzLok = new System.Windows.Forms.Button();
     this.sgStavka = new Resco.Controls.SmartGrid.SmartGrid();
     this.btnDodijeliBarkod = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // btnOdustani
     //
     this.btnOdustani.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular);
     this.btnOdustani.Location = new System.Drawing.Point(3, 181);
     this.btnOdustani.Name = "btnOdustani";
     this.btnOdustani.Size = new System.Drawing.Size(112, 25);
     this.btnOdustani.TabIndex = 5;
     this.btnOdustani.Text = "Odustani";
     this.btnOdustani.Click += new System.EventHandler(this.btnOdustani_Click);
     //
     // lblDok
     //
     this.lblDok.Font = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Regular);
     this.lblDok.Location = new System.Drawing.Point(3, 3);
     this.lblDok.Name = "lblDok";
     this.lblDok.Size = new System.Drawing.Size(23, 23);
     this.lblDok.Text = "Dok";
     this.lblDok.TextAlign = System.Drawing.ContentAlignment.TopRight;
     //
     // txtDokument
     //
     this.txtDokument.Location = new System.Drawing.Point(32, 3);
     this.txtDokument.MaxLength = 19;
     this.txtDokument.Name = "txtDokument";
     this.txtDokument.Size = new System.Drawing.Size(150, 23);
     this.txtDokument.TabIndex = 0;
     //
     // btnTrazi
     //
     this.btnTrazi.Font = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Regular);
     this.btnTrazi.Location = new System.Drawing.Point(188, 3);
     this.btnTrazi.Name = "btnTrazi";
     this.btnTrazi.Size = new System.Drawing.Size(45, 23);
     this.btnTrazi.TabIndex = 1;
     this.btnTrazi.Tag = "";
     this.btnTrazi.Text = "Traži";
     this.btnTrazi.Click += new System.EventHandler(this.btnTrazi_Click);
     //
     // lblDokument
     //
     this.lblDokument.Font = new System.Drawing.Font("Tahoma", 8F, System.Drawing.FontStyle.Regular);
     this.lblDokument.Location = new System.Drawing.Point(3, 29);
     this.lblDokument.Name = "lblDokument";
     this.lblDokument.Size = new System.Drawing.Size(230, 28);
     //
     // btnLokacije
     //
     this.btnLokacije.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular);
     this.btnLokacije.Location = new System.Drawing.Point(121, 181);
     this.btnLokacije.Name = "btnLokacije";
     this.btnLokacije.Size = new System.Drawing.Size(112, 25);
     this.btnLokacije.TabIndex = 3;
     this.btnLokacije.Text = "Lokacije robe";
     this.btnLokacije.Visible = false;
     this.btnLokacije.Click += new System.EventHandler(this.btnLokacije_Click);
     //
     // btnIzLok
     //
     this.btnIzLok.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular);
     this.btnIzLok.Location = new System.Drawing.Point(121, 212);
     this.btnIzLok.Name = "btnIzLok";
     this.btnIzLok.Size = new System.Drawing.Size(112, 25);
     this.btnIzLok.TabIndex = 4;
     this.btnIzLok.Text = "Izlazna lok.";
     this.btnIzLok.Visible = false;
     this.btnIzLok.Click += new System.EventHandler(this.btnIzLok_Click);
     //
     // sgStavka
     //
     this.sgStavka.AlternatingBackColor = System.Drawing.Color.White;
     this.sgStavka.AlternatingForeColor = System.Drawing.Color.Black;
     this.sgStavka.BackColor = System.Drawing.Color.White;
     this.sgStavka.BackgroundColor = System.Drawing.Color.DimGray;
     this.sgStavka.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     column1.CustomizeCells = true;
     column1.DataMember = "OptiLok";
     column1.HeaderText = "Lokacija";
     column1.Width = 60;
     column2.CustomizeCells = true;
     column2.DataMember = "OptiZon";
     column2.HeaderText = "Zona";
     column2.Width = 0;
     column3.CustomizeCells = true;
     column3.DataMember = "RobaSifra";
     column3.HeaderText = "Šifra";
     column3.Width = 100;
     column4.CustomizeCells = true;
     column4.DataMember = "RobaNaziv";
     column4.HeaderText = "Naziv";
     column4.Width = 200;
     column5.CustomizeCells = true;
     column5.DataMember = "RobaSifDobav";
     column5.HeaderText = "Dobavljaè";
     column5.Width = 70;
     column6.CustomizeCells = true;
     column6.DataMember = "Izlaz";
     column6.HeaderText = "Izlaz";
     column6.Width = 70;
     column7.CustomizeCells = true;
     column7.DataMember = "SkenIzlaz";
     column7.HeaderText = "SkenIzlaz";
     column7.Width = 90;
     column8.CustomizeCells = true;
     column8.DataMember = "Ulaz";
     column8.HeaderText = "Ulaz";
     column8.Width = 70;
     column9.CustomizeCells = true;
     column9.DataMember = "SkenUlaz";
     column9.HeaderText = "SkenUlaz";
     column9.Width = 80;
     this.sgStavka.Columns.Add(column1);
     this.sgStavka.Columns.Add(column2);
     this.sgStavka.Columns.Add(column3);
     this.sgStavka.Columns.Add(column4);
     this.sgStavka.Columns.Add(column5);
     this.sgStavka.Columns.Add(column6);
     this.sgStavka.Columns.Add(column7);
     this.sgStavka.Columns.Add(column8);
     this.sgStavka.Columns.Add(column9);
     this.sgStavka.ForeColor = System.Drawing.Color.Black;
     this.sgStavka.HeaderBackColor = System.Drawing.Color.Turquoise;
     this.sgStavka.HeaderForeColor = System.Drawing.Color.Black;
     this.sgStavka.Location = new System.Drawing.Point(3, 29);
     this.sgStavka.Name = "sgStavka";
     this.sgStavka.SelectionBackColor = System.Drawing.Color.Navy;
     this.sgStavka.SelectionForeColor = System.Drawing.Color.White;
     this.sgStavka.Size = new System.Drawing.Size(230, 146);
     style1.BackColor = System.Drawing.Color.White;
     style1.ForeColor = System.Drawing.Color.Black;
     style1.Name = "Neobradjivani";
     style2.BackColor = System.Drawing.Color.PaleGreen;
     style2.ForeColor = System.Drawing.Color.Black;
     style2.Name = "Obradjeni";
     style3.BackColor = System.Drawing.Color.Yellow;
     style3.ForeColor = System.Drawing.Color.Black;
     style3.Name = "Nedovrseni";
     style4.BackColor = System.Drawing.Color.Navy;
     style4.ForeColor = System.Drawing.Color.White;
     style4.Name = "Selektirani";
     this.sgStavka.Styles.Add(style1);
     this.sgStavka.Styles.Add(style2);
     this.sgStavka.Styles.Add(style3);
     this.sgStavka.Styles.Add(style4);
     this.sgStavka.TabIndex = 2;
     this.sgStavka.CustomizeCell += new Resco.Controls.SmartGrid.CustomizeCellHandler(this.sgStavka_CustomizeCell);
     this.sgStavka.CellClick += new Resco.Controls.SmartGrid.CellClickHandler(this.sgStavka_CellClick);
     //
     // btnDodijeliBarkod
     //
     this.btnDodijeliBarkod.Location = new System.Drawing.Point(3, 212);
     this.btnDodijeliBarkod.Name = "btnDodijeliBarkod";
     this.btnDodijeliBarkod.Size = new System.Drawing.Size(112, 25);
     this.btnDodijeliBarkod.TabIndex = 7;
     this.btnDodijeliBarkod.Text = "Dodijeli barkod";
     this.btnDodijeliBarkod.Click += new System.EventHandler(this.btnDodijeliBarkod_Click);
     //
     // Skladok
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
     this.Controls.Add(this.btnDodijeliBarkod);
     this.Controls.Add(this.sgStavka);
     this.Controls.Add(this.btnIzLok);
     this.Controls.Add(this.btnLokacije);
     this.Controls.Add(this.lblDokument);
     this.Controls.Add(this.btnTrazi);
     this.Controls.Add(this.txtDokument);
     this.Controls.Add(this.btnOdustani);
     this.Controls.Add(this.lblDok);
     this.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular);
     this.Name = "Skladok";
     this.Size = new System.Drawing.Size(236, 240);
     this.ResumeLayout(false);
 }