Пример #1
0
        public Int32 GetMachinesCount(string NWIP, string WWIP, string JQRT, string GLY, string ZG)
        {
            if (NWIP != null && SqlInjection.GetString(NWIP))
            {
                return(-1);
            }

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

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

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

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

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

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