Example #1
0
        private static COPXmlFactory.RTTIE039_2015.NPTRETURN __RTTIE039_F_I(string ReplyXMLPath)
        {
            //Read from XML file and return the object

            CopMvcUtil utl = new CopMvcUtil();

            string xmlstring = utl.GetXMLString(ReplyXMLPath);

            COPXmlFactory.RTTIE039_2015.NPTRETURN e;

            e = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE039_2015.NPTRETURN>(
                xmlstring);


            return(e);
        }
Example #2
0
        private static COPXmlFactory.RTTIE010.ACCTTEMPLATE __RTTIE010_F_I(string ReplyXMLPath)
        {
            //Read from XML file and return the object

            CopMvcUtil utl = new CopMvcUtil();

            string xmlstring = utl.GetXMLString(ReplyXMLPath);

            COPXmlFactory.RTTIE010.ACCTTEMPLATE acct;

            acct = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE010.ACCTTEMPLATE>(
                xmlstring);


            return(acct);
        }
Example #3
0
        //private static COPXmlFactory.RTTIE037_2014.BPTezReturn __RTTIE037_F_I(COPXmlFactory.RTTIE037_2014.BPTezReturn e)
        //{
        //    RTTIE237_SrvRef.RTTIE237 serv_req = new RTTIE237_SrvRef.RTTIE237();

        //    serv_req._EBPT = new RTTIE237_SrvRef._EBPT();

        //    serv_req._EBPT.ACCOUNTID = e.BPT_INFO.ACCOUNT_ID;
        //    serv_req._EBPT.PERIODX = CopMvcUtil.ConvDateDecimalString(e.BPT_INFO.PERIOD);
        //    serv_req._EBPT.RETURNSTATUS = e.BPT_INFO.RETURN_STATUS;
        //    serv_req._EBPT.PREPARERPHONESpecified = true;

        //    RTTIE237_SrvRef.RTTIE237Response response = _client.RTTIE237(serv_req);

        //    e = __Fill(response);

        //    return e;

        //}

        private static COPXmlFactory.RTTIE037_2014.BPTezReturn __RTTIE037_F_I(string ReplyXMLPath)
        {
            //Read from XML file and return the object

            CopMvcUtil utl = new CopMvcUtil();

            string xmlstring = utl.GetXMLString(ReplyXMLPath);

            COPXmlFactory.RTTIE037_2014.BPTezReturn sch;

            sch = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE037_2014.BPTezReturn>(
                xmlstring);


            return(sch);
        }
Example #4
0
        //private static COPXmlFactory.RTTIE036.SCHOOLRETURN __RTTIE036_F_I(COPXmlFactory.RTTIE036.SCHOOLRETURN e)
        //{
        //    RTTIE236_SrvRef.RTTIE236 serv_req = new RTTIE236_SrvRef.RTTIE236();

        //    serv_req._ESIT = new RTTIE236_SrvRef._ESIT();

        //    serv_req._ESIT.ACCOUNTID = e.SCHOOL_INFO.ACCOUNT_ID;
        //    serv_req._ESIT.PERIODX = CopMvcUtil.ConvDateDecimal(e.SCHOOL_INFO.PERIOD).ToString();
        //    serv_req._ESIT.RETURNSTATUS = e.SCHOOL_INFO.RETURN_STATUS;

        //    RTTIE236_SrvRef.RTTIE236Response response = _client.RTTIE236(serv_req);

        //    e = _Fill(response);

        //    return e;
        //}
        private static COPXmlFactory.RTTIE036.SCHOOLRETURN __RTTIE036_F_I(string ReplyXMLPath)
        {
            //Read from XML file and return the object

            CopMvcUtil utl = new CopMvcUtil();

            string xmlstring = utl.GetXMLString(ReplyXMLPath);

            COPXmlFactory.RTTIE036.SCHOOLRETURN sch;

            sch = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE036.SCHOOLRETURN>(
                xmlstring);


            return(sch);
        }
Example #5
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 #6
0
        public static XmlDocument CallService(XmlDocument Request)
        {
            XmlDocument xm = new XmlDocument();

            COPXmlFactory.Code1AddressCheck.c1match xo;

            try
            {
                string InnerXML = Request.InnerXml;
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.Code1AddressCheck.c1match>(InnerXML);
                xo = __Call(xo);
            }
            catch (Exception ex)
            {
                xo         = RevenueGovXMLFactory.GetCode1AddressCheck();
                xo.Message = ex.Message;
            }
            return(RevenueGovXMLFactory.GetXmlDocument(xo));
        }
Example #7
0
        private static COPXmlFactory.RTTIE022.DelinquentForm _Fill(RTTIE222_SrvRef.RTTIE222Response e)
        {
            COPXmlFactory.RTTIE022.DelinquentForm fobj = RevenueGovXMLFactory.GetDelinquentForm();

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

            fobj.ERROR_INFO.PROGRAM = e._SMA._SYSTEMMESSAGEAREA._PROGRAM;
            fobj.ERROR_INFO.LINE    = e._SMA._SYSTEMMESSAGEAREA.LINE.ToString();
            fobj.ERROR_INFO.MESSAGE = e._SMA._SYSTEMMESSAGEAREA.MESSAGE;
            fobj.ERROR_INFO.ERROR   = e._SMA._SYSTEMMESSAGEAREA.ERROR.ToString();

            //LOAD DEL_INFO
            fobj.DEL_INFO                   = new DEL_INFO();
            fobj.DEL_INFO.ENTITY_TYPE       = e._EMI._ENTITYMASTERINFO.ENTITYTYPE.ToString();
            fobj.DEL_INFO.ENTITY_ID         = e._EMI._ENTITYMASTERINFO.ENTITYID.ToString();
            fobj.DEL_INFO.FUNCTION          = e._EMI._ENTITYMASTERINFO.FUNCTION.ToString();
            fobj.DEL_INFO.NOTICE_NUM        = e._EMI._ENTITYMASTERINFO.NOTICENUM.ToString();
            fobj.DEL_INFO.NEXT_ACCOUNT_TYPE = e._EMI._ENTITYMASTERINFO.NEXTACCOUNT.ToString();
            fobj.DEL_INFO.NEXT_ACCOUNT_ID   = e._EMI._ENTITYMASTERINFO.NEXTACCOUNTID.ToString();
            fobj.DEL_INFO.NEXT_PERIOD       = e._EMI._ENTITYMASTERINFO.NEXTPERIOD.ToString();

            //LOAD DEL_INFO
            for (int i = 0; i < e._ETA._ENTITYTAXACCOUNTSs.Length; i++)
            {
                fobj.DEL_ACCTs.Add(RevenueGovXMLFactory.GetDelinquent_DEL_ACCT());

                fobj.DEL_ACCTs[i].FUNCTION_CODE = e._ETA._ENTITYTAXACCOUNTSs[i].FUNCTIONCODE;
                fobj.DEL_ACCTs[i].ACCOUNT_TYPE  = e._ETA._ENTITYTAXACCOUNTSs[i].ACCOUNT;
                fobj.DEL_ACCTs[i].ACCOUNT_ID    = e._ETA._ENTITYTAXACCOUNTSs[i].ACCOUNTID;
                fobj.DEL_ACCTs[i].PERIOD        = CopMvcUtil.ConvDate(e._ETA._ENTITYTAXACCOUNTSs[i].PERIODX);
                fobj.DEL_ACCTs[i].PRINCIPAL_DUE = CopMvcUtil.ConvDigitToCurrency(e._ETA._ENTITYTAXACCOUNTSs[i].PRINCIPALX);
                fobj.DEL_ACCTs[i].INTEREST_DUE  = CopMvcUtil.ConvDigitToCurrency(e._ETA._ENTITYTAXACCOUNTSs[i].INTERESTX);
                fobj.DEL_ACCTs[i].PENALTY_DUE   = CopMvcUtil.ConvDigitToCurrency(e._ETA._ENTITYTAXACCOUNTSs[i].PENALTYX);
                fobj.DEL_ACCTs[i].OTHER_DUE     = CopMvcUtil.ConvDigitToCurrency(e._ETA._ENTITYTAXACCOUNTSs[i].OTHERX);
                fobj.DEL_ACCTs[i].BRT_ENTITY    = e._ETA._ENTITYTAXACCOUNTSs[i].BRTENTITY;
                fobj.DEL_ACCTs[i].BRT_ADDRESS   = e._ETA._ENTITYTAXACCOUNTSs[i].BRTADDRESS;
                fobj.DEL_ACCTs[i].FILL          = e._ETA._ENTITYTAXACCOUNTSs[i].FILL;
            }


            return(fobj);
        }
Example #8
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE030_2014.BPTlfReturn xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE030_2014.BPTlfReturn>(Request);

                xo = __Call(xo);
            }
            catch (Exception ex)
            {
                xo = RevenueGovXMLFactory.GetBPTlf_2014Return();

                xo.ERROR_INFO         = new ERROR_INFO();
                xo.ERROR_INFO.ERROR   = 11.ToString();
                xo.ERROR_INFO.MESSAGE = ex.Message;
            }

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }
Example #9
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE016.PAYCOUPON xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE016.PAYCOUPON>(Request);

                xo = __Call(xo);
            }
            catch (Exception ex)
            {
                xo =
                    RevenueGovXMLFactory.GetPAYCOUPON();

                xo.ERROR_INFO         = new ERROR_INFO();
                xo.ERROR_INFO.ERROR   = 11.ToString();
                xo.ERROR_INFO.MESSAGE = ex.StackTrace;
            }

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }
Example #10
0
        public static XmlDocument CallService(XmlDocument Request)
        {
            COPXmlFactory.RTTIE027.WAGERETURN acct;

            try
            {
                string InnerXML = Request.InnerXml;
                acct = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE027.WAGERETURN>(InnerXML);

                acct = __Call(acct);
            }
            catch (Exception ex)
            {
                acct = RevenueGovXMLFactory.GetWageReturn();

                acct.ERROR_INFO         = new ERROR_INFO();
                acct.ERROR_INFO.ERROR   = 11.ToString();
                acct.ERROR_INFO.MESSAGE = ex.StackTrace;
            }

            return(RevenueGovXMLFactory.GetXmlDocument(acct));
        }
Example #11
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE031.LossCarryForward xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE031.LossCarryForward>(Request);

                xo = __Call(xo);
            }
            catch (Exception ex)
            {
                xo =
                    RevenueGovXMLFactory.GetLossCarryForwardReturn();

                xo.ERROR_INFO         = new ERROR_INFO();
                xo.ERROR_INFO.ERROR   = 11.ToString();
                xo.ERROR_INFO.MESSAGE = ex.Message;
            }

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }
Example #12
0
        public static XmlDocument CallService(XmlDocument Request)
        {
            COPXmlFactory.RTTIE035.UOFORM acct;

            try
            {
                string InnerXML = Request.InnerXml;
                acct = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE035.UOFORM>(InnerXML);

                acct = __Call(acct);
            }
            catch (Exception ex)
            {
                acct = RevenueGovXMLFactory.GetUOFORMReturn();

                acct.ERROR_INFO         = new ERROR_INFO();
                acct.ERROR_INFO.ERROR   = 11.ToString();
                acct.ERROR_INFO.MESSAGE = ex.Message;
            }

            return(RevenueGovXMLFactory.GetXmlDocument(acct));
        }
