コード例 #1
0
        public static bool EjecutarValidacionesBeforeDelete(Spartane.Core.Classes.Empresas.Empresas obj)
        {
            bool ret = true;

            //NEWBUSINESSRULE_BEFOREDELETE//
            return(ret);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public static void EjecutarValidacionesAfterListSelAll(Spartane.Core.Classes.Empresas.Empresas obj)
 {
     //NEWBUSINESSRULE_AFTERLISTSELALL//
 }
コード例 #4
0
 public static void EjecutarValidacionesAfterGet(Spartane.Core.Classes.Empresas.Empresas obj)
 {
     //NEWBUSINESSRULE_AFTERGET//
 }
コード例 #5
0
 public static void EjecutarValidacionesAfterDelete(Spartane.Core.Classes.Empresas.Empresas obj)
 {
     //NEWBUSINESSRULE_AFTERDELETE//
 }