public string GetDateFormat()
        {
            IRefundFromSupplierListDAL purInvoice = new RefundFromSuppliersListDAL();
            var result = purInvoice.GetDateFormat();

            return(result);
        }
        public bool SaveSearchJson(string jsonSearch, int ScreenId, string ScreenName)
        {
            IRefundFromSupplierListDAL purInvoice = new RefundFromSuppliersListDAL();
            var result = purInvoice.SaveSearchJson(jsonSearch, ScreenId, ScreenName);

            return(result);
        }
        public string GetLastSelectionData(int ScreenId)
        {
            IRefundFromSupplierListDAL purInvoice = new RefundFromSuppliersListDAL();
            var result = purInvoice.GetLastSelectionData(ScreenId);

            return(result);
        }
        public List <RefundFromSuppliersListEntity> GetAllPurInvoiceJson(string jsondata)
        {
            IRefundFromSupplierListDAL purInvoice = new RefundFromSuppliersListDAL();
            var Invoicelist = purInvoice.GetAllPurInvoiceJson(jsondata);

            foreach (var item in Invoicelist)
            {
                if (item.InvoiceDateDateTime != null)
                {
                    item.InvoiceDate = Convert.ToString(item.InvoiceDateDateTime);
                }
                if (item.InvoiceAmountValue != null)
                {
                    item.InvoiceAmount = Convert.ToString(item.InvoiceAmountValue);
                }

                if (item.CashChequeAmount != null)
                {
                    item.CashAmount = Convert.ToString(item.CashChequeAmount);
                }

                if (item.CashChequeDateDate != null)
                {
                    item.CashChequeDate = Convert.ToString(item.CashChequeDateDate);
                }
            }
            return(Invoicelist);
        }