Example #13
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE028.TOBACCORETURN xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE028.TOBACCORETURN>(Request);

                xo = __Call(xo);
            }
            catch (Exception ex)
            {
                xo =
                    RevenueGovXMLFactory.GetTOBACCORETURN();

                xo.ERROR_INFO         = new ERROR_INFO();
                xo.ERROR_INFO.ERROR   = 11.ToString();
                xo.ERROR_INFO.MESSAGE = ex.Message;
            }

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }
Example #14
0
        public static string CallService(string Request)
        {
            COPXmlFactory.RTTIE010.ACCTTEMPLATE xo;

            try
            {
                xo = RevenueGovXMLFactory.GetObject <COPXmlFactory.RTTIE010.ACCTTEMPLATE>(
                    Request);

                xo = __Call(xo);
            }
            catch (Exception ex)
            {
                xo =
                    RevenueGovXMLFactory.GetAcctTemplate();

                xo.ERROR_INFO         = new ERROR_INFO();
                xo.ERROR_INFO.ERROR   = 11.ToString();
                xo.ERROR_INFO.MESSAGE = ex.Message;
            }

            return(RevenueGovXMLFactory.GetXmlString(xo));
        }
Example #15
0
        private static COPXmlFactory.RTTIE027.WAGERETURN _Fill(WAGE_RTTIE027_SrvRef.TT027E00Response_SMA _SMA, WAGE_RTTIE027_SrvRef.TT027E00Response_EWAG _EWAG, WAGE_RTTIE027_SrvRef.TT027E00Response_EAMT _EAMT, WAGE_RTTIE027_SrvRef.TT027E00Response_SERR _SERR)
        {
            COPXmlFactory.RTTIE027.WAGERETURN fobj = RevenueGovXMLFactory.GetWageReturn();

            //LOAD ERRORS INTO OBJECT
            fobj.ERROR_INFO = new ERROR_INFO();
            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 WAGE_INFO
            fobj.WAGE_INFO = new WAGE_INFO();

            fobj.WAGE_INFO.ACCOUNT_ID        = _EWAG.ACCOUNTID;
            fobj.WAGE_INFO.PERIOD            = CopMvcUtil.ConvDate(_EWAG.PERIODX);
            fobj.WAGE_INFO.VERSION           = _EWAG.VERSIONX;
            fobj.WAGE_INFO.SEQUENCE          = _EWAG.SEQUENCENUM;
            fobj.WAGE_INFO.RETURN_STATUS     = _EWAG.RETURNSTATUS;
            fobj.WAGE_INFO.LAST_UPD_DATE     = CopMvcUtil.ConvDate(_EWAG.LASTUPDATEDATEX);
            fobj.WAGE_INFO.DOCUMENT_CONTROL  = _EWAG.DOCUMENTCONTROLX;
            fobj.WAGE_INFO.ADJ_REFNO_CONTROL = _EWAG.ADJREFNO;
            //fobj.WAGE_INFO.ENTITY_ID=e._EWA

            fobj.WAGE_INFO.NO_OF_NONRESIDENTS = CopMvcUtil.ConvDigitToInt(_EWAG.NUMBEROFNONRESIDENTSX);

            fobj.WAGE_INFO.NO_OF_RESIDENTS = CopMvcUtil.ConvDigitToInt(_EWAG.NUMBEROFRESIDENTSX);
            fobj.WAGE_INFO.PHILA_EMPLOYEES = CopMvcUtil.ConvDigitToInt(_EWAG.PHILAEMPLOYEESX);
            fobj.WAGE_INFO.TOTAL_EMPLOYEES = CopMvcUtil.ConvDigitToInt(_EWAG.TOTALEMPLOYEESX);

            fobj.WAGE_INFO.RESTAX_A    = CopMvcUtil.ConvDigitToDouble9(_EWAG.RESRATEA);
            fobj.WAGE_INFO.RESTAX_B    = CopMvcUtil.ConvDigitToDouble9(_EWAG.RESRATEB);
            fobj.WAGE_INFO.NONRESTAX_A = CopMvcUtil.ConvDigitToDouble9(_EWAG.NONRATEA);
            fobj.WAGE_INFO.NONRESTAX_B = CopMvcUtil.ConvDigitToDouble9(_EWAG.NONRATEB);
            fobj.WAGE_INFO.FREQUENCY   = _EWAG.FREQUENCY;

            fobj.WAGE_INFO.DUE_DATE = CopMvcUtil.ConvDate(_EWAG.DUEDATE);

            fobj.WAGE_INFO.PREPARER_NAME          = _EWAG.PREPARERNAME;
            fobj.WAGE_INFO.PREPARER_PHONE         = Convert.ToString(_EWAG.PREPARERPHONE);
            fobj.WAGE_INFO.PREPARER_PHONE_EXT     = _EWAG.PREPARERPHONEEXT;
            fobj.WAGE_INFO.PREPARER_IP_ADDRESS    = _EWAG.PREPARERIPADDRESS;
            fobj.WAGE_INFO.PREPARER_EMAIL_ADDRESS = _EWAG.PREPAREREMAILADDRESS;
            fobj.WAGE_INFO.PREPARER_WHO           = _EWAG.PREPARERTYPE;


            //LOAD AMT_INFO
            fobj.AMT_INFO = new AMT_INFO();

            fobj.AMT_INFO.GROSS_COMP          = CopMvcUtil.ConvDigitToCurrency(_EAMT.GROSSCOMPENSATIONX).ToString();
            fobj.AMT_INFO.TIPS_WAGES          = CopMvcUtil.ConvDigitToCurrency(_EAMT.TIPSWAGESX).ToString();
            fobj.AMT_INFO.NON_TAXABLE_COMP    = CopMvcUtil.ConvDigitToCurrency(_EAMT.NONTAXABLECOMPX).ToString();
            fobj.AMT_INFO.NET_COMP            = CopMvcUtil.ConvDigitToCurrency(_EAMT.NETCOMPENSATIONX).ToString();
            fobj.AMT_INFO.RESIDENT_PAYROLL_A  = CopMvcUtil.ConvDigitToCurrency(_EAMT.RESIDENTPAYROLLAX);
            fobj.AMT_INFO.RESIDENT_TAX_DUE_A  = CopMvcUtil.ConvDigitToCurrency(_EAMT.RESIDENTTAXDUEAX).ToString();
            fobj.AMT_INFO.RESIDENT_PAYROLL_B  = CopMvcUtil.ConvDigitToCurrency(_EAMT.RESIDENTPAYROLLBX).ToString();
            fobj.AMT_INFO.RESIDENT_TAX_DUE_B  = CopMvcUtil.ConvDigitToCurrency(_EAMT.RESIDENTTAXDUEBX).ToString();
            fobj.AMT_INFO.NON_RES_PAYROLL_A   = CopMvcUtil.ConvDigitToCurrency(_EAMT.NONRESPAYROLLAX);
            fobj.AMT_INFO.NON_RES_TAX_DUE_A   = CopMvcUtil.ConvDigitToCurrency(_EAMT.NONRESTAXDUEAX).ToString();
            fobj.AMT_INFO.NON_RES_PAYROLL_B   = CopMvcUtil.ConvDigitToCurrency(_EAMT.NONRESPAYROLLBX).ToString();
            fobj.AMT_INFO.NON_RES_TAX_DUE_B   = CopMvcUtil.ConvDigitToCurrency(_EAMT.NONRESTAXDUEBX).ToString();
            fobj.AMT_INFO.TOTAL_GROSS_TAX_DUE = CopMvcUtil.ConvDigitToCurrency(_EAMT.TOTALGROSSTAXDUEX);
            fobj.AMT_INFO.TAX_PAID            = CopMvcUtil.ConvDigitToCurrency(_EAMT.TAXPAIDX);
            fobj.AMT_INFO.TAX_DUE             = CopMvcUtil.ConvDigitToCurrency(_EAMT.TAXDUEX);
            fobj.AMT_INFO.TAX_OVERPAID        = CopMvcUtil.ConvDigitToCurrency(_EAMT.TAXOVERPAIDX);
            fobj.AMT_INFO.POSTING_DATE        = CopMvcUtil.ConvDate(_EAMT.POSTINGDATEX);
            fobj.AMT_INFO.FILING_DATE         = CopMvcUtil.ConvDate(_EAMT.FILINGDATEX);
            fobj.AMT_INFO.USER_ID             = _EAMT.USERID;



            return(fobj);
        }
