Beispiel #1
0
        public List <MachinesInfo> GetMachines(string NWIP, string WWIP, string JQRT, string GLY, string ZG, PagerInfo info)
        {
            if (NWIP != null && SqlInjection.GetString(NWIP))
            {
                return(null);
            }

            if (WWIP != null && SqlInjection.GetString(WWIP))
            {
                return(null);
            }

            if (JQRT != null && SqlInjection.GetString(JQRT))
            {
                return(null);
            }

            if (GLY != null && SqlInjection.GetString(GLY))
            {
                return(null);
            }

            if (ZG != null && SqlInjection.GetString(ZG))
            {
                return(null);
            }

            if (machinesDal == null)
            {
                machinesDal = baseDal as IMachines;
            }

            return(machinesDal.GetMachines(NWIP, WWIP, JQRT, GLY, ZG, info));
        }