Exemplo n.º 1
0
        public Stream getVistaFile(String siteId, String fileNumber, String pwd)
        {
            MySession   newSession = new MySession();
            VistaFileTO result     = (VistaFileTO)QueryTemplate.getQuery(QueryType.STATELESS, siteId).execute(newSession,
                                                                                                              new Func <String, bool, VistaFileTO>(new ToolsLib(newSession).getFile),
                                                                                                              new object[] { fileNumber, true });

            return(new MemoryStream(System.Text.Encoding.UTF8.GetBytes(JsonUtils.Serialize <VistaFileTO>(result))));
        }
Exemplo n.º 2
0
        public VistaFileTO getFile(string fileNumber, bool includeXRefs)
        {
            VistaFileTO result = new VistaFileTO();

            try
            {
                IndexedHashtable ihs = new ToolsApi().getFile(mySession.ConnectionSet, fileNumber, includeXRefs);
                result = new VistaFileTO(ihs.GetValue(0) as gov.va.medora.mdo.dao.vista.VistaFile);
            }
            catch (Exception exc)
            {
                result.fault = new FaultTO(exc);
            }
            return(result);
        }