Example #16
0
        //private static NPTRETURN __Call(NPTRETURN e)
        //{
        //    switch (e.NPT_INFO.RETURN_STATUS)
        //    {
        //        case "INQ":
        //            e = __RTTIE039_F_I(e);
        //            break;
        //        case null: // submit
        //            e = __RTTIE039_F_U(e);
        //           break;

        //        default:
        //            {
        //                e.NPT_INFO.RETURN_STATUS = "INQ";
        //                e = __RTTIE039_F_I(e);
        //                break;
        //            }
        //    }


        //    return e;
        //}

        //private static COPXmlFactory.RTTIE039_2015.NPTRETURN __RTTIE039_F_I(COPXmlFactory.RTTIE039_2015.NPTRETURN e)
        //{
        //    RTTIE239_SrvRef.RTTIE239 serv_req = new RTTIE239_SrvRef.RTTIE239();

        //    serv_req._ENPT = new RTTIE239_SrvRef._ENPT();

        //    serv_req._ENPT.ACCOUNTID = e.NPT_INFO.ACCOUNT_ID;
        //    serv_req._ENPT.PERIODX = CopMvcUtil.ConvDateDecimal(e.NPT_INFO.PERIOD).ToString();
        //    serv_req._ENPT.RETURNSTATUS = e.NPT_INFO.RETURN_STATUS;

        //    RTTIE239_SrvRef.RTTIE239Response response = _client.RTTIE239(serv_req);

        //    e = __Fill(response);

        //    return e;
        //}

        private static COPXmlFactory.RTTIE039_2015.NPTRETURN __Fill(RTTIE239_SrvRef.RTTIE239Response e)
        {
            COPXmlFactory.RTTIE039_2015.NPTRETURN fobj = RevenueGovXMLFactory.GetNPT_2015Return();

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

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

            //LOAD NPT_INFO
            fobj.NPT_INFO                   = new NPT_INFO();
            fobj.NPT_INFO.ACCOUNT_ID        = e._ENPT.ACCOUNTID;
            fobj.NPT_INFO.PERIOD            = CopMvcUtil.ConvDate(e._ENPT.PERIODX);
            fobj.NPT_INFO.VERSION           = e._ENPT.VERSIONX;
            fobj.NPT_INFO.RETURN_STATUS     = e._ENPT.RETURNSTATUS;
            fobj.NPT_INFO.LAST_UPD_DATE     = CopMvcUtil.ConvDate(e._ENPT.LASTUPDATEDATEX);
            fobj.NPT_INFO.RECORDING_DATE    = CopMvcUtil.ConvDate(e._ENPT.RECORDINGDATEX);
            fobj.NPT_INFO.EXTENSION_DATE    = CopMvcUtil.ConvDate(e._ENPT.EXTENSIONDATEX);
            fobj.NPT_INFO.SEQUENCE          = e._ENPT.SEQUENCENUMBER;
            fobj.NPT_INFO.ADJUSTMENT_REF_NO = e._ENPT.ADJUSTMENTREFERENCENUM;
            fobj.NPT_INFO.USER_ID           = e._ENPT.USERID;
            fobj.NPT_INFO.RESIDENT_RATE     = CopMvcUtil.ConvDigitToDouble9(e._ENPT.RATERES);
            fobj.NPT_INFO.NON_RES_RATE      = CopMvcUtil.ConvDigitToDouble9(e._ENPT.RATENONRES);
            fobj.NPT_INFO.PREPARER_NAME     = e._ENPT.PREPARERNAME;

            if ((CopMvcUtil.GetLong(e._ENPT.PREPARERPHONE) == 0))
            {
                fobj.NPT_INFO.PREPARER_PHONE = string.Empty;
            }
            else
            {
                fobj.NPT_INFO.PREPARER_PHONE = CopMvcUtil.GetString(e._ENPT.PREPARERPHONE);
            }
            // fobj.NPT_INFO.PREPARER_PHONE = CopMvcUtil.GetString(e._ENPT.PREPARERPHONE);

            fobj.NPT_INFO.PREPARER_PHONE_EXT     = e._ENPT.PREPARERPHONEEXT;
            fobj.NPT_INFO.PREPARER_IP_ADDRESS    = e._ENPT.PREPARERIPADDRESS;
            fobj.NPT_INFO.PREPARER_EMAIL_ADDRESS = e._ENPT.PREPAREREMAILADDRESS;
            fobj.NPT_INFO.PREPARER_WHO           = e._ENPT.PREPARERTYPE;

            //NPT_PG1
            fobj.NPT_PG1 = new NPT_PG1();
            //Modified and added some new fields
            fobj.NPT_PG1.RESIDENT_INCOME_NOT_ELIGIBLE     = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.RESTAXABLEINCOMEX);
            fobj.NPT_PG1.RESIDENT_INCOME_TAX_NOT_ELIGIBLE = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.RESTAXDUEX);
            fobj.NPT_PG1.RESIDENT_INCOME_ELIGIBLE         = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.NONRESTAXINCOMEX);
            fobj.NPT_PG1.RES_INCOME_TAX_ELIGIBLE          = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.NONRESTAXDUEX);

            fobj.NPT_PG1.RESIDENT_TOTAL_TAX              = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.RESTAXABLEINCOMEX);
            fobj.NPT_PG1.NON_RES_INCOME_NOT_ELIGIBLE     = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.RESTAXDUEX);
            fobj.NPT_PG1.NON_RES_INCOME_TAX_NOT_ELIGIBLE = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.NONRESTAXINCOMEX);
            fobj.NPT_PG1.NON_RES_INCOME_ELIGIBLE         = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.NONRESTAXDUEX);
            fobj.NPT_PG1.NON_RES_INCOME_TAX_ELIGIBLE     = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.RESTAXABLEINCOMEX);
            fobj.NPT_PG1.NON_RES_TOTAL_TAX = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.RESTAXDUEX);


            fobj.NPT_PG1.TOTAL_TAX         = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.TOTALTAXDUE1X);
            fobj.NPT_PG1.BPT_TAX_CREDIT    = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.BPTCREDITX);
            fobj.NPT_PG1.OTHER_TAX_CREDIT  = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.OTHERX);
            fobj.NPT_PG1.TOTAL_PAY_CREDITS = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.TOTALCREDITSX);
            fobj.NPT_PG1.TAX_DUE           = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.TOTALTAXDUEX);
            fobj.NPT_PG1.INTEREST_PENALTY  = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.INTERESTPENALTYX);
            fobj.NPT_PG1.TOTAL_DUE         = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.TOTALTAXDUEX);
            fobj.NPT_PG1.OVERPAY           = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.TAXOVERPAIDX);
            fobj.NPT_PG1.LINE17            = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.NETPROFITESTX);
            fobj.NPT_PG1.BALANCE           = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.NETPROFITESTX);//newly added
            fobj.NPT_PG1.REFUND            = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.REFUNDAMTX);
            fobj.NPT_PG1.BPT_OVERPAY       = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.BPTOVERPAYMENTX);
            fobj.NPT_PG1.NPT_OVERPAY       = CopMvcUtil.ConvDigitToCurrency(e._EAMTS.NPTOVERPAYMENTX);

            return(fobj);
        }
Example #17
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);
        }
Example #18
0
        private static COPXmlFactory.RTTIE016.PAYCOUPON __Fill(RTTIE016_SrvRef.TT016E00Response_SMA _SMA, RTTIE016_SrvRef.TT016E00Response_EMI _EMI, RTTIE016_SrvRef.TT016E00Response_ETA _ETA, RTTIE016_SrvRef.TT016E00Response_EWAGNTL _EWAGNTL)
        {
            COPXmlFactory.RTTIE016.PAYCOUPON fobj = RevenueGovXMLFactory.GetPAYCOUPON();

            //LOAD ERRORS INTO OBJECT
            fobj.ERROR_INFO = new ERROR_INFO();
            if (_SMA._SYSTEMMESSAGEAREA != null)
            {
                fobj.ERROR_INFO.PROGRAM = _SMA._SYSTEMMESSAGEAREA._PROGRAM;
                fobj.ERROR_INFO.LINE    = _SMA._SYSTEMMESSAGEAREA.ERROR.ToString();
                fobj.ERROR_INFO.MESSAGE = _SMA._SYSTEMMESSAGEAREA.MESSAGE;
                fobj.ERROR_INFO.ERROR   = _SMA._SYSTEMMESSAGEAREA.ERROR.ToString();
            }

            //LOAD ENTITY_INFO
            fobj.ENTITY_INFO = new ENTITY_INFO();
            fobj.ENTITY_INFO.FUNCTION_CODE = _EMI._ENTITYMASTERINFO.FUNCTIONCODE;
            fobj.ENTITY_INFO.ENT_TYPE      = CopMvcUtil.GetDouble(_EMI._ENTITYMASTERINFO.ENTITYTYPE).ToString();
            fobj.ENTITY_INFO.ENTITY_ID     = _EMI._ENTITYMASTERINFO.ENTITYID;
            fobj.ENTITY_INFO.ACCT_ID       = _EMI._ENTITYMASTERINFO.ACCTID;
            fobj.ENTITY_INFO.NAME          = _EMI._ENTITYMASTERINFO.ENTITYNAME;
            fobj.ENTITY_INFO.ADDRESS1      = _EMI._ENTITYMASTERINFO.ADDRESSLINE;
            fobj.ENTITY_INFO.ADDRESS2      = _EMI._ENTITYMASTERINFO.ADDRESSLINE2;
            fobj.ENTITY_INFO.ADDRESS3      = _EMI._ENTITYMASTERINFO.ADDRESSLINE3;
            fobj.ENTITY_INFO.CITY          = _EMI._ENTITYMASTERINFO.CITY;
            fobj.ENTITY_INFO.STATE         = _EMI._ENTITYMASTERINFO.STATE;
            fobj.ENTITY_INFO.ZIP_CODE      = _EMI._ENTITYMASTERINFO.ZIPCODE;

            //LOAD TAX ACCT s
            fobj.TAX_ACCT = new List <TAX_ACCT>();
            if (_ETA._ENTITYTAXACCOUNTSs != null)
            {
                for (int i = 0; i < _ETA._ENTITYTAXACCOUNTSs.Length; i++)
                {
                    fobj.TAX_ACCT.Add(COPXmlFactory.RevenueGovXMLFactory.GetPAYCOUPON_TAX_ACCT());
                    fobj.TAX_ACCT[i].FUNC_CODE      = _ETA._ENTITYTAXACCOUNTSs[i].FUNCTIONCODE;
                    fobj.TAX_ACCT[i].ACCOUNT        = CopMvcUtil.GetDecimal(_ETA._ENTITYTAXACCOUNTSs[i].ACCOUNT).ToString();
                    fobj.TAX_ACCT[i].ACCOUNT_ID     = _ETA._ENTITYTAXACCOUNTSs[i].ACCOUNTID;
                    fobj.TAX_ACCT[i].START_DATE     = CopMvcUtil.ConvDate(_ETA._ENTITYTAXACCOUNTSs[i].STARTDATE);
                    fobj.TAX_ACCT[i].END_DATE       = CopMvcUtil.ConvDate(_ETA._ENTITYTAXACCOUNTSs[i].ENDDATE);
                    fobj.TAX_ACCT[i].BRT_ADDRESS1   = _ETA._ENTITYTAXACCOUNTSs[i].BRTADDRESS;
                    fobj.TAX_ACCT[i].FREQUENCY_CODE = _ETA._ENTITYTAXACCOUNTSs[i].FREQUENCY;
                }
            }

            //LOAD WAGE_NTL
            fobj.WAGE_NTL = new WAGE_NTL();
            if (_EWAGNTL.ACCOUNTID != null)
            {
                fobj.WAGE_NTL.ACCOUNT_ID             = _EWAGNTL.ACCOUNTID;
                fobj.WAGE_NTL.PERIOD                 = CopMvcUtil.ConvDate(_EWAGNTL.PERIODX.PERIOD);
                fobj.WAGE_NTL.FREQUENCY_CODE         = _EWAGNTL.FREQUENCY;
                fobj.WAGE_NTL.ADJ_REF_NO             = _EWAGNTL.ADJREFNO;
                fobj.WAGE_NTL.PREPARER_NAME          = _EWAGNTL.PREPARERNAME;
                fobj.WAGE_NTL.PREPARER_PHONE         = _EWAGNTL.PREPARERPHONE;
                fobj.WAGE_NTL.PREPARER_PHONE_EXT     = _EWAGNTL.PREPARERPHONEEXT;
                fobj.WAGE_NTL.PREPARER_IP_ADDRESS    = _EWAGNTL.PREPARERIPADDRESS;
                fobj.WAGE_NTL.PREPARER_EMAIL_ADDRESS = _EWAGNTL.PREPAREREMAIL;
                fobj.WAGE_NTL.PREPARER_WHO           = _EWAGNTL.PREPARERTYPE;
            }
            else
            {
                fobj.WAGE_NTL.ACCOUNT_ID             = "";
                fobj.WAGE_NTL.PERIOD                 = "";
                fobj.WAGE_NTL.FREQUENCY_CODE         = "";
                fobj.WAGE_NTL.ADJ_REF_NO             = "";
                fobj.WAGE_NTL.PREPARER_NAME          = "";
                fobj.WAGE_NTL.PREPARER_PHONE         = "";
                fobj.WAGE_NTL.PREPARER_PHONE_EXT     = "";
                fobj.WAGE_NTL.PREPARER_IP_ADDRESS    = "";
                fobj.WAGE_NTL.PREPARER_EMAIL_ADDRESS = "";
                fobj.WAGE_NTL.PREPARER_WHO           = "";
            }
            //LOAD COUPON_FORM
            fobj.COUPON_FORM = new COUPON_FORM();
            if (_EWAGNTL.ACCOUNTID != null)
            {
                fobj.COUPON_FORM.CPN_ACCOUNT      = "";
                fobj.COUPON_FORM.CPN_ACCOUNT_TYPE = "";
                fobj.COUPON_FORM.CPN_NAME         = "";
                fobj.COUPON_FORM.CPN_ADDR         = "";
                fobj.COUPON_FORM.CPN_ADDR2        = "";
                fobj.COUPON_FORM.CPN_ADDR3        = "";
                fobj.COUPON_FORM.CPN_CITY         = "";
                fobj.COUPON_FORM.CPN_STATE        = "";
                fobj.COUPON_FORM.CPN_ZIP_CODE     = "";
                fobj.COUPON_FORM.CPN_SCAN         = "";
                fobj.COUPON_FORM.CPN_PERIOD       = "";
                fobj.COUPON_FORM.CPN_YEAR         = "";
                fobj.COUPON_FORM.CPN_FORM         = "";
            }

            return(fobj);
        }
