Example #1
0
        private static COPXmlFactory.RTTIE034.UOLIST __RTTIE034_F_I(COPXmlFactory.RTTIE034.UOLIST e)
        {
            RTTIE034_SrvRef.RTTIE234Request serv_req = new RTTIE034_SrvRef.RTTIE234Request();

            serv_req.RTTIE234       = new RTTIE034_SrvRef.RTTIE234();
            serv_req.RTTIE234._EREQ = new RTTIE034_SrvRef._EREQ();

            serv_req.RTTIE234._EREQ.ACCOUNTID = e.UO_INFO.ACCOUNT_ID;
            serv_req.RTTIE234._EREQ.ENTITYID  = e.UO_INFO.ENTITY_ID;


            RTTIE034_SrvRef.RTTIE234Response1 response = _client.RTTIE234(serv_req);

            e = __Fill(response);

            return(e);
        }
Example #2
0
        private static COPXmlFactory.RTTIE034.UOLIST __Fill(RTTIE034_SrvRef.RTTIE234Response1 e)
        {
            // COPXmlFactory.RTTIE034.UOLIST fobj = new UOLIST();
            COPXmlFactory.RTTIE034.UOLIST fobj = RevenueGovXMLFactory.GetUOLISTReturn();


            //LOAD ERRORS INTO OBJECT
            // fobj.ERROR_INFO = new ERROR_INFO();

            fobj.ERROR_INFO.PROGRAM = e.RTTIE234Response._SMA._PROGRAM;
            fobj.ERROR_INFO.LINE    = e.RTTIE234Response._SMA.ERRORLINE.ToString();
            fobj.ERROR_INFO.MESSAGE = e.RTTIE234Response._SMA.MESSAGE;
            fobj.ERROR_INFO.ERROR   = e.RTTIE234Response._SMA.SYSTEMERROR.ToString();

            //LOAD UO_INFO
            fobj.UO_INFO            = new UO_INFO();
            fobj.UO_INFO.ENTITY_ID  = e.RTTIE234Response._EREQ.ENTITYID;
            fobj.UO_INFO.ACCOUNT_ID = e.RTTIE234Response._EREQ.ACCOUNTID;

            //LOAD UO_ACCT
            fobj.UO_ACCT = new List <UO_ACCT>();
            for (int i = 0; i < e.RTTIE234Response._ELIST._UOLACCOUNTSs.Length; i++)
            {
                fobj.UO_ACCT.Add(COPXmlFactory.RevenueGovXMLFactory.GetUOLISTReturn_UO_ACCT());

                fobj.UO_ACCT[i].ACCOUNT_ID = e.RTTIE234Response._ELIST._UOLACCOUNTSs[i].ACCOUNTID;
                fobj.UO_ACCT[i].BRT_NUMBER = e.RTTIE234Response._ELIST._UOLACCOUNTSs[i].BRTNUMBER;
                fobj.UO_ACCT[i].LOCATION   = e.RTTIE234Response._ELIST._UOLACCOUNTSs[i].LOCATION;
                fobj.UO_ACCT[i].START_DATE = e.RTTIE234Response._ELIST._UOLACCOUNTSs[i].STARTDATE;
                fobj.UO_ACCT[i].END_DATE   = e.RTTIE234Response._ELIST._UOLACCOUNTSs[i].ENDDATE;
                fobj.UO_ACCT[i].FREQ_YEAR0 = e.RTTIE234Response._ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[0].FREQCODE;
                fobj.UO_ACCT[i].FREQ_YEAR1 = e.RTTIE234Response._ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[1].FREQCODE;
                fobj.UO_ACCT[i].FREQ_YEAR2 = e.RTTIE234Response._ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[2].FREQCODE;
                fobj.UO_ACCT[i].FREQ_YEAR3 = e.RTTIE234Response._ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[3].FREQCODE;
                fobj.UO_ACCT[i].FREQ_YEAR4 = e.RTTIE234Response._ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[4].FREQCODE;
                fobj.UO_ACCT[i].FREQ_YEAR5 = e.RTTIE234Response._ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[5].FREQCODE;
                fobj.UO_ACCT[i].FREQ_YEAR6 = e.RTTIE234Response._ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[6].FREQCODE;
                fobj.UO_ACCT[i].FREQ_YEAR7 = e.RTTIE234Response._ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[7].FREQCODE;
                fobj.UO_ACCT[i].FREQ_YEAR8 = e.RTTIE234Response._ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[8].FREQCODE;
                fobj.UO_ACCT[i].FREQ_YEAR9 = e.RTTIE234Response._ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[9].FREQCODE;
            }

            return(fobj);
        }
Example #3
0
        private static COPXmlFactory.RTTIE034.UOLIST __RTTIE034_F_I(COPXmlFactory.RTTIE034.UOLIST e)
        {
            UOList_RTTIE034_SrvRef.TT034E00_EREQ          _EREQ          = new UOList_RTTIE034_SrvRef.TT034E00_EREQ();
            UOList_RTTIE034_SrvRef.TT034E00               serv_req       = new UOList_RTTIE034_SrvRef.TT034E00();
            UOList_RTTIE034_SrvRef.TT034E00Response_SMA   _SMAResponse   = new UOList_RTTIE034_SrvRef.TT034E00Response_SMA();
            UOList_RTTIE034_SrvRef.TT034E00Response_EREQ  _EREQResponse  = new UOList_RTTIE034_SrvRef.TT034E00Response_EREQ();
            UOList_RTTIE034_SrvRef.TT034E00Response_ELIST _ELISTResponse = new UOList_RTTIE034_SrvRef.TT034E00Response_ELIST();


            _EREQ.ACCOUNTID = e.UO_INFO.ACCOUNT_ID;
            _EREQ.ENTITYID  = e.UO_INFO.ENTITY_ID;

            _SMAResponse = serv_req.CallTT034E00
                               (_EREQ,
                               new UOList_RTTIE034_SrvRef.TT034E00_ELIST(),
                               out _EREQResponse,
                               out _ELISTResponse
                               );



            e = __Fill(_SMAResponse, _EREQResponse, _ELISTResponse);
            return(e);
        }
