protected void btnSubmit_Click(object sender, EventArgs e) { JobsDTO dto = (JobsDTO)Session["JobsDTO"]; ModelFacade facade = new ModelFacade(); Jobs job = facade.createJob(dto); JobsDAO dao = new JobsDAO(); dao.issueJob(job); Session.Abandon(); Response.Redirect("~/Staff/AdminHome.aspx"); }
protected void btnSubmit_Click(object sender, EventArgs e) { Jobs job = new Jobs(); job.jobID = lblJobID.Text; job.partID = lblPartID.Text; job.hoursWorked = lblHoursWorked.Text; job.dateCompleted = lblDateCompleted.Text; JobsDAO dao = new JobsDAO(); dao.completeJob(job); Session.Abandon(); Response.Redirect("~/Technicians/TechniciansHome.aspx"); }
protected void btnSubmit_Click(object sender, EventArgs e) { String newID = lblID.Text; String newItem = dropDownItemID.SelectedValue; String newTechnician = dropDownTechID.SelectedValue; job.jobID = newID; job.itemID = newItem; job.techID = newTechnician; job.dateAssigned = calNewDate.SelectedDate.ToShortDateString(); JobsDAO dao = new JobsDAO(); dao.reIssueJob(job); Session.Abandon(); Response.Redirect("~/Staff/AdminHome.aspx"); }
public JobsBAL() { _jobsDAO = new JobsDAO(); }
public int UpdateStatus(string id, string status) { int result = new JobsDAO().UpdateStatus(id, status); return(result); }
public Jobs SelectByCidSid(string cid, string sid) { Jobs job = new JobsDAO().SelectByCidSid(cid, sid); return(job); }
public List <Jobs> SelectByCid(string cid) { List <Jobs> jobs = new JobsDAO().SelectByCid(cid); return(jobs); }
public List <Jobs> SelectByUid(string uid) { List <Jobs> jobs = new JobsDAO().SelectByUid(uid); return(jobs); }
public Jobs SelectById(string id) { Jobs job = new JobsDAO().SelectById(id); return(job); }
public int AddJob() { int result = new JobsDAO().Insert(this); return(result); }