Example #19
0
        private static COPXmlFactory.RTTIE028.TOBACCORETURN __Fill(TOBACCO_RTTIE028_SrvRef.TT028E00Response_SMA _SMA, TOBACCO_RTTIE028_SrvRef.TT028E00Response_ETOB _ETOB, TOBACCO_RTTIE028_SrvRef.TT028E00Response_EAMT _EAMT)
        {
            COPXmlFactory.RTTIE028.TOBACCORETURN fobj = RevenueGovXMLFactory.GetTOBACCORETURN();

            //LOAD ERRORS INTO OBJECT
            fobj.ERROR_INFO = new ERROR_INFO();
            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 TOBACCO_INFO
            fobj.TOBACCO_INFO = new TOBACCO_INFO();

            fobj.TOBACCO_INFO.ACCOUNT_ID             = _ETOB.ACCOUNTID;
            fobj.TOBACCO_INFO.PERIOD                 = CopMvcUtil.ConvDate(_ETOB.PERIODX);
            fobj.TOBACCO_INFO.VERSION                = _ETOB.VERSIONX;
            fobj.TOBACCO_INFO.RETURN_STATUS          = _ETOB.RETURNSTATUS;
            fobj.TOBACCO_INFO.LAST_UPD_DATE          = CopMvcUtil.ConvDate(_ETOB.LASTUPDATEDATEX);
            fobj.TOBACCO_INFO.USER_ID                = _ETOB.USERID;
            fobj.TOBACCO_INFO.RECORDING_DATE         = CopMvcUtil.ConvDate(_ETOB.RECORDINGDATEX);
            fobj.TOBACCO_INFO.SEQUENCE               = _ETOB.SEQUENCENUM;
            fobj.TOBACCO_INFO.ADJUSTMENT_REF_NO      = _ETOB.ADJUSTMENTREFERENCENUM;
            fobj.TOBACCO_INFO.RATE_ITEM              = CopMvcUtil.ConvDigitToDouble9(_ETOB.RATEITEM);
            fobj.TOBACCO_INFO.RATE_PACK              = CopMvcUtil.ConvDigitToDouble9(_ETOB.RATEPACK);
            fobj.TOBACCO_INFO.RATE_PAPER             = CopMvcUtil.ConvDigitToDouble9(_ETOB.RATEPAPER);
            fobj.TOBACCO_INFO.PREPARER_NAME          = _ETOB.PREPARERNAME;
            fobj.TOBACCO_INFO.PREPARER_PHONE         = Convert.ToString(_ETOB.PREPARERPHONE);
            fobj.TOBACCO_INFO.PREPARER_PHONE_EXT     = _ETOB.PREPARERPHONEEXT;
            fobj.TOBACCO_INFO.PREPARER_IP_ADDRESS    = _ETOB.PREPARERIPADDRESS;
            fobj.TOBACCO_INFO.PREPARER_EMAIL_ADDRESS = _ETOB.PREPAREREMAILADDRESS;
            fobj.TOBACCO_INFO.PREPARER_WHO           = _ETOB.PREPARERTYPE;



            //LOAD AMT_INFO
            fobj.AMT_INFO = new AMT_INFO();

            fobj.AMT_INFO.ITEM_TOTAL       = CopMvcUtil.GetDouble(_EAMT.ITEMTOTALX).ToString();
            fobj.AMT_INFO.ITEM_NOT_PHILA   = CopMvcUtil.GetDouble(_EAMT.ITEMNOTPHILAX).ToString();
            fobj.AMT_INFO.ITEM_PHILA       = CopMvcUtil.GetDouble(_EAMT.ITEMPHILAX).ToString();
            fobj.AMT_INFO.ITEM_TAX_DUE     = CopMvcUtil.ConvDigitToCurrency(_EAMT.ITEMTAXDUEX);
            fobj.AMT_INFO.PACK_TOTAL       = CopMvcUtil.GetDouble(_EAMT.PACKTOTALX).ToString();
            fobj.AMT_INFO.PACK_NOT_PHILA   = CopMvcUtil.GetDouble(_EAMT.PACKNOTPHILAX).ToString();
            fobj.AMT_INFO.PACK_PHILA       = CopMvcUtil.GetDouble(_EAMT.PACKPHILAX).ToString();
            fobj.AMT_INFO.PACK_TAX_DUE     = CopMvcUtil.ConvDigitToCurrency(_EAMT.PACKTAXDUEX);
            fobj.AMT_INFO.PAPER_TOTAL      = CopMvcUtil.GetDouble(_EAMT.PAPERTOTALX).ToString();
            fobj.AMT_INFO.PAPER_NOT_PHILA  = CopMvcUtil.GetDouble(_EAMT.PAPERNOTPHILAX).ToString();
            fobj.AMT_INFO.PAPER_PHILA      = CopMvcUtil.GetDouble(_EAMT.PAPERPHILAX).ToString();
            fobj.AMT_INFO.PAPER_TAX_DUE    = CopMvcUtil.ConvDigitToCurrency(_EAMT.PAPERTAXDUEX);
            fobj.AMT_INFO.TOTAL_TAX_DUE    = CopMvcUtil.ConvDigitToCurrency(_EAMT.TOTALTAXDUEX);
            fobj.AMT_INFO.CREDITS          = CopMvcUtil.ConvDigitToCurrency(_EAMT.CREDITSX).ToString();
            fobj.AMT_INFO.NET_TAX_DUE      = CopMvcUtil.ConvDigitToCurrency(_EAMT.NETTAXDUEX);
            fobj.AMT_INFO.INTEREST_PENALTY = CopMvcUtil.ConvDigitToCurrency(_EAMT.INTERESTPENALTYX).ToString();

            fobj.AMT_INFO.TOTAL_AMOUNT_DUE = CopMvcUtil.ConvDigitToCurrency(_EAMT.TOTALAMTDUEX);
            fobj.AMT_INFO.REFUND           = CopMvcUtil.ConvDigitToCurrency(_EAMT.REFUNDX).ToString();
            fobj.AMT_INFO.ROLL_FORWARD     = CopMvcUtil.ConvDigitToCurrency(_EAMT.ROLLFORWARDX).ToString();



            return(fobj);
        }
