예제 #1
0
        /// <summary>
        /// Получить OTPR из XML
        /// </summary>
        /// <param name="xml"></param>
        /// <returns></returns>
        public OTPR GetOTPROfXML(string xml)
        {
            UZ_Convert convert = new UZ_Convert(this.servece_owner);

            return(convert.XMLToOTPR(xml));
            //return convert.FinalXMLToOTPR(convert.XMLToFinalXML(xml));
        }
예제 #2
0
 /// <summary>
 /// Получить OTPR по ID документа СМС
 /// </summary>
 /// <param name="id_doc"></param>
 /// <returns></returns>
 public OTPR GetOTPR(string id_doc)
 {
     if (this.connection == null)
     {
         Connection();
     }
     if (this.connection != null)
     {
         GohubDocument doc     = this.connection.QueryDocument(id_doc);
         UZ_Convert    convert = new UZ_Convert(this.servece_owner);
         //return convert.FinalXMLToOTPR(convert.XMLToFinalXML(doc.GetXmlText()));
         return(convert.XMLToOTPR(doc.GetXmlText()));
     }
     return(null);
 }