Exemplo n.º 1
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);
        }
Exemplo n.º 2
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);
        }