Zbiór zmian 715 dla BazaZamowien/Zamowienia

Pokaż
Ignoruj:
Data:
2009-01-14 11:42:37 (17 years ago)
Autor:
marek
Opis:

poprawiono generowanie poprawnego numeru zamowienia

Lokalizacja:
BazaZamowien/Zamowienia
Pliki:
3 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • BazaZamowien/Zamowienia/ZamowienieForm.Designer.cs

    r710 r715  
    4747            System.Windows.Forms.Label zamowienieKtoLabel; 
    4848            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ZamowienieForm)); 
    49             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); 
    50             System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); 
     49            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); 
     50            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle4 = new System.Windows.Forms.DataGridViewCellStyle(); 
    5151            this.zamowieniaBindingSource = new System.Windows.Forms.BindingSource(this.components); 
    5252            this.zamowieniaDataSet = new BazaZamowien.zamowieniaDataSet(); 
     
    147147            //  
    148148            decyzja1KtoLabel.AutoSize = true; 
    149             decyzja1KtoLabel.Location = new System.Drawing.Point(37, 50); 
     149            decyzja1KtoLabel.Location = new System.Drawing.Point(49, 62); 
     150            decyzja1KtoLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    150151            decyzja1KtoLabel.Name = "decyzja1KtoLabel"; 
    151             decyzja1KtoLabel.Size = new System.Drawing.Size(26, 13); 
     152            decyzja1KtoLabel.Size = new System.Drawing.Size(33, 17); 
    152153            decyzja1KtoLabel.TabIndex = 20; 
    153154            decyzja1KtoLabel.Text = "Kto:"; 
     
    156157            //  
    157158            decyzja1DataLabel.AutoSize = true; 
    158             decyzja1DataLabel.Location = new System.Drawing.Point(30, 80); 
     159            decyzja1DataLabel.Location = new System.Drawing.Point(40, 98); 
     160            decyzja1DataLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    159161            decyzja1DataLabel.Name = "decyzja1DataLabel"; 
    160             decyzja1DataLabel.Size = new System.Drawing.Size(33, 13); 
     162            decyzja1DataLabel.Size = new System.Drawing.Size(42, 17); 
    161163            decyzja1DataLabel.TabIndex = 22; 
    162164            decyzja1DataLabel.Text = "Data:"; 
     
    165167            //  
    166168            decyzja2KtoLabel.AutoSize = true; 
    167             decyzja2KtoLabel.Location = new System.Drawing.Point(37, 50); 
     169            decyzja2KtoLabel.Location = new System.Drawing.Point(49, 62); 
     170            decyzja2KtoLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    168171            decyzja2KtoLabel.Name = "decyzja2KtoLabel"; 
    169             decyzja2KtoLabel.Size = new System.Drawing.Size(26, 13); 
     172            decyzja2KtoLabel.Size = new System.Drawing.Size(33, 17); 
    170173            decyzja2KtoLabel.TabIndex = 26; 
    171174            decyzja2KtoLabel.Text = "Kto:"; 
     
    174177            //  
    175178            decyzja2DataLabel.AutoSize = true; 
    176             decyzja2DataLabel.Location = new System.Drawing.Point(30, 80); 
     179            decyzja2DataLabel.Location = new System.Drawing.Point(40, 98); 
     180            decyzja2DataLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    177181            decyzja2DataLabel.Name = "decyzja2DataLabel"; 
    178             decyzja2DataLabel.Size = new System.Drawing.Size(33, 13); 
     182            decyzja2DataLabel.Size = new System.Drawing.Size(42, 17); 
    179183            decyzja2DataLabel.TabIndex = 28; 
    180184            decyzja2DataLabel.Text = "Data:"; 
     
    183187            //  
    184188            decyzja3KtoLabel.AutoSize = true; 
    185             decyzja3KtoLabel.Location = new System.Drawing.Point(40, 50); 
     189            decyzja3KtoLabel.Location = new System.Drawing.Point(53, 62); 
     190            decyzja3KtoLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    186191            decyzja3KtoLabel.Name = "decyzja3KtoLabel"; 
    187             decyzja3KtoLabel.Size = new System.Drawing.Size(26, 13); 
     192            decyzja3KtoLabel.Size = new System.Drawing.Size(33, 17); 
    188193            decyzja3KtoLabel.TabIndex = 32; 
    189194            decyzja3KtoLabel.Text = "Kto:"; 
     
    192197            //  
    193198            decyzja3DataLabel.AutoSize = true; 
    194             decyzja3DataLabel.Location = new System.Drawing.Point(33, 77); 
     199            decyzja3DataLabel.Location = new System.Drawing.Point(44, 95); 
     200            decyzja3DataLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    195201            decyzja3DataLabel.Name = "decyzja3DataLabel"; 
    196             decyzja3DataLabel.Size = new System.Drawing.Size(33, 13); 
     202            decyzja3DataLabel.Size = new System.Drawing.Size(42, 17); 
    197203            decyzja3DataLabel.TabIndex = 34; 
    198204            decyzja3DataLabel.Text = "Data:"; 
     
    201207            //  
    202208            decyzja3Label.AutoSize = true; 
    203             decyzja3Label.Location = new System.Drawing.Point(18, 26); 
     209            decyzja3Label.Location = new System.Drawing.Point(24, 32); 
     210            decyzja3Label.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    204211            decyzja3Label.Name = "decyzja3Label"; 
    205             decyzja3Label.Size = new System.Drawing.Size(48, 13); 
     212            decyzja3Label.Size = new System.Drawing.Size(62, 17); 
    206213            decyzja3Label.TabIndex = 35; 
    207214            decyzja3Label.Text = "Decyzja:"; 
     
    210217            //  
    211218            decyzja2Label.AutoSize = true; 
    212             decyzja2Label.Location = new System.Drawing.Point(15, 26); 
     219            decyzja2Label.Location = new System.Drawing.Point(20, 32); 
     220            decyzja2Label.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    213221            decyzja2Label.Name = "decyzja2Label"; 
    214             decyzja2Label.Size = new System.Drawing.Size(48, 13); 
     222            decyzja2Label.Size = new System.Drawing.Size(62, 17); 
    215223            decyzja2Label.TabIndex = 29; 
    216224            decyzja2Label.Text = "Decyzja:"; 
     
    219227            //  
    220228            decyzja1Label.AutoSize = true; 
    221             decyzja1Label.Location = new System.Drawing.Point(15, 22); 
     229            decyzja1Label.Location = new System.Drawing.Point(20, 27); 
     230            decyzja1Label.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    222231            decyzja1Label.Name = "decyzja1Label"; 
    223             decyzja1Label.Size = new System.Drawing.Size(48, 13); 
     232            decyzja1Label.Size = new System.Drawing.Size(62, 17); 
    224233            decyzja1Label.TabIndex = 23; 
    225234            decyzja1Label.Text = "Decyzja:"; 
     
    228237            //  
    229238            numerLabel.AutoSize = true; 
    230             numerLabel.Location = new System.Drawing.Point(424, 20); 
     239            numerLabel.Location = new System.Drawing.Point(565, 25); 
     240            numerLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    231241            numerLabel.Name = "numerLabel"; 
    232             numerLabel.Size = new System.Drawing.Size(41, 13); 
     242            numerLabel.Size = new System.Drawing.Size(54, 17); 
    233243            numerLabel.TabIndex = 6; 
    234244            numerLabel.Text = "Numer:"; 
     
    237247            //  
    238248            zamowienieTrescLabel.AutoSize = true; 
    239             zamowienieTrescLabel.Location = new System.Drawing.Point(23, 95); 
     249            zamowienieTrescLabel.Location = new System.Drawing.Point(31, 117); 
     250            zamowienieTrescLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    240251            zamowienieTrescLabel.Name = "zamowienieTrescLabel"; 
    241             zamowienieTrescLabel.Size = new System.Drawing.Size(37, 13); 
     252            zamowienieTrescLabel.Size = new System.Drawing.Size(48, 17); 
    242253            zamowienieTrescLabel.TabIndex = 12; 
    243254            zamowienieTrescLabel.Text = "Treœæ:"; 
     
    246257            //  
    247258            zamowienieWartosc2Label.AutoSize = true; 
    248             zamowienieWartosc2Label.Location = new System.Drawing.Point(409, 56); 
     259            zamowienieWartosc2Label.Location = new System.Drawing.Point(545, 69); 
     260            zamowienieWartosc2Label.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    249261            zamowienieWartosc2Label.Name = "zamowienieWartosc2Label"; 
    250             zamowienieWartosc2Label.Size = new System.Drawing.Size(59, 13); 
     262            zamowienieWartosc2Label.Size = new System.Drawing.Size(76, 17); 
    251263            zamowienieWartosc2Label.TabIndex = 16; 
    252264            zamowienieWartosc2Label.Text = "Wartoœæ 2:"; 
     
    255267            //  
    256268            zamowienieWartosc1Label.AutoSize = true; 
    257             zamowienieWartosc1Label.Location = new System.Drawing.Point(212, 56); 
     269            zamowienieWartosc1Label.Location = new System.Drawing.Point(283, 69); 
     270            zamowienieWartosc1Label.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    258271            zamowienieWartosc1Label.Name = "zamowienieWartosc1Label"; 
    259             zamowienieWartosc1Label.Size = new System.Drawing.Size(59, 13); 
     272            zamowienieWartosc1Label.Size = new System.Drawing.Size(76, 17); 
    260273            zamowienieWartosc1Label.TabIndex = 14; 
    261274            zamowienieWartosc1Label.Text = "Wartoœæ 1:"; 
     
    264277            //  
    265278            zamowienieDataLabel.AutoSize = true; 
    266             zamowienieDataLabel.Location = new System.Drawing.Point(36, 56); 
     279            zamowienieDataLabel.Location = new System.Drawing.Point(48, 69); 
     280            zamowienieDataLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    267281            zamowienieDataLabel.Name = "zamowienieDataLabel"; 
    268             zamowienieDataLabel.Size = new System.Drawing.Size(33, 13); 
     282            zamowienieDataLabel.Size = new System.Drawing.Size(42, 17); 
    269283            zamowienieDataLabel.TabIndex = 4; 
    270284            zamowienieDataLabel.Text = "Data:"; 
     
    273287            //  
    274288            zamowienieDzialLabel.AutoSize = true; 
    275             zamowienieDzialLabel.Location = new System.Drawing.Point(212, 21); 
     289            zamowienieDzialLabel.Location = new System.Drawing.Point(283, 26); 
     290            zamowienieDzialLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    276291            zamowienieDzialLabel.Name = "zamowienieDzialLabel"; 
    277             zamowienieDzialLabel.Size = new System.Drawing.Size(35, 13); 
     292            zamowienieDzialLabel.Size = new System.Drawing.Size(43, 17); 
    278293            zamowienieDzialLabel.TabIndex = 2; 
    279294            zamowienieDzialLabel.Text = "Dzia³:"; 
     
    282297            //  
    283298            zamowienieKtoLabel.AutoSize = true; 
    284             zamowienieKtoLabel.Location = new System.Drawing.Point(43, 23); 
     299            zamowienieKtoLabel.Location = new System.Drawing.Point(57, 28); 
     300            zamowienieKtoLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    285301            zamowienieKtoLabel.Name = "zamowienieKtoLabel"; 
    286             zamowienieKtoLabel.Size = new System.Drawing.Size(26, 13); 
     302            zamowienieKtoLabel.Size = new System.Drawing.Size(33, 17); 
    287303            zamowienieKtoLabel.TabIndex = 1; 
    288304            zamowienieKtoLabel.Text = "Kto:"; 
     
    307323            this.kierownikGroupBox.Controls.Add(decyzja1DataLabel); 
    308324            this.kierownikGroupBox.Controls.Add(this.KierownikPanel); 
    309             this.kierownikGroupBox.Location = new System.Drawing.Point(12, 426); 
     325            this.kierownikGroupBox.Location = new System.Drawing.Point(16, 524); 
     326            this.kierownikGroupBox.Margin = new System.Windows.Forms.Padding(4); 
    310327            this.kierownikGroupBox.Name = "kierownikGroupBox"; 
    311             this.kierownikGroupBox.Size = new System.Drawing.Size(213, 165); 
     328            this.kierownikGroupBox.Padding = new System.Windows.Forms.Padding(4); 
     329            this.kierownikGroupBox.Size = new System.Drawing.Size(284, 203); 
    312330            this.kierownikGroupBox.TabIndex = 37; 
    313331            this.kierownikGroupBox.TabStop = false; 
     
    318336            this.decyzja1DataLabel2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.zamowieniaBindingSource, "Decyzja1Data", true, System.Windows.Forms.DataSourceUpdateMode.OnValidation, null, "g")); 
    319337            this.decyzja1DataLabel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
    320             this.decyzja1DataLabel2.Location = new System.Drawing.Point(90, 77); 
     338            this.decyzja1DataLabel2.Location = new System.Drawing.Point(120, 95); 
     339            this.decyzja1DataLabel2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    321340            this.decyzja1DataLabel2.Name = "decyzja1DataLabel2"; 
    322             this.decyzja1DataLabel2.Size = new System.Drawing.Size(100, 23); 
     341            this.decyzja1DataLabel2.Size = new System.Drawing.Size(133, 28); 
    323342            this.decyzja1DataLabel2.TabIndex = 48; 
    324343            //  
     
    327346            this.labelKto1.AutoSize = true; 
    328347            this.labelKto1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
    329             this.labelKto1.Location = new System.Drawing.Point(83, 50); 
     348            this.labelKto1.Location = new System.Drawing.Point(111, 62); 
     349            this.labelKto1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    330350            this.labelKto1.Name = "labelKto1"; 
    331             this.labelKto1.Size = new System.Drawing.Size(60, 13); 
     351            this.labelKto1.Size = new System.Drawing.Size(76, 17); 
    332352            this.labelKto1.TabIndex = 47; 
    333353            this.labelKto1.Text = "labelKto1"; 
     
    337357            this.labelDecyzja1.AutoSize = true; 
    338358            this.labelDecyzja1.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
    339             this.labelDecyzja1.Location = new System.Drawing.Point(83, 26); 
     359            this.labelDecyzja1.Location = new System.Drawing.Point(111, 32); 
     360            this.labelDecyzja1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    340361            this.labelDecyzja1.Name = "labelDecyzja1"; 
    341             this.labelDecyzja1.Size = new System.Drawing.Size(86, 13); 
     362            this.labelDecyzja1.Size = new System.Drawing.Size(109, 17); 
    342363            this.labelDecyzja1.TabIndex = 46; 
    343364            this.labelDecyzja1.Text = "labelDecyzja1"; 
     
    349370            this.KierownikPanel.Controls.Add(this.akc1Button); 
    350371            this.KierownikPanel.Enabled = false; 
    351             this.KierownikPanel.Location = new System.Drawing.Point(7, 103); 
     372            this.KierownikPanel.Location = new System.Drawing.Point(9, 127); 
     373            this.KierownikPanel.Margin = new System.Windows.Forms.Padding(4); 
    352374            this.KierownikPanel.Name = "KierownikPanel"; 
    353             this.KierownikPanel.Size = new System.Drawing.Size(200, 55); 
     375            this.KierownikPanel.Size = new System.Drawing.Size(267, 68); 
    354376            this.KierownikPanel.TabIndex = 49; 
    355377            //  
     
    357379            //  
    358380            this.wyczysc1Button.Image = ((System.Drawing.Image)(resources.GetObject("wyczysc1Button.Image"))); 
    359             this.wyczysc1Button.Location = new System.Drawing.Point(127, 7); 
     381            this.wyczysc1Button.Location = new System.Drawing.Point(169, 9); 
     382            this.wyczysc1Button.Margin = new System.Windows.Forms.Padding(4); 
    360383            this.wyczysc1Button.Name = "wyczysc1Button"; 
    361             this.wyczysc1Button.Size = new System.Drawing.Size(42, 40); 
     384            this.wyczysc1Button.Size = new System.Drawing.Size(56, 49); 
    362385            this.wyczysc1Button.TabIndex = 48; 
    363386            this.wyczysc1Button.UseVisualStyleBackColor = true; 
     
    367390            //  
    368391            this.nie1Button.Image = ((System.Drawing.Image)(resources.GetObject("nie1Button.Image"))); 
    369             this.nie1Button.Location = new System.Drawing.Point(79, 7); 
     392            this.nie1Button.Location = new System.Drawing.Point(105, 9); 
     393            this.nie1Button.Margin = new System.Windows.Forms.Padding(4); 
    370394            this.nie1Button.Name = "nie1Button"; 
    371             this.nie1Button.Size = new System.Drawing.Size(42, 40); 
     395            this.nie1Button.Size = new System.Drawing.Size(56, 49); 
    372396            this.nie1Button.TabIndex = 47; 
    373397            this.nie1Button.UseVisualStyleBackColor = true; 
     
    377401            //  
    378402            this.akc1Button.Image = ((System.Drawing.Image)(resources.GetObject("akc1Button.Image"))); 
    379             this.akc1Button.Location = new System.Drawing.Point(31, 7); 
     403            this.akc1Button.Location = new System.Drawing.Point(41, 9); 
     404            this.akc1Button.Margin = new System.Windows.Forms.Padding(4); 
    380405            this.akc1Button.Name = "akc1Button"; 
    381             this.akc1Button.Size = new System.Drawing.Size(42, 40); 
     406            this.akc1Button.Size = new System.Drawing.Size(56, 49); 
    382407            this.akc1Button.TabIndex = 46; 
    383408            this.akc1Button.UseVisualStyleBackColor = true; 
     
    398423            this.dyrFinanGroupBox.Controls.Add(decyzja2KtoLabel); 
    399424            this.dyrFinanGroupBox.Controls.Add(decyzja2DataLabel); 
    400             this.dyrFinanGroupBox.Location = new System.Drawing.Point(231, 426); 
     425            this.dyrFinanGroupBox.Location = new System.Drawing.Point(308, 524); 
     426            this.dyrFinanGroupBox.Margin = new System.Windows.Forms.Padding(4); 
    401427            this.dyrFinanGroupBox.Name = "dyrFinanGroupBox"; 
    402             this.dyrFinanGroupBox.Size = new System.Drawing.Size(211, 165); 
     428            this.dyrFinanGroupBox.Padding = new System.Windows.Forms.Padding(4); 
     429            this.dyrFinanGroupBox.Size = new System.Drawing.Size(281, 203); 
    403430            this.dyrFinanGroupBox.TabIndex = 38; 
    404431            this.dyrFinanGroupBox.TabStop = false; 
     
    411438            this.DyrFinansPanel.Controls.Add(this.wyczysc2Button); 
    412439            this.DyrFinansPanel.Enabled = false; 
    413             this.DyrFinansPanel.Location = new System.Drawing.Point(7, 103); 
     440            this.DyrFinansPanel.Location = new System.Drawing.Point(9, 127); 
     441            this.DyrFinansPanel.Margin = new System.Windows.Forms.Padding(4); 
    414442            this.DyrFinansPanel.Name = "DyrFinansPanel"; 
    415             this.DyrFinansPanel.Size = new System.Drawing.Size(200, 55); 
     443            this.DyrFinansPanel.Size = new System.Drawing.Size(267, 68); 
    416444            this.DyrFinansPanel.TabIndex = 50; 
    417445            //  
     
    419447            //  
    420448            this.akc2Button.Image = ((System.Drawing.Image)(resources.GetObject("akc2Button.Image"))); 
    421             this.akc2Button.Location = new System.Drawing.Point(28, 8); 
     449            this.akc2Button.Location = new System.Drawing.Point(37, 10); 
     450            this.akc2Button.Margin = new System.Windows.Forms.Padding(4); 
    422451            this.akc2Button.Name = "akc2Button"; 
    423             this.akc2Button.Size = new System.Drawing.Size(42, 40); 
     452            this.akc2Button.Size = new System.Drawing.Size(56, 49); 
    424453            this.akc2Button.TabIndex = 40; 
    425454            this.akc2Button.UseVisualStyleBackColor = true; 
     
    429458            //  
    430459            this.nie2Button.Image = ((System.Drawing.Image)(resources.GetObject("nie2Button.Image"))); 
    431             this.nie2Button.Location = new System.Drawing.Point(76, 8); 
     460            this.nie2Button.Location = new System.Drawing.Point(101, 10); 
     461            this.nie2Button.Margin = new System.Windows.Forms.Padding(4); 
    432462            this.nie2Button.Name = "nie2Button"; 
    433             this.nie2Button.Size = new System.Drawing.Size(42, 40); 
     463            this.nie2Button.Size = new System.Drawing.Size(56, 49); 
    434464            this.nie2Button.TabIndex = 41; 
    435465            this.nie2Button.UseVisualStyleBackColor = true; 
     
    439469            //  
    440470            this.wyczysc2Button.Image = ((System.Drawing.Image)(resources.GetObject("wyczysc2Button.Image"))); 
    441             this.wyczysc2Button.Location = new System.Drawing.Point(124, 8); 
     471            this.wyczysc2Button.Location = new System.Drawing.Point(165, 10); 
     472            this.wyczysc2Button.Margin = new System.Windows.Forms.Padding(4); 
    442473            this.wyczysc2Button.Name = "wyczysc2Button"; 
    443             this.wyczysc2Button.Size = new System.Drawing.Size(42, 40); 
     474            this.wyczysc2Button.Size = new System.Drawing.Size(56, 49); 
    444475            this.wyczysc2Button.TabIndex = 42; 
    445476            this.wyczysc2Button.UseVisualStyleBackColor = true; 
     
    450481            this.decyzja2DataLabel2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.zamowieniaBindingSource, "Decyzja2Data", true, System.Windows.Forms.DataSourceUpdateMode.OnValidation, null, "g")); 
    451482            this.decyzja2DataLabel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
    452             this.decyzja2DataLabel2.Location = new System.Drawing.Point(80, 77); 
     483            this.decyzja2DataLabel2.Location = new System.Drawing.Point(107, 95); 
     484            this.decyzja2DataLabel2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    453485            this.decyzja2DataLabel2.Name = "decyzja2DataLabel2"; 
    454             this.decyzja2DataLabel2.Size = new System.Drawing.Size(100, 23); 
     486            this.decyzja2DataLabel2.Size = new System.Drawing.Size(133, 28); 
    455487            this.decyzja2DataLabel2.TabIndex = 49; 
    456488            //  
     
    459491            this.labelKto2.AutoSize = true; 
    460492            this.labelKto2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
    461             this.labelKto2.Location = new System.Drawing.Point(80, 50); 
     493            this.labelKto2.Location = new System.Drawing.Point(107, 62); 
     494            this.labelKto2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    462495            this.labelKto2.Name = "labelKto2"; 
    463             this.labelKto2.Size = new System.Drawing.Size(60, 13); 
     496            this.labelKto2.Size = new System.Drawing.Size(76, 17); 
    464497            this.labelKto2.TabIndex = 48; 
    465498            this.labelKto2.Text = "labelKto2"; 
     
    469502            this.labelDecyzja2.AutoSize = true; 
    470503            this.labelDecyzja2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
    471             this.labelDecyzja2.Location = new System.Drawing.Point(80, 26); 
     504            this.labelDecyzja2.Location = new System.Drawing.Point(107, 32); 
     505            this.labelDecyzja2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    472506            this.labelDecyzja2.Name = "labelDecyzja2"; 
    473             this.labelDecyzja2.Size = new System.Drawing.Size(86, 13); 
     507            this.labelDecyzja2.Size = new System.Drawing.Size(109, 17); 
    474508            this.labelDecyzja2.TabIndex = 47; 
    475509            this.labelDecyzja2.Text = "labelDecyzja2"; 
     
    484518            this.dyrGeneralGroupBox.Controls.Add(decyzja3KtoLabel); 
    485519            this.dyrGeneralGroupBox.Controls.Add(decyzja3DataLabel); 
    486             this.dyrGeneralGroupBox.Location = new System.Drawing.Point(448, 426); 
     520            this.dyrGeneralGroupBox.Location = new System.Drawing.Point(597, 524); 
     521            this.dyrGeneralGroupBox.Margin = new System.Windows.Forms.Padding(4); 
    487522            this.dyrGeneralGroupBox.Name = "dyrGeneralGroupBox"; 
    488             this.dyrGeneralGroupBox.Size = new System.Drawing.Size(209, 165); 
     523            this.dyrGeneralGroupBox.Padding = new System.Windows.Forms.Padding(4); 
     524            this.dyrGeneralGroupBox.Size = new System.Drawing.Size(279, 203); 
    489525            this.dyrGeneralGroupBox.TabIndex = 39; 
    490526            this.dyrGeneralGroupBox.TabStop = false; 
     
    497533            this.DyrGeneralPanel.Controls.Add(this.wyczysc3Button); 
    498534            this.DyrGeneralPanel.Enabled = false; 
    499             this.DyrGeneralPanel.Location = new System.Drawing.Point(5, 103); 
     535            this.DyrGeneralPanel.Location = new System.Drawing.Point(7, 127); 
     536            this.DyrGeneralPanel.Margin = new System.Windows.Forms.Padding(4); 
    500537            this.DyrGeneralPanel.Name = "DyrGeneralPanel"; 
    501             this.DyrGeneralPanel.Size = new System.Drawing.Size(200, 55); 
     538            this.DyrGeneralPanel.Size = new System.Drawing.Size(267, 68); 
    502539            this.DyrGeneralPanel.TabIndex = 51; 
    503540            //  
     
    505542            //  
    506543            this.akc3Button.Image = ((System.Drawing.Image)(resources.GetObject("akc3Button.Image"))); 
    507             this.akc3Button.Location = new System.Drawing.Point(32, 8); 
     544            this.akc3Button.Location = new System.Drawing.Point(43, 10); 
     545            this.akc3Button.Margin = new System.Windows.Forms.Padding(4); 
    508546            this.akc3Button.Name = "akc3Button"; 
    509             this.akc3Button.Size = new System.Drawing.Size(42, 40); 
     547            this.akc3Button.Size = new System.Drawing.Size(56, 49); 
    510548            this.akc3Button.TabIndex = 37; 
    511549            this.akc3Button.UseVisualStyleBackColor = true; 
     
    515553            //  
    516554            this.nie3Button.Image = ((System.Drawing.Image)(resources.GetObject("nie3Button.Image"))); 
    517             this.nie3Button.Location = new System.Drawing.Point(80, 8); 
     555            this.nie3Button.Location = new System.Drawing.Point(107, 10); 
     556            this.nie3Button.Margin = new System.Windows.Forms.Padding(4); 
    518557            this.nie3Button.Name = "nie3Button"; 
    519             this.nie3Button.Size = new System.Drawing.Size(42, 40); 
     558            this.nie3Button.Size = new System.Drawing.Size(56, 49); 
    520559            this.nie3Button.TabIndex = 38; 
    521560            this.nie3Button.UseVisualStyleBackColor = true; 
     
    525564            //  
    526565            this.wyczysc3Button.Image = ((System.Drawing.Image)(resources.GetObject("wyczysc3Button.Image"))); 
    527             this.wyczysc3Button.Location = new System.Drawing.Point(128, 8); 
     566            this.wyczysc3Button.Location = new System.Drawing.Point(171, 10); 
     567            this.wyczysc3Button.Margin = new System.Windows.Forms.Padding(4); 
    528568            this.wyczysc3Button.Name = "wyczysc3Button"; 
    529             this.wyczysc3Button.Size = new System.Drawing.Size(42, 40); 
     569            this.wyczysc3Button.Size = new System.Drawing.Size(56, 49); 
    530570            this.wyczysc3Button.TabIndex = 39; 
    531571            this.wyczysc3Button.UseVisualStyleBackColor = true; 
     
    536576            this.decyzja3DataLabel2.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.zamowieniaBindingSource, "Decyzja3Data", true, System.Windows.Forms.DataSourceUpdateMode.OnValidation, null, "g")); 
    537577            this.decyzja3DataLabel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
    538             this.decyzja3DataLabel2.Location = new System.Drawing.Point(79, 77); 
     578            this.decyzja3DataLabel2.Location = new System.Drawing.Point(105, 95); 
     579            this.decyzja3DataLabel2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    539580            this.decyzja3DataLabel2.Name = "decyzja3DataLabel2"; 
    540             this.decyzja3DataLabel2.Size = new System.Drawing.Size(100, 23); 
     581            this.decyzja3DataLabel2.Size = new System.Drawing.Size(133, 28); 
    541582            this.decyzja3DataLabel2.TabIndex = 50; 
    542583            //  
     
    545586            this.labelKto3.AutoSize = true; 
    546587            this.labelKto3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
    547             this.labelKto3.Location = new System.Drawing.Point(89, 50); 
     588            this.labelKto3.Location = new System.Drawing.Point(119, 62); 
     589            this.labelKto3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    548590            this.labelKto3.Name = "labelKto3"; 
    549             this.labelKto3.Size = new System.Drawing.Size(60, 13); 
     591            this.labelKto3.Size = new System.Drawing.Size(76, 17); 
    550592            this.labelKto3.TabIndex = 49; 
    551593            this.labelKto3.Text = "labelKto3"; 
     
    555597            this.labelDecyzja3.AutoSize = true; 
    556598            this.labelDecyzja3.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
    557             this.labelDecyzja3.Location = new System.Drawing.Point(89, 26); 
     599            this.labelDecyzja3.Location = new System.Drawing.Point(119, 32); 
     600            this.labelDecyzja3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    558601            this.labelDecyzja3.Name = "labelDecyzja3"; 
    559             this.labelDecyzja3.Size = new System.Drawing.Size(86, 13); 
     602            this.labelDecyzja3.Size = new System.Drawing.Size(109, 17); 
    560603            this.labelDecyzja3.TabIndex = 48; 
    561604            this.labelDecyzja3.Text = "labelDecyzja3"; 
     
    598641            this.wiadoTabPage.Controls.Add(this.dodajButton); 
    599642            this.wiadoTabPage.Controls.Add(this.realizacjeDataGridView); 
    600             this.wiadoTabPage.Location = new System.Drawing.Point(4, 22); 
     643            this.wiadoTabPage.Location = new System.Drawing.Point(4, 25); 
     644            this.wiadoTabPage.Margin = new System.Windows.Forms.Padding(4); 
    601645            this.wiadoTabPage.Name = "wiadoTabPage"; 
    602             this.wiadoTabPage.Size = new System.Drawing.Size(637, 382); 
     646            this.wiadoTabPage.Size = new System.Drawing.Size(852, 473); 
    603647            this.wiadoTabPage.TabIndex = 2; 
    604648            this.wiadoTabPage.Text = "REALIZACJE"; 
     
    607651            // edytujButton 
    608652            //  
    609             this.edytujButton.Location = new System.Drawing.Point(272, 330); 
     653            this.edytujButton.Location = new System.Drawing.Point(363, 406); 
     654            this.edytujButton.Margin = new System.Windows.Forms.Padding(4); 
    610655            this.edytujButton.Name = "edytujButton"; 
    611             this.edytujButton.Size = new System.Drawing.Size(75, 23); 
     656            this.edytujButton.Size = new System.Drawing.Size(100, 28); 
    612657            this.edytujButton.TabIndex = 3; 
    613658            this.edytujButton.Text = "Edytuj"; 
     
    617662            // usunButton 
    618663            //  
    619             this.usunButton.Location = new System.Drawing.Point(169, 330); 
     664            this.usunButton.Location = new System.Drawing.Point(225, 406); 
     665            this.usunButton.Margin = new System.Windows.Forms.Padding(4); 
    620666            this.usunButton.Name = "usunButton"; 
    621             this.usunButton.Size = new System.Drawing.Size(75, 23); 
     667            this.usunButton.Size = new System.Drawing.Size(100, 28); 
    622668            this.usunButton.TabIndex = 2; 
    623669            this.usunButton.Text = "Usuñ"; 
     
    627673            // dodajButton 
    628674            //  
    629             this.dodajButton.Location = new System.Drawing.Point(373, 330); 
     675            this.dodajButton.Location = new System.Drawing.Point(497, 406); 
     676            this.dodajButton.Margin = new System.Windows.Forms.Padding(4); 
    630677            this.dodajButton.Name = "dodajButton"; 
    631             this.dodajButton.Size = new System.Drawing.Size(75, 23); 
     678            this.dodajButton.Size = new System.Drawing.Size(100, 28); 
    632679            this.dodajButton.TabIndex = 1; 
    633680            this.dodajButton.Text = "Dodaj"; 
     
    649696            this.realizacjeDataGridView.DataSource = this.realizacjeBindingSource; 
    650697            this.realizacjeDataGridView.GridColor = System.Drawing.Color.DimGray; 
    651             this.realizacjeDataGridView.Location = new System.Drawing.Point(14, 17); 
     698            this.realizacjeDataGridView.Location = new System.Drawing.Point(19, 21); 
     699            this.realizacjeDataGridView.Margin = new System.Windows.Forms.Padding(4); 
    652700            this.realizacjeDataGridView.Name = "realizacjeDataGridView"; 
    653701            this.realizacjeDataGridView.ReadOnly = true; 
    654702            this.realizacjeDataGridView.RowHeadersWidth = 10; 
    655703            this.realizacjeDataGridView.RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; 
    656             this.realizacjeDataGridView.Size = new System.Drawing.Size(601, 296); 
     704            this.realizacjeDataGridView.Size = new System.Drawing.Size(801, 364); 
    657705            this.realizacjeDataGridView.TabIndex = 0; 
    658706            //  
     
    661709            this.dataGridViewTextBoxColumn8.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; 
    662710            this.dataGridViewTextBoxColumn8.DataPropertyName = "Data"; 
    663             dataGridViewCellStyle1.Format = "d"; 
    664             this.dataGridViewTextBoxColumn8.DefaultCellStyle = dataGridViewCellStyle1; 
     711            dataGridViewCellStyle3.Format = "d"; 
     712            this.dataGridViewTextBoxColumn8.DefaultCellStyle = dataGridViewCellStyle3; 
    665713            this.dataGridViewTextBoxColumn8.HeaderText = "Data"; 
    666714            this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8"; 
     
    689737            this.dataGridViewTextBoxColumn11.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.None; 
    690738            this.dataGridViewTextBoxColumn11.DataPropertyName = "Wartosc"; 
    691             dataGridViewCellStyle2.Format = "c"; 
    692             this.dataGridViewTextBoxColumn11.DefaultCellStyle = dataGridViewCellStyle2; 
     739            dataGridViewCellStyle4.Format = "c"; 
     740            this.dataGridViewTextBoxColumn11.DefaultCellStyle = dataGridViewCellStyle4; 
    693741            this.dataGridViewTextBoxColumn11.FillWeight = 131.3869F; 
    694742            this.dataGridViewTextBoxColumn11.HeaderText = "Wartosc"; 
     
    721769            this.zamTabPage.Controls.Add(numerLabel); 
    722770            this.zamTabPage.Controls.Add(this.groupBox1); 
    723             this.zamTabPage.Location = new System.Drawing.Point(4, 22); 
     771            this.zamTabPage.Location = new System.Drawing.Point(4, 25); 
     772            this.zamTabPage.Margin = new System.Windows.Forms.Padding(4); 
    724773            this.zamTabPage.Name = "zamTabPage"; 
    725             this.zamTabPage.Padding = new System.Windows.Forms.Padding(3); 
    726             this.zamTabPage.Size = new System.Drawing.Size(637, 382); 
     774            this.zamTabPage.Padding = new System.Windows.Forms.Padding(4); 
     775            this.zamTabPage.Size = new System.Drawing.Size(852, 473); 
    727776            this.zamTabPage.TabIndex = 0; 
    728777            this.zamTabPage.Text = "ZAMÓWIENIE"; 
     
    732781            //  
    733782            this.zamowienieKtoLabel2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
    734             this.zamowienieKtoLabel2.Location = new System.Drawing.Point(75, 18); 
     783            this.zamowienieKtoLabel2.Location = new System.Drawing.Point(100, 22); 
     784            this.zamowienieKtoLabel2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    735785            this.zamowienieKtoLabel2.Name = "zamowienieKtoLabel2"; 
    736             this.zamowienieKtoLabel2.Size = new System.Drawing.Size(123, 23); 
     786            this.zamowienieKtoLabel2.Size = new System.Drawing.Size(164, 28); 
    737787            this.zamowienieKtoLabel2.TabIndex = 47; 
    738788            //  
     
    740790            //  
    741791            this.iDETextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.zamowieniaBindingSource, "IDE", true)); 
    742             this.iDETextBox.Location = new System.Drawing.Point(11, 142); 
     792            this.iDETextBox.Location = new System.Drawing.Point(15, 175); 
     793            this.iDETextBox.Margin = new System.Windows.Forms.Padding(4); 
    743794            this.iDETextBox.Name = "iDETextBox"; 
    744             this.iDETextBox.Size = new System.Drawing.Size(58, 20); 
     795            this.iDETextBox.Size = new System.Drawing.Size(76, 22); 
    745796            this.iDETextBox.TabIndex = 25; 
    746797            this.iDETextBox.Visible = false; 
     
    749800            //  
    750801            this.zamowienieTrescTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.zamowieniaBindingSource, "ZamowienieTresc", true)); 
    751             this.zamowienieTrescTextBox.Location = new System.Drawing.Point(78, 92); 
     802            this.zamowienieTrescTextBox.Location = new System.Drawing.Point(104, 113); 
     803            this.zamowienieTrescTextBox.Margin = new System.Windows.Forms.Padding(4); 
    752804            this.zamowienieTrescTextBox.Multiline = true; 
    753805            this.zamowienieTrescTextBox.Name = "zamowienieTrescTextBox"; 
    754             this.zamowienieTrescTextBox.Size = new System.Drawing.Size(533, 211); 
     806            this.zamowienieTrescTextBox.Size = new System.Drawing.Size(709, 259); 
    755807            this.zamowienieTrescTextBox.TabIndex = 13; 
    756808            //  
     
    758810            //  
    759811            this.zamowienieWartosc1TextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.zamowieniaBindingSource, "ZamowienieWartosc1", true, System.Windows.Forms.DataSourceUpdateMode.OnValidation, null, "C2")); 
    760             this.zamowienieWartosc1TextBox.Location = new System.Drawing.Point(274, 53); 
     812            this.zamowienieWartosc1TextBox.Location = new System.Drawing.Point(365, 65); 
     813            this.zamowienieWartosc1TextBox.Margin = new System.Windows.Forms.Padding(4); 
    761814            this.zamowienieWartosc1TextBox.Name = "zamowienieWartosc1TextBox"; 
    762             this.zamowienieWartosc1TextBox.Size = new System.Drawing.Size(121, 20); 
     815            this.zamowienieWartosc1TextBox.Size = new System.Drawing.Size(160, 22); 
    763816            this.zamowienieWartosc1TextBox.TabIndex = 15; 
    764817            //  
     
    766819            //  
    767820            this.numer_RokTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.zamowieniaBindingSource, "Numer_Rok", true)); 
    768             this.numer_RokTextBox.Location = new System.Drawing.Point(11, 220); 
     821            this.numer_RokTextBox.Location = new System.Drawing.Point(15, 271); 
     822            this.numer_RokTextBox.Margin = new System.Windows.Forms.Padding(4); 
    769823            this.numer_RokTextBox.Name = "numer_RokTextBox"; 
    770             this.numer_RokTextBox.Size = new System.Drawing.Size(58, 20); 
     824            this.numer_RokTextBox.Size = new System.Drawing.Size(76, 22); 
    771825            this.numer_RokTextBox.TabIndex = 11; 
    772826            this.numer_RokTextBox.Visible = false; 
     
    775829            //  
    776830            this.zamowienieWartosc2TextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.zamowieniaBindingSource, "ZamowienieWartosc2", true, System.Windows.Forms.DataSourceUpdateMode.OnValidation, null, "C2")); 
    777             this.zamowienieWartosc2TextBox.Location = new System.Drawing.Point(475, 53); 
     831            this.zamowienieWartosc2TextBox.Location = new System.Drawing.Point(633, 65); 
     832            this.zamowienieWartosc2TextBox.Margin = new System.Windows.Forms.Padding(4); 
    778833            this.zamowienieWartosc2TextBox.Name = "zamowienieWartosc2TextBox"; 
    779             this.zamowienieWartosc2TextBox.Size = new System.Drawing.Size(121, 20); 
     834            this.zamowienieWartosc2TextBox.Size = new System.Drawing.Size(160, 22); 
    780835            this.zamowienieWartosc2TextBox.TabIndex = 17; 
    781836            //  
     
    783838            //  
    784839            this.numerTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.zamowieniaBindingSource, "Numer", true)); 
    785             this.numerTextBox.Location = new System.Drawing.Point(17, 168); 
     840            this.numerTextBox.Location = new System.Drawing.Point(23, 207); 
     841            this.numerTextBox.Margin = new System.Windows.Forms.Padding(4); 
    786842            this.numerTextBox.Name = "numerTextBox"; 
    787             this.numerTextBox.Size = new System.Drawing.Size(43, 20); 
     843            this.numerTextBox.Size = new System.Drawing.Size(56, 22); 
    788844            this.numerTextBox.TabIndex = 7; 
    789845            this.numerTextBox.Visible = false; 
     
    792848            //  
    793849            this.numer_RozTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.zamowieniaBindingSource, "Numer_Roz", true)); 
    794             this.numer_RozTextBox.Location = new System.Drawing.Point(9, 194); 
     850            this.numer_RozTextBox.Location = new System.Drawing.Point(12, 239); 
     851            this.numer_RozTextBox.Margin = new System.Windows.Forms.Padding(4); 
    795852            this.numer_RozTextBox.Name = "numer_RozTextBox"; 
    796             this.numer_RozTextBox.Size = new System.Drawing.Size(63, 20); 
     853            this.numer_RozTextBox.Size = new System.Drawing.Size(83, 22); 
    797854            this.numer_RozTextBox.TabIndex = 9; 
    798855            this.numer_RozTextBox.Visible = false; 
     
    804861            this.zamowienieDzialComboBox.DisplayMember = "Symbol"; 
    805862            this.zamowienieDzialComboBox.FormattingEnabled = true; 
    806             this.zamowienieDzialComboBox.Location = new System.Drawing.Point(274, 20); 
     863            this.zamowienieDzialComboBox.Location = new System.Drawing.Point(365, 25); 
     864            this.zamowienieDzialComboBox.Margin = new System.Windows.Forms.Padding(4); 
    807865            this.zamowienieDzialComboBox.Name = "zamowienieDzialComboBox"; 
    808             this.zamowienieDzialComboBox.Size = new System.Drawing.Size(121, 21); 
     866            this.zamowienieDzialComboBox.Size = new System.Drawing.Size(160, 24); 
    809867            this.zamowienieDzialComboBox.TabIndex = 24; 
    810868            this.zamowienieDzialComboBox.ValueMember = "IDE"; 
     
    814872            this.label1.AutoSize = true; 
    815873            this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
    816             this.label1.Location = new System.Drawing.Point(471, 16); 
     874            this.label1.Location = new System.Drawing.Point(628, 20); 
     875            this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    817876            this.label1.Name = "label1"; 
    818             this.label1.Size = new System.Drawing.Size(57, 20); 
     877            this.label1.Size = new System.Drawing.Size(70, 25); 
    819878            this.label1.TabIndex = 22; 
    820879            this.label1.Text = "label1"; 
     
    823882            //  
    824883            this.zapiszButton.Image = ((System.Drawing.Image)(resources.GetObject("zapiszButton.Image"))); 
    825             this.zapiszButton.Location = new System.Drawing.Point(511, 333); 
     884            this.zapiszButton.Location = new System.Drawing.Point(681, 410); 
     885            this.zapiszButton.Margin = new System.Windows.Forms.Padding(4); 
    826886            this.zapiszButton.Name = "zapiszButton"; 
    827             this.zapiszButton.Size = new System.Drawing.Size(114, 35); 
     887            this.zapiszButton.Size = new System.Drawing.Size(152, 43); 
    828888            this.zapiszButton.TabIndex = 21; 
    829889            this.zapiszButton.Text = "ZAPISZ"; 
     
    836896            this.anulujButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; 
    837897            this.anulujButton.Image = ((System.Drawing.Image)(resources.GetObject("anulujButton.Image"))); 
    838             this.anulujButton.Location = new System.Drawing.Point(388, 333); 
     898            this.anulujButton.Location = new System.Drawing.Point(517, 410); 
     899            this.anulujButton.Margin = new System.Windows.Forms.Padding(4); 
    839900            this.anulujButton.Name = "anulujButton"; 
    840             this.anulujButton.Size = new System.Drawing.Size(110, 35); 
     901            this.anulujButton.Size = new System.Drawing.Size(147, 43); 
    841902            this.anulujButton.TabIndex = 20; 
    842903            this.anulujButton.Text = "ZAMKNIJ"; 
     
    848909            //  
    849910            this.zamowienieDataDateTimePicker.CalendarMonthBackground = System.Drawing.Color.White; 
     911            this.zamowienieDataDateTimePicker.CausesValidation = false; 
     912            this.zamowienieDataDateTimePicker.CustomFormat = "yyyy-MM-dd"; 
    850913            this.zamowienieDataDateTimePicker.DataBindings.Add(new System.Windows.Forms.Binding("Value", this.zamowieniaBindingSource, "ZamowienieData", true)); 
    851             this.zamowienieDataDateTimePicker.Format = System.Windows.Forms.DateTimePickerFormat.Short; 
    852             this.zamowienieDataDateTimePicker.Location = new System.Drawing.Point(77, 53); 
     914            this.zamowienieDataDateTimePicker.Format = System.Windows.Forms.DateTimePickerFormat.Custom; 
     915            this.zamowienieDataDateTimePicker.Location = new System.Drawing.Point(103, 65); 
     916            this.zamowienieDataDateTimePicker.Margin = new System.Windows.Forms.Padding(4); 
    853917            this.zamowienieDataDateTimePicker.Name = "zamowienieDataDateTimePicker"; 
    854             this.zamowienieDataDateTimePicker.Size = new System.Drawing.Size(121, 20); 
     918            this.zamowienieDataDateTimePicker.Size = new System.Drawing.Size(160, 22); 
    855919            this.zamowienieDataDateTimePicker.TabIndex = 5; 
    856             this.zamowienieDataDateTimePicker.ValueChanged += new System.EventHandler(this.zamowienieDataDateTimePicker_ValueChanged); 
     920            this.zamowienieDataDateTimePicker.Value = new System.DateTime(2009, 1, 14, 10, 47, 56, 0); 
     921            this.zamowienieDataDateTimePicker.CloseUp += new System.EventHandler(this.zamowienieDataDateTimePicker_CloseUp); 
    857922            //  
    858923            // groupBox1 
     
    860925            this.groupBox1.Controls.Add(this.odtwierdzButton); 
    861926            this.groupBox1.Controls.Add(this.zatwierdzButton); 
    862             this.groupBox1.Location = new System.Drawing.Point(9, 309); 
     927            this.groupBox1.Location = new System.Drawing.Point(12, 380); 
     928            this.groupBox1.Margin = new System.Windows.Forms.Padding(4); 
    863929            this.groupBox1.Name = "groupBox1"; 
    864             this.groupBox1.Size = new System.Drawing.Size(118, 67); 
     930            this.groupBox1.Padding = new System.Windows.Forms.Padding(4); 
     931            this.groupBox1.Size = new System.Drawing.Size(157, 82); 
    865932            this.groupBox1.TabIndex = 46; 
    866933            this.groupBox1.TabStop = false; 
     
    870937            //  
    871938            this.odtwierdzButton.Image = ((System.Drawing.Image)(resources.GetObject("odtwierdzButton.Image"))); 
    872             this.odtwierdzButton.Location = new System.Drawing.Point(62, 19); 
     939            this.odtwierdzButton.Location = new System.Drawing.Point(83, 23); 
     940            this.odtwierdzButton.Margin = new System.Windows.Forms.Padding(4); 
    873941            this.odtwierdzButton.Name = "odtwierdzButton"; 
    874             this.odtwierdzButton.Size = new System.Drawing.Size(42, 40); 
     942            this.odtwierdzButton.Size = new System.Drawing.Size(56, 49); 
    875943            this.odtwierdzButton.TabIndex = 45; 
    876944            this.odtwierdzButton.UseVisualStyleBackColor = true; 
     
    880948            //  
    881949            this.zatwierdzButton.Image = ((System.Drawing.Image)(resources.GetObject("zatwierdzButton.Image"))); 
    882             this.zatwierdzButton.Location = new System.Drawing.Point(14, 19); 
     950            this.zatwierdzButton.Location = new System.Drawing.Point(19, 23); 
     951            this.zatwierdzButton.Margin = new System.Windows.Forms.Padding(4); 
    883952            this.zatwierdzButton.Name = "zatwierdzButton"; 
    884             this.zatwierdzButton.Size = new System.Drawing.Size(42, 40); 
     953            this.zatwierdzButton.Size = new System.Drawing.Size(56, 49); 
    885954            this.zatwierdzButton.TabIndex = 44; 
    886955            this.zatwierdzButton.UseVisualStyleBackColor = true; 
     
    891960            this.tabControl1.Controls.Add(this.zamTabPage); 
    892961            this.tabControl1.Controls.Add(this.wiadoTabPage); 
    893             this.tabControl1.Location = new System.Drawing.Point(12, 12); 
     962            this.tabControl1.Location = new System.Drawing.Point(16, 15); 
     963            this.tabControl1.Margin = new System.Windows.Forms.Padding(4); 
    894964            this.tabControl1.Name = "tabControl1"; 
    895965            this.tabControl1.SelectedIndex = 0; 
    896             this.tabControl1.Size = new System.Drawing.Size(645, 408); 
     966            this.tabControl1.Size = new System.Drawing.Size(860, 502); 
    897967            this.tabControl1.TabIndex = 40; 
    898968            //  
    899969            // ZamowienieForm 
    900970            //  
    901             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 
     971            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); 
    902972            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 
    903             this.ClientSize = new System.Drawing.Size(672, 600); 
     973            this.ClientSize = new System.Drawing.Size(896, 738); 
    904974            this.Controls.Add(this.tabControl1); 
    905975            this.Controls.Add(this.dyrGeneralGroupBox); 
    906976            this.Controls.Add(this.dyrFinanGroupBox); 
    907977            this.Controls.Add(this.kierownikGroupBox); 
     978            this.Margin = new System.Windows.Forms.Padding(4); 
    908979            this.Name = "ZamowienieForm"; 
    909980            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 
  • BazaZamowien/Zamowienia/ZamowienieForm.cs

    r712 r715  
    3535            DataRowView row = datatable.AddNew(); 
    3636 
    37            // row["IDE"] = Utils.IDENowegoZamowienia(); 
     37            // row["IDE"] = Utils.IDENowegoZamowienia(); 
    3838            row["ZamowienieKto"] = User.getUser().IDE; 
    3939            row["ZamowienieDzial"] = User.getUser().IDEDzialu; 
    4040            row["ZamowienieData"] = DateTime.Now; 
    41             row["Numer"] = ZamowieniaUtils.nrNowegoZamowienia(User.getUser().IDEDzialu); 
     41            row["Numer"] = ZamowieniaUtils.nrNowegoZamowienia(User.getUser().IDEDzialu, zamowienieDataDateTimePicker.Value.Year); 
    4242            row["Numer_Roz"] = User.getUser().Numer_Roz; 
    43             row["Numer_Rok"] = DateTime.Today.Year;             
    44  
    45             label1.Text = row["Numer"].ToString() + "/" + row["Numer_Roz"].ToString() + "/" + row["Numer_Rok"].ToString(); 
    46                     
     43            row["Numer_Rok"] = zamowienieDataDateTimePicker.Value.Year; 
     44 
     45            SetOrderNumberText(row["Numer"].ToString(), 
     46                               row["Numer_Roz"].ToString(), 
     47                               row["Numer_Rok"].ToString()); 
     48 
    4749            Validate(); 
    4850 
    4951            zamowieniaBindingSource.EndEdit(); 
    5052            zamowieniaBindingSource.MoveLast(); 
    51              
     53 
    5254            ustawLabele((DataRowView)zamowieniaBindingSource.Current); 
    5355 
     
    8688                newRow["ZamowienieDzial"] = User.getUser().IDEDzialu; 
    8789                newRow["ZamowienieData"] = DateTime.Now; 
    88                 newRow["Numer"] = ZamowieniaUtils.nrNowegoZamowienia(User.getUser().IDEDzialu); 
     90                newRow["Numer"] = ZamowieniaUtils.nrNowegoZamowienia(User.getUser().IDEDzialu, zamowienieDataDateTimePicker.Value.Year); 
    8991                newRow["Numer_Roz"] = User.getUser().Numer_Roz; 
    90                 newRow["Numer_Rok"] = DateTime.Today.Year; 
    91  
    92                 label1.Text = newRow["Numer"].ToString() + "/" + newRow["Numer_Roz"].ToString() + "/" + newRow["Numer_Rok"].ToString(); 
     92                newRow["Numer_Rok"] = zamowienieDataDateTimePicker.Value.Year; 
     93 
     94                SetOrderNumberText(newRow["Numer"].ToString(), newRow["Numer_Roz"].ToString(), newRow["Numer_Rok"].ToString()); 
    9395 
    9496                Validate(); 
     
    105107                this.zamowieniaTableAdapter.FillByIDE(zamowieniaDataSet.Zamowienia, IDE); 
    106108                DataRowView row = (DataRowView)zamowieniaBindingSource.Current; 
    107                 label1.Text = row["Numer"].ToString() + "/" + row["Numer_Roz"].ToString() + "/" + row["Numer_Rok"].ToString(); 
     109 
     110                SetOrderNumberText(row["Numer"].ToString(), row["Numer_Roz"].ToString(), row["Numer_Rok"].ToString()); 
    108111 
    109112                ustawLabele((DataRowView)zamowieniaBindingSource.Current); 
     
    116119                uprawnienia(); 
    117120            } 
     121        } 
     122 
     123        private void SetOrderNumberText(string number, string numberExt, string year) 
     124        { 
     125            label1.Text = number + "/" + numberExt + "/" + year; 
    118126        } 
    119127           
     
    413421                zamowieniaBindingSource.EndEdit(); 
    414422 
    415                 label1.Text = ZamowieniaUtils.nrNowegoZamowienia(Convert.ToInt32(dzialRow["IDE"])).ToString() + "/" + dzialRow["roz"].ToString() + "/" + DateTime.Today.Year; 
    416  
    417                 DataRowView row = (DataRowView)zamowieniaBindingSource.Current; 
    418                 row["Numer"] = ZamowieniaUtils.nrNowegoZamowienia(Convert.ToInt32(dzialRow["IDE"])); 
     423                SetOrderNumberText(ZamowieniaUtils.nrNowegoZamowienia(Convert.ToInt32(dzialRow["IDE"]), zamowienieDataDateTimePicker.Value.Year).ToString(), 
     424                                   dzialRow["roz"].ToString(), 
     425                                   zamowienieDataDateTimePicker.Value.Year.ToString()); 
     426 
     427                DataRowView row = (DataRowView)zamowieniaBindingSource.Current; 
     428                row["Numer"] = ZamowieniaUtils.nrNowegoZamowienia(Convert.ToInt32(dzialRow["IDE"]),  
     429                                                                  zamowienieDataDateTimePicker.Value.Year); 
    419430                row["Numer_Roz"] = dzialRow["roz"]; 
    420431 
     
    432443        } 
    433444 
    434         private void zamowienieDataDateTimePicker_ValueChanged(object sender, EventArgs e) 
     445        private void zamowienieDataDateTimePicker_CloseUp(object sender, EventArgs e) 
    435446        { 
    436447            DataRowView row = (DataRowView)zamowieniaBindingSource.Current; 
    437448            //row["ZamowienieData"] = row["ZamowienieData"]; 
    438449            row["ZamowienieData"] = zamowienieDataDateTimePicker.Value; 
     450            row["Numer_Rok"] = zamowienieDataDateTimePicker.Value.Year; 
     451            row["Numer"] = ZamowieniaUtils.nrNowegoZamowienia(Convert.ToInt32(zamowienieDzialComboBox.SelectedValue), 
     452                                                              zamowienieDataDateTimePicker.Value.Year); 
     453 
     454 
     455            SetOrderNumberText(row["Numer"].ToString(), row["Numer_Roz"].ToString(), row["Numer_Rok"].ToString()); 
     456 
    439457            zamowieniaBindingSource.EndEdit(); 
    440458        } 
     459 
     460        //private void zamowienieDataDateTimePicker_ValueChanged(object sender, EventArgs e) 
     461        //{ 
     462        //    return; 
     463             
     464        //    if (!(sender is DateTimePicker)) 
     465        //        return; 
     466             
     467        //    DataRowView row = (DataRowView)zamowieniaBindingSource.Current; 
     468        //    //row["ZamowienieData"] = row["ZamowienieData"]; 
     469        //    row["ZamowienieData"] = zamowienieDataDateTimePicker.Value; 
     470        //    row["Numer_Rok"] = zamowienieDataDateTimePicker.Value.Year; 
     471        //    row["Numer"] = ZamowieniaUtils.nrNowegoZamowienia(Convert.ToInt32(zamowienieDzialComboBox.SelectedValue),  
     472        //                                                      zamowienieDataDateTimePicker.Value.Year); 
     473 
     474             
     475        //    SetOrderNumberText(row["Numer"].ToString(), row["Numer_Roz"].ToString(), row["Numer_Rok"].ToString()); 
     476 
     477        //    zamowieniaBindingSource.EndEdit(); 
     478        //} 
    441479                 
    442480        private void anulujButton_Click(object sender, EventArgs e) 
     
    595633 
    596634        } 
    597  
    598635    } 
    599636} 
  • BazaZamowien/Zamowienia/ZamowienieForm.resx

    r710 r715  
    172172    <value>17, 17</value> 
    173173  </metadata> 
     174  <metadata name="zamowieniaDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> 
     175    <value>17, 17</value> 
     176  </metadata> 
    174177  <assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 
    175178  <data name="wyczysc1Button.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">