예제 #1
0
        public static bool LookupParameterSwitch(string cbtt, string pcode, ParameterSwitch p)
        {
            string s = cbtt.PadRight(8).ToUpper() + pcode;

            DataRow[] rows = Pcode.Select("pcode = '" + s + "'");
            if (rows.Length == 1)
            {
                s = rows[0][p.ToString()].ToString();
                if (s.Trim() == "1")
                {
                    return(true);
                }
            }

            return(false);
        }
예제 #2
0
        public static bool LookupParameterSwitch(string cbtt, string pcode, ParameterSwitch p)
        {
            string s = cbtt.PadRight(8).ToUpper() + pcode;
            DataRow[] rows = Pcode.Select("pcode = '"+s+"'");
            if (rows.Length == 1)
            {
                s = rows[0][p.ToString()].ToString();
                if (s.Trim() == "1")
                    return true;
            }

            return false;
        }