Esempio n. 1
0
        public Invoices  GetSingleInvoicesToBill(string VendorNum, string InvoiceDate)
        {
            try
            {
                string Token         = "";
                string InvoiceStatus = "";

                Invoices invoice = new Invoices();


                IMS    IMS = new IMS();
                IMSDAL DAL = new IMSDAL();
                List <InvoiceHeader> InvoiceHeader = DAL.GetSingleInvoicesToBill(VendorNum, InvoiceDate, ref Token, ref InvoiceStatus);

                string XMLInvoice = IMS.CreateInvoicesSingle(InvoiceHeader);
                invoice.Invoice       = XMLInvoice;
                invoice.Token         = Token;
                invoice.InvoiceStatus = InvoiceStatus;
                return(invoice);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Esempio n. 2
0
 public IMSClassList GetIMSClassList(short loadType, Int32 vendorNo)
 {
     try
     {
         IMSDAL DAL = new IMSDAL();
         return(DAL.GetIMSClassList(loadType, vendorNo));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 3
0
 public short GetExcludeInvoiceDetail(int InvoiceDetailID, string sUser, string strLogDescription, string strFunction, string sPath)
 {
     try
     {
         IMSDAL DAL = new IMSDAL();
         return(DAL.GetExcludeInvoiceDetail(InvoiceDetailID, sUser, strLogDescription, strFunction, sPath));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 4
0
 public short GetUpdateInvoiceDetail(int UpdateID, string InvoiceDetailID, string UpdateValue, string UserID)
 {
     try
     {
         IMSDAL DAL = new IMSDAL();
         return(DAL.GetUpdateInvoiceDetail(UpdateID, InvoiceDetailID, UpdateValue, UserID));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 5
0
 public short GetUpdateInvoiceHotelPort(string InvoiceNumber, string PortNumber, string UserID)
 {
     try
     {
         IMSDAL DAL = new IMSDAL();
         return(DAL.GetUpdateInvoiceHotelPort(InvoiceNumber, PortNumber, UserID));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 6
0
 public List <InvoiceHeader> GetInvoice(string vendorNo, string from, string to, int StatusID)
 {
     try
     {
         IMSDAL DAL = new IMSDAL();
         return(DAL.GetInvoice(vendorNo, from, to, StatusID));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 7
0
 public short GetSubmittedInvoice(short LoadType, int VendorNumber, string InvoiceNumber, string sPath, string sUser
                                  , string Description, string Function, string FileName, string Timezone, DateTime GMTDATE)
 {
     try
     {
         IMSDAL DAL = new IMSDAL();
         return(DAL.GetSubmittedInvoice(LoadType, VendorNumber, InvoiceNumber, sPath, sUser, Description, Function, FileName, Timezone, GMTDATE));
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 8
0
 /// Modified by:      Josephine Monteza
 /// Date Modified:    08/Sept/2016
 /// Description:      Close DataTable for optimization
 /// ======================================
 public void ErrorInvoice(string invoice, DataTable exception, DataTable execeptionDetail, string user)
 {
     try
     {
         IMSDAL DAL = new IMSDAL();
         DAL.ErrorInvoice(invoice, exception, execeptionDetail, user);
     }
     catch (Exception e)
     {
         throw e;
     }
     finally
     {
         if (exception != null)
         {
             exception.Dispose();
         }
         if (execeptionDetail != null)
         {
             execeptionDetail.Dispose();
         }
     }
 }