protected override void Print()
        {
            var ds    = new DS_CashboxOrder();
            var table = ds.T_Cashbox;

            table.AddEmptyRow();
            table[0].ID         = ConvertHelper.ToInt32(ID);
            table[0].Company    = GlobalVariable.MyCompanyName;
            table[0].Branch     = lookBranch.Text;
            table[0].ActNumber  = ActNumber;
            table[0].OrderDate  = dateOrderDate.DateTime.Date;
            table[0].SubAccount = SubAccount;
            table[0].AnalyticalAccountingCode = AnalyticalAccountingCode;
            table[0].Amount = Amount;

            table[0].CurrencySymbol = NumToStrHelper.ToCurrencySymbol(lookCurrency.Text);
            table[0].AmountToStr    = NumToStrHelper.CurrToStr(Amount, NumToStrHelper.ToCurrencyName(lookCurrency.Text), NumToStrHelper.ToCurrencyMinorUnit(lookCurrency.Text));

            table[0].SpecialPurposeCode = SpecialPurposeCode;
            table[0].IssuedPerson       = bbPerson.Text;
            var person = PersonManager.GetPerson(IssuedPersonID);

            if (person.Count > 0)
            {
                table[0].IssuedPersonPersonalNumber = person[0].PersonalNumber;
            }
            table[0].Basis         = lookBasis.Text;
            table[0].Enclosure     = Enclosure;
            table[0].WarrantNumber = WarrantNumber;

            Zek.Report.ReportHelper.Show(MdiParent, Text, Reports.ReportName.CashboxOrder, ds);
        }
        public static DS_Currency.DD_CurrencyDataTable GetCurrencies(DS_Dictionary.SP_GetDictionaryDataTable table)
        {
            var result = new DS_Currency.DD_CurrencyDataTable();

            foreach (var row in table)
            {
                result.AddDD_CurrencyRow(result.Count + 1, row.ID, NumToStrHelper.ToCurrencyName(row.ID), NumToStrHelper.ToCurrencyMinorUnit(row.ID), NumToStrHelper.ToCurrencySymbol(row.ID), ConvertHelper.ToDecimal(row[table.CodeColumn]));
            }

            return(result);
        }