Example #1
0
 public void resource_delete(int ID)
 {
     resource.Delete(ID);
     Insert_resource_GridView.DataBind();
     Update_resource_GridView.DataBind();
     Delete_resource_GridView.DataBind();
 }
Example #2
0
 public resource resource_insert()
 {
     resource.Location_ID    = Convert.ToInt32(Insert_Location_ID_txt.Text);
     resource.Resource_Type  = Insert_Resource_Type_txt.Text;
     resource.Date_Requested = Convert.ToDateTime(Insert_Date_Requested_txt.Text);
     resource = resource.Insert(resource);
     Insert_resource_GridView.DataBind();
     Update_resource_GridView.DataBind();
     Delete_resource_GridView.DataBind();
     return(resource);
 }
Example #3
0
 public resource resource_update(int ID)
 {
     resource                = resource.Select(ID);
     resource.Resource_ID    = Convert.ToInt32(Update_Resource_ID_txt.Text);
     resource.Location_ID    = Convert.ToInt32(Update_Location_ID_txt.Text);
     resource.Resource_Type  = Update_Resource_Type_txt.Text;
     resource.Date_Requested = Convert.ToDateTime(Update_Date_Requested_txt.Text);
     resource.Update(resource);
     Insert_resource_GridView.DataBind();
     Update_resource_GridView.DataBind();
     Delete_resource_GridView.DataBind();
     return(resource);
 }