Beispiel #1
0
        public UniversalEntity RetrieveLikeSurname(string name)
        {
            FAbonentDAO entDAO = new FAbonentDAO();

            sc             = new SqlCommand("RetrieveFAbonentLikeSurname");
            sc.CommandType = CommandType.StoredProcedure;
            sc.Parameters.Add("@name", name);
            return(entDAO.retrieveEntity(sc));
        }
Beispiel #2
0
        public UniversalEntity RetrieveVodomerAbonentOrderByID(int id)
        {
            FAbonentDAO entDAO = new FAbonentDAO();

            sc             = new SqlCommand("RetrieveFAbonentByOrderByVodomerID");
            sc.CommandType = CommandType.StoredProcedure;
            sc.Parameters.Add("@OrderID", id);
            return(entDAO.retrieveEntity(sc));
        }
Beispiel #3
0
        /*public bool UpdateClientPerson(FAbonent ent)
         * {
         *  bool success = true;
         *  FAbonentDAO entDAO = new FAbonentDAO();
         *  sc = new SqlCommand("UpdateClientPerson");
         *  sc.CommandType = CommandType.StoredProcedure;
         *  sc.Parameters.Add("@ID", ent.ID);
         *  addParameters(ent);
         *  success = entDAO.updateEntity(sc);
         *  return success;
         * }*/
        public UniversalEntity RetrieveClientPersonById(int id)
        {
            FAbonentDAO entDAO = new FAbonentDAO();

            sc             = new SqlCommand("RetrieveClientPersonById");
            sc.CommandType = CommandType.StoredProcedure;
            sc.Parameters.Add("@ID", id);
            return(entDAO.retrieveEntity(sc));
        }