//根据packagecode获取参数 public static List <paramPo> getParamsByPackageCode(List <String> pcode) { IPackageInfoServiceService service = new IPackageInfoServiceService(); paramPo[] paramPoArray = service.getParamsByPackageCode(pcode.ToArray()); return(paramPoArray.ToList()); }
public static Boolean testSetConfigCode() { ConfigCodeService.IPackageInfoServiceService piis = new IPackageInfoServiceService(); String result = piis.setConfigCode("test", "test", "1"); if (result.Equals("y", StringComparison.OrdinalIgnoreCase)) { return(true); } else { return(false); } }
public static Boolean setConfigCode(CarParams cp) { ConfigCodeService.IPackageInfoServiceService piis = new IPackageInfoServiceService(); String configCode = cp.configCode; String packageCode = cp.packageCode; String version = cp.version; if (!String.IsNullOrEmpty(configCode) && !String.IsNullOrEmpty(packageCode)) { String result = piis.setConfigCode(packageCode, configCode, version); if (result.Equals("y", StringComparison.OrdinalIgnoreCase)) { return(true); } else { return(false); } } else { return(false); } }