Zbiór zmian 467 dla trunk

Pokaż
Ignoruj:
Data:
2009-03-19 13:21:02 (17 years ago)
Autor:
marek
Opis:

fixes #128

Lokalizacja:
trunk
Pliki:
5 zmodyfikowane

Legenda:

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

    r457 r467  
    11011101                 
    11021102                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; 
    11071110 
    11081111                kONTAKTYBindingSource.MoveLast(); 
     
    12301233            if (kONTAKTYBindingSource.Current == null) return; 
    12311234 
     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 
    12321243            DataRowView r = (DataRowView)kONTAKTYBindingSource.Current; 
    1233             r.Row["KontaktTypId"] = (byte)cbTypKontaktu.SelectedValue; 
     1244            AddUpdateKontakt(r, klient.CustomerID); 
     1245 
    12341246            kONTAKTYBindingSource.EndEdit(); 
    12351247            kONTAKTYTableAdapter.Update(rEKLAMADataSet.KONTAKTY); 
     
    15601572                    MessageBoxIcon.Question) == DialogResult.Yes) 
    15611573                { 
     1574                    AddUpdateKontakt(); 
    15621575                    kONTAKTYTableAdapter.Update(rEKLAMADataSet.KONTAKTY); 
    15631576                } 
     
    24812494 
    24822495                    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; 
    24872503 
    24882504                    kONTAKTYBindingSource.MoveLast(); 
     
    25932609        } 
    25942610 
    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        } 
    25962630         
    25972631        //dodanie CTR + A do textboxow 
  • trunk/BazaReklam/Docs/versioninfo.html

    r457 r467  
    66<body> 
    77  <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> 
    818 
    919    <div> 
  • trunk/BazaReklam/Properties/AssemblyInfo.cs

    r457 r467  
    3030// 
    3131[assembly: AssemblyVersion("1.0.0.0")] 
    32 [assembly: AssemblyFileVersion("1.0.0.84")] 
     32[assembly: AssemblyFileVersion("1.0.0.85")] 
  • trunk/BazaReklam/app.config

    r457 r467  
    1212    <add name="BAZA_REKLAM" connectionString="Data Source=sql.ct.com.pl;Initial Catalog=BAZA_REKLAM;Persist Security Info=True" 
    1313      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" />--> 
    1616  </connectionStrings> 
    1717  <applicationSettings> 
  • trunk/BazaReklamSetup/BazaReklamSetup.vdproj

    r315 r467  
    167167        { 
    168168        "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" 
    169181        "OwnerKey" = "8:_6C6DB793A8DA3CF4F3943CD8BBC6D521" 
    170182        "MsmSig" = "8:_UNDEFINED" 
     
    204216        "MsmKey" = "8:_UNDEFINED" 
    205217        "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" 
    218218        "MsmSig" = "8:_UNDEFINED" 
    219219        } 
     
    762762        "Name" = "8:Microsoft Visual Studio" 
    763763        "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}" 
    766766        "UpgradeCode" = "8:{4E2DBBA4-3139-4790-8DDB-7AADFC963A7D}" 
    767767        "RestartWWWService" = "11:FALSE" 
    768768        "RemovePreviousVersions" = "11:TRUE" 
    769769        "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" 
    773773        "ARPHELPTELEPHONE" = "8:" 
    774774        "ARPHELPLINK" = "8:" 
    775775        "Title" = "8:Baza Reklam" 
    776776        "Subject" = "8:" 
    777         "ARPCONTACT" = "8:HP" 
     777        "ARPCONTACT" = "8:AACT" 
    778778        "Keywords" = "8:" 
    779779        "ARPCOMMENTS" = "8:"