Beispiel #1
0
        public AjaxResult GetInvoiceByExpenditureNumber(string expenditureNumber)
        {
            var ajaxResult = new AjaxResult();

            try
            {
                using (InvoiceBL invoiceBL = new InvoiceBL())
                {
                    ajaxResult.Data    = invoiceBL.GetInvoiceByExpenditureNumber(expenditureNumber);
                    ajaxResult.Success = true;
                }
            }
            catch (Exception)
            {
                ajaxResult.Success   = false;
                ajaxResult.Messenger = "Có lỗi xảy ra khi lấy hóa đơn theo số phiếu chi. Vui lòng liên hệ MISA!";
            }
            return(ajaxResult);
        }