Пример #1
0
        public static String GetSITRACK_URL(String domain)
        {
            string userName = Parametro.FindByPrimaryKey("SITRACK_USERNAME").Valor;
            string password = Parametro.FindByPrimaryKey("SITRACK_PASSWORD").Valor;
            string sidUrl   = Parametro.FindByPrimaryKey("SITRACK_SID_URL").Valor;
            string dataUrl  = Parametro.FindByPrimaryKey("SITRACK_POSITION_URL").Valor;

            sidUrl = sidUrl.Replace("$(SITRACK_USERNAME)", userName).Replace("$(SITRACK_PASSWORD)", password);
            try
            {
                // TODO: Terminar
                String sitrackSID = "";// UrlManager.doGet(sidUrl);
                dataUrl = dataUrl.Replace("$(SID)", sitrackSID).Replace("$(DOMAIN)", domain);
            }
            catch (Exception ex) {
                throw ex;
            }

            return(dataUrl);
        }