예제 #1
0
    public string DeleteOrdersAndGetInvalidIds(string[][] orderIds)
    {
        string        result   = string.Empty;
        Stack <Int32> orderNrs = new Stack <int>(orderIds.Length);

        try
        {
            foreach (string[] item in orderIds)
            {
                orderNrs.Push(Int32.Parse(item[0]));
            }
            result = new Boeijenga.Business.Facade().DeleteOrdersAndGetInvalidIds(orderNrs.ToArray());
        }
        catch (Exception ex)
        {
            Boeijenga.Common.Utils.LogWriter.Log(ex);
            result = string.Format("Order cannot be ready:{0}", ex.Message);
        }
        return(result);
    }
예제 #2
0
    public string PrintDutchInvoice(string[][] invoiceIds)
    {
        string        result     = string.Empty;
        Stack <Int32> invoiceNrs = new Stack <int>(invoiceIds.Length);

        try
        {
            foreach (string[] item in invoiceIds)
            {
                invoiceNrs.Push(Int32.Parse(item[0]));
            }
            result = new Boeijenga.Business.Facade().PrintInvoice(invoiceNrs.ToArray(), "nl-NL");
        }
        catch (Exception ex)
        {
            Boeijenga.Common.Utils.LogWriter.Log(ex);
            result = string.Format("invoice status cannot update as sent:{0}", ex.Message);
        }
        return(result);
    }