public void warehouse_delete(int ID) { warehouse.Delete(ID); Insert_warehouse_GridView.DataBind(); Update_warehouse_GridView.DataBind(); Delete_warehouse_GridView.DataBind(); }
public warehouse warehouse_insert() { warehouse.warehouse_name = Insert_warehouse_name_txt.Text; warehouse.address_id = Convert.ToInt32(Insert_address_id_txt.Text); warehouse.warehouse_type = Insert_warehouse_type_txt.Text; warehouse.Location_ID = Convert.ToInt32(Insert_Location_ID_txt.Text); warehouse = warehouse.Insert(warehouse); Insert_warehouse_GridView.DataBind(); Update_warehouse_GridView.DataBind(); Delete_warehouse_GridView.DataBind(); return(warehouse); }
public warehouse warehouse_update(int ID) { warehouse = warehouse.Select(ID); warehouse.warehouse_id = Convert.ToInt32(Update_warehouse_id_txt.Text); warehouse.warehouse_name = Update_warehouse_name_txt.Text; warehouse.address_id = Convert.ToInt32(Update_address_id_txt.Text); warehouse.warehouse_type = Update_warehouse_type_txt.Text; warehouse.Location_ID = Convert.ToInt32(Update_Location_ID_txt.Text); warehouse.Update(warehouse); Insert_warehouse_GridView.DataBind(); Update_warehouse_GridView.DataBind(); Delete_warehouse_GridView.DataBind(); return(warehouse); }