Ejemplo n.º 1
0
 public JsonResult GetTypeHDTJobGroupID(Guid ID)
 {
     string status = string.Empty;
     if (ID != Guid.Empty)
     {
         var service = new Cat_HDTJobGroupServices();
         var data = service.GetData<Cat_HDTJobGroupModel>(Common.DotNetToOracle(ID.ToString()), ConstantSql.hrm_cat_sp_get_HDTJobGroupById, UserLogin, ref status).ToList();
         if (data == null)
         {
             return Json(null, JsonRequestBehavior.AllowGet);
         }
         var result = from e in data
                      select new
                      {
                          Text = e.Type.TranslateString(),
                          Value = e.Type,
                      };
         return Json(result, JsonRequestBehavior.AllowGet);
     }
     return Json(null, JsonRequestBehavior.AllowGet);
 }
Ejemplo n.º 2
0
 public ActionResult ChangeStatusListHDTJobGroup(string selectedIds, string Status)
 {
     Cat_HDTJobGroupServices Services = new Cat_HDTJobGroupServices();
     ResultsObject result = Services.UpdateStatus(selectedIds, Status);
     return Json(result);
 }