Example #20
0
        private static COPXmlFactory.RTTIE030_2014.BPTlfReturn __Fill(RTTIE230_SrvRef.RTTIE230Response e)
        {
            COPXmlFactory.RTTIE030_2014.BPTlfReturn fobj = RevenueGovXMLFactory.GetBPTlf_2014Return();

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

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

            //LOAD BPT_INFO
            fobj.BPT_INFO                   = new BPT_INFO();
            fobj.BPT_INFO.ACCOUNT_ID        = e._ELFBPT.ACCOUNTID;
            fobj.BPT_INFO.VERSION           = e._ELFBPT.VERSIONX;
            fobj.BPT_INFO.RETURN_STATUS     = e._ELFBPT.RETURNSTATUS;
            fobj.BPT_INFO.PERIOD            = CopMvcUtil.ConvDate(e._ELFBPT.PERIODX);
            fobj.BPT_INFO.LAST_UPD_DATE     = CopMvcUtil.ConvDate(e._ELFBPT.LASTUPDATEDATEX);
            fobj.BPT_INFO.RECORDING_DATE    = CopMvcUtil.ConvDate(e._ELFBPT.RECORDINGDATEX);
            fobj.BPT_INFO.EXTENSION_DATE    = CopMvcUtil.ConvDate(e._ELFBPT.EXTENSIONDATEX);
            fobj.BPT_INFO.SEQUENCE          = e._ELFBPT.SEQUENCENUM;
            fobj.BPT_INFO.ADJUSTMENT_REF_NO = e._ELFBPT.ADJREFNO;
            fobj.BPT_INFO.USER_ID           = e._ELFBPT.USERID;

            fobj.BPT_INFO.SCH_AB_TAX_RATE  = CopMvcUtil.ConvDigitToDouble9(e._ELFBPT.NETRATEX);
            fobj.BPT_INFO.SCH_D_TAX_RATE   = CopMvcUtil.ConvDigitToDouble9(e._ELFBPT.GROSSRATEX);
            fobj.BPT_INFO.SCH_E_M_TAX_RATE = CopMvcUtil.ConvDigitToDouble9(e._ELFBPT.MANUFACTURERRATEX);
            fobj.BPT_INFO.SCH_E_W_TAX_RATE = CopMvcUtil.ConvDigitToDouble9(e._ELFBPT.WHOLESALERRATEX);
            fobj.BPT_INFO.SCH_E_R_TAX_RATE = CopMvcUtil.ConvDigitToDouble9(e._ELFBPT.RETAILERRATEX);

            fobj.BPT_INFO.LOSS_CARRY_FOWARD      = e._ELFBPT.LOSSCARRYFORWARDX;
            fobj.BPT_INFO.PREPARER_NAME          = e._ELFBPT.PREPARERNAME;
            fobj.BPT_INFO.PREPARER_PHONE         = CopMvcUtil.ConvDecimal(e._ELFBPT.PREPARERPHONE).ToString();
            fobj.BPT_INFO.PREPARER_PHONE_EXT     = e._ELFBPT.PREPARERPHONEEXT;
            fobj.BPT_INFO.PREPARER_IP_ADDRESS    = e._ELFBPT.PREPARERIPADDRESS;
            fobj.BPT_INFO.PREPARER_EMAIL_ADDRESS = e._ELFBPT.PREPAREREMAILADDRESS;
            fobj.BPT_INFO.PREPARER_WHO           = e._ELFBPT.PREPARERTYPE;

            //BPT_PG1
            fobj.BPT_PG1                   = new BPT_PG1();
            fobj.BPT_PG1.NET_INCOME        = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.TAXONNETX);
            fobj.BPT_PG1.GROSS_RECEIPTS    = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.TAXONGROSSX);
            fobj.BPT_PG1.TAX_DUE           = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.ACTUALTAXX);
            fobj.BPT_PG1.ESTIMATED_TAX     = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.ESTIMATEDTAXX);
            fobj.BPT_PG1.TOTAL_TAX         = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.TOTALTAXX);
            fobj.BPT_PG1.NPT_TAX_CREDIT    = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.NPTTAXCREDITX);
            fobj.BPT_PG1.BPT_TAX_CREDIT    = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.BPTTAXCREDITX);
            fobj.BPT_PG1.TOTAL_PAY_CREDITS = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.TOTALPAYMNTSCREDITSX);
            fobj.BPT_PG1.NET_TAX           = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.TAXDUEAMTX);
            fobj.BPT_PG1.INTEREST_PENALTY  = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.INTERESTANDPENALTYAMTX);
            fobj.BPT_PG1.AMOUNT_OWED       = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.AMTOWED2X);
            fobj.BPT_PG1.REFUND            = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.REFUNDAMTX);
            fobj.BPT_PG1.NPT_OVERPAY       = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.NPTOVERPAYMENTX);
            fobj.BPT_PG1.BPT_OVERPAY       = CopMvcUtil.ConvDigitToCurrency(e._ELFPG1.BPTOVERPAYMENTX);

            //BPT_SCH_A
            fobj.BPT_SCH_A                        = new BPT_SCH_A();
            fobj.BPT_SCH_A.NI_LOSS                = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.NETINCOMELOSSX);
            fobj.BPT_SCH_A.NI_PORT_ACTIVITIES     = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.NETINCOMEPORTACTIVITIESX);
            fobj.BPT_SCH_A.NI_PUC_ICC             = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.NETINCOMEPUCICCX);
            fobj.BPT_SCH_A.NI_PUBLIC_LAW          = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.NETINCOMEPUBLICLAWX);
            fobj.BPT_SCH_A.I_APPORTIONED          = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.INCOMEAPPORTIONEDX);
            fobj.BPT_SCH_A.I_APPORTIONED_PERCENT  = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.APPORTIONPERCENTX);
            fobj.BPT_SCH_A.I_APPORTIONED_PHILA    = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.INCOMEAPPORTIONEDPHILAX);
            fobj.BPT_SCH_A.I_NONBUS_PHILA         = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.INCOMENONBUSPHILAX);
            fobj.BPT_SCH_A.I_CURRENT_YEAR         = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.INCOMECURRENTYEARX);
            fobj.BPT_SCH_A.LOSS_CARRY_FORWARD     = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.LOSSCARRYFORWARDX);
            fobj.BPT_SCH_A.I_TAXABLE              = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.TAXABLEINCOMEX);
            fobj.BPT_SCH_A.TAX_DUE                = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHA.TAXDUEX);
            fobj.BPT_SCH_A.STAT_NET_DEDUCTION_A_X = CopMvcUtil.ConvDigitToCurrency(e._NEW2014FIELDS._STATNETDEDUCTIONAX);  //binoy

            //BPT_SCH_B
            fobj.BPT_SCH_B                        = new BPT_SCH_B();
            fobj.BPT_SCH_B.NI_LOSS                = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._NETINCOMEX);
            fobj.BPT_SCH_B.ADJ_NI_INTEREST        = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._ADJNETINCOMEINTERESTX);
            fobj.BPT_SCH_B.ADJ_NI_PORT_ACTIVITIES = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._ADJNETINCPORTACTIVITIESX);
            fobj.BPT_SCH_B.ADJ_NI_PUC_ICC         = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._ADJNETINCOMEPUCICCX);
            fobj.BPT_SCH_B.ADJ_NI_PUBLIC_LAW      = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._ADJNETINCOMEPUBLICLAWX);
            fobj.BPT_SCH_B.ADJ_RECEIPTS_DIR       = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._ADJRECEIPTSDIRX);
            fobj.BPT_SCH_B.ADJ_INCOME             = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._ADJUSTEDINCOMEX);
            fobj.BPT_SCH_B.ADJ_RECEIPTS_OTHER     = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._ADJRECEIPTSOTHERX);
            fobj.BPT_SCH_B.ADJ_GROSS_RECEIPTS     = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._ADJGROSSRECEIPTSX);
            fobj.BPT_SCH_B.ADJ_GROSS_PERCENT      = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._GROSSPERCENTX);
            fobj.BPT_SCH_B.ADJ_TOTAL              = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._TOTALADJUSTMENTSX);
            fobj.BPT_SCH_B.NI_ADJUSTED            = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._NETINCOMEADJUSTEDX);
            fobj.BPT_SCH_B.I_NONBUS               = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._NONBUSINCOMEX);
            fobj.BPT_SCH_B.I_APPORTIONED          = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._INCOMEAPPORTIONEDX);
            fobj.BPT_SCH_B.I_APPORTIONED_PERCENT  = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB.APPORTIONPERCENTX);
            fobj.BPT_SCH_B.I_APPORTIONED_PHILA    = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._INCOMEAPPORTIONEDPHILAX);
            fobj.BPT_SCH_B.I_NONBUS_PHILA         = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._INCOMENONBUSPHILAX);
            fobj.BPT_SCH_B.I_CURRENT_YEAR         = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._INCOMECURRENTYEARX);
            fobj.BPT_SCH_B.LOSS_CARRY_FORWARD     = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._LOSSCARRYFORWARDX);
            fobj.BPT_SCH_B.I_TAXABLE              = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._INCOMETAXABLEX);
            fobj.BPT_SCH_B.TAX_DUE                = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHB._TAXDUEX);
            fobj.BPT_SCH_B.STAT_NET_DEDUCTION_B_X = CopMvcUtil.ConvDigitToCurrency(e._NEW2014FIELDS._STATNETDEDUCTIONBX);  //binoy

            //BPT_SCH_C1
            fobj.BPT_SCH_C1 = new BPT_SCH_C1();

            fobj.BPT_SCH_C1.TOTAL_AVG_PHILA = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHC1._PROPERTYPHILAX);
            fobj.BPT_SCH_C1.TOTAL_AVG_ALL   = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHC1._PROPERTYALLX);

            fobj.BPT_SCH_C1.PROPERTY_FACTOR_PHILA = CopMvcUtil.ConvDigitToDouble9(e._ELFSCHC1._PROPERTYFACTORX);
            fobj.BPT_SCH_C1.PAYROLL_PHILA         = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHC1._PAYROLLPHILAX);
            fobj.BPT_SCH_C1.PAYROLL_ALL           = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHC1._PAYROLLALLX);
            fobj.BPT_SCH_C1.PAYROLL_FACTOR_PHILA  = CopMvcUtil.ConvDigitToDouble9(e._ELFSCHC1._PAYROLLFACTORX);
            fobj.BPT_SCH_C1.RECEIPTS_PHILA        = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHC1._RECEIPTSPHILAX);
            fobj.BPT_SCH_C1.RECEIPTS_ALL          = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHC1._RECEIPTSALLX);
            fobj.BPT_SCH_C1.RECEIPTS_FACTOR_PHILA = CopMvcUtil.ConvDigitToDouble9(e._ELFSCHC1._RECEIPTSFACTORX);
            fobj.BPT_SCH_C1.TOTAL_FACTORS         = CopMvcUtil.ConvDigitToDouble9(e._ELFSCHC1._TOTALFACTORSX);
            fobj.BPT_SCH_C1.AVERAGE_FACTORS       = CopMvcUtil.ConvDigitToDouble9(e._ELFSCHC1._AVERAGEFACTORSX);

            //BPT_SCH_D
            fobj.BPT_SCH_D                      = new BPT_SCH_D();
            fobj.BPT_SCH_D.GR_SALES             = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._GROSSSALESX);
            fobj.BPT_SCH_D.GR_SERVICES          = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._GROSSSERVICESX);
            fobj.BPT_SCH_D.GR_RENTALS           = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._GROSSRENTALSX);
            fobj.BPT_SCH_D.GR_TOTALS            = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._TOTALRECEIPTSX);
            fobj.BPT_SCH_D.LE_SALES_OUT         = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._LESALESOUTX);
            fobj.BPT_SCH_D.LE_SERVICES_OUT      = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._LESERVICESOUTX);
            fobj.BPT_SCH_D.LE_RENTALS_OUT       = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._LERENTALSOUTX);
            fobj.BPT_SCH_D.LE_OTHER             = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._LEOTHERAMTX);
            fobj.BPT_SCH_D.NET_TAXABLE_RECEIPTS = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._NETTAXABLERECEIPTSX);
            fobj.BPT_SCH_D.LE_TOTAL             = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._LEMETHODRECEIPTSX);
            fobj.BPT_SCH_D.TAXABLE_RECEIPTS     = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._REGULARRECEIPTSX);
            fobj.BPT_SCH_D.TAX_DUE              = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._TAXDUEREGULARX);
            fobj.BPT_SCH_D.TAX_DUE_ALT          = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._TAXDUEALTX);
            fobj.BPT_SCH_D.TOTAL_TAX_DUE        = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHD._TOTALTAXDUEX);
            fobj.BPT_SCH_D.STAT_EXCLUSION_D_X   = CopMvcUtil.ConvDigitToCurrency(e._NEW2014FIELDS._STATEXCLUSIONDX); //binoy

            //BPT_SCH_E
            fobj.BPT_SCH_E = new BPT_SCH_E();
            fobj.BPT_SCH_E.M_ALT_RECEIPTS    = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._MALTRECEIPTSX);
            fobj.BPT_SCH_E.M_GOODS_COST      = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._MGOODSCOSTX);
            fobj.BPT_SCH_E.M_TAX_BASE        = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._MTAXBASEX);
            fobj.BPT_SCH_E.M_TAX_DUE         = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._MTAXDUEX);
            fobj.BPT_SCH_E.W_ALT_RECEIPTS    = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._WALTRECEIPTSX);
            fobj.BPT_SCH_E.W_GOODS_MATERIALS = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._WGOODSMATERIALSX);
            fobj.BPT_SCH_E.W_GOODS_LABOR     = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._WGOODSLABORX);
            fobj.BPT_SCH_E.W_GOODS_COST      = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._WGOODSCOSTX);
            fobj.BPT_SCH_E.W_TAX_BASE        = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._WTAXBASEX);
            fobj.BPT_SCH_E.W_TAX_DUE         = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._WTAXDUEX);
            fobj.BPT_SCH_E.R_ALT_RECEIPTS    = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._RALTRECEIPTSX);
            fobj.BPT_SCH_E.R_GOODS_MATERIALS = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._RGOODSMATERIALSX);
            fobj.BPT_SCH_E.R_GOODS_LABOR     = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._RGOODSLABORX);
            fobj.BPT_SCH_E.R_GOODS_COST      = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._RGOODSCOSTX);
            fobj.BPT_SCH_E.R_TAX_BASE        = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._RTAXBASEX);
            fobj.BPT_SCH_E.R_TAX_DUE         = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._RTAXDUEX);
            fobj.BPT_SCH_E.TOTAL_TAX_DUE     = CopMvcUtil.ConvDigitToCurrency(e._ELFSCHE._TOTALALTTAXDUEX);

            //BPT_TBL_C1


            return(fobj);
        }
