- Data:
- 2009-03-19 13:21:02 (17 years ago)
- Lokalizacja:
- trunk
- Pliki:
-
- 5 zmodyfikowane
-
BazaReklam/ClientsForm.cs (zmodyfikowane) (5 diffs)
-
BazaReklam/Docs/versioninfo.html (zmodyfikowane) (1 diff)
-
BazaReklam/Properties/AssemblyInfo.cs (zmodyfikowane) (1 diff)
-
BazaReklam/app.config (zmodyfikowane) (1 diff)
-
BazaReklamSetup/BazaReklamSetup.vdproj (zmodyfikowane) (3 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/BazaReklam/ClientsForm.cs
r457 r467 1101 1101 1102 1102 DataRowView r = datatable.AddNew(); 1103 r["customerId"] = custId; 1104 r["data"] = DateTime.Now; 1105 r["symbol_agenta"] = User.getUser().Login; 1106 r["KontaktTypId"] = (byte)cbTypKontaktu.SelectedValue; 1103 1104 AddUpdateKontakt(r, custId); 1105 //r["customerId"] = custId; 1106 //r["data"] = DateTime.Now; 1107 //r["symbol_agenta"] = User.getUser().Login; 1108 //if (cbTypKontaktu.Enabled) 1109 // r["KontaktTypId"] = (byte) cbTypKontaktu.SelectedValue; 1107 1110 1108 1111 kONTAKTYBindingSource.MoveLast(); … … 1230 1233 if (kONTAKTYBindingSource.Current == null) return; 1231 1234 1235 if(cbTypKontaktu.SelectedValue == null) 1236 { 1237 MessageBox.Show("Proszê wybraæ tytu³"); 1238 return; 1239 } 1240 DataRowView klientRow = (DataRowView) kLIENCIBindingSource.Current; 1241 REKLAMADataSet.KLIENCIRow klient = (REKLAMADataSet.KLIENCIRow)klientRow.Row; 1242 1232 1243 DataRowView r = (DataRowView)kONTAKTYBindingSource.Current; 1233 r.Row["KontaktTypId"] = (byte)cbTypKontaktu.SelectedValue; 1244 AddUpdateKontakt(r, klient.CustomerID); 1245 1234 1246 kONTAKTYBindingSource.EndEdit(); 1235 1247 kONTAKTYTableAdapter.Update(rEKLAMADataSet.KONTAKTY); … … 1560 1572 MessageBoxIcon.Question) == DialogResult.Yes) 1561 1573 { 1574 AddUpdateKontakt(); 1562 1575 kONTAKTYTableAdapter.Update(rEKLAMADataSet.KONTAKTY); 1563 1576 } … … 2481 2494 2482 2495 DataRowView r = datatable.AddNew(); 2483 r["customerId"] = custId; 2484 r["data"] = DateTime.Now.AddMonths(-1); 2485 r["symbol_agenta"] = User.getUser().Login; 2486 r["KontaktTypId"] = (byte)cbTypKontaktu.SelectedValue; 2496 AddUpdateKontakt(r, custId); 2497 2498 //r["customerId"] = custId; 2499 //r["data"] = DateTime.Now.AddMonths(-1); 2500 //r["symbol_agenta"] = User.getUser().Login; 2501 //if (cbTypKontaktu.Enabled) 2502 // r["KontaktTypId"] = (byte) cbTypKontaktu.SelectedValue; 2487 2503 2488 2504 kONTAKTYBindingSource.MoveLast(); … … 2593 2609 } 2594 2610 2595 2611 2612 private void AddUpdateKontakt(DataRowView r, int customerId) 2613 { 2614 r["customerId"] = customerId; 2615 r["data"] = DateTime.Now.AddMonths(-1); 2616 r["symbol_agenta"] = User.getUser().Login; 2617 if (cbTypKontaktu.Enabled && cbTypKontaktu.SelectedValue != null) 2618 r["KontaktTypId"] = (byte) cbTypKontaktu.SelectedValue; 2619 else 2620 r["KontaktTypId"] = 1; 2621 } 2622 2623 private void AddUpdateKontakt() 2624 { 2625 //DataRowView r, int customerId 2626 if (kLIENCIBindingSource.Current == null || kONTAKTYBindingSource.Current == null) return; 2627 DataRowView row = (DataRowView)kLIENCIBindingSource.Current; 2628 AddUpdateKontakt((DataRowView)kONTAKTYBindingSource.Current, Int32.Parse(row["CustomerId"].ToString())); 2629 } 2596 2630 2597 2631 //dodanie CTR + A do textboxow -
trunk/BazaReklam/Docs/versioninfo.html
r457 r467 6 6 <body> 7 7 <h1>Baza reklam - Informacje o wersji</h1> 8 9 <div> 10 <a id="1.0.0.85" /> 11 <h2>Wersja 1.0.0.85 (2009-03-19)</h2> 12 13 <p>Opis zmian wprowadzonych do wersji 1.0.0.85</p> 14 <ul> 15 <li>Zgłoszenie #128: Poprawiono błąd przy dodawaniu kontaktu gdy klient nie posiada jeszcze żadnego kontaktu</li> 16 </ul> 17 </div> 8 18 9 19 <div> -
trunk/BazaReklam/Properties/AssemblyInfo.cs
r457 r467 30 30 // 31 31 [assembly: AssemblyVersion("1.0.0.0")] 32 [assembly: AssemblyFileVersion("1.0.0.8 4")]32 [assembly: AssemblyFileVersion("1.0.0.85")] -
trunk/BazaReklam/app.config
r457 r467 12 12 <add name="BAZA_REKLAM" connectionString="Data Source=sql.ct.com.pl;Initial Catalog=BAZA_REKLAM;Persist Security Info=True" 13 13 providerName="System.Data.SqlClient" /> 14 < add name="BAZA_REKLAM_TEST" connectionString="Data Source=sql.ct.com.pl;Initial Catalog=BAZA_REKLAM_TEST;Persist Security Info=True"15 providerName="System.Data.SqlClient" /> 14 <!--<add name="BAZA_REKLAM_TEST" connectionString="Data Source=sql.ct.com.pl;Initial Catalog=BAZA_REKLAM_TEST;Persist Security Info=True" 15 providerName="System.Data.SqlClient" />--> 16 16 </connectionStrings> 17 17 <applicationSettings> -
trunk/BazaReklamSetup/BazaReklamSetup.vdproj
r315 r467 167 167 { 168 168 "MsmKey" = "8:_UNDEFINED" 169 "OwnerKey" = "8:_D15FD85A8EA74B8CA30CC438F895CAED" 170 "MsmSig" = "8:_UNDEFINED" 171 } 172 "Entry" 173 { 174 "MsmKey" = "8:_UNDEFINED" 175 "OwnerKey" = "8:_CC2D346B584D9209A0B0C23E19E16393" 176 "MsmSig" = "8:_UNDEFINED" 177 } 178 "Entry" 179 { 180 "MsmKey" = "8:_UNDEFINED" 169 181 "OwnerKey" = "8:_6C6DB793A8DA3CF4F3943CD8BBC6D521" 170 182 "MsmSig" = "8:_UNDEFINED" … … 204 216 "MsmKey" = "8:_UNDEFINED" 205 217 "OwnerKey" = "8:_135B2D9B7FCFB80D465861D39A152401" 206 "MsmSig" = "8:_UNDEFINED"207 }208 "Entry"209 {210 "MsmKey" = "8:_UNDEFINED"211 "OwnerKey" = "8:_D15FD85A8EA74B8CA30CC438F895CAED"212 "MsmSig" = "8:_UNDEFINED"213 }214 "Entry"215 {216 "MsmKey" = "8:_UNDEFINED"217 "OwnerKey" = "8:_CC2D346B584D9209A0B0C23E19E16393"218 218 "MsmSig" = "8:_UNDEFINED" 219 219 } … … 762 762 "Name" = "8:Microsoft Visual Studio" 763 763 "ProductName" = "8:Baza Reklam" 764 "ProductCode" = "8:{ D601CC28-5EE8-4C51-A8FE-9C2D0AC9F495}"765 "PackageCode" = "8:{ DF616496-A597-46AA-866A-978D30743570}"764 "ProductCode" = "8:{1F493BF2-537C-4B2C-B8DC-FE3DD5A38CC1}" 765 "PackageCode" = "8:{CFB556B3-88B7-4358-B831-23BAB85F7B37}" 766 766 "UpgradeCode" = "8:{4E2DBBA4-3139-4790-8DDB-7AADFC963A7D}" 767 767 "RestartWWWService" = "11:FALSE" 768 768 "RemovePreviousVersions" = "11:TRUE" 769 769 "DetectNewerInstalledVersion" = "11:TRUE" 770 "InstallAllUsers" = "11: FALSE"771 "ProductVersion" = "8:1.0. 72"772 "Manufacturer" = "8: HP"770 "InstallAllUsers" = "11:TRUE" 771 "ProductVersion" = "8:1.0.85" 772 "Manufacturer" = "8:AACT" 773 773 "ARPHELPTELEPHONE" = "8:" 774 774 "ARPHELPLINK" = "8:" 775 775 "Title" = "8:Baza Reklam" 776 776 "Subject" = "8:" 777 "ARPCONTACT" = "8: HP"777 "ARPCONTACT" = "8:AACT" 778 778 "Keywords" = "8:" 779 779 "ARPCOMMENTS" = "8:"
