Zbiór zmian 970 dla trunk/eCard/eCardMVC/adMoto.Payments.Core
- Data:
- 2009-12-23 11:26:06 (16 years ago)
- Lokalizacja:
- trunk/eCard/eCardMVC/adMoto.Payments.Core
- Pliki:
-
- 9 dodane
- 17 skopiowane
-
. (dodane)
-
Data (dodane)
-
Data/DataContext.cs (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Linq/DataContext.cs) (5 diffs)
-
Data/Platnosci.cs (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Linq/Platnosci.cs)
-
Data/Platnosci.dbml (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Linq/Platnosci.dbml) (2 diffs)
-
Data/Platnosci.dbml.layout (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Linq/Platnosci.dbml.layout) (1 diff)
-
Data/Platnosci.designer.cs (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Linq/Platnosci.designer.cs) (14 diffs)
-
Data/PlatnosciEcard.cs (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Linq/PlatnosciEcard.cs) (1 diff)
-
Data/PotwierdzeniaEcard.cs (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Linq/PotwierdzeniaEcard.cs) (1 diff)
-
Data/vPlatnosciEcard.cs (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Linq/vPlatnosciEcard.cs) (1 diff)
-
Interfaces (dodane)
-
Interfaces/IDataContext.cs (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Interface/IDataContext.cs) (2 diffs)
-
Interfaces/IIdentifiable.cs (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Interface/IIdentifiable.cs) (1 diff)
-
Interfaces/IRepository.cs (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Interface/IRepository.cs) (2 diffs)
-
Interfaces/ITranslateManager.cs (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Interface/ITranslateManager.cs) (1 diff)
-
Merchant.cs (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Linq/Merchant.cs) (1 diff)
-
Payer.cs (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Linq/Payer.cs) (1 diff)
-
Properties (dodane)
-
Properties/AssemblyInfo.cs (dodane)
-
Properties/Settings.Designer.cs (dodane)
-
Properties/Settings.settings (dodane)
-
Repository.cs (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Linq/Repository.cs) (3 diffs)
-
Translation.cs (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Linq/Translation.cs) (1 diff)
-
Waluta.cs (skopiowane) (skopiowane from trunk/eCard/eCardMVC/Platnosci.Core/Linq/Waluta.cs) (1 diff)
-
adMoto.Payments.Core.csproj (dodane)
-
app.config (dodane)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/eCard/eCardMVC/adMoto.Payments.Core/Data/DataContext.cs
r954 r970 3 3 using System.Configuration; 4 4 using System.Linq; 5 using Platnosci.Core.Interface;5 using adMoto.Payments.Core.Interfaces; 6 6 7 namespace Platnosci.Core.Linq7 namespace adMoto.Payments.Core.Data 8 8 { 9 9 public class DataContext : IDataContext … … 44 44 } 45 45 46 public IQueryable< vPlatnosciEcard> FindInvoiceByNipNumber(string nip, string numer)46 public IQueryable<Invoice> FindInvoiceByNipNumber(string nip, string numer) 47 47 { 48 var query = from i in _dataContext. vPlatnosciEcards48 var query = from i in _dataContext.Invoices 49 49 where (i.nip == nip && i.Faktura_Numer == numer) 50 50 select i; … … 52 52 } 53 53 54 public IQueryable< vPlatnosciEcard> FindInvoiceById(int id)54 public IQueryable<Invoice> FindInvoiceById(int id) 55 55 { 56 var query = from i in _dataContext. vPlatnosciEcards56 var query = from i in _dataContext.Invoices 57 57 where i.ID_faktury == id 58 58 select i; … … 63 63 { 64 64 var query = _dataContext.PlatnosciEcards 65 .Where(vp => vp.IDFaktury == idFaktury && vp.Status == true)66 .OrderByDescending(vp => vp.IDFaktury);65 .Where(vp => vp.IDFaktury == idFaktury && vp.Status == true) 66 .OrderByDescending(vp => vp.IDFaktury); 67 67 68 68 query.ToList(); … … 74 74 var ecard = pt; 75 75 var query2 = _dataContext.PotwierdzeniaEcards 76 .Where(ps => ps.ORDERNUMBER == ecard.ORDERNUMBER && ps.CURRENTSTATE == "payment_deposited")77 .OrderBy(ps => ps.id);76 .Where(ps => ps.ORDERNUMBER == ecard.ORDERNUMBER && ps.CURRENTSTATE == "payment_deposited") 77 .OrderBy(ps => ps.id); 78 78 79 79 for (var i = 0; i < query2.ToList().Count; i++) -
trunk/eCard/eCardMVC/adMoto.Payments.Core/Data/Platnosci.dbml
r866 r970 1 1 <?xml version="1.0" encoding="utf-8"?> 2 2 <Database Name="BAZA_REKLAM_TEST" Class="PlatnosciDataContext" Serialization="Unidirectional" xmlns="http://schemas.microsoft.com/linqtosql/dbml/2007"> 3 <Connection Mode=" WebSettings" ConnectionString="Data Source=sql.ct.com.pl;Initial Catalog=BAZA_REKLAM_TEST;Persist Security Info=True;User ID=wwwadmin" SettingsObjectName="System.Configuration.ConfigurationManager.ConnectionStrings" SettingsPropertyName="BAZA_REKLAM_TESTConnectionString" Provider="System.Data.SqlClient" />3 <Connection Mode="AppSettings" ConnectionString="Data Source=sql.ct.com.pl;Initial Catalog=BAZA_REKLAM_TEST;Persist Security Info=True;User ID=wwwadmin" SettingsObjectName="adMoto.Payments.Core.Properties.Settings" SettingsPropertyName="BAZA_REKLAM_TESTConnectionString" Provider="System.Data.SqlClient" /> 4 4 <Table Name="dbo.PlatnosciEcard" Member="PlatnosciEcards"> 5 5 <Type Name="PlatnosciEcard"> … … 124 124 <Association Name="FAKTURY_PlatnosciEcard" Member="PlatnosciEcards" ThisKey="ID_FAKTURY" OtherKey="IDFaktury" Type="PlatnosciEcard" /> 125 125 <Association Name="FAKTURY_FAKTURA_DETAIL" Member="FAKTURA_DETAILs" ThisKey="ID_FAKTURY" OtherKey="ID_FAKTURY" Type="FAKTURA_DETAIL" /> 126 <Association Name="FAKTURY_vPlatnosciEcard" Member=" vPlatnosciEcards" Storage="_vDanePlatnosciEcards" ThisKey="ID_FAKTURY" OtherKey="ID_faktury" Type="vPlatnosciEcard" />126 <Association Name="FAKTURY_vPlatnosciEcard" Member="Invoices" Storage="_vDanePlatnosciEcards" ThisKey="ID_FAKTURY" OtherKey="ID_faktury" Type="Invoice" /> 127 127 </Type> 128 128 </Table> 129 <Table Name="dbo.vDanePlatnosciEcard" Member=" vPlatnosciEcards">130 <Type Name=" vPlatnosciEcard">129 <Table Name="dbo.vDanePlatnosciEcard" Member="Invoices"> 130 <Type Name="Invoice"> 131 131 <Column Name="ID_faktury" Type="System.Int32" DbType="Int NOT NULL" IsPrimaryKey="true" CanBeNull="false" /> 132 132 <Column Name="Numer" Type="System.Int32" DbType="Int" CanBeNull="true" /> -
trunk/eCard/eCardMVC/adMoto.Payments.Core/Data/Platnosci.dbml.layout
r866 r970 49 49 </associationConnector> 50 50 <classShape Id="c6647e8d-66a1-44a6-9529-ad5c33238bb2" absoluteBounds="2.875, 5.625, 2, 4.8761417643229157"> 51 <DataClassMoniker Name="/PlatnosciDataContext/ vPlatnosciEcard" />51 <DataClassMoniker Name="/PlatnosciDataContext/Invoice" /> 52 52 <nestedChildShapes> 53 53 <elementListCompartment Id="b17d6419-1b48-4a53-8b33-c4e4c101f28c" absoluteBounds="2.8899999999999997, 6.0850000000000009, 1.9700000000000002, 4.3161417643229161" name="DataPropertiesCompartment" titleTextColor="Black" itemTextColor="Black" /> 54 54 </nestedChildShapes> 55 55 </classShape> 56 <associationConnector edgePoints="[(2.5 : 7.20654418945313); (2.875 : 7.20654418945313)]" fixedFrom=" Algorithm" fixedTo="Algorithm">56 <associationConnector edgePoints="[(2.5 : 7.20654418945313); (2.875 : 7.20654418945313)]" fixedFrom="NotFixed" fixedTo="NotFixed"> 57 57 <AssociationMoniker Name="/PlatnosciDataContext/FAKTURY/FAKTURY_vPlatnosciEcard" /> 58 58 <nodes> -
trunk/eCard/eCardMVC/adMoto.Payments.Core/Data/Platnosci.designer.cs
r949 r970 3 3 // <auto-generated> 4 4 // This code was generated by a tool. 5 // Runtime Version:2.0.50727.3 0825 // Runtime Version:2.0.50727.3603 6 6 // 7 7 // Changes to this file may cause incorrect behavior and will be lost if … … 10 10 //------------------------------------------------------------------------------ 11 11 12 namespace Platnosci.Core.Linq12 namespace adMoto.Payments.Core.Data 13 13 { 14 14 using System.Data.Linq; … … 22 22 using System.ComponentModel; 23 23 using System; 24 using Platnosci.Core.Interface; 24 25 25 26 26 [System.Data.Linq.Mapping.DatabaseAttribute(Name="BAZA_REKLAM_TEST")] 27 27 public partial class PlatnosciDataContext : System.Data.Linq.DataContext 28 28 { 29 private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); 29 30 private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource(); 30 31 31 32 #region Extensibility Method Definitions … … 43 44 partial void UpdateFAKTURY(FAKTURY instance); 44 45 partial void DeleteFAKTURY(FAKTURY instance); 45 partial void Insert vPlatnosciEcard(vPlatnosciEcardinstance);46 partial void Update vPlatnosciEcard(vPlatnosciEcardinstance);47 partial void Delete vPlatnosciEcard(vPlatnosciEcardinstance);46 partial void InsertInvoice(Invoice instance); 47 partial void UpdateInvoice(Invoice instance); 48 partial void DeleteInvoice(Invoice instance); 48 49 #endregion 49 public PlatnosciDataContext() :base(global::Platnosci.Core.Properties.Settings.Default.BAZA_REKLAM_TESTConnectionString, mappingSource) 50 { 51 OnCreated(); 52 } 53 54 public PlatnosciDataContext(string connection) : base(connection, mappingSource) 55 { 56 OnCreated(); 57 } 58 59 public PlatnosciDataContext(System.Data.IDbConnection connection) : base(connection, mappingSource) 60 { 61 OnCreated(); 62 } 63 64 public PlatnosciDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :base(connection, mappingSource) 65 { 66 OnCreated(); 67 } 68 69 public PlatnosciDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :base(connection, mappingSource) 70 { 71 OnCreated(); 72 } 50 51 public PlatnosciDataContext() : 52 base(global::adMoto.Payments.Core.Properties.Settings.Default.BAZA_REKLAM_TESTConnectionString, mappingSource) 53 { 54 OnCreated(); 55 } 56 57 public PlatnosciDataContext(string connection) : 58 base(connection, mappingSource) 59 { 60 OnCreated(); 61 } 62 63 public PlatnosciDataContext(System.Data.IDbConnection connection) : 64 base(connection, mappingSource) 65 { 66 OnCreated(); 67 } 68 69 public PlatnosciDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 70 base(connection, mappingSource) 71 { 72 OnCreated(); 73 } 74 75 public PlatnosciDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 76 base(connection, mappingSource) 77 { 78 OnCreated(); 79 } 80 73 81 public System.Data.Linq.Table<PlatnosciEcard> PlatnosciEcards 74 82 { … … 103 111 } 104 112 105 public System.Data.Linq.Table< vPlatnosciEcard> vPlatnosciEcards106 { 107 get 108 { 109 return this.GetTable< vPlatnosciEcard>();113 public System.Data.Linq.Table<Invoice> Invoices 114 { 115 get 116 { 117 return this.GetTable<Invoice>(); 110 118 } 111 119 } … … 235 243 [Column(Storage="_IDFaktury", DbType="Int")] 236 244 [DataMember(Order=2)] 237 public System.Nullable<int> IDFaktury 245 public System.Nullable<int> IDFaktury 238 246 { 239 247 get … … 1964 1972 private EntitySet<FAKTURA_DETAIL> _FAKTURA_DETAILs; 1965 1973 1966 private EntitySet< vPlatnosciEcard> _vDanePlatnosciEcards;1974 private EntitySet<Invoice> _vDanePlatnosciEcards; 1967 1975 1968 1976 private bool serializing; … … 3054 3062 [Association(Name="FAKTURY_vPlatnosciEcard", Storage="_vDanePlatnosciEcards", ThisKey="ID_FAKTURY", OtherKey="ID_faktury")] 3055 3063 [DataMember(Order=48, EmitDefaultValue=false)] 3056 public EntitySet< vPlatnosciEcard> vPlatnosciEcards3064 public EntitySet<Invoice> Invoices 3057 3065 { 3058 3066 get … … 3115 3123 } 3116 3124 3117 private void attach_vDanePlatnosciEcards( vPlatnosciEcardentity)3125 private void attach_vDanePlatnosciEcards(Invoice entity) 3118 3126 { 3119 3127 this.SendPropertyChanging(); … … 3121 3129 } 3122 3130 3123 private void detach_vDanePlatnosciEcards( vPlatnosciEcardentity)3131 private void detach_vDanePlatnosciEcards(Invoice entity) 3124 3132 { 3125 3133 this.SendPropertyChanging(); … … 3131 3139 this._PlatnosciEcards = new EntitySet<PlatnosciEcard>(new Action<PlatnosciEcard>(this.attach_PlatnosciEcards), new Action<PlatnosciEcard>(this.detach_PlatnosciEcards)); 3132 3140 this._FAKTURA_DETAILs = new EntitySet<FAKTURA_DETAIL>(new Action<FAKTURA_DETAIL>(this.attach_FAKTURA_DETAILs), new Action<FAKTURA_DETAIL>(this.detach_FAKTURA_DETAILs)); 3133 this._vDanePlatnosciEcards = new EntitySet< vPlatnosciEcard>(new Action<vPlatnosciEcard>(this.attach_vDanePlatnosciEcards), new Action<vPlatnosciEcard>(this.detach_vDanePlatnosciEcards));3141 this._vDanePlatnosciEcards = new EntitySet<Invoice>(new Action<Invoice>(this.attach_vDanePlatnosciEcards), new Action<Invoice>(this.detach_vDanePlatnosciEcards)); 3134 3142 OnCreated(); 3135 3143 } … … 3159 3167 [Table(Name="dbo.vDanePlatnosciEcard")] 3160 3168 [DataContract()] 3161 public partial class vPlatnosciEcard: INotifyPropertyChanging, INotifyPropertyChanged3169 public partial class Invoice : INotifyPropertyChanging, INotifyPropertyChanged 3162 3170 { 3163 3171 … … 3272 3280 #endregion 3273 3281 3274 public vPlatnosciEcard()3282 public Invoice() 3275 3283 { 3276 3284 this.Initialize(); … … 3823 3831 { 3824 3832 this._FAKTURY.Entity = null; 3825 previousValue. vPlatnosciEcards.Remove(this);3833 previousValue.Invoices.Remove(this); 3826 3834 } 3827 3835 this._FAKTURY.Entity = value; 3828 3836 if ((value != null)) 3829 3837 { 3830 value. vPlatnosciEcards.Add(this);3838 value.Invoices.Add(this); 3831 3839 this._ID_faktury = value.ID_FAKTURY; 3832 3840 } -
trunk/eCard/eCardMVC/adMoto.Payments.Core/Data/PlatnosciEcard.cs
r949 r970 1 using Platnosci.Core.Interface;1 using adMoto.Payments.Core.Interfaces; 2 2 3 namespace Platnosci.Core.Linq3 namespace adMoto.Payments.Core.Data 4 4 { 5 5 public partial class PlatnosciEcard : IIdentifiable -
trunk/eCard/eCardMVC/adMoto.Payments.Core/Data/PotwierdzeniaEcard.cs
r949 r970 1 using Platnosci.Core.Interface;1 using adMoto.Payments.Core.Interfaces; 2 2 3 namespace Platnosci.Core.Linq3 namespace adMoto.Payments.Core.Data 4 4 { 5 5 public partial class PotwierdzeniaEcard : IIdentifiable -
trunk/eCard/eCardMVC/adMoto.Payments.Core/Data/vPlatnosciEcard.cs
r949 r970 1 using Platnosci.Core.Interface;1 using adMoto.Payments.Core.Interfaces; 2 2 3 namespace Platnosci.Core.Linq3 namespace adMoto.Payments.Core.Data 4 4 { 5 public partial class vPlatnosciEcard: IIdentifiable5 public partial class Invoice : IIdentifiable 6 6 { 7 7 public string FullName -
trunk/eCard/eCardMVC/adMoto.Payments.Core/Interfaces/IDataContext.cs
r949 r970 2 2 using System.Collections.Generic; 3 3 using System.Linq; 4 using Platnosci.Core.Linq;4 using adMoto.Payments.Core.Data; 5 5 6 namespace Platnosci.Core.Interface6 namespace adMoto.Payments.Core.Interfaces 7 7 { 8 8 public interface IDataContext … … 12 12 void Insert<T>(T item) where T : class; 13 13 void Delete<T>(T item) where T : class; 14 IQueryable< vPlatnosciEcard> FindInvoiceByNipNumber(string nip, string numer);14 IQueryable<Invoice> FindInvoiceByNipNumber(string nip, string numer); 15 15 List<PotwierdzeniaEcard> FindItemsByIdFaktury(int idFaktury); 16 16 int GetOrdernumber(string description, int? idfaktury, DateTime? data); -
trunk/eCard/eCardMVC/adMoto.Payments.Core/Interfaces/IIdentifiable.cs
r949 r970 1 namespace Platnosci.Core.Interface1 namespace adMoto.Payments.Core.Interfaces 2 2 { 3 3 public interface IIdentifiable -
trunk/eCard/eCardMVC/adMoto.Payments.Core/Interfaces/IRepository.cs
r949 r970 3 3 using System.Linq; 4 4 using System.Linq.Expressions; 5 using Platnosci.Core.Linq;5 using adMoto.Payments.Core.Data; 6 6 7 namespace Platnosci.Core.Interface7 namespace adMoto.Payments.Core.Interfaces 8 8 { 9 9 public interface IRepository<T> where T : IIdentifiable … … 37 37 IQueryable<T> Find(Expression<Func<T, bool>> expression); 38 38 39 IQueryable< vPlatnosciEcard> FindInvoiceByNipNumber(string nip, string numer);39 IQueryable<Invoice> FindInvoiceByNipNumber(string nip, string numer); 40 40 41 41 List<PotwierdzeniaEcard> FindItemsByIdFaktury(int idFaktury); -
trunk/eCard/eCardMVC/adMoto.Payments.Core/Interfaces/ITranslateManager.cs
r949 r970 1 namespace Platnosci.Core.Interface1 namespace adMoto.Payments.Core.Interfaces 2 2 { 3 3 public interface ITranslateManager -
trunk/eCard/eCardMVC/adMoto.Payments.Core/Merchant.cs
r952 r970 1 1 using System; 2 namespace Platnosci.Core.Linq 2 using adMoto.Payments.Core.Data; 3 4 namespace adMoto.Payments.Core 3 5 { 4 6 public class Merchant -
trunk/eCard/eCardMVC/adMoto.Payments.Core/Payer.cs
r949 r970 1 namespace Platnosci.Core.Linq1 namespace adMoto.Payments.Core 2 2 { 3 3 public class Payer -
trunk/eCard/eCardMVC/adMoto.Payments.Core/Repository.cs
r949 r970 3 3 using System.Linq; 4 4 using System.Linq.Expressions; 5 using Platnosci.Core.Interface; 5 using adMoto.Payments.Core.Data; 6 using adMoto.Payments.Core.Interfaces; 6 7 7 8 8 namespace Platnosci.Core.Linq9 namespace adMoto.Payments.Core 9 10 { 10 11 /// <summary> … … 59 60 } 60 61 public void Insert(T entity) 61 {62 DataContext.Insert(entity);63 }62 { 63 DataContext.Insert(entity); 64 } 64 65 public void Delete(T entity) 65 66 { … … 82 83 return DataContext.GetTable<T>(); 83 84 } 84 public IQueryable< vPlatnosciEcard> FindInvoiceByNipNumber(string nip, string numer)85 public IQueryable<Invoice> FindInvoiceByNipNumber(string nip, string numer) 85 86 { 86 87 return DataContext.FindInvoiceByNipNumber(nip, numer); -
trunk/eCard/eCardMVC/adMoto.Payments.Core/Translation.cs
r949 r970 1 1 using System.Web; 2 using Platnosci.Core.Interface;2 using adMoto.Payments.Core.Interfaces; 3 3 4 namespace Platnosci.Core.Linq4 namespace adMoto.Payments.Core 5 5 { 6 6 public class Translation: ITranslateManager -
trunk/eCard/eCardMVC/adMoto.Payments.Core/Waluta.cs
r949 r970 1 namespace Platnosci.Core.Linq1 namespace adMoto.Payments.Core 2 2 { 3 3 public class Waluta
