Example #1
0
        public DataTable getLastRow()
        {
            DataTable tbl = new DataTable();

            tbl = BookPlaceServeice.getLastRow();


            return(tbl);
        }
Example #2
0
        public void getRow(int row)
        {
            DataTable tbl = new DataTable();

            tbl = BookPlaceServeice.getAllData();

            iBookPlace.ID      = Convert.ToInt32(tbl.Rows[row][0]);
            iBookPlace.CatName = Convert.ToString(tbl.Rows[row][1]);

            iBookPlace.btnSave      = true;
            iBookPlace.btnDelete    = true;
            iBookPlace.btnDeleteAll = true;
            iBookPlace.btnAdd       = false;
        }
Example #3
0
        public void AutoNumber()
        {
            string test = (BookPlaceServeice.getMaxID().Rows[0][0]).ToString();

            if (test == null || test == "")
            {
                iBookPlace.ID = 1;
            }
            else
            {
                iBookPlace.ID = Convert.ToInt32(BookPlaceServeice.getMaxID().Rows[0][0]) + 1;
            }
            iBookPlace.CatName      = "";
            iBookPlace.btnSave      = false;
            iBookPlace.btnDelete    = false;
            iBookPlace.btnDeleteAll = false;
            iBookPlace.btnAdd       = true;
            ShowInGridView();
        }
Example #4
0
 public void ShowInGridView()
 {
     iBookPlace.dGVPlace = BookPlaceServeice.getAllData();
 }
Example #5
0
 public bool BookPlaceDelete()
 {
     connectBetweenModelInterface();
     return(BookPlaceServeice.bookPlaceDelete(bookPlacesModel.ID));
 }
Example #6
0
 public bool BookPlaceDeleteAll()
 {
     return(BookPlaceServeice.bookPlaceDeleteAll());
 }
Example #7
0
 public bool BookPlaceUpdate()
 {
     connectBetweenModelInterface();
     return(BookPlaceServeice.bookPlaceUpdate(bookPlacesModel.ID, bookPlacesModel.CatName));
 }