示例#1
0
        public static bool EjecutarValidacionesBeforeDelete(Spartane.Core.Classes.Medicos.Medicos obj)
        {
            bool ret = true;

            //NEWBUSINESSRULE_BEFOREDELETE//
            return(ret);
        }
示例#2
0
        public static string ReplaceQuery(string query, Spartane.Core.Classes.Medicos.Medicos 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.Medicos.Medicos obj)
 {
     //NEWBUSINESSRULE_AFTERLISTSELALL//
 }
示例#4
0
 public static void EjecutarValidacionesAfterGet(Spartane.Core.Classes.Medicos.Medicos obj)
 {
     //NEWBUSINESSRULE_AFTERGET//
 }
示例#5
0
 public static void EjecutarValidacionesAfterDelete(Spartane.Core.Classes.Medicos.Medicos obj)
 {
     //NEWBUSINESSRULE_AFTERDELETE//
 }