gov.va.medora.mdo.dao.vista.VistaQuery.addParameter C# (CSharp) Method

addParameter() public method

public addParameter ( int type, DictionaryHashList lst ) : void
type int
lst DictionaryHashList
return void
        public void addParameter(int type, DictionaryHashList lst)
        {
            Parameter vp = new Parameter(type,lst);
            parameters.Add(vp);
        }

Same methods

VistaQuery::addParameter ( int type, string value ) : void
VistaQuery::addParameter ( int type, string value, string text ) : void

Usage Example

示例#1
0
        internal MdoQuery buildCancelRadiologyOrderRequest(String orderId, String reasonIen, String holdDescription)
        {
            VistaQuery vq = new VistaQuery("RAMAG ORDER CANCEL");

            vq.addParameter(vq.LITERAL, orderId);
            vq.addParameter(vq.LITERAL, reasonIen);

            if (!String.IsNullOrEmpty(holdDescription))
            {
                String[]           holdDescrLines = StringUtils.split(holdDescription, StringUtils.CRLF);
                DictionaryHashList miscOptionDHL  = new DictionaryHashList();
                String             currentLineNo  = "1";
                foreach (String line in holdDescrLines)
                {
                    miscOptionDHL.Add(currentLineNo, String.Format("HOLDESC^{0}^{1}", currentLineNo, line));
                    currentLineNo = Convert.ToString(Convert.ToInt32(currentLineNo) + 1);
                }
                vq.addParameter(vq.LIST, miscOptionDHL);
            }
            else
            {
                vq.addParameter(vq.LIST, new DictionaryHashList());
            }

            return(vq);
        }
All Usage Examples Of gov.va.medora.mdo.dao.vista.VistaQuery::addParameter