public byte[] GetDocumnetContentByID(long documentID) { byte[] content = new byte[] { }; int error = imsapi.mdaGetDocumentContent(sessionContext, init.configHandler.StationNumber, documentID, out content); if (error != 0) { view.errorHandler(2, init.lang.ERROR_API_CALL_ERROR + " mdaGetDocumentContent " + error, ""); return(null); } else { view.errorHandler(0, init.lang.ERROR_API_CALL_ERROR + " mdaGetDocumentContent " + error, ""); } return(content); }
public byte[] GetDocumnetContentByID(long documentID) { byte[] content = new byte[] { }; int error = imsapi.mdaGetDocumentContent(sessionContext, init.configHandler.StationNumber, documentID, out content); if (error != 0) { string errorString = UtilityFunction.GetZHSErrorString(error, init, sessionContext); view.errorHandler(2, init.lang.ERROR_API_CALL_ERROR + " mdaGetDocumentContent " + error + "(" + errorString + ")", ""); return(null); } else { view.errorHandler(0, init.lang.ERROR_API_CALL_ERROR + " mdaGetDocumentContent " + error, ""); } return(content); }