Example #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            string responseJson;

            using (StreamReader sr = new StreamReader("response.json"))
            {
                responseJson = sr.ReadToEnd();
            }

            PaymentDoc payment = JsonConvert.DeserializeObject <PaymentDoc>(responseJson, Startup.JsonSettings);
        }
Example #2
0
 protected override void Init()
 {
     base.Init();
     InsertMenuOptions(new MenuOption("Listing", _module + "default.html"));
     if (Settings.RecordVat)
     {
         InsertMenuOptions(new MenuOption("VAT codes", _module + "vatcodes.html"));
     }
     if (!SecurityOn || UserAccessLevel >= AccessLevel.ReadWrite)
     {
         InsertMenuOptions(
             new MenuOption("New " + Name, _module + "detail.html?id=0"),
             new MenuOption("New " + InvoiceDoc.UnCamel(), _module + "document.html?id=0&type=" + (int)InvoiceDoc),
             new MenuOption("New " + CreditDoc.UnCamel(), _module + "document.html?id=0&type=" + (int)CreditDoc),
             new MenuOption("New " + PaymentDoc.UnCamel(), _module + "payment.html?id=0")
             );
     }
 }