public DataTable getLastRow() { DataTable tbl = new DataTable(); tbl = BookPlaceServeice.getLastRow(); return(tbl); }
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; }
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(); }
public void ShowInGridView() { iBookPlace.dGVPlace = BookPlaceServeice.getAllData(); }
public bool BookPlaceDelete() { connectBetweenModelInterface(); return(BookPlaceServeice.bookPlaceDelete(bookPlacesModel.ID)); }
public bool BookPlaceDeleteAll() { return(BookPlaceServeice.bookPlaceDeleteAll()); }
public bool BookPlaceUpdate() { connectBetweenModelInterface(); return(BookPlaceServeice.bookPlaceUpdate(bookPlacesModel.ID, bookPlacesModel.CatName)); }