Example #21
0
        private static COPXmlFactory.RTTIE039.NPTRETURN __Fill(RTTIE040_SrvRef.TT040E00Response_SMA _SMA, RTTIE040_SrvRef.TT040E00Response_ENPT _ENPT,
                                                               RTTIE040_SrvRef.TT040E00Response_EAMTS _EAMTS, RTTIE040_SrvRef.TT040E00Response_SERR _SERR)
        {
            COPXmlFactory.RTTIE039.NPTRETURN fobj = RevenueGovXMLFactory.GetNPTReturn();

            //LOAD ERRORS INTO OBJECT
            fobj.ERROR_INFO = new ERROR_INFO();
            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 NPT_INFO
            fobj.NPT_INFO = new NPT_INFO();

            fobj.NPT_INFO.ACCOUNT_ID        = _ENPT.ACCOUNTID;
            fobj.NPT_INFO.PERIOD            = CopMvcUtil.ConvDate(_ENPT.PERIODX);
            fobj.NPT_INFO.VERSION           = _ENPT.VERSIONX;
            fobj.NPT_INFO.RETURN_STATUS     = _ENPT.RETURNSTATUS;
            fobj.NPT_INFO.LAST_UPD_DATE     = CopMvcUtil.ConvDate(_ENPT.LASTUPDATEDATEX);
            fobj.NPT_INFO.RECORDING_DATE    = CopMvcUtil.ConvDate(_ENPT.RECORDINGDATEX);
            fobj.NPT_INFO.EXTENSION_DATE    = CopMvcUtil.ConvDate(_ENPT.EXTENSIONDATEX);
            fobj.NPT_INFO.SEQUENCE          = _ENPT.SEQUENCENUMBER;
            fobj.NPT_INFO.ADJUSTMENT_REF_NO = _ENPT.ADJUSTMENTREFERENCENUM;
            fobj.NPT_INFO.USER_ID           = _ENPT.USERID;
            fobj.NPT_INFO.RESIDENT_RATE     = CopMvcUtil.ConvDigitToDouble9(_ENPT.RATERES);

            fobj.NPT_INFO.BASE_RESIDENT_RATE = CopMvcUtil.ConvDigitToDouble9(_ENPT.BASERATERES);

            fobj.NPT_INFO.NON_RES_RATE = CopMvcUtil.ConvDigitToDouble9(_ENPT.RATENONRES);

            fobj.NPT_INFO.BASE_NON_RES_RATE = CopMvcUtil.ConvDigitToDouble9(_ENPT.BASERATENONRES);

            fobj.NPT_INFO.CORP_PARTNER_IND = _ENPT.CORPPARTNERIND;


            fobj.NPT_INFO.PREPARER_NAME = _ENPT.PREPARERNAME;

            if ((CopMvcUtil.GetLong(_ENPT.PREPARERPHONE) == 0))
            {
                fobj.NPT_INFO.PREPARER_PHONE = string.Empty;
            }
            else
            {
                fobj.NPT_INFO.PREPARER_PHONE = CopMvcUtil.GetString(_ENPT.PREPARERPHONE);
            }


            fobj.NPT_INFO.PREPARER_PHONE_EXT     = _ENPT.PREPARERPHONEEXT;
            fobj.NPT_INFO.PREPARER_IP_ADDRESS    = _ENPT.PREPARERIPADDRESS;
            fobj.NPT_INFO.PREPARER_EMAIL_ADDRESS = _ENPT.PREPAREREMAILADDRESS;
            fobj.NPT_INFO.PREPARER_WHO           = _ENPT.PREPARERTYPE;

            //NPT_PG1
            fobj.NPT_PG1 = new NPT_PG1();

            fobj.NPT_PG1.RESIDENT_INCOME     = CopMvcUtil.ConvDigitToCurrency(_EAMTS.RESTAXABLEINCOMEX);
            fobj.NPT_PG1.RESIDENT_INCOME_TAX = CopMvcUtil.ConvDigitToCurrency(_EAMTS.RESTAXDUEX);
            //
            fobj.NPT_PG1.RESIDENT_BASE_INCOME_TAXABLE = CopMvcUtil.ConvDigitToCurrency(_EAMTS.RESBASERATETAXABLEX);
            fobj.NPT_PG1.RESIDENT_BASE_INCOME_TAX     = CopMvcUtil.ConvDigitToCurrency(_EAMTS.RESBASERATETAXX);
            fobj.NPT_PG1.RESIDENT_TOTAL_TAX           = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TOTALRESTAXX);
            //
            fobj.NPT_PG1.NON_RES_INCOME     = CopMvcUtil.ConvDigitToCurrency(_EAMTS.NONRESTAXINCOMEX);
            fobj.NPT_PG1.NON_RES_INCOME_TAX = CopMvcUtil.ConvDigitToCurrency(_EAMTS.NONRESTAXDUEX);
            //
            fobj.NPT_PG1.NON_RES_BASE_INCOME_TAXABLE = CopMvcUtil.ConvDigitToCurrency(_EAMTS.NONRESBASERATETAXABLEX);
            fobj.NPT_PG1.NON_RES_BASE_INCOME_TAX     = CopMvcUtil.ConvDigitToCurrency(_EAMTS.NONRESBASERATETAXX);
            fobj.NPT_PG1.NON_RES_TOTAL_TAX           = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TOTALNONRESTAXX);
            //
            fobj.NPT_PG1.TOTAL_TAX         = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TOTALTAXDUE1X);
            fobj.NPT_PG1.BPT_TAX_CREDIT    = CopMvcUtil.ConvDigitToCurrency(_EAMTS.BPTCREDITX);
            fobj.NPT_PG1.OTHER_TAX_CREDIT  = CopMvcUtil.ConvDigitToCurrency(_EAMTS.OTHERX);
            fobj.NPT_PG1.TOTAL_PAY_CREDITS = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TOTALCREDITSX);
            fobj.NPT_PG1.TAX_DUE           = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TOTALTAXDUEX);
            fobj.NPT_PG1.INTEREST_PENALTY  = CopMvcUtil.ConvDigitToCurrency(_EAMTS.INTERESTPENALTYX);
            fobj.NPT_PG1.TOTAL_DUE         = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TOTALTAXDUEX);
            fobj.NPT_PG1.OVERPAY           = CopMvcUtil.ConvDigitToCurrency(_EAMTS.TAXOVERPAIDX);
            fobj.NPT_PG1.LINE11            = CopMvcUtil.ConvDigitToCurrency(_EAMTS.NETPROFITESTX);
            //
            fobj.NPT_PG1.OVERPAY_AVAILABLE = CopMvcUtil.ConvDigitToCurrency(_EAMTS.OVERPAYMENTAVAILX);//newly added
            //
            fobj.NPT_PG1.REFUND      = CopMvcUtil.ConvDigitToCurrency(_EAMTS.REFUNDAMTX);
            fobj.NPT_PG1.BPT_OVERPAY = CopMvcUtil.ConvDigitToCurrency(_EAMTS.BPTOVERPAYMENTX);
            fobj.NPT_PG1.NPT_OVERPAY = CopMvcUtil.ConvDigitToCurrency(_EAMTS.NPTOVERPAYMENTX);
            //added 2015 corporation Tax
            fobj.NPT_PG1.CORP_PARTNER_PERCENT = _EAMTS.CORPPARTNERPERCENTX;

            return(fobj);
        }
