Ejemplo n.º 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();
            }
        }
Ejemplo n.º 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();
     }
 }