Zbiór zmian 174 dla trunk

Pokaż
Ignoruj:
Data:
2009-01-16 13:01:48 (17 years ago)
Autor:
marek
Opis:

re #12 - handlowiec widzi termin platnosci 60 dni gdy kierownik wczesniej ustawi taki termin

Lokalizacja:
trunk/BazaReklam
Pliki:
2 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • trunk/BazaReklam/AddZamowienieForm.Designer.cs

    r104 r174  
    8989            numerZamowieniaLabel.AutoSize = true; 
    9090            numerZamowieniaLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
    91             numerZamowieniaLabel.Location = new System.Drawing.Point(12, 19); 
     91            numerZamowieniaLabel.Location = new System.Drawing.Point(16, 23); 
     92            numerZamowieniaLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    9293            numerZamowieniaLabel.Name = "numerZamowieniaLabel"; 
    93             numerZamowieniaLabel.Size = new System.Drawing.Size(141, 16); 
     94            numerZamowieniaLabel.Size = new System.Drawing.Size(171, 20); 
    9495            numerZamowieniaLabel.TabIndex = 1; 
    9596            numerZamowieniaLabel.Text = "numer Zamowienia:"; 
     
    9899            //  
    99100            sPOSOB_ZAPLATYLabel.AutoSize = true; 
    100             sPOSOB_ZAPLATYLabel.Location = new System.Drawing.Point(15, 180); 
     101            sPOSOB_ZAPLATYLabel.Location = new System.Drawing.Point(20, 222); 
     102            sPOSOB_ZAPLATYLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    101103            sPOSOB_ZAPLATYLabel.Name = "sPOSOB_ZAPLATYLabel"; 
    102             sPOSOB_ZAPLATYLabel.Size = new System.Drawing.Size(81, 13); 
     104            sPOSOB_ZAPLATYLabel.Size = new System.Drawing.Size(105, 17); 
    103105            sPOSOB_ZAPLATYLabel.TabIndex = 57; 
    104106            sPOSOB_ZAPLATYLabel.Text = "Sposób zap³aty"; 
     
    107109            //  
    108110            iD_KONTALabel.AutoSize = true; 
    109             iD_KONTALabel.Location = new System.Drawing.Point(195, 23); 
     111            iD_KONTALabel.Location = new System.Drawing.Point(260, 28); 
     112            iD_KONTALabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    110113            iD_KONTALabel.Name = "iD_KONTALabel"; 
    111             iD_KONTALabel.Size = new System.Drawing.Size(38, 13); 
     114            iD_KONTALabel.Size = new System.Drawing.Size(49, 17); 
    112115            iD_KONTALabel.TabIndex = 55; 
    113116            iD_KONTALabel.Text = "Konto:"; 
     
    116119            //  
    117120            label1.AutoSize = true; 
    118             label1.Location = new System.Drawing.Point(16, 83); 
     121            label1.Location = new System.Drawing.Point(21, 102); 
     122            label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    119123            label1.Name = "label1"; 
    120             label1.Size = new System.Drawing.Size(71, 13); 
     124            label1.Size = new System.Drawing.Size(92, 17); 
    121125            label1.TabIndex = 60; 
    122126            label1.Text = "Fakturowanie"; 
     
    125129            //  
    126130            idAgentaLabel.AutoSize = true; 
    127             idAgentaLabel.Location = new System.Drawing.Point(16, 23); 
     131            idAgentaLabel.Location = new System.Drawing.Point(21, 28); 
     132            idAgentaLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    128133            idAgentaLabel.Name = "idAgentaLabel"; 
    129             idAgentaLabel.Size = new System.Drawing.Size(35, 13); 
     134            idAgentaLabel.Size = new System.Drawing.Size(45, 17); 
    130135            idAgentaLabel.TabIndex = 61; 
    131136            idAgentaLabel.Text = "Agent"; 
     
    134139            //  
    135140            czasPlatnosciLabel.AutoSize = true; 
    136             czasPlatnosciLabel.Location = new System.Drawing.Point(195, 83); 
     141            czasPlatnosciLabel.Location = new System.Drawing.Point(260, 102); 
     142            czasPlatnosciLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    137143            czasPlatnosciLabel.Name = "czasPlatnosciLabel"; 
    138             czasPlatnosciLabel.Size = new System.Drawing.Size(77, 13); 
     144            czasPlatnosciLabel.Size = new System.Drawing.Size(99, 17); 
    139145            czasPlatnosciLabel.TabIndex = 62; 
    140146            czasPlatnosciLabel.Text = "Czas p³atnoœci"; 
     
    143149            //  
    144150            notatkaZamowienieLabel.AutoSize = true; 
    145             notatkaZamowienieLabel.Location = new System.Drawing.Point(15, 23); 
     151            notatkaZamowienieLabel.Location = new System.Drawing.Point(20, 28); 
     152            notatkaZamowienieLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    146153            notatkaZamowienieLabel.Name = "notatkaZamowienieLabel"; 
    147             notatkaZamowienieLabel.Size = new System.Drawing.Size(40, 13); 
     154            notatkaZamowienieLabel.Size = new System.Drawing.Size(50, 17); 
    148155            notatkaZamowienieLabel.TabIndex = 8; 
    149156            notatkaZamowienieLabel.Text = "Uwagi:"; 
     
    152159            //  
    153160            procentProwizjiLabel.AutoSize = true; 
    154             procentProwizjiLabel.Location = new System.Drawing.Point(103, 114); 
     161            procentProwizjiLabel.Location = new System.Drawing.Point(137, 140); 
     162            procentProwizjiLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    155163            procentProwizjiLabel.Name = "procentProwizjiLabel"; 
    156             procentProwizjiLabel.Size = new System.Drawing.Size(55, 13); 
     164            procentProwizjiLabel.Size = new System.Drawing.Size(74, 17); 
    157165            procentProwizjiLabel.TabIndex = 16; 
    158166            procentProwizjiLabel.Text = "% prowizji:"; 
     
    161169            //  
    162170            zPLabel.AutoSize = true; 
    163             zPLabel.Location = new System.Drawing.Point(50, 114); 
     171            zPLabel.Location = new System.Drawing.Point(67, 140); 
     172            zPLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    164173            zPLabel.Name = "zPLabel"; 
    165             zPLabel.Size = new System.Drawing.Size(24, 13); 
     174            zPLabel.Size = new System.Drawing.Size(30, 17); 
    166175            zPLabel.TabIndex = 15; 
    167176            zPLabel.Text = "ZP:"; 
     
    170179            //  
    171180            notatkaKierownikLabel.AutoSize = true; 
    172             notatkaKierownikLabel.Location = new System.Drawing.Point(19, 16); 
     181            notatkaKierownikLabel.Location = new System.Drawing.Point(25, 20); 
     182            notatkaKierownikLabel.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    173183            notatkaKierownikLabel.Name = "notatkaKierownikLabel"; 
    174             notatkaKierownikLabel.Size = new System.Drawing.Size(102, 13); 
     184            notatkaKierownikLabel.Size = new System.Drawing.Size(131, 17); 
    175185            notatkaKierownikLabel.TabIndex = 13; 
    176186            notatkaKierownikLabel.Text = "Notatka kierownika:"; 
     
    179189            //  
    180190            this.numerZamowieniaLabel1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); 
    181             this.numerZamowieniaLabel1.Location = new System.Drawing.Point(186, 19); 
     191            this.numerZamowieniaLabel1.Location = new System.Drawing.Point(248, 23); 
     192            this.numerZamowieniaLabel1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); 
    182193            this.numerZamowieniaLabel1.Name = "numerZamowieniaLabel1"; 
    183             this.numerZamowieniaLabel1.Size = new System.Drawing.Size(299, 23); 
     194            this.numerZamowieniaLabel1.Size = new System.Drawing.Size(399, 28); 
    184195            this.numerZamowieniaLabel1.TabIndex = 2; 
    185196            this.numerZamowieniaLabel1.Text = "---"; 
     
    208219            this.groupBox1.Controls.Add(sPOSOB_ZAPLATYLabel); 
    209220            this.groupBox1.Controls.Add(this.sPOSOB_ZAPLATYListBox); 
    210             this.groupBox1.Location = new System.Drawing.Point(277, 45); 
     221            this.groupBox1.Location = new System.Drawing.Point(369, 55); 
     222            this.groupBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 
    211223            this.groupBox1.Name = "groupBox1"; 
    212             this.groupBox1.Size = new System.Drawing.Size(394, 283); 
     224            this.groupBox1.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 
     225            this.groupBox1.Size = new System.Drawing.Size(525, 348); 
    213226            this.groupBox1.TabIndex = 6; 
    214227            this.groupBox1.TabStop = false; 
     
    219232            this.czasPlatnosciListBox.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.zamowieniaBindingSource, "czasPlatnosci", true)); 
    220233            this.czasPlatnosciListBox.FormattingEnabled = true; 
    221             this.czasPlatnosciListBox.Location = new System.Drawing.Point(198, 99); 
     234            this.czasPlatnosciListBox.ItemHeight = 16; 
     235            this.czasPlatnosciListBox.Location = new System.Drawing.Point(264, 122); 
     236            this.czasPlatnosciListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 
    222237            this.czasPlatnosciListBox.Name = "czasPlatnosciListBox"; 
    223             this.czasPlatnosciListBox.Size = new System.Drawing.Size(144, 69); 
     238            this.czasPlatnosciListBox.Size = new System.Drawing.Size(191, 84); 
    224239            this.czasPlatnosciListBox.TabIndex = 63; 
    225240            //  
     
    230245            this.symbolAgentaComboBox.DisplayMember = "Symbol"; 
    231246            this.symbolAgentaComboBox.FormattingEnabled = true; 
    232             this.symbolAgentaComboBox.Location = new System.Drawing.Point(18, 39); 
     247            this.symbolAgentaComboBox.Location = new System.Drawing.Point(24, 48); 
     248            this.symbolAgentaComboBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 
    233249            this.symbolAgentaComboBox.Name = "symbolAgentaComboBox"; 
    234             this.symbolAgentaComboBox.Size = new System.Drawing.Size(121, 21); 
     250            this.symbolAgentaComboBox.Size = new System.Drawing.Size(160, 24); 
    235251            this.symbolAgentaComboBox.TabIndex = 62; 
    236252            this.symbolAgentaComboBox.ValueMember = "F_ROZ"; 
     
    250266            this.sposobZaplatyListBox.DataBindings.Add(new System.Windows.Forms.Binding("SelectedIndex", this.zamowieniaBindingSource, "rodzajFakturowania", true)); 
    251267            this.sposobZaplatyListBox.FormattingEnabled = true; 
     268            this.sposobZaplatyListBox.ItemHeight = 16; 
    252269            this.sposobZaplatyListBox.Items.AddRange(new object[] { 
    253270            "co 1 miesi¹c", 
    254271            "co 3 miesi¹ce", 
    255272            "zamówienie"}); 
    256             this.sposobZaplatyListBox.Location = new System.Drawing.Point(18, 99); 
     273            this.sposobZaplatyListBox.Location = new System.Drawing.Point(24, 122); 
     274            this.sposobZaplatyListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 
    257275            this.sposobZaplatyListBox.Name = "sposobZaplatyListBox"; 
    258             this.sposobZaplatyListBox.Size = new System.Drawing.Size(120, 69); 
     276            this.sposobZaplatyListBox.Size = new System.Drawing.Size(159, 84); 
    259277            this.sposobZaplatyListBox.TabIndex = 61; 
    260278            //  
     
    266284            this.iD_KONTAComboBox.DropDownWidth = 600; 
    267285            this.iD_KONTAComboBox.FormattingEnabled = true; 
    268             this.iD_KONTAComboBox.Location = new System.Drawing.Point(198, 39); 
     286            this.iD_KONTAComboBox.Location = new System.Drawing.Point(264, 48); 
     287            this.iD_KONTAComboBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 
    269288            this.iD_KONTAComboBox.Name = "iD_KONTAComboBox"; 
    270             this.iD_KONTAComboBox.Size = new System.Drawing.Size(144, 21); 
     289            this.iD_KONTAComboBox.Size = new System.Drawing.Size(191, 24); 
    271290            this.iD_KONTAComboBox.TabIndex = 56; 
    272291            this.iD_KONTAComboBox.ValueMember = "id"; 
     
    280299            //  
    281300            this.button3.Image = ((System.Drawing.Image)(resources.GetObject("button3.Image"))); 
    282             this.button3.Location = new System.Drawing.Point(348, 37); 
     301            this.button3.Location = new System.Drawing.Point(464, 46); 
     302            this.button3.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 
    283303            this.button3.Name = "button3"; 
    284             this.button3.Size = new System.Drawing.Size(28, 23); 
     304            this.button3.Size = new System.Drawing.Size(37, 28); 
    285305            this.button3.TabIndex = 59; 
    286306            this.button3.UseVisualStyleBackColor = true; 
     
    291311            this.sPOSOB_ZAPLATYListBox.DataBindings.Add(new System.Windows.Forms.Binding("SelectedIndex", this.zamowieniaBindingSource, "sposobZaplaty", true)); 
    292312            this.sPOSOB_ZAPLATYListBox.FormattingEnabled = true; 
     313            this.sPOSOB_ZAPLATYListBox.ItemHeight = 16; 
    293314            this.sPOSOB_ZAPLATYListBox.Items.AddRange(new object[] { 
    294315            "Karta kredytowa", 
     
    296317            "Gotówka", 
    297318            "Barter"}); 
    298             this.sPOSOB_ZAPLATYListBox.Location = new System.Drawing.Point(18, 196); 
     319            this.sPOSOB_ZAPLATYListBox.Location = new System.Drawing.Point(24, 241); 
     320            this.sPOSOB_ZAPLATYListBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 
    299321            this.sPOSOB_ZAPLATYListBox.Name = "sPOSOB_ZAPLATYListBox"; 
    300             this.sPOSOB_ZAPLATYListBox.Size = new System.Drawing.Size(120, 56); 
     322            this.sPOSOB_ZAPLATYListBox.Size = new System.Drawing.Size(159, 68); 
    301323            this.sPOSOB_ZAPLATYListBox.TabIndex = 58; 
    302324            //  
     
    304326            //  
    305327            this.anulujButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; 
    306             this.anulujButton.Location = new System.Drawing.Point(267, 344); 
     328            this.anulujButton.Location = new System.Drawing.Point(356, 423); 
     329            this.anulujButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 
    307330            this.anulujButton.Name = "anulujButton"; 
    308             this.anulujButton.Size = new System.Drawing.Size(75, 23); 
     331            this.anulujButton.Size = new System.Drawing.Size(100, 28); 
    309332            this.anulujButton.TabIndex = 7; 
    310333            this.anulujButton.Text = "Anuluj"; 
     
    315338            //  
    316339            this.zapiszButton.DialogResult = System.Windows.Forms.DialogResult.OK; 
    317             this.zapiszButton.Location = new System.Drawing.Point(362, 344); 
     340            this.zapiszButton.Location = new System.Drawing.Point(483, 423); 
     341            this.zapiszButton.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 
    318342            this.zapiszButton.Name = "zapiszButton"; 
    319             this.zapiszButton.Size = new System.Drawing.Size(75, 23); 
     343            this.zapiszButton.Size = new System.Drawing.Size(100, 28); 
    320344            this.zapiszButton.TabIndex = 8; 
    321345            this.zapiszButton.Text = "Zapisz"; 
     
    338362            //  
    339363            this.notatkaZamowienieTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.zamowieniaBindingSource, "notatkaZamowienie", true)); 
    340             this.notatkaZamowienieTextBox.Location = new System.Drawing.Point(18, 39); 
     364            this.notatkaZamowienieTextBox.Location = new System.Drawing.Point(24, 48); 
     365            this.notatkaZamowienieTextBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 
    341366            this.notatkaZamowienieTextBox.MaxLength = 200; 
    342367            this.notatkaZamowienieTextBox.Multiline = true; 
    343368            this.notatkaZamowienieTextBox.Name = "notatkaZamowienieTextBox"; 
    344             this.notatkaZamowienieTextBox.Size = new System.Drawing.Size(207, 74); 
     369            this.notatkaZamowienieTextBox.Size = new System.Drawing.Size(275, 90); 
    345370            this.notatkaZamowienieTextBox.TabIndex = 9; 
    346371            //  
     
    349374            this.groupBox2.Controls.Add(notatkaZamowienieLabel); 
    350375            this.groupBox2.Controls.Add(this.notatkaZamowienieTextBox); 
    351             this.groupBox2.Location = new System.Drawing.Point(15, 45); 
     376            this.groupBox2.Location = new System.Drawing.Point(20, 55); 
     377            this.groupBox2.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 
    352378            this.groupBox2.Name = "groupBox2"; 
    353             this.groupBox2.Size = new System.Drawing.Size(256, 125); 
     379            this.groupBox2.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 
     380            this.groupBox2.Size = new System.Drawing.Size(341, 154); 
    354381            this.groupBox2.TabIndex = 11; 
    355382            this.groupBox2.TabStop = false; 
     
    364391            this.kierownikGroupBox.Controls.Add(notatkaKierownikLabel); 
    365392            this.kierownikGroupBox.Controls.Add(this.notatkaKierownikTextBox); 
    366             this.kierownikGroupBox.Location = new System.Drawing.Point(15, 176); 
     393            this.kierownikGroupBox.Location = new System.Drawing.Point(20, 217); 
     394            this.kierownikGroupBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 
    367395            this.kierownikGroupBox.Name = "kierownikGroupBox"; 
    368             this.kierownikGroupBox.Size = new System.Drawing.Size(256, 152); 
     396            this.kierownikGroupBox.Padding = new System.Windows.Forms.Padding(4, 4, 4, 4); 
     397            this.kierownikGroupBox.Size = new System.Drawing.Size(341, 187); 
    369398            this.kierownikGroupBox.TabIndex = 13; 
    370399            this.kierownikGroupBox.TabStop = false; 
     
    373402            //  
    374403            this.procentProwizjiTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.zamowieniaBindingSource, "procentProwizji", true)); 
    375             this.procentProwizjiTextBox.Location = new System.Drawing.Point(164, 111); 
     404            this.procentProwizjiTextBox.Location = new System.Drawing.Point(219, 137); 
     405            this.procentProwizjiTextBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 
    376406            this.procentProwizjiTextBox.Name = "procentProwizjiTextBox"; 
    377             this.procentProwizjiTextBox.Size = new System.Drawing.Size(62, 20); 
     407            this.procentProwizjiTextBox.Size = new System.Drawing.Size(81, 22); 
    378408            this.procentProwizjiTextBox.TabIndex = 18; 
    379409            this.procentProwizjiTextBox.Text = "0"; 
     
    384414            //  
    385415            this.zPCheckBox.DataBindings.Add(new System.Windows.Forms.Binding("CheckState", this.zamowieniaBindingSource, "ZP", true)); 
    386             this.zPCheckBox.Location = new System.Drawing.Point(80, 109); 
     416            this.zPCheckBox.Location = new System.Drawing.Point(107, 134); 
     417            this.zPCheckBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 
    387418            this.zPCheckBox.Name = "zPCheckBox"; 
    388             this.zPCheckBox.Size = new System.Drawing.Size(17, 24); 
     419            this.zPCheckBox.Size = new System.Drawing.Size(23, 30); 
    389420            this.zPCheckBox.TabIndex = 17; 
    390421            //  
     
    392423            //  
    393424            this.notatkaKierownikTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.zamowieniaBindingSource, "notatkaKierownik", true)); 
    394             this.notatkaKierownikTextBox.Location = new System.Drawing.Point(18, 32); 
     425            this.notatkaKierownikTextBox.Location = new System.Drawing.Point(24, 39); 
     426            this.notatkaKierownikTextBox.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 
    395427            this.notatkaKierownikTextBox.MaxLength = 200; 
    396428            this.notatkaKierownikTextBox.Multiline = true; 
    397429            this.notatkaKierownikTextBox.Name = "notatkaKierownikTextBox"; 
    398             this.notatkaKierownikTextBox.Size = new System.Drawing.Size(208, 71); 
     430            this.notatkaKierownikTextBox.Size = new System.Drawing.Size(276, 86); 
    399431            this.notatkaKierownikTextBox.TabIndex = 14; 
    400432            //  
    401433            // AddZamowienieForm 
    402434            //  
    403             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 
     435            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); 
    404436            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 
    405             this.ClientSize = new System.Drawing.Size(683, 376); 
     437            this.ClientSize = new System.Drawing.Size(911, 463); 
    406438            this.Controls.Add(this.groupBox2); 
    407439            this.Controls.Add(this.zapiszButton); 
     
    411443            this.Controls.Add(this.numerZamowieniaLabel1); 
    412444            this.Controls.Add(this.kierownikGroupBox); 
     445            this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 
    413446            this.Name = "AddZamowienieForm"; 
    414447            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 
  • trunk/BazaReklam/AddZamowienieForm.cs

    r170 r174  
    1212    { 
    1313        private REKLAMADataSetTableAdapters.KLIENCITableAdapter klienciTableAdapter = 
    14             new Baza_Reklam.REKLAMADataSetTableAdapters.KLIENCITableAdapter(); 
     14                new REKLAMADataSetTableAdapters.KLIENCITableAdapter(); 
    1515 
    1616        public REKLAMADataSet.zamowieniaDataTable Zamowienia 
     
    1818            get 
    1919            { 
    20                 return this.rEKLAMADataSet.zamowienia; 
     20                return rEKLAMADataSet.zamowienia; 
    2121            } 
    2222        } 
     
    2626            InitializeComponent(); 
    2727 
    28             this.zamowieniaTableAdapter.Connection.ConnectionString = ConnString.getConnString().Value; 
    29             this.kONTATableAdapter.Connection.ConnectionString = ConnString.getConnString().Value; 
    30             this.aGENCITableAdapter.Connection.ConnectionString = ConnString.getConnString().Value; 
    31             this.klienciTableAdapter.Connection.ConnectionString = ConnString.getConnString().Value; 
     28            zamowieniaTableAdapter.Connection.ConnectionString = ConnString.getConnString().Value; 
     29            kONTATableAdapter.Connection.ConnectionString = ConnString.getConnString().Value; 
     30            aGENCITableAdapter.Connection.ConnectionString = ConnString.getConnString().Value; 
     31            klienciTableAdapter.Connection.ConnectionString = ConnString.getConnString().Value; 
    3232 
    33             List<BoundItem> list = new List<BoundItem>(); 
    34             list.Add(new BoundItem(7,"7 dni")); 
    35             list.Add(new BoundItem(14,"14 dni")); 
    36             list.Add(new BoundItem(21, "21 dni")); 
    37             list.Add(new BoundItem(30,"30 dni")); 
    38             if(User.getUser().St_kierownik) 
    39                 list.Add(new BoundItem(60, "60 dni")); 
    40             czasPlatnosciListBox.DisplayMember = "DisplayValue"; 
    41             czasPlatnosciListBox.ValueMember = "IDEvalue1"; 
    42             czasPlatnosciListBox.DataSource = list; 
    43  
    44             procentProwizjiTextBox.DataBindings[0].Format += new ConvertEventHandler(DecimalToProcent); 
    45             procentProwizjiTextBox.DataBindings[0].Parse += new ConvertEventHandler(ProcentToDecimal); 
    46  
    47             //rABATTextBox.DataBindings[0].Format += new ConvertEventHandler(DecimalToProcent); 
    48             //rABATTextBox.DataBindings[0].Parse += new ConvertEventHandler(ProcentToDecimal); 
     33            procentProwizjiTextBox.DataBindings[0].Format += DecimalToProcent; 
     34            procentProwizjiTextBox.DataBindings[0].Parse += ProcentToDecimal; 
    4935 
    5036            REKLAMADataSet.zamowieniaRow row; 
     
    6147 
    6248                row.EndEdit(); 
    63                 this.zamowieniaBindingSource.EndEdit(); 
     49                zamowieniaBindingSource.EndEdit(); 
    6450            } 
    6551            else 
    6652            { 
    67                 this.zamowieniaTableAdapter.FillByIdZamowienia(this.rEKLAMADataSet.zamowienia, idZam); 
    68                 row = this.rEKLAMADataSet.zamowienia[0]; 
     53                zamowieniaTableAdapter.FillByIdZamowienia(this.rEKLAMADataSet.zamowienia, idZam); 
     54                row = rEKLAMADataSet.zamowienia[0]; 
    6955            } 
    7056 
    71             REKLAMADataSet.KLIENCIRow k = (REKLAMADataSet.KLIENCIRow)klienciTableAdapter.GetDataByCustomerId(row.idKlienta)[0]; 
     57            REKLAMADataSet.KLIENCIRow k = klienciTableAdapter.GetDataByCustomerId(row.idKlienta)[0]; 
    7258            numerZamowieniaLabel1.Text = k.kodKlienta + "/" + row.rokZamowienia + "/" + row.kodAgenta + "/" + row.nrZamowienia; 
    7359 
    7460            kierownikGroupBox.Enabled = User.getUser().St_kierownik; 
     61 
     62            List<BoundItem> list = new List<BoundItem>(); 
     63            list.Add(new BoundItem(7, "7 dni")); 
     64            list.Add(new BoundItem(14, "14 dni")); 
     65            list.Add(new BoundItem(21, "21 dni")); 
     66            list.Add(new BoundItem(30, "30 dni")); 
     67            if (User.getUser().St_kierownik || row.czasPlatnosci == 60) 
     68                list.Add(new BoundItem(60, "60 dni")); 
     69            czasPlatnosciListBox.DisplayMember = "DisplayValue"; 
     70            czasPlatnosciListBox.ValueMember = "IDEvalue1"; 
     71            czasPlatnosciListBox.DataSource = list; 
    7572        } 
    7673  
     
    8481 
    8582            this.zamowieniaBindingSource.ResetBindings(false); 
     83             
    8684        } 
    8785