public ActionResult Clone(string data) { CapaActionModel model = new CapaActionModel(); this.GetJson(" exec usp_CloneCapa " + this.CapaId.ToString() + ", '" + data + "'"); return(null); }
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))); }
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); }