Exemplo n.º 1
0
 public OrganisationToken(ltext token_prefix,
                             string _Name,
                             string _Tax_ID,
                             string _Registration_ID,
                             string _Atom_Office_Name,
                             string _BankName,
                             string _TRR,
                             string _Email,
                             string _HomePage,
                             string _PhoneNumber,
                             string _FaxNumber,
                             byte[] _Logo_Data)
 {
     tName                    = new TemplateToken(token_prefix, new string[] { "Name", "Ime" }, _Name,null);
     tTax_ID                  = new TemplateToken(token_prefix, new string[] { "Tax_ID", "DavčnaŠtevilka" }, _Tax_ID, null);
     tRegistration_ID         = new TemplateToken(token_prefix, new string[] { "Regsitration_ID", "MatičnaŠtevilka" }, _Registration_ID, null);
     tAtom_Office_Name        = new TemplateToken(token_prefix, new string[] { "Office", "PoslovnaEnota" }, _Atom_Office_Name, null);
     tBankName                = new TemplateToken(token_prefix, new string[] { "BankName", "Banka" }, _BankName, null);
     tTRR                     = new TemplateToken(token_prefix, new string[] { "BankAccount", "Bančni račun" }, _TRR, null);
     tEmail                   = new TemplateToken(token_prefix, new string[] { "Email", "Email" }, _Email, null);
     tHomePage                = new TemplateToken(token_prefix, new string[] { "HomePage", "DomačaStran" }, _HomePage, null);
     tPhoneNumber             = new TemplateToken(token_prefix, new string[] { "PhoneNumber", "Telefon" }, _PhoneNumber, null);
     tFaxNumber               = new TemplateToken(token_prefix, new string[] { "FaxNumber", "Fax" }, _FaxNumber, null);
     tLogo_Data               = new TemplateToken(token_prefix, new string[] { "Logo", "Logo" }, _Logo_Data, null);
     AddList();
 }
Exemplo n.º 2
0
 public PersonToken(ltext token_prefix,
                         bool Gender,
                         string FirstName,
                         string LastName,
                         DateTime DateOfBirth,
                         string Tax_ID,
                         string Registration_ID,
                         string MobilePhoneNumber,
                         string PhoneNumber,
                         string Email,
                         string CardNumber,
                         string CardType)
 {
     tGender = new TemplateToken(token_prefix, new string[] { "Gender", "Spol" }, DBTypes.func.GenderAsString(Gender), null);
     tFirstName = new TemplateToken(token_prefix, new string[] { "FirstName", "Ime" }, FirstName, null);
     tLastName = new TemplateToken(token_prefix, new string[] { "LastName", "Priimek" }, LastName, null);
     tDateOfBirth = new TemplateToken(token_prefix, new string[] { "DateOfBirth", "DatumRojstva" }, DBTypes.func.Get_DATE_dd_mm_yyyy(DateOfBirth), null);
     tTaxID = new TemplateToken(token_prefix, new string[] { "Tax_ID", "DavčnaŠtevilka" }, Tax_ID, null);
     tRegistration_ID = new TemplateToken(token_prefix, new string[] { "Registration_ID", "MatičnaŠtevilka" }, Registration_ID, null);
     tMobilePhoneNumber = new TemplateToken(token_prefix, new string[] { "MobilePhoneNumber", "MobilnaTelefonŠtevilka" }, MobilePhoneNumber, null);
     tPhoneNumber = new TemplateToken(token_prefix, new string[] { "PhoneNumber", "TelefonskaŠtevilka" }, PhoneNumber, null);
     tEmail = new TemplateToken(token_prefix, new string[] { "Email", "Email" }, Email, null);
     tCardNumber = new TemplateToken(token_prefix, new string[] { "CardNumber", "ŠtevilkaKartice" }, CardNumber, null);
     tCardType = new TemplateToken(token_prefix, new string[] { "CardType", "VrstaKartice" }, CardType, null);
     AddList();
 }
Exemplo n.º 3
0
 public AddressToken(ltext token_prefix)
 {
     tStreet = new TemplateToken(token_prefix, new string[] { "Street", "Cesta" }, "", null);
     tHouseNumber = new TemplateToken(token_prefix, new string[] { "HouseNumber", "HišnaŠtevilka" }, "", null);
     tZIP = new TemplateToken(token_prefix, new string[] { "ZIP", "Pošta" }, "", null);
     tCity = new TemplateToken(token_prefix, new string[] { "City", "Kraj" }, "", null);
     tCountry= new TemplateToken(token_prefix, new string[] { "Country", "Država" }, "", null);
     tState = new TemplateToken(token_prefix, new string[] { "State", "Dežela" }, "", null);
     AddList();
 }