Example #4
0
        private static COPXmlFactory.RTTIE034.UOLIST __Fill(UOList_RTTIE034_SrvRef.TT034E00Response_SMA _SMA, UOList_RTTIE034_SrvRef.TT034E00Response_EREQ _EREQ, UOList_RTTIE034_SrvRef.TT034E00Response_ELIST _ELIST)
        {
            COPXmlFactory.RTTIE034.UOLIST fobj = RevenueGovXMLFactory.GetUOLISTReturn();
            if (_SMA != null)
            {
                fobj.ERROR_INFO.PROGRAM = _SMA._PROGRAM;
                fobj.ERROR_INFO.LINE    = _SMA.ERRORLINE.ToString();
                fobj.ERROR_INFO.MESSAGE = _SMA.MESSAGE;
                fobj.ERROR_INFO.ERROR   = _SMA.SYSTEMERROR.ToString();
            }
            //LOAD UO_INFO

            fobj.UO_INFO.ENTITY_ID  = _EREQ.ENTITYID;
            fobj.UO_INFO.ACCOUNT_ID = _EREQ.ACCOUNTID;

            //LOAD UO_ACCT
            fobj.UO_ACCT = new List <UO_ACCT>();
            for (int i = 0; i < _ELIST._UOLACCOUNTSs.Length; i++)
            {
                fobj.UO_ACCT.Add(COPXmlFactory.RevenueGovXMLFactory.GetUOLISTReturn_UO_ACCT());
                UOList_RTTIE034_SrvRef.TT034E00Response_ELIST_UOLACCOUNTSACCOUNTIDX obj = _ELIST._UOLACCOUNTSs[i].ACCOUNTIDX;

                fobj.UO_ACCT[i].ACCOUNT_ID = obj.ACCOUNTID;
                fobj.UO_ACCT[i].BRT_NUMBER = _ELIST._UOLACCOUNTSs[i].BRTNUMBER;
                fobj.UO_ACCT[i].LOCATION   = _ELIST._UOLACCOUNTSs[i].LOCATION;
                fobj.UO_ACCT[i].START_DATE = _ELIST._UOLACCOUNTSs[i].STARTDATE;
                fobj.UO_ACCT[i].END_DATE   = _ELIST._UOLACCOUNTSs[i].ENDDATE;
                for (int j = 0; j < _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs.Length; j++)
                {
                    if (j == 0)
                    {
                        fobj.UO_ACCT[i].FREQ_YEAR0 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[j].FREQCODE;
                    }
                    else if (j == 1)
                    {
                        fobj.UO_ACCT[i].FREQ_YEAR1 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[j].FREQCODE;
                    }
                    else if (j == 2)
                    {
                        fobj.UO_ACCT[i].FREQ_YEAR2 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[j].FREQCODE;
                    }
                    else if (j == 3)
                    {
                        fobj.UO_ACCT[i].FREQ_YEAR3 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[j].FREQCODE;
                    }
                    else if (j == 4)
                    {
                        fobj.UO_ACCT[i].FREQ_YEAR4 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[j].FREQCODE;
                    }
                    else if (j == 5)
                    {
                        fobj.UO_ACCT[i].FREQ_YEAR5 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[j].FREQCODE;
                    }
                    else if (j == 6)
                    {
                        fobj.UO_ACCT[i].FREQ_YEAR6 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[j].FREQCODE;
                    }
                    else if (j == 7)
                    {
                        fobj.UO_ACCT[i].FREQ_YEAR7 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[j].FREQCODE;
                    }
                    else if (j == 8)
                    {
                        fobj.UO_ACCT[i].FREQ_YEAR8 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[j].FREQCODE;
                    }
                    else if (j == 9)
                    {
                        fobj.UO_ACCT[i].FREQ_YEAR9 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[j].FREQCODE;
                    }
                }
                //fobj.UO_ACCT[i].FREQ_YEAR0 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[0].FREQCODE;
                //fobj.UO_ACCT[i].FREQ_YEAR1 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[1].FREQCODE;
                //fobj.UO_ACCT[i].FREQ_YEAR2 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[2].FREQCODE;
                //fobj.UO_ACCT[i].FREQ_YEAR3 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[3].FREQCODE;
                //fobj.UO_ACCT[i].FREQ_YEAR4 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[4].FREQCODE;
                //fobj.UO_ACCT[i].FREQ_YEAR5 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[5].FREQCODE;
                //fobj.UO_ACCT[i].FREQ_YEAR6 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[6].FREQCODE;
                //fobj.UO_ACCT[i].FREQ_YEAR7 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[7].FREQCODE;
                //fobj.UO_ACCT[i].FREQ_YEAR8 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[8].FREQCODE;
                //fobj.UO_ACCT[i].FREQ_YEAR9 = _ELIST._UOLACCOUNTSs[i].FREQTABLE.FREQs[9].FREQCODE;
            }

            return(fobj);
        }