public JsonResult UpdateAgentShift(string txtTargetDate, int ddlShift, string agentShift)
 {
     using (WFMDBDataContext db = new WFMDBDataContext())
     {
         db.uspWFMInsertOrUpdateShiftAgentSpecial(agentShift, DateTime.Parse(txtTargetDate), DateTime.Parse(txtTargetDate), ddlShift);
     }
     return(this.Json(new { status = "ok" }, JsonRequestBehavior.AllowGet));
 }
Ejemplo n.º 2
0
 public ActionResult Edit(string vAgentID, string dtStart, string dtEnd, string ddlShift)
 {
     using (WFMDBDataContext db = new WFMDBDataContext())
     {
         db.uspWFMInsertOrUpdateShiftAgentSpecial(vAgentID, DateTime.Parse(dtStart), DateTime.Parse(dtEnd), int.Parse(ddlShift));
     }
     return(RedirectToAction("index"));
 }
Ejemplo n.º 3
0
 public ActionResult Edit(string vAgentID, string dtStart, string dtEnd, string ddlShift)
 {
     using (WFMDBDataContext db = new WFMDBDataContext())
     {
         db.uspWFMInsertOrUpdateShiftAgentSpecial(vAgentID, DateTime.Parse(dtStart), DateTime.Parse(dtEnd), int.Parse(ddlShift));
     }
     return RedirectToAction("index");
 }
Ejemplo n.º 4
0
 public JsonResult UpdateAgentShift(string txtTargetDate, int ddlShift, string agentShift)
 {
     using (WFMDBDataContext db = new WFMDBDataContext())
     {
         db.uspWFMInsertOrUpdateShiftAgentSpecial(agentShift, DateTime.Parse(txtTargetDate), DateTime.Parse(txtTargetDate), ddlShift);
     }
     return this.Json(new { status="ok"}, JsonRequestBehavior.AllowGet);
 }