public API.Magazyny.PartiaTowaru this[API.Magazyny.KierunekPartii kierunek] { get { var e = EnovaHelper.ToEnova(kierunek); return(EnovaHelper.FromEnova <API.Magazyny.PartiaTowaru>(GetObjValue(EnovaObject, "Item", new Type[] { e.GetType() }, new object[] { e }))); } }
public IEnumerable <API.Business.DictionaryItem> WgParent(API.Business.DictionaryItem parent) { var enumerable = GetObjValue(GetValue("WgParent"), "Item", new Type[] { Type.GetType("Soneta.Business.Db.DictionaryItem, Soneta.Business") }, new object[] { EnovaHelper.ToEnova(parent) } ); return(new Business.EnovaEnumerable <API.Business.DictionaryItem>(enumerable)); }
public void UstawTermin(DateTime termin) { var date = EnovaHelper.ToEnova(termin); var platnosci = GetValue("Platnosci") as ICollection; if (platnosci != null) { if (platnosci.Count > 0) { foreach (var platnosc in platnosci) { var p = platnosc.GetType().GetProperty("Termin"); if (p != null) { p.SetValue(platnosc, date, null); } } } else { } } }
public API.Handel.DokumentHandlowy KorygujDokument(API.Handel.DokumentHandlowy d1) { return((API.Handel.DokumentHandlowy)EnovaHelper.FromEnova(CallMethod("KorygujDokument", EnovaHelper.ToEnova(d1)))); }
public API.Towary.ICena this[API.Towary.DefinicjaCeny definicja] { get { return((API.Towary.ICena)EnovaHelper.FromEnova(GetValue("Item", new object[] { EnovaHelper.ToEnova(definicja) }))); } }