Пример #1
0
 public bool Save <T>(T entry, bool isNew)
 {
     if (entry is FirmModel)
     {
         return(RealDataContext.UpdateFirma(entry as FirmModel, isNew));
     }
     return(true);
 }
Пример #2
0
 public Purchases GetPurchases(int month, int year)
 {
     return(RealDataContext.GetPurchases(month, year));
 }
Пример #3
0
 public FirmModel GetFirmById(int id)
 {
     return(RealDataContext.GetAllFirma().FirstOrDefault(e => e.Id == id));
 }
Пример #4
0
 public IEnumerable <City> GetAllCity()
 {
     //return FakeDataContext.GetAllSity();
     return(RealDataContext.GetAllCityFromXML());
 }
Пример #5
0
 public IEnumerable <AccItemSaldo> GetInfoFactura(int acc, int type, string fn, string constr)
 {
     return(RealDataContext.GetInfoFactura(acc, type, fn, constr));
 }
Пример #6
0
 public List <List <string> > GetVies(int month, int year, Dictionary <string, string> declar)
 {
     return(RealDataContext.GetVies(month, year, declar));
 }
Пример #7
0
 public IEnumerable <FirmModel> GetAllFirma()
 {
     //return FakeDataContext.GetAllFirma();
     return(RealDataContext.GetAllFirma());
 }
Пример #8
0
 public List <List <string> > GetAllMovementsDetails(int p, int p_2, int p_3, out string sumalvk, out string sumalvd, out string sumalvdsub, out string sumalvksub)
 {
     return(RealDataContext.GetAllMovementsDetail(p, p_2, p_3, out sumalvk, out sumalvd, out sumalvdsub, out sumalvksub));
 }
Пример #9
0
 public AccSaldo GetSaldoAcc(int accId)
 {
     return(RealDataContext.GetSaldoAcc(accId));
 }
Пример #10
0
 public IEnumerable <InvoiseControl> GetFullInvoiseContoCredit(int accId)
 {
     return(RealDataContext.GetFullInvoiseContoCredit(accId));
 }
Пример #11
0
 public void CopyAccFromYtoY(int firmaId, int fromYear, int toYear)
 {
     RealDataContext.CopyAccFromYtoY(firmaId, fromYear, toYear);
 }
Пример #12
0
 public List <List <string> > GetOborotnaVed(DateTime toDate, DateTime fromDate)
 {
     return(RealDataContext.GetOborotnaVed(toDate, fromDate));
 }
Пример #13
0
 public IEnumerable <Conto> GetAllConto(int p, ISearchAcc pSearcAcc)
 {
     return(RealDataContext.GetAllConto(p, pSearcAcc));
 }
Пример #14
0
 public IEnumerable <Conto> GetAllConto(int firmaId, int startingIndex, int numberOfRecords)
 {
     return(RealDataContext.GetAllConto(firmaId, startingIndex, numberOfRecords));
 }
Пример #15
0
 public Sells GetSales(int month, int year)
 {
     return(RealDataContext.GetSales(month, year));
 }
Пример #16
0
 public void DeleteKurs(List <ValutaEntity> itemsfordelete)
 {
     RealDataContext.DeleteKurs(itemsfordelete);
 }
Пример #17
0
 public decimal?LoadKursForaDay(DateTime Data, string vidvaluta)
 {
     return(RealDataContext.LoadKursForaDay(Data, vidvaluta));
 }
Пример #18
0
 public IEnumerable <TableField> GetAllLookupsFields()
 {
     return(RealDataContext.GetAllLookupsFields());
 }
Пример #19
0
 public List <SaldoFactura> GetAllAnaliticSaldos(int accid, int firmid)
 {
     return(RealDataContext.GetAllAnaliticSaldos(accid, firmid));
 }
Пример #20
0
 public IEnumerable <IEnumerable <string> > GetSysLookup(string p)
 {
     return(RealDataContext.GetSysLookup(p));
 }
Пример #21
0
 public bool DeleteAllConto(int firmaId)
 {
     return(RealDataContext.DeleteAllConto(firmaId));
 }
Пример #22
0
 public bool CheckLookup(List <string> list, LookupModel lookup)
 {
     return(RealDataContext.CheckLookup(list, lookup));
 }
Пример #23
0
 public int GetAllContoCount(int id, int year)
 {
     return(RealDataContext.GetAllContoCount(id, year));
 }
Пример #24
0
 public string GetSettings(string key)
 {
     return(RealDataContext.GetSettings(key));
 }
Пример #25
0
 public IEnumerable <Country> GetAllCountry()
 {
     //return FakeDataContext.GetAllCountry();
     return(RealDataContext.GetAllCountry());
 }
Пример #26
0
 public void SaveNuberFormats()
 {
     RealDataContext.SaveNuberFormats();
 }
Пример #27
0
 public void SaveKurs(DateTime Data, string Code, decimal Kurs)
 {
     RealDataContext.SaveKurs(Data, Code, Kurs);
 }
Пример #28
0
 public IEnumerable <ValutaEntity> GetCurRates(string codevaluta, DateTime fromDate, DateTime toDate)
 {
     return(RealDataContext.GetCurRates(codevaluta, fromDate, toDate));
 }
Пример #29
0
 public FirmModel GetLastFirst()
 {
     return(RealDataContext.GetAllFirma().First());
 }
Пример #30
0
 public void ExecuteQuery(string getQuery, DataTable items)
 {
     RealDataContext.ExecuteQuery(getQuery, items);
 }