- Data:
- 2009-01-16 13:01:48 (17 years ago)
- Lokalizacja:
- trunk/BazaReklam
- Pliki:
-
- 2 zmodyfikowane
-
AddZamowienieForm.Designer.cs (zmodyfikowane) (28 diffs)
-
AddZamowienieForm.cs (zmodyfikowane) (5 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/BazaReklam/AddZamowienieForm.Designer.cs
r104 r174 89 89 numerZamowieniaLabel.AutoSize = true; 90 90 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); 92 93 numerZamowieniaLabel.Name = "numerZamowieniaLabel"; 93 numerZamowieniaLabel.Size = new System.Drawing.Size(1 41, 16);94 numerZamowieniaLabel.Size = new System.Drawing.Size(171, 20); 94 95 numerZamowieniaLabel.TabIndex = 1; 95 96 numerZamowieniaLabel.Text = "numer Zamowienia:"; … … 98 99 // 99 100 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); 101 103 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); 103 105 sPOSOB_ZAPLATYLabel.TabIndex = 57; 104 106 sPOSOB_ZAPLATYLabel.Text = "Sposób zap³aty"; … … 107 109 // 108 110 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); 110 113 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); 112 115 iD_KONTALabel.TabIndex = 55; 113 116 iD_KONTALabel.Text = "Konto:"; … … 116 119 // 117 120 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); 119 123 label1.Name = "label1"; 120 label1.Size = new System.Drawing.Size( 71, 13);124 label1.Size = new System.Drawing.Size(92, 17); 121 125 label1.TabIndex = 60; 122 126 label1.Text = "Fakturowanie"; … … 125 129 // 126 130 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); 128 133 idAgentaLabel.Name = "idAgentaLabel"; 129 idAgentaLabel.Size = new System.Drawing.Size( 35, 13);134 idAgentaLabel.Size = new System.Drawing.Size(45, 17); 130 135 idAgentaLabel.TabIndex = 61; 131 136 idAgentaLabel.Text = "Agent"; … … 134 139 // 135 140 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); 137 143 czasPlatnosciLabel.Name = "czasPlatnosciLabel"; 138 czasPlatnosciLabel.Size = new System.Drawing.Size( 77, 13);144 czasPlatnosciLabel.Size = new System.Drawing.Size(99, 17); 139 145 czasPlatnosciLabel.TabIndex = 62; 140 146 czasPlatnosciLabel.Text = "Czas p³atnoci"; … … 143 149 // 144 150 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); 146 153 notatkaZamowienieLabel.Name = "notatkaZamowienieLabel"; 147 notatkaZamowienieLabel.Size = new System.Drawing.Size( 40, 13);154 notatkaZamowienieLabel.Size = new System.Drawing.Size(50, 17); 148 155 notatkaZamowienieLabel.TabIndex = 8; 149 156 notatkaZamowienieLabel.Text = "Uwagi:"; … … 152 159 // 153 160 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); 155 163 procentProwizjiLabel.Name = "procentProwizjiLabel"; 156 procentProwizjiLabel.Size = new System.Drawing.Size( 55, 13);164 procentProwizjiLabel.Size = new System.Drawing.Size(74, 17); 157 165 procentProwizjiLabel.TabIndex = 16; 158 166 procentProwizjiLabel.Text = "% prowizji:"; … … 161 169 // 162 170 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); 164 173 zPLabel.Name = "zPLabel"; 165 zPLabel.Size = new System.Drawing.Size( 24, 13);174 zPLabel.Size = new System.Drawing.Size(30, 17); 166 175 zPLabel.TabIndex = 15; 167 176 zPLabel.Text = "ZP:"; … … 170 179 // 171 180 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); 173 183 notatkaKierownikLabel.Name = "notatkaKierownikLabel"; 174 notatkaKierownikLabel.Size = new System.Drawing.Size(1 02, 13);184 notatkaKierownikLabel.Size = new System.Drawing.Size(131, 17); 175 185 notatkaKierownikLabel.TabIndex = 13; 176 186 notatkaKierownikLabel.Text = "Notatka kierownika:"; … … 179 189 // 180 190 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); 182 193 this.numerZamowieniaLabel1.Name = "numerZamowieniaLabel1"; 183 this.numerZamowieniaLabel1.Size = new System.Drawing.Size( 299, 23);194 this.numerZamowieniaLabel1.Size = new System.Drawing.Size(399, 28); 184 195 this.numerZamowieniaLabel1.TabIndex = 2; 185 196 this.numerZamowieniaLabel1.Text = "---"; … … 208 219 this.groupBox1.Controls.Add(sPOSOB_ZAPLATYLabel); 209 220 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); 211 223 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); 213 226 this.groupBox1.TabIndex = 6; 214 227 this.groupBox1.TabStop = false; … … 219 232 this.czasPlatnosciListBox.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.zamowieniaBindingSource, "czasPlatnosci", true)); 220 233 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); 222 237 this.czasPlatnosciListBox.Name = "czasPlatnosciListBox"; 223 this.czasPlatnosciListBox.Size = new System.Drawing.Size(1 44, 69);238 this.czasPlatnosciListBox.Size = new System.Drawing.Size(191, 84); 224 239 this.czasPlatnosciListBox.TabIndex = 63; 225 240 // … … 230 245 this.symbolAgentaComboBox.DisplayMember = "Symbol"; 231 246 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); 233 249 this.symbolAgentaComboBox.Name = "symbolAgentaComboBox"; 234 this.symbolAgentaComboBox.Size = new System.Drawing.Size(1 21, 21);250 this.symbolAgentaComboBox.Size = new System.Drawing.Size(160, 24); 235 251 this.symbolAgentaComboBox.TabIndex = 62; 236 252 this.symbolAgentaComboBox.ValueMember = "F_ROZ"; … … 250 266 this.sposobZaplatyListBox.DataBindings.Add(new System.Windows.Forms.Binding("SelectedIndex", this.zamowieniaBindingSource, "rodzajFakturowania", true)); 251 267 this.sposobZaplatyListBox.FormattingEnabled = true; 268 this.sposobZaplatyListBox.ItemHeight = 16; 252 269 this.sposobZaplatyListBox.Items.AddRange(new object[] { 253 270 "co 1 miesi¹c", 254 271 "co 3 miesi¹ce", 255 272 "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); 257 275 this.sposobZaplatyListBox.Name = "sposobZaplatyListBox"; 258 this.sposobZaplatyListBox.Size = new System.Drawing.Size(1 20, 69);276 this.sposobZaplatyListBox.Size = new System.Drawing.Size(159, 84); 259 277 this.sposobZaplatyListBox.TabIndex = 61; 260 278 // … … 266 284 this.iD_KONTAComboBox.DropDownWidth = 600; 267 285 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); 269 288 this.iD_KONTAComboBox.Name = "iD_KONTAComboBox"; 270 this.iD_KONTAComboBox.Size = new System.Drawing.Size(1 44, 21);289 this.iD_KONTAComboBox.Size = new System.Drawing.Size(191, 24); 271 290 this.iD_KONTAComboBox.TabIndex = 56; 272 291 this.iD_KONTAComboBox.ValueMember = "id"; … … 280 299 // 281 300 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); 283 303 this.button3.Name = "button3"; 284 this.button3.Size = new System.Drawing.Size( 28, 23);304 this.button3.Size = new System.Drawing.Size(37, 28); 285 305 this.button3.TabIndex = 59; 286 306 this.button3.UseVisualStyleBackColor = true; … … 291 311 this.sPOSOB_ZAPLATYListBox.DataBindings.Add(new System.Windows.Forms.Binding("SelectedIndex", this.zamowieniaBindingSource, "sposobZaplaty", true)); 292 312 this.sPOSOB_ZAPLATYListBox.FormattingEnabled = true; 313 this.sPOSOB_ZAPLATYListBox.ItemHeight = 16; 293 314 this.sPOSOB_ZAPLATYListBox.Items.AddRange(new object[] { 294 315 "Karta kredytowa", … … 296 317 "Gotówka", 297 318 "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); 299 321 this.sPOSOB_ZAPLATYListBox.Name = "sPOSOB_ZAPLATYListBox"; 300 this.sPOSOB_ZAPLATYListBox.Size = new System.Drawing.Size(1 20, 56);322 this.sPOSOB_ZAPLATYListBox.Size = new System.Drawing.Size(159, 68); 301 323 this.sPOSOB_ZAPLATYListBox.TabIndex = 58; 302 324 // … … 304 326 // 305 327 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); 307 330 this.anulujButton.Name = "anulujButton"; 308 this.anulujButton.Size = new System.Drawing.Size( 75, 23);331 this.anulujButton.Size = new System.Drawing.Size(100, 28); 309 332 this.anulujButton.TabIndex = 7; 310 333 this.anulujButton.Text = "Anuluj"; … … 315 338 // 316 339 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); 318 342 this.zapiszButton.Name = "zapiszButton"; 319 this.zapiszButton.Size = new System.Drawing.Size( 75, 23);343 this.zapiszButton.Size = new System.Drawing.Size(100, 28); 320 344 this.zapiszButton.TabIndex = 8; 321 345 this.zapiszButton.Text = "Zapisz"; … … 338 362 // 339 363 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); 341 366 this.notatkaZamowienieTextBox.MaxLength = 200; 342 367 this.notatkaZamowienieTextBox.Multiline = true; 343 368 this.notatkaZamowienieTextBox.Name = "notatkaZamowienieTextBox"; 344 this.notatkaZamowienieTextBox.Size = new System.Drawing.Size(2 07, 74);369 this.notatkaZamowienieTextBox.Size = new System.Drawing.Size(275, 90); 345 370 this.notatkaZamowienieTextBox.TabIndex = 9; 346 371 // … … 349 374 this.groupBox2.Controls.Add(notatkaZamowienieLabel); 350 375 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); 352 378 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); 354 381 this.groupBox2.TabIndex = 11; 355 382 this.groupBox2.TabStop = false; … … 364 391 this.kierownikGroupBox.Controls.Add(notatkaKierownikLabel); 365 392 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); 367 395 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); 369 398 this.kierownikGroupBox.TabIndex = 13; 370 399 this.kierownikGroupBox.TabStop = false; … … 373 402 // 374 403 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); 376 406 this.procentProwizjiTextBox.Name = "procentProwizjiTextBox"; 377 this.procentProwizjiTextBox.Size = new System.Drawing.Size( 62, 20);407 this.procentProwizjiTextBox.Size = new System.Drawing.Size(81, 22); 378 408 this.procentProwizjiTextBox.TabIndex = 18; 379 409 this.procentProwizjiTextBox.Text = "0"; … … 384 414 // 385 415 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); 387 418 this.zPCheckBox.Name = "zPCheckBox"; 388 this.zPCheckBox.Size = new System.Drawing.Size( 17, 24);419 this.zPCheckBox.Size = new System.Drawing.Size(23, 30); 389 420 this.zPCheckBox.TabIndex = 17; 390 421 // … … 392 423 // 393 424 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); 395 427 this.notatkaKierownikTextBox.MaxLength = 200; 396 428 this.notatkaKierownikTextBox.Multiline = true; 397 429 this.notatkaKierownikTextBox.Name = "notatkaKierownikTextBox"; 398 this.notatkaKierownikTextBox.Size = new System.Drawing.Size(2 08, 71);430 this.notatkaKierownikTextBox.Size = new System.Drawing.Size(276, 86); 399 431 this.notatkaKierownikTextBox.TabIndex = 14; 400 432 // 401 433 // AddZamowienieForm 402 434 // 403 this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 13F);435 this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); 404 436 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); 406 438 this.Controls.Add(this.groupBox2); 407 439 this.Controls.Add(this.zapiszButton); … … 411 443 this.Controls.Add(this.numerZamowieniaLabel1); 412 444 this.Controls.Add(this.kierownikGroupBox); 445 this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4); 413 446 this.Name = "AddZamowienieForm"; 414 447 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; -
trunk/BazaReklam/AddZamowienieForm.cs
r170 r174 12 12 { 13 13 private REKLAMADataSetTableAdapters.KLIENCITableAdapter klienciTableAdapter = 14 new Baza_Reklam.REKLAMADataSetTableAdapters.KLIENCITableAdapter();14 new REKLAMADataSetTableAdapters.KLIENCITableAdapter(); 15 15 16 16 public REKLAMADataSet.zamowieniaDataTable Zamowienia … … 18 18 get 19 19 { 20 return this.rEKLAMADataSet.zamowienia;20 return rEKLAMADataSet.zamowienia; 21 21 } 22 22 } … … 26 26 InitializeComponent(); 27 27 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; 32 32 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; 49 35 50 36 REKLAMADataSet.zamowieniaRow row; … … 61 47 62 48 row.EndEdit(); 63 this.zamowieniaBindingSource.EndEdit();49 zamowieniaBindingSource.EndEdit(); 64 50 } 65 51 else 66 52 { 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]; 69 55 } 70 56 71 REKLAMADataSet.KLIENCIRow k = (REKLAMADataSet.KLIENCIRow)klienciTableAdapter.GetDataByCustomerId(row.idKlienta)[0];57 REKLAMADataSet.KLIENCIRow k = klienciTableAdapter.GetDataByCustomerId(row.idKlienta)[0]; 72 58 numerZamowieniaLabel1.Text = k.kodKlienta + "/" + row.rokZamowienia + "/" + row.kodAgenta + "/" + row.nrZamowienia; 73 59 74 60 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; 75 72 } 76 73 … … 84 81 85 82 this.zamowieniaBindingSource.ResetBindings(false); 83 86 84 } 87 85
