public Advice[] GetAdviceByStationAndWO(string workorder) { Advice[] adviceArray = null; KeyValue[] adviceFilters = new KeyValue[] { new KeyValue("WORKORDER_NUMBER", workorder) }; int error = imsapi.adviceGetAdvice(sessionContext, init.configHandler.StationNumber, false, false, false, adviceFilters, out adviceArray); if (error != 0) { view.errorHandler(2, init.lang.ERROR_API_CALL_ERROR + " adviceGetAdvice " + error, ""); } else { view.errorHandler(0, init.lang.ERROR_API_CALL_ERROR + " adviceGetAdvice " + error, ""); } return(adviceArray); }