Exemplo n.º 1
0
        public static T_COM_Master_EmployeeCollection Search(SearchFilter SearchKey)
        {
            T_COM_Master_EmployeeCollection collection = new T_COM_Master_EmployeeCollection();

            using (var reader = SqlHelper.ExecuteReaderService(ModuleConfig.MyConnection, "T_COM_Master_Employee_Search", SearchFilterManager.SqlSearchConditionNoCompany(SearchKey)))
            {
                while (reader.Read())
                {
                    T_COM_Master_Employee obj = new T_COM_Master_Employee();
                    obj = GetItemFromReader(reader);
                    collection.Add(obj);
                }
            }
            return(collection);
        }
Exemplo n.º 2
0
        public static T_COM_Master_EmployeeCollection GetbyUser(string CreatedUser)
        {
            T_COM_Master_EmployeeCollection collection = new T_COM_Master_EmployeeCollection();
            T_COM_Master_Employee           obj;

            using (var reader = SqlHelper.ExecuteReaderService(ModuleConfig.MyConnection, "T_COM_Master_Employee_GetAll_byUser", new SqlParameter("@CreatedUser", CreatedUser)))
            {
                while (reader.Read())
                {
                    obj = GetItemFromReader(reader);
                    collection.Add(obj);
                }
            }
            return(collection);
        }
Exemplo n.º 3
0
        public static T_COM_Master_EmployeeCollection GetAllItem()
        {
            T_COM_Master_EmployeeCollection collection = new T_COM_Master_EmployeeCollection();

            using (var reader = SqlHelper.ExecuteReaderService(ModuleConfig.MyConnection, "T_COM_Master_Employee_GetAll", null))
            {
                while (reader.Read())
                {
                    T_COM_Master_Employee obj = new T_COM_Master_Employee();
                    obj = GetItemFromReader(reader);
                    collection.Add(obj);
                }
            }
            return(collection);
        }