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(); } }
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(); } }