Example #22
0
        private static COPXmlFactory.RTTIE010.ACCTTEMPLATE __Fill(RTTIE010_SrvRef.TT010E00Response_SMA _SMA, RTTIE010_SrvRef.TT010E00Response_EMI _EMI, RTTIE010_SrvRef.TT010E00Response_ENA1 _ENA1, RTTIE010_SrvRef.TT010E00Response_ENA2 _ENA2, RTTIE010_SrvRef.TT010E00Response_ETA _ETA, RTTIE010_SrvRef.TT010E00Response_ECHK _ECHK)
        {
            COPXmlFactory.RTTIE010.ACCTTEMPLATE fobj = RevenueGovXMLFactory.GetAcctTemplate();

            //LOAD ERRORS INTO OBJECT
            fobj.ERROR_INFO = new ERROR_INFO();
            if (_SMA._SYSTEMMESSAGEAREA != null)
            {
                fobj.ERROR_INFO.PROGRAM = _SMA._SYSTEMMESSAGEAREA._PROGRAM;
                fobj.ERROR_INFO.LINE    = _SMA._SYSTEMMESSAGEAREA.LINE.ToString();
                fobj.ERROR_INFO.MESSAGE = _SMA._SYSTEMMESSAGEAREA.MESSAGE;
                fobj.ERROR_INFO.ERROR   = _SMA._SYSTEMMESSAGEAREA.ERROR.ToString();
            }



            //LOAD ENTITY INFOS
            fobj.ENTITY_INFO = new ENTITY_INFO();
            fobj.ENTITY_INFO.FUNCTION_CODE = _EMI._ENTITYMASTERINFO.FUNCTIONCODE;
            fobj.ENTITY_INFO.TYPE          = CopMvcUtil.GetString(_EMI._ENTITYMASTERINFO.ENTITYTYPE);
            fobj.ENTITY_INFO.ENTITY_ID     = _EMI._ENTITYMASTERINFO.ENTITYID;
            fobj.ENTITY_INFO.ACCOUNT_ID    = _EMI._ENTITYMASTERINFO.ACCOUNTID;
            fobj.ENTITY_INFO.NAIC_CODE     = CopMvcUtil.GetString(_EMI._ENTITYMASTERINFO.NAICFEDERALCODE);
            fobj.ENTITY_INFO.SIC_CODE      = CopMvcUtil.GetString(_EMI._ENTITYMASTERINFO.SICFEDERALCODE);
            fobj.ENTITY_INFO.START_DATE    = CopMvcUtil.ConvDate(_EMI._ENTITYMASTERINFO.BUSINESSSTARTDATE);



            fobj.ENTITY_INFO.ORGTYPE     = CopMvcUtil.GetString(_EMI._ENTITYMASTERINFO.ORGANIZATIONTYPE);
            fobj.ENTITY_INFO.ORIGIN      = CopMvcUtil.GetString(_EMI._ENTITYMASTERINFO.BUSINESSORIGIN);
            fobj.ENTITY_INFO.GENDER      = _EMI._ENTITYMASTERINFO.BUSINESSGENDER;
            fobj.ENTITY_INFO.OTHER       = _EMI._ENTITYMASTERINFO.BUSINESSOTHER;
            fobj.ENTITY_INFO.PIN         = CopMvcUtil.GetString(_EMI._ENTITYMASTERINFO.PINNUMBER);
            fobj.ENTITY_INFO.FORCEPINCHG = CopMvcUtil.GetString(_EMI._ENTITYMASTERINFO.PINSWITCH);



            fobj.NAME_ADDRESS = new List <NAME_ADDRESS>();

            if (_ENA1._NAMADDR1s != null)
            {
                for (int i = 0; i < _ENA1._NAMADDR1s.Length; i++)
                {
                    //ENA1 section
                    fobj.NAME_ADDRESS.Add(RevenueGovXMLFactory.GetAcctTemplate_NAME_ADDRESS());
                    fobj.NAME_ADDRESS[i].FUNCTION_CODE     = _ENA1._NAMADDR1s[i].FUNCTIONCODE;
                    fobj.NAME_ADDRESS[i].TYPE              = CopMvcUtil.GetString(_ENA1._NAMADDR1s[i].ENTITYTYPE);
                    fobj.NAME_ADDRESS[i].ID                = _ENA1._NAMADDR1s[i].ENTITYID;
                    fobj.NAME_ADDRESS[i].NAME              = _ENA1._NAMADDR1s[i].ENTITYNAME;
                    fobj.NAME_ADDRESS[i].TRADE_NAME        = _ENA1._NAMADDR1s[i].TRADENAME;
                    fobj.NAME_ADDRESS[i].ADDRESS_TYPE      = CopMvcUtil.GetString(_ENA1._NAMADDR1s[i].ADDRESSTYPE);
                    fobj.NAME_ADDRESS[i].RELATIONSHIP_CODE = CopMvcUtil.GetString(_ENA1._NAMADDR1s[i].RELATIONSHIPCODE);
                }
            }


            if (_ENA2._NAMADDR2s != null)
            {
                //ENA2 section
                for (int i = 0; i < _ENA2._NAMADDR2s.Length; i++)
                {
                    if (_ENA2._NAMADDR2s[i].ATTENTION != null)
                    {
                        fobj.NAME_ADDRESS[i].ATTENTION = _ENA2._NAMADDR2s[i].ATTENTION;
                    }
                    if (_ENA2._NAMADDR2s[i].ADDRESSLINE1 != null)
                    {
                        fobj.NAME_ADDRESS[i].ADDRESS1 = CopMvcUtil.GetString(_ENA2._NAMADDR2s[i].ADDRESSLINE1);
                    }
                    if (_ENA2._NAMADDR2s[i].ADDRESSLINE2 != null)
                    {
                        fobj.NAME_ADDRESS[i].ADDRESS2 = _ENA2._NAMADDR2s[i].ADDRESSLINE2;
                    }
                    if (_ENA2._NAMADDR2s[i].CITY != null)
                    {
                        fobj.NAME_ADDRESS[i].CITY = _ENA2._NAMADDR2s[i].CITY;
                    }
                    if (_ENA2._NAMADDR2s[i].STATE != null)
                    {
                        fobj.NAME_ADDRESS[i].STATE = _ENA2._NAMADDR2s[i].STATE;
                    }
                    if (_ENA2._NAMADDR2s[i].ZIPCODE != null)
                    {
                        fobj.NAME_ADDRESS[i].ZIP = _ENA2._NAMADDR2s[i].ZIPCODE;
                    }
                    if (_ENA2._NAMADDR2s[i].BUSINESSPHONENUMBER != null)
                    {
                        fobj.NAME_ADDRESS[i].WORK_PHONE = CopMvcUtil.GetString(_ENA2._NAMADDR2s[i].BUSINESSPHONENUMBER);
                    }
                    if (_ENA2._NAMADDR2s[i].BUSINESSPHONEEXTENSION != null)
                    {
                        fobj.NAME_ADDRESS[i].WORK_PHONE_EXT = _ENA2._NAMADDR2s[i].BUSINESSPHONEEXTENSION;
                    }
                    if (_ENA2._NAMADDR2s[i].BUSINESSFAX != null)
                    {
                        fobj.NAME_ADDRESS[i].WORK_FAX = CopMvcUtil.GetString(_ENA2._NAMADDR2s[i].BUSINESSFAX);
                    }
                    if (_ENA2._NAMADDR2s[i].OTHERPHONENUMBER != null)
                    {
                        fobj.NAME_ADDRESS[i].OTHER_PHONE = CopMvcUtil.GetString(_ENA2._NAMADDR2s[i].OTHERPHONENUMBER);
                    }
                    if (_ENA2._NAMADDR2s[i].EMAILADDR != null)
                    {
                        fobj.NAME_ADDRESS[i].EMAIL = _ENA2._NAMADDR2s[i].EMAILADDR;
                    }
                    if (_ENA2._NAMADDR2s[i].TIADRSEQUENCENUMBER != null)
                    {
                        fobj.NAME_ADDRESS[i].TRACE_NUMBER = CopMvcUtil.GetString(_ENA2._NAMADDR2s[i].TIADRSEQUENCENUMBER);
                    }
                }
            }

            //LOAD TAX ACCT s
            fobj.TAX_ACCT = new List <TAX_ACCT>();
            string Value = "";

            if (_ETA._ENTITYTAXACCOUNTSs != null)
            {
                for (int i = 0; i < _ETA._ENTITYTAXACCOUNTSs.Length; i++)
                {
                    fobj.TAX_ACCT.Add(COPXmlFactory.RevenueGovXMLFactory.GetAcctTemplate_TaxAcct());
                    if (_ETA._ENTITYTAXACCOUNTSs[i].FUNCTIONCODE != null)
                    {
                        fobj.TAX_ACCT[i].FUNCTION_CODE = _ETA._ENTITYTAXACCOUNTSs[i].FUNCTIONCODE;
                    }
                    if (_ETA._ENTITYTAXACCOUNTSs[i].ACCOUNT != null)
                    {
                        fobj.TAX_ACCT[i].ACCOUNT = CopMvcUtil.GetString(_ETA._ENTITYTAXACCOUNTSs[i].ACCOUNT);
                    }
                    if (_ETA._ENTITYTAXACCOUNTSs[i].STARTDATE != null)
                    {
                        fobj.TAX_ACCT[i].START_DATE = CopMvcUtil.ConvDate(_ETA._ENTITYTAXACCOUNTSs[i].STARTDATE);
                    }
                    if (_ETA._ENTITYTAXACCOUNTSs[i].WAGMONTHLYGROSS != null)
                    {
                        fobj.TAX_ACCT[i].WAGE_MONTHLY_GROSS = _ETA._ENTITYTAXACCOUNTSs[i].WAGMONTHLYGROSS;
                    }
                    if (_ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION != null)
                    {
                        if (_ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNAAPPLYFOREXEMPTION == "Y")
                        {
                            Value = _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNAAPPLYFOREXEMPTION;
                            Value = Value + _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNAREACTIVATING;
                            Value = Value + _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNAAFFILIATED;
                            Value = Value + _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNANEWOWNER;
                            Value = Value + _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNAREALESTATE;
                            Value = Value + _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNACOMPLYYEAR1;
                            Value = Value + _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNACOMPLYYEAR2;
                            Value = Value + _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNAACCEPTED;
                            fobj.TAX_ACCT[i].UOL_BRT = Value;
                        }
                        else
                        {
                            fobj.TAX_ACCT[i].UOL_BRT = _ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNASTATUS;
                        }
                    }
                    if (_ETA._ENTITYTAXACCOUNTSs[i].PRKID != null)
                    {
                        fobj.TAX_ACCT[i].PRK_ID = _ETA._ENTITYTAXACCOUNTSs[i].PRKID;
                    }
                }
            }

            //LOAD Echecks AX ACCT s
            fobj.ECHECK = new ECHECK();
            if (fobj.ECHECK.ACCOUNT_NUMBER != null)
            {
                fobj.ECHECK.ACCOUNT_NUMBER = CopMvcUtil.GetString(_ECHK._ECHECK.BANKACCOUNTNUMBER);
            }
            if (fobj.ECHECK.FUNCTION_CODE != null)
            {
                fobj.ECHECK.FUNCTION_CODE = _ECHK._ECHECK.FUNCTIONCODE;
            }
            if (fobj.ECHECK.ROUTING_NUMBER != null)
            {
                fobj.ECHECK.ROUTING_NUMBER = CopMvcUtil.GetString(_ECHK._ECHECK.TRANSITROUTINGNUMBER);
            }
            if (fobj.ECHECK.ACCOUNT_TYPE != null)
            {
                fobj.ECHECK.ACCOUNT_TYPE = _ECHK._ECHECK.BANKACCOUNTTYPE;
            }



            return(fobj);
        }
Example #23
0
        private static COPXmlFactory.RTTIE016.PAYCOUPON __Fill(RTTIE016_SrvRef.RTTIE216Response e)
        {
            COPXmlFactory.RTTIE016.PAYCOUPON fobj = RevenueGovXMLFactory.GetPAYCOUPON();

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

            fobj.ERROR_INFO.PROGRAM = e._SMA._SYSTEMMESSAGEAREA._PROGRAM;
            fobj.ERROR_INFO.LINE    = e._SMA._SYSTEMMESSAGEAREA.ERROR.ToString();
            fobj.ERROR_INFO.MESSAGE = e._SMA._SYSTEMMESSAGEAREA.MESSAGE;
            fobj.ERROR_INFO.ERROR   = e._SMA._SYSTEMMESSAGEAREA.ERROR.ToString();

            //LOAD ENTITY_INFO
            fobj.ENTITY_INFO = new ENTITY_INFO();
            fobj.ENTITY_INFO.FUNCTION_CODE = e._EMI._ENTITYMASTERINFO.FUNCTIONCODE;
            fobj.ENTITY_INFO.ENT_TYPE      = CopMvcUtil.GetDouble(e._EMI._ENTITYMASTERINFO.ENTITYTYPE).ToString();
            fobj.ENTITY_INFO.ENTITY_ID     = e._EMI._ENTITYMASTERINFO.ENTITYID;
            fobj.ENTITY_INFO.ACCT_ID       = e._EMI._ENTITYMASTERINFO.ACCTID;
            fobj.ENTITY_INFO.NAME          = e._EMI._ENTITYMASTERINFO.ENTITYNAME;
            fobj.ENTITY_INFO.ADDRESS1      = e._EMI._ENTITYMASTERINFO.ADDRESSLINE;
            fobj.ENTITY_INFO.ADDRESS2      = e._EMI._ENTITYMASTERINFO.ADDRESSLINE2;
            fobj.ENTITY_INFO.ADDRESS3      = e._EMI._ENTITYMASTERINFO.ADDRESSLINE3;
            fobj.ENTITY_INFO.CITY          = e._EMI._ENTITYMASTERINFO.CITY;
            fobj.ENTITY_INFO.STATE         = e._EMI._ENTITYMASTERINFO.STATE;
            fobj.ENTITY_INFO.ZIP_CODE      = e._EMI._ENTITYMASTERINFO.ZIPCODE;

            //LOAD TAX ACCT s
            fobj.TAX_ACCT = new List <TAX_ACCT>();
            for (int i = 0; i < e._ETA._ENTITYTAXACCOUNTSs.Length; i++)
            {
                fobj.TAX_ACCT.Add(COPXmlFactory.RevenueGovXMLFactory.GetPAYCOUPON_TAX_ACCT());
                fobj.TAX_ACCT[i].FUNC_CODE  = e._ETA._ENTITYTAXACCOUNTSs[i].FUNCTIONCODE;
                fobj.TAX_ACCT[i].ACCOUNT    = CopMvcUtil.GetDecimal(e._ETA._ENTITYTAXACCOUNTSs[i].ACCOUNT).ToString();
                fobj.TAX_ACCT[i].ACCOUNT_ID = e._ETA._ENTITYTAXACCOUNTSs[i].ACCOUNTID;
                fobj.TAX_ACCT[i].START_DATE = CopMvcUtil.ConvDate(e._ETA._ENTITYTAXACCOUNTSs[i].STARTDATE);
                fobj.TAX_ACCT[i].END_DATE   = CopMvcUtil.ConvDate(e._ETA._ENTITYTAXACCOUNTSs[i].ENDDATE);
                // fobj.TAX_ACCT[i].BRT_ACCOUNT = e._ETA._ENTITYTAXACCOUNTSs[i].br
                fobj.TAX_ACCT[i].BRT_ADDRESS1   = e._ETA._ENTITYTAXACCOUNTSs[i].BRTADDRESS;
                fobj.TAX_ACCT[i].FREQUENCY_CODE = e._ETA._ENTITYTAXACCOUNTSs[i].FREQUENCY;
            }

            //LOAD WAGE_NTL
            fobj.WAGE_NTL                        = new WAGE_NTL();
            fobj.WAGE_NTL.ACCOUNT_ID             = e._EWAGNTL.ACCOUNTID;
            fobj.WAGE_NTL.PERIOD                 = CopMvcUtil.ConvDate(e._EWAGNTL.PERIODX.PERIOD);
            fobj.WAGE_NTL.FREQUENCY_CODE         = e._EWAGNTL.FREQUENCY;
            fobj.WAGE_NTL.ADJ_REF_NO             = e._EWAGNTL.ADJREFNO;
            fobj.WAGE_NTL.PREPARER_NAME          = e._EWAGNTL.PREPARERNAME;
            fobj.WAGE_NTL.PREPARER_PHONE         = e._EWAGNTL.PREPARERPHONE;
            fobj.WAGE_NTL.PREPARER_PHONE_EXT     = e._EWAGNTL.PREPARERPHONEEXT;
            fobj.WAGE_NTL.PREPARER_IP_ADDRESS    = e._EWAGNTL.PREPARERIPADDRESS;
            fobj.WAGE_NTL.PREPARER_EMAIL_ADDRESS = e._EWAGNTL.PREPAREREMAIL;
            fobj.WAGE_NTL.PREPARER_WHO           = e._EWAGNTL.PREPARERTYPE;

            ////LOAD COUPON_FORM
            //fobj.COUPON_FORM = new COUPON_FORM();
            //fobj.COUPON_FORM.CPN_ACCOUNT =
            //fobj.COUPON_FORM.CPN_ACCOUNT_TYPE = CopMvcUtil.ConvDate(e._EWAGNTL.PERIODX.PERIOD);
            //fobj.COUPON_FORM.CPN_NAME = e._EWAGNTL.FREQUENCY;
            //fobj.COUPON_FORM.CPN_ADDR = e._EWAGNTL.ADJREFNO;
            //fobj.COUPON_FORM.CPN_ADDR2 = e._EWAGNTL.PREPARERNAME;
            //fobj.COUPON_FORM.CPN_ADDR3 = e._EWAGNTL.PREPARERPHONE;
            //fobj.COUPON_FORM.CPN_CITY = e._EWAGNTL.PREPARERPHONEEXT;
            //fobj.COUPON_FORM.CPN_STATE = e._EWAGNTL.PREPARERIPADDRESS;
            //fobj.COUPON_FORM.CPN_ZIP_CODE = e._EWAGNTL.PREPAREREMAIL;
            //fobj.COUPON_FORM.CPN_SCAN = e._EWAGNTL.PREPARERTYPE;
            //fobj.COUPON_FORM.CPN_PERIOD = e._EWAGNTL.PREPARERIPADDRESS;
            //fobj.COUPON_FORM.CPN_YEAR = e._EWAGNTL.PREPAREREMAIL;
            //fobj.COUPON_FORM.CPN_FORM = e._EWAGNTL.PREPARERTYPE;

            //LOAD LOGIN_FROM
            //fobj.LOGIN_FROM = new LOGIN_FROM();
            //fobj.LOGIN_FROM.NTL_ONLY = e.;

            return(fobj);
        }
