public PaymentInvoice GetInvoice(string invoiceid, string ownerid, string creatorid)
        {
            Business.DataLayer bd = new Business.DataLayer();


            Business.AppInvoice appinv      = bd.GetInvoice(invoiceid, ownerid, creatorid);
            PaymentInvoice      tempinvoice = new PaymentInvoice();

            tempinvoice.invoicedata   = appinv.data;
            tempinvoice.createddate   = appinv.createddate;
            tempinvoice.invstatus     = appinv.status;
            tempinvoice.toaccid       = "";
            tempinvoice.toaccountname = "";
            return(tempinvoice);
        }
Esempio n. 2
0
        public AppInvoice GetInvoice(string invoiceid, string ownerid, string creatorid)
        {
            AppInvoice tempinvoice = new AppInvoice();

            try
            {
                ApplicationService.AppServiceClient client = new ApplicationService.AppServiceClient();
                ApplicationService.invoice          inv    = client.GetInvoice(ownerid, invoiceid, creatorid);
                tempinvoice.data        = inv.invoicedata;
                tempinvoice.createddate = inv.createddate;
                tempinvoice.creatorid   = inv.creatorid;
                tempinvoice.fileurl     = inv.fileid;
                tempinvoice.InvoiceId   = inv.invoiceid;
                tempinvoice.status      = inv.status.ToString();
            }
            catch
            {
            }
            return(tempinvoice);
        }
Esempio n. 3
0
        public List <AppInvoice> GetAlliInvoices(string ownerid, string creatorid, string type, string objecttype)
        {
            List <AppInvoice> InvoiceCollection = new List <AppInvoice>();

            ApplicationService.AppServiceClient client   = new ApplicationService.AppServiceClient();
            ApplicationService.invoice[]        invoices = client.GetAllInvoice(ownerid, creatorid, objecttype, type);


            foreach (ApplicationService.invoice inv in invoices)
            {
                AppInvoice tempinvoice = new AppInvoice();

                tempinvoice.data        = inv.invoicedata;
                tempinvoice.createddate = inv.createddate;
                tempinvoice.creatorid   = inv.creatorid;
                tempinvoice.fileurl     = inv.fileid;
                tempinvoice.InvoiceId   = inv.invoiceid;
                tempinvoice.status      = inv.status.ToString();
                InvoiceCollection.Add(tempinvoice);
            }


            return(InvoiceCollection);
        }
        public AppInvoice GetInvoice(string invoiceid, string ownerid, string creatorid)
        {
            AppInvoice tempinvoice = new AppInvoice();

            try
            {
                ApplicationService.AppServiceClient client = new ApplicationService.AppServiceClient();
                ApplicationService.invoice inv = client.GetInvoice(ownerid, invoiceid, creatorid);
                tempinvoice.data = inv.invoicedata;
                tempinvoice.createddate = inv.createddate;
                tempinvoice.creatorid = inv.creatorid;
                tempinvoice.fileurl = inv.fileid;
                tempinvoice.InvoiceId = inv.invoiceid;
                tempinvoice.status = inv.status.ToString();
            }
            catch
            {

            }
            return tempinvoice;
        }
        public List<AppInvoice> GetAlliInvoices(string ownerid, string creatorid, string type, string objecttype)
        {
            List<AppInvoice> InvoiceCollection = new List<AppInvoice>();

            ApplicationService.AppServiceClient client = new ApplicationService.AppServiceClient();
            ApplicationService.invoice[] invoices = client.GetAllInvoice(ownerid, creatorid, objecttype, type);

            foreach (ApplicationService.invoice inv in invoices)
            {
                AppInvoice tempinvoice = new AppInvoice();

                tempinvoice.data = inv.invoicedata;
                tempinvoice.createddate = inv.createddate;
                tempinvoice.creatorid = inv.creatorid;
                tempinvoice.fileurl = inv.fileid;
                tempinvoice.InvoiceId = inv.invoiceid;
                tempinvoice.status = inv.status.ToString();
                InvoiceCollection.Add(tempinvoice);
            }

            return InvoiceCollection;
        }