Exemplo n.º 1
0
        public ActionResult Clone(string data)
        {
            CapaActionModel model = new CapaActionModel();

            this.GetJson(" exec usp_CloneCapa " + this.CapaId.ToString() + ", '" + data + "'");
            return(null);
        }
Exemplo n.º 2
0
 public ActionResult GridUpdate([ModelBinder(typeof(DevExpressEditorsBinder))] CapaActionModel model, string clientAction)
 {
     model.CapaId = this.CapaId;
     if (this.ModelState.IsValid)
     {
         if (clientAction == "Add")
         {
             ServiceSystem.Add(EnscoConstants.EntityModel.CapaAction, model, true);
         }
         else if (clientAction == "Delete")
         {
             ServiceSystem.Delete(EnscoConstants.EntityModel.CapaAction, model, true);
         }
         else
         {
             ServiceSystem.Save(EnscoConstants.EntityModel.CapaAction, model, true);
         }
     }
     else
     {
         this.SaveModelStateErrors();
     }
     this.GetRolePermission(new string[] { this.CapaId.ToString(), model.Type });
     return(PartialView("GridPartial", this.GetActionDataTable(model.Type)));
 }
Exemplo n.º 3
0
        public ActionResult AddCapaAction(string data, string type)
        {
            CapaActionModel model = new CapaActionModel();

            model.CapaId = this.CapaId;
            if (type == "Implementation")
            {
                model.Who     = UtilitySystem.CurrentUserId;
                model.Comment = data;
                model.Date    = DateTime.Now;
            }
            else
            {
                model.Who = int.Parse(data);
            }
            model.Type = type;

            ServiceSystem.Add(EnscoConstants.EntityModel.CapaAction, model, true);
            return(null);
        }