internal void Fill(WmXmlPackage wmXmlPackage) { if (null == wmXmlPackage) { throw new ArgumentNullException(nameof(wmXmlPackage)); } Id = wmXmlPackage.SelectUInt32("@id"); InvoiceAllowed = wmXmlPackage.SelectBool("@inv"); TransferAllowed = wmXmlPackage.SelectBool("@trans"); BalanceAllowed = wmXmlPackage.SelectBool("@purse"); HistoryAllowed = wmXmlPackage.SelectBool("@transhist"); Master = wmXmlPackage.SelectWmId("master"); if (wmXmlPackage.Exists("purse") && !string.IsNullOrEmpty(wmXmlPackage.SelectString("purse"))) { Purse = wmXmlPackage.SelectPurse("purse"); } Hours24Limit = wmXmlPackage.SelectAmount("daylimit"); DayLimit = wmXmlPackage.SelectAmount("dlimit"); WeekLimit = wmXmlPackage.SelectAmount("wlimit"); MonthLimit = wmXmlPackage.SelectAmount("mlimit"); DayAmount = wmXmlPackage.SelectAmount("dsum"); WeekAmount = wmXmlPackage.SelectAmount("wsum"); MonthAmount = wmXmlPackage.SelectAmount("msum"); LastDate = wmXmlPackage.SelectWmDate("lastsumdate"); }