예제 #1
0
        /// <summary>
        /// Function to get values for search based on parameters
        /// </summary>
        /// <param name="fromDate"></param>
        /// <param name="toDate"></param>
        /// <param name="decVoucherTypeId"></param>
        /// <param name="strVoucherNo"></param>
        /// <param name="decLedgerId"></param>
        /// <param name="decEmployeeId"></param>
        /// <returns></returns>
        public List <DataTable> VoucherSearchFill(DateTime fromDate, DateTime toDate, decimal decVoucherTypeId, string strVoucherNo, decimal decLedgerId, decimal decEmployeeId)
        {
            List <DataTable> listObj = new List <DataTable>();

            try
            {
                listObj = spVoucherType.VoucherSearchFill(fromDate, toDate, decVoucherTypeId, strVoucherNo, decLedgerId, decEmployeeId);
            }
            catch (Exception ex)
            {
                MessageBox.Show("VT2:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            return(listObj);
        }