public ItemVariantAddPage(InvJournalLineClient line, InvJournal master) : base(null) { this.journalMaster = master; this.journalLine = line; this.invItem = journalLine.InvItem; IsInvJrnLine = true; InitPage(); }
public InventoryJournalLines(UnicontaBaseEntity master) : base(master) { InitPage(); journal = master as InvJournal; if (journal != null) { dgInvJournalLine._AutoSave = journal._AutoSave; dgInvJournalLine.UpdateMaster(master); } }
public override void SetParameter(IEnumerable <ValuePair> Parameters) { foreach (var rec in Parameters) { if (string.Compare(rec.Name, "Journal", StringComparison.CurrentCultureIgnoreCase) == 0) { var cache = api.GetCache(typeof(Uniconta.DataModel.InvJournal)) ?? api.LoadCache(typeof(Uniconta.DataModel.InvJournal)).GetAwaiter().GetResult(); journal = (Uniconta.DataModel.InvJournal)cache.Get(rec.Value); if (journal != null) { dgInvJournalLine._AutoSave = journal._AutoSave; dgInvJournalLine.UpdateMaster(journal); } } } base.SetParameter(Parameters); }