Example #24
0
        private static COPXmlFactory.RTTIE010.ACCTTEMPLATE __Fill(RTTIE210_SrvRef.RTTIE210Response e)
        {
            COPXmlFactory.RTTIE010.ACCTTEMPLATE fobj = RevenueGovXMLFactory.GetAcctTemplate();

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

            fobj.ERROR_INFO.PROGRAM = e._SMA._SYSTEMMESSAGEAREA._PROGRAM;
            fobj.ERROR_INFO.LINE    = e._SMA._SYSTEMMESSAGEAREA.LINE.ToString();
            fobj.ERROR_INFO.MESSAGE = e._SMA._SYSTEMMESSAGEAREA.MESSAGE;
            fobj.ERROR_INFO.ERROR   = e._SMA._SYSTEMMESSAGEAREA.ERROR.ToString();

            //LOAD ENTITY INFOS
            fobj.ENTITY_INFO = new ENTITY_INFO();
            fobj.ENTITY_INFO.FUNCTION_CODE = e._EMI._ENTITYMASTERINFO.FUNCTIONCODE;
            fobj.ENTITY_INFO.TYPE          = CopMvcUtil.GetString(e._EMI._ENTITYMASTERINFO.ENTITYTYPE);
            fobj.ENTITY_INFO.ENTITY_ID     = e._EMI._ENTITYMASTERINFO.ENTITYID;
            fobj.ENTITY_INFO.ACCOUNT_ID    = e._EMI._ENTITYMASTERINFO.ACCOUNTID;
            fobj.ENTITY_INFO.NAIC_CODE     = CopMvcUtil.GetString(e._EMI._ENTITYMASTERINFO.NAICFEDERALCODE);
            fobj.ENTITY_INFO.SIC_CODE      = CopMvcUtil.GetString(e._EMI._ENTITYMASTERINFO.SICFEDERALCODE);
            fobj.ENTITY_INFO.START_DATE    = CopMvcUtil.ConvDate(e._EMI._ENTITYMASTERINFO.BUSINESSSTARTDATE);

            fobj.ENTITY_INFO.ORGTYPE     = CopMvcUtil.GetString(e._EMI._ENTITYMASTERINFO.ORGANIZATIONTYPE);
            fobj.ENTITY_INFO.ORIGIN      = CopMvcUtil.GetString(e._EMI._ENTITYMASTERINFO.BUSINESSORIGIN);
            fobj.ENTITY_INFO.GENDER      = e._EMI._ENTITYMASTERINFO.BUSINESSGENDER;
            fobj.ENTITY_INFO.OTHER       = e._EMI._ENTITYMASTERINFO.BUSINESSOTHER;
            fobj.ENTITY_INFO.PIN         = CopMvcUtil.GetString(e._EMI._ENTITYMASTERINFO.PINNUMBER);
            fobj.ENTITY_INFO.FORCEPINCHG = CopMvcUtil.GetString(e._EMI._ENTITYMASTERINFO.PINSWITCH);
            // Unused : fobj.ENTITY_INFO.FORCEPINCHG = ???

            //LOAD NAME ADDRESS INFOS
            //fobj.NAME_ADDRESS = new List<NAME_ADDRESS>(e._ENA1._NAMADDR1s.Length);
            fobj.NAME_ADDRESS = new List <NAME_ADDRESS>();


            for (int i = 0; i < e._ENA1._NAMADDR1s.Length; i++)
            {
                //ENA1 section
                fobj.NAME_ADDRESS.Add(RevenueGovXMLFactory.GetAcctTemplate_NAME_ADDRESS());
                fobj.NAME_ADDRESS[i].FUNCTION_CODE     = e._ENA1._NAMADDR1s[i].FUNCTIONCODE;
                fobj.NAME_ADDRESS[i].TYPE              = CopMvcUtil.GetString(e._ENA1._NAMADDR1s[i].ENTITYTYPE);
                fobj.NAME_ADDRESS[i].ID                = e._ENA1._NAMADDR1s[i].ENTITYID;
                fobj.NAME_ADDRESS[i].NAME              = e._ENA1._NAMADDR1s[i].ENTITYNAME;
                fobj.NAME_ADDRESS[i].TRADE_NAME        = e._ENA1._NAMADDR1s[i].TRADENAME;
                fobj.NAME_ADDRESS[i].ADDRESS_TYPE      = CopMvcUtil.GetString(e._ENA1._NAMADDR1s[i].ADDRESSTYPE);
                fobj.NAME_ADDRESS[i].RELATIONSHIP_CODE = CopMvcUtil.GetString(e._ENA1._NAMADDR1s[i].RELATIONSHIPCODE);

                //ENA2 section
                fobj.NAME_ADDRESS[i].ATTENTION      = e._ENA2._NAMADDR2s[i].ATTENTION;
                fobj.NAME_ADDRESS[i].ADDRESS1       = CopMvcUtil.GetString(e._ENA2._NAMADDR2s[i].ADDRESSLINE1);
                fobj.NAME_ADDRESS[i].ADDRESS2       = e._ENA2._NAMADDR2s[i].ADDRESSLINE2;
                fobj.NAME_ADDRESS[i].CITY           = e._ENA2._NAMADDR2s[i].CITY;
                fobj.NAME_ADDRESS[i].STATE          = e._ENA2._NAMADDR2s[i].STATE;
                fobj.NAME_ADDRESS[i].ZIP            = e._ENA2._NAMADDR2s[i].ZIPCODE;
                fobj.NAME_ADDRESS[i].WORK_PHONE     = CopMvcUtil.GetString(e._ENA2._NAMADDR2s[i].BUSINESSPHONENUMBER);
                fobj.NAME_ADDRESS[i].WORK_PHONE_EXT = e._ENA2._NAMADDR2s[i].BUSINESSPHONEEXTENSION;
                fobj.NAME_ADDRESS[i].WORK_FAX       = CopMvcUtil.GetString(e._ENA2._NAMADDR2s[i].BUSINESSFAX);
                fobj.NAME_ADDRESS[i].OTHER_PHONE    = CopMvcUtil.GetString(e._ENA2._NAMADDR2s[i].OTHERPHONENUMBER);
                fobj.NAME_ADDRESS[i].EMAIL          = e._ENA2._NAMADDR2s[i].EMAILADDR;
                fobj.NAME_ADDRESS[i].TRACE_NUMBER   = CopMvcUtil.GetString(e._ENA2._NAMADDR2s[i].TIADRSEQUENCENUMBER);
            }

            //LOAD TAX ACCT s
            fobj.TAX_ACCT = new List <TAX_ACCT>();
            for (int i = 0; i < e._ETA._ENTITYTAXACCOUNTSs.Length; i++)
            {
                fobj.TAX_ACCT.Add(COPXmlFactory.RevenueGovXMLFactory.GetAcctTemplate_TaxAcct());
                fobj.TAX_ACCT[i].FUNCTION_CODE      = e._ETA._ENTITYTAXACCOUNTSs[i].FUNCTIONCODE;
                fobj.TAX_ACCT[i].ACCOUNT            = CopMvcUtil.GetString(e._ETA._ENTITYTAXACCOUNTSs[i].ACCOUNT);
                fobj.TAX_ACCT[i].START_DATE         = CopMvcUtil.ConvDate(e._ETA._ENTITYTAXACCOUNTSs[i].STARTDATE);
                fobj.TAX_ACCT[i].WAGE_MONTHLY_GROSS = e._ETA._ENTITYTAXACCOUNTSs[i].WAGMONTHLYGROSS;
                fobj.TAX_ACCT[i].UOL_BRT            = e._ETA._ENTITYTAXACCOUNTSs[i].BPTNEWAPPLICATION.BPTNASTATUS;
                fobj.TAX_ACCT[i].PRK_ID             = e._ETA._ENTITYTAXACCOUNTSs[i].PRKID;
            }

            //LOAD Echecks AX ACCT s
            fobj.ECHECK = new ECHECK();
            fobj.ECHECK.FUNCTION_CODE  = e._ECHK._ECHECK.FUNCTIONCODE;
            fobj.ECHECK.ROUTING_NUMBER = CopMvcUtil.GetString(e._ECHK._ECHECK.TRANSITROUTINGNUMBER);
            fobj.ECHECK.ACCOUNT_NUMBER = CopMvcUtil.GetString(e._ECHK._ECHECK.BANKACCOUNTNUMBER);
            fobj.ECHECK.ACCOUNT_TYPE   = e._ECHK._ECHECK.BANKACCOUNTTYPE;

            return(fobj);
        }