示例#1
0
        public string getLibraryMaxtime(string strParameters)
        {
            jc_System system = new jc_System();
            if (strParameters == "zjlx")
            {
                return system.getSystemValue("UnitLxTime");
            }
            if (strParameters == "txlx")
            {
                return system.getSystemValue("PtypeLxTime");
            }
            if (strParameters == "ctlx")
            {
                return system.getSystemValue("ErrorLxTime");
            }
            string strSql = "select TestTime from jc_Library where LibraryNo=" + strParameters;

            object obj = DbHelperSQL.GetSingle(strSql.ToString());
            if (obj == null)
            {
                return "";
            }
            else
            {
                return obj.ToString();
            }
        }
示例#2
0
 public string getLibraryLayout(string strParameters)
 {
     jc_System system = new jc_System();
     if (strParameters == "zjlx")
     {
         return system.getSystemValue("zjLxLayout");
     }
     if (strParameters == "txlx")
     {
         return system.getSystemValue("txlxLayout");
     }
     if (strParameters == "ctlx")
     {
         return system.getSystemValue("ctlxLayout");
     }
     string strSql = "select LibraryLayout from jc_Library where LibraryNo=" + strParameters;
     object obj = DbHelperSQL.GetSingle(strSql.ToString());
     if (obj == null)
     {
         return "";
     }
     else
     {
         return obj.ToString();
     }
 }