public string execute()
        {
            if (File == "")
            {
                throw new Exception("Must have a file!");
            }
            if (Iens == "")
            {
                throw new Exception("Must have IENS!");
            }
            if (Field == "")
            {
                throw new Exception("Must have a field!");
            }
            if (Value == "")
            {
                throw new Exception("Must have a value!");
            }
            VistaQuery         vq       = new VistaQuery("DDR VALIDATOR");
            DictionaryHashList paramLst = new DictionaryHashList();

            paramLst.Add("\"FILE\"", File);
            paramLst.Add("\"IENS\"", Iens);
            paramLst.Add("\"FIELD\"", Field);
            paramLst.Add("\"VALUE\"", Value);
            vq.addParameter(vq.LIST, paramLst);
            DdrQuery query    = new DdrQuery(cxn);
            string   response = query.execute(vq);

            return(buildResult(response));
        }
示例#2
0
 public string execute()
 {
     if (File == "")
     {
         throw new Exception("Must have a file!");
     }
     if (Iens == "")
     {
         throw new Exception("Must have IENS!");
     }
     if (Field == "")
     {
         throw new Exception("Must have a field!");
     }
     if (Value == "")
     {
         throw new Exception("Must have a value!");
     }
     VistaQuery vq = new VistaQuery("DDR VALIDATOR");
     DictionaryHashList paramLst = new DictionaryHashList();
     paramLst.Add("\"FILE\"", File);
     paramLst.Add("\"IENS\"", Iens);
     paramLst.Add("\"FIELD\"", Field);
     paramLst.Add("\"VALUE\"", Value);
     vq.addParameter(vq.LIST, paramLst);
     DdrQuery query = new DdrQuery(cxn);
     string response = query.execute(vq);
     return buildResult(response);
 }