Exemplo n.º 4
0
        public Invoice_FURS_Token()
        {
            tUniqueMessageID = new TemplateToken(lngToken.st_Invoice, lngToken.st_UniqueMessageID, null, null);
            tUniqueInvoiceID = new TemplateToken(lngToken.st_Invoice, lngToken.st_UniqueInvoiceID, null, null);
            tQR = new TemplateToken(lngToken.st_Invoice, lngToken.st_QR, null, null);

            list = new List<TemplateToken>();
            list.Add(tUniqueMessageID);
            list.Add(tUniqueInvoiceID);
            list.Add(tQR);
        }
Exemplo n.º 5
0
        public PersonToken(ltext token_prefix)
        {
            tGender = new TemplateToken(token_prefix, new string[] { "Gender", "Spol" }, "",null);
            tFirstName = new TemplateToken(token_prefix, new string[] { "FirstName", "Ime" }, "", null);
            tLastName = new TemplateToken(token_prefix, new string[] { "LastName", "Priimek" }, "", null);
            tDateOfBirth = new TemplateToken(token_prefix, new string[] { "DateOfBirth", "DatumRojstva" }, "", null);
            tTaxID = new TemplateToken(token_prefix, new string[] { "Tax_ID", "DavčnaŠtevilka" }, "", null);
            tRegistration_ID = new TemplateToken(token_prefix, new string[] { "Registration_ID", "MatičnaŠtevilka" }, "", null);
            tMobilePhoneNumber = new TemplateToken(token_prefix, new string[] { "MobilePhoneNumber", "MobilnaTelefonŠtevilka" }, "", null);
            tPhoneNumber = new TemplateToken(token_prefix, new string[] { "PhoneNumber", "TelefonskaŠtevilka" }, "", null);
            tEmail = new TemplateToken(token_prefix, new string[] { "Email", "Email" }, "", null);
            tCardNumber = new TemplateToken(token_prefix, new string[] { "CardNumber", "ŠtevilkaKartice" }, "", null);
            tCardType = new TemplateToken(token_prefix, new string[] { "CardType", "VrstaKartice" }, "", null);

            AddList();
        }
Exemplo n.º 6
0
        public InvoiceToken()
        {
            tFiscalYear = new TemplateToken(lngToken.st_Invoice, lngToken.st_FiscalYear, null,null);
            tInvoiceNumber = new TemplateToken(lngToken.st_Invoice, lngToken.st_Number, null,null);
            tCashier = new TemplateToken(lngToken.st_Invoice, lngToken.st_Cashier, null, null);
            tIssuerOfInvoice = new TemplateToken(lngToken.st_Invoice, lngToken.st_IssuerOfInvoice, null,null);

            tDateOfIssue = new TemplateToken(lngToken.st_Invoice, lngToken.st_DateOfIssue, null,null);
            tDateOfMaturity = new TemplateToken(lngToken.st_Invoice, lngToken.st_DateOfMaturity, null, null);
            tPaymentType = new TemplateToken(lngToken.st_Invoice, lngToken.st_PaymentType, null, null);

            tSumNetPrice = new TemplateToken(lngToken.st_Invoice, lngToken.st_SumNetPrice, null, null);
            tTaxRateName = new TemplateToken(lngToken.st_Invoice, lngToken.st_TaxRateName, null, null);
            tSumTax = new TemplateToken(lngToken.st_Invoice, lngToken.st_SumTax, null, null);
            tTotalSum = new TemplateToken(lngToken.st_Invoice, lngToken.st_TotalSum, null, null);

            tNotice = new TemplateToken(lngToken.st_Invoice, lngToken.st_Notice, null, null);
            tFooter = new TemplateToken(lngToken.st_Invoice, lngToken.st_Footer, null, null);
            tStorno = new TemplateToken(lngToken.st_Invoice, lngToken.st_Storno, null, null);

            list = new List<TemplateToken>();
            list.Add(tFiscalYear);
            list.Add(tInvoiceNumber);
            list.Add(tCashier);
            list.Add(tIssuerOfInvoice);
            list.Add(tDateOfIssue);
            list.Add(tDateOfMaturity);
            list.Add(tPaymentType);
            list.Add(tSumNetPrice);
            list.Add(tTaxRateName);
            list.Add(tSumTax);
            list.Add(tTotalSum);
            list.Add(tNotice);
            list.Add(tFooter);
            list.Add(tStorno);
        }
