public static bool EjecutarValidacionesBeforeDelete(Spartane.Core.Classes.Empresas.Empresas obj) { bool ret = true; //NEWBUSINESSRULE_BEFOREDELETE// return(ret); }
public static string ReplaceQuery(string query, Spartane.Core.Classes.Empresas.Empresas obj) { //codigo para que reemplace los FLD Regex regex = new Regex(@"FLD\[([^\]]+)\]"); MatchCollection matches = regex.Matches(query); string auxMatch = ""; foreach (Match match in matches) { foreach (Capture capture in match.Captures) { auxMatch = capture.Value.Replace("FLD[", "").Replace("]", ""); PropertyInfo info = obj.GetType().GetProperty(auxMatch); query = GeneralHelper.ReplaceFLD(query, auxMatch, obj, info, capture.Value); } } return(query); }
public static void EjecutarValidacionesAfterListSelAll(Spartane.Core.Classes.Empresas.Empresas obj) { //NEWBUSINESSRULE_AFTERLISTSELALL// }
public static void EjecutarValidacionesAfterGet(Spartane.Core.Classes.Empresas.Empresas obj) { //NEWBUSINESSRULE_AFTERGET// }
public static void EjecutarValidacionesAfterDelete(Spartane.Core.Classes.Empresas.Empresas obj) { //NEWBUSINESSRULE_AFTERDELETE// }