gov.va.medora.mdo.dao.vista.VistaUserDao.getOptionIen C# (CSharp) Method

getOptionIen() private method

private getOptionIen ( string optionName ) : string
optionName string
return string
        internal string getOptionIen(string optionName)
        {
            if (StringUtils.isEmpty(optionName))
            {
                throw new ArgumentNullException("Missing option name");
            }
            VistaQuery vq = new VistaQuery("XWB GET VARIABLE VALUE");
            string arg = "$O(^DIC(19,\"B\",\"" + optionName + "\",0))";
            vq.addParameter(vq.REFERENCE, arg);
            string response = (string)cxn.query(vq);
            return VistaUtils.errMsgOrIen(response);
        }

Usage Example

示例#1
0
        internal static DdrFiler buildAddRecordQuery(AbstractConnection cxn, RemoteApplicationRecord rec, CallBackFileRecord subrec)
        {
            DdrFiler query = new DdrFiler(cxn);
            query.Operation = "ADD";
            ArrayList lst = new ArrayList(7);
            VistaField f = rec.Fields["NAME"];
            lst.Add(FILE_NUMBER + "^" + f.VistaNumber + "^+1,^" + f.VistaValue);
            f = rec.Fields["CONTEXTOPTION"];
            VistaUserDao dao = new VistaUserDao(cxn);
            lst.Add(FILE_NUMBER + "^" + f.VistaNumber + "^+1,^" + dao.getOptionIen(f.VistaValue));
            f = rec.Fields["APPLICATIONCODE"];
            lst.Add(FILE_NUMBER + "^" + f.VistaNumber + "^+1,^" + f.VistaValue);

            f = subrec.Fields["CALLBACKTYPE"];
            lst.Add(CALLBACK_FILE_NUMBER + "^" + f.VistaNumber + "^+2,+1^" + f.VistaValue);
            f = subrec.Fields["CALLBACKPORT"];
            lst.Add(CALLBACK_FILE_NUMBER + "^" + f.VistaNumber + "^+2,+1^" + f.VistaValue);
            f = subrec.Fields["CALLBACKSERVER"];
            lst.Add(CALLBACK_FILE_NUMBER + "^" + f.VistaNumber + "^+2,+1^" + f.VistaValue);
            f = subrec.Fields["URLSTRING"];
            lst.Add(CALLBACK_FILE_NUMBER + "^" + f.VistaNumber + "^+2,+1^" + f.VistaValue);

            query.Args = (string[])lst.ToArray(typeof(string));
            return query;
        }
All Usage Examples Of gov.va.medora.mdo.dao.vista.VistaUserDao::getOptionIen
VistaUserDao