Пример #1
0
        public Models.Customers GetCusById(int id)
        {
            Dao.CusDao cusDao   = new Dao.CusDao();
            var        datalist = cusDao.GetCusById(id);

            return(this.MapCusDetailData(datalist).FirstOrDefault());
        }
Пример #2
0
        public Boolean DeleteCus(int id)
        {
            Dao.CusDao cusDao = new Dao.CusDao();
            var        r      = cusDao.DeleteCus(id);

            return(r);
        }
Пример #3
0
        public Boolean InsertCus(Models.Customers cusData)
        {
            Dao.CusDao cusDao = new Dao.CusDao();
            var        r      = cusDao.InsertCus(cusData);

            return(r);
        }
Пример #4
0
        public List <Models.TextValue> GetContactTitleData()
        {
            Dao.CusDao cusDao = new Dao.CusDao();
            var        dt     = cusDao.GetContactTitle();

            return(this.MapContactTitleData(dt));
        }
Пример #5
0
        public List <Models.CustomerView1> SearchCus(Models.CustomerView1 cus)
        {
            Dao.CusDao cusDao = new Dao.CusDao();
            var        dt     = cusDao.GetCusGridByCondition(cus);

            return(this.MapCusData(dt));
        }
Пример #6
0
        public List <Models.CustomerView1> GetCusGrid()
        {
            Dao.CusDao empDao = new Dao.CusDao();
            var        dt     = empDao.GetCusGrid();

            return(this.MapCusData(dt));
        }