Пример #1
0
        public static SearchCatalogByTextEntity[] SearchCatalogbyText(SearchCatalogByConditionEntity obj)
        {
            List <SearchCatalogByTextEntity> details = new List <SearchCatalogByTextEntity>();

            try
            {
                details = new GenericDAO().SearchCatalogbyText(obj);
            }
            catch (Exception ex)
            {
                // details.Add(new DbStatusEntity(ex.Message));
            }
            return(details.ToArray());
        }
Пример #2
0
        public static string[] VerifyLedgerbyName(string str)
        {
            List <string> ledgers = new List <string>();

            try
            {
                ledgers = new GenericDAO().GetLedgerbyName(str);
            }
            catch (Exception ex)
            {
                // details.Add(new DbStatusEntity(ex.Message));
            }
            return(ledgers.ToArray());
        }
Пример #3
0
        public static UserRightsEntity[] GetUserRights()
        {
            var details = new List <UserRightsEntity>();

            try
            {
                details = new GenericDAO().GetUserRights(Convert.ToInt64(HttpContext.Current.Session["USER_ID"]));
            }
            catch (Exception ex)
            {
                //details.Add(new DbStatusEntity(ex.Message));
            }
            return(details.ToArray());
        }
Пример #4
0
        public static string[] GetLatestTrasnsactionNumber()
        {
            List <string> lstvalues = new List <string>();

            try
            {
                lstvalues = new GenericDAO().GetLatestTrasnsactionNumber("OUTWARD");
            }
            catch (Exception ex)
            {
                // details.Add(new DbStatusEntity(ex.Message));
            }
            return(lstvalues.ToArray());
        }
Пример #5
0
        public static RoleMasterEntity[] GetRoles() //Show the details of the data after insert in HTML Table
        {
            var details = new List <RoleMasterEntity>();

            try
            {
                details = new GenericDAO().GetActiveRoleList();
            }
            catch (Exception ex)
            {
                // details.Add(new DbStatusEntity(ex.Message));
            }
            return(details.ToArray());
        }
Пример #6
0
        public static OutwardTypeMasterEntity[] GetActiveOutwardTypeList()
        {
            var details = new List <OutwardTypeMasterEntity>();

            try
            {
                details = new GenericDAO().GetActiveOutwardTypeList();
            }
            catch (Exception ex)
            {
                // details.Add(new DbStatusEntity(ex.Message));
            }
            return(details.ToArray());
        }
Пример #7
0
        public static string[] GetCurrentDate()
        {
            List <string> lstvalues = new List <string>();

            try
            {
                lstvalues = new GenericDAO().GetCurrentDate();
            }
            catch (Exception ex)
            {
                // details.Add(new DbStatusEntity(ex.Message));
            }
            return(lstvalues.ToArray());
        }
Пример #8
0
        public static CityStateMasterEntity[] GetCityByState(string str) //Show the details of the data after insert in HTML Table
        {
            var details = new List <CityStateMasterEntity>();

            try
            {
                details = new GenericDAO().GetCityByState(str);
            }
            catch (Exception ex)
            {
                // details.Add(new DbStatusEntity(ex.Message));
            }
            return(details.ToArray());
        }
Пример #9
0
        public static ClientSearchEntity[] GetClientSearchList(string filterby, string filtertext)
        {
            var details = new List <ClientSearchEntity>();

            try
            {
                details = new GenericDAO().GetClientSearchList(filterby, filtertext);
            }
            catch (Exception ex)
            {
                // details.Add(new DbStatusEntity(ex.Message));
            }
            return(details.ToArray());
        }
Пример #10
0
        public static GenericIdNameEntity[] GetActiveTaskStages()
        {
            var details = new List <GenericIdNameEntity>();

            try
            {
                details = new GenericDAO().GetActiveTaskStagesList();
            }
            catch (Exception ex)
            {
                // details.Add(new DbStatusEntity(ex.Message));
            }
            return(details.ToArray());
        }
Пример #11
0
        public static PendingBillsByClient[] GetPendingBillsbyClientID(Int64 id)
        {
            var details = new List <PendingBillsByClient>();

            try
            {
                details = new GenericDAO().GetPendingBillsbyClientID(id);
            }
            catch (Exception ex)
            {
                // details.Add(new DbStatusEntity(ex.Message));
            }
            return(details.ToArray());
        }
Пример #12
0
        public static PendingBillClients[] GetPendingBillsCustomers()
        {
            var details = new List <PendingBillClients>();

            try
            {
                details = new GenericDAO().GetPendingBillsCustomers();
            }
            catch (Exception ex)
            {
                // details.Add(new DbStatusEntity(ex.Message));
            }
            return(details.ToArray());
        }
Пример #13
0
        public static TransSeriesEntity [] GetData() //Show the details of the data after insert in HTML Table
        {
            var details = new List <TransSeriesEntity>();

            try
            {
                details = new GenericDAO().GetSeriesNoList();
            }
            catch (Exception ex)
            {
                // details.Add(new DbStatusEntity(ex.Message));
            }
            return(details.ToArray());
        }