Exemplo n.º 7
0
        public ItemSoldToken( ltext token_prefix,
                              ltext lt_StoreDivision,
                              string _Item_Name,
                              decimal _RetailPricePerUnit,
                              string _UnitName,
                              decimal _RetailPricePerUnitWithDiscount,
                              string _TaxationName,
                              decimal _dQuantity,
                              decimal _Discount,
                              decimal _ExtraDiscount,
                              string _CurrencySymbol,
                              decimal _TaxationRate,
                              decimal _TotalDiscount,
                              decimal _NetPrice,
                              decimal _TaxPrice,
                              decimal _PriceWithTax)
        {
            tStoreDivision = new TemplateToken(token_prefix, new string[] { "StoreDivision", "OddelekProdaje" }, lt_StoreDivision.s, null);
            tItemName = new TemplateToken(token_prefix, new string[] { "Name", "Ime" }, _Item_Name, null);
            tPricePerUnit = new TemplateToken(token_prefix, new string[] { "PricePerUnit", "CenaNaEnoto" }, _RetailPricePerUnit.ToString(), null);
            tUnit = new TemplateToken(token_prefix, new string[] { "Unit", "MerskaEnota" }, _UnitName, null);
            tDiscount = new TemplateToken(token_prefix, new string[] {"Discount", "Popust" }, _Discount.ToString(), null);
            tDiscountPercent = new TemplateToken(token_prefix, new string[] { "DiscountPercent", "PopustVProcentih" }, (_Discount*100).ToString()+"%", null);
            tExtraDiscount = new TemplateToken(token_prefix, new string[] { "ExtraDiscount", "DodatniPopust" }, _ExtraDiscount.ToString(), null);
            tExtraDiscountPercent = new TemplateToken(token_prefix, new string[] { "ExtraDiscountPercent", "DodatniPopustVProcentih" }, (_ExtraDiscount*100).ToString()+"%", null);
            tCurrency = new TemplateToken(token_prefix, new string[] { "Currency", "Valuta" }, _CurrencySymbol, null);
            if (_dQuantity >= 0)
            {
                tQuantity = new TemplateToken(token_prefix, new string[] { "Quantity", "Količina" }, _dQuantity.ToString(), null);
            }
            else
            {
                tQuantity = new TemplateToken(token_prefix, new string[] { "Quantity", "Količina" }, "", null);
            }
            tTaxationRate = new TemplateToken(token_prefix, new string[] { "TaxationRate", "DavčnaStopnja" }, _TaxationRate.ToString(), null);
            tTaxationRatePercent = new TemplateToken(token_prefix, new string[] { "TaxationRatePercent", "DavčnaStopnjaVProcentih" }, (_TaxationRate*100).ToString()+"%", null);
            tTotalDiscount = new TemplateToken(token_prefix, new string[] { "TotalDiscount", "CelotenPopust" }, _TotalDiscount.ToString(), null);
            tTotalDiscountPercent = new TemplateToken(token_prefix, new string[] { "TotalDiscountPercent", "CelotenPopustVProcentih" }, (_TotalDiscount * 100).ToString() + "%", null);
            tNetPrice = new TemplateToken(token_prefix, new string[] { "NetPrice", "Cena_Brez_DDV" }, _NetPrice.ToString(), null);
            tTax = new TemplateToken(token_prefix, new string[] { "Tax", "Davek" }, _TaxPrice.ToString(), null);
            tPriceWithTax = new TemplateToken(token_prefix, new string[] { "PriceWithTax", "Cena_z_DDV" }, _PriceWithTax.ToString(), null);

            list = new List<TemplateToken>();
            list.Add(tStoreDivision);
            list.Add(tItemName);
            list.Add(tPricePerUnit);
            list.Add(tUnit);
            list.Add(tDiscount);
            list.Add(tDiscountPercent);
            list.Add(tExtraDiscount);
            list.Add(tExtraDiscountPercent);
            list.Add(tCurrency);
            list.Add(tQuantity);
            list.Add(tTaxationRate);
            list.Add(tTaxationRatePercent);
            list.Add(tTotalDiscount);
            list.Add(tTotalDiscountPercent);
            list.Add(tNetPrice);
            list.Add(tTax);
            list.Add(tPriceWithTax);
        }