Exemplo n.º 1
0
        public TAXXML GetTaxInterfaceModel(string txm, string ry_id, string slbh)
        {
            XmlDocument xml = GetTaxInterfaceData(txm, ry_id, slbh);
            TAXXML      tax = GetModelFromXML(typeof(TAXXML), xml);

            return(tax);
        }
Exemplo n.º 2
0
        public TAXXML GetTaxInterfaceModelBySLBH(string slbh, out string txm)
        {
            XmlDocument xml = GetSaveTaxInterfaceData(slbh);

            txm = GetSaveTXMBySlbh(slbh);
            if (xml != null)
            {
                TAXXML tax = GetModelFromXML(typeof(TAXXML), xml);
                return(tax);
            }
            else
            {
                return(null);
            }
        }
Exemplo n.º 3
0
        private TAXXML GetModelFromXML(Type type, XmlDocument xml)
        {
            TAXXML  tax           = new TAXXML();
            XmlNode houseListNode = xml.SelectSingleNode("taxXML/houseList");

            if (houseListNode != null)
            {
                tax.houseList = new HouseList();
                XmlNode bzVONode = houseListNode.SelectSingleNode("bzVO");
                if (bzVONode != null)
                {
                    XmlNode bz_bjNode = bzVONode.SelectSingleNode("bz_bj");
                    if (!bz_bjNode.InnerText.Equals("0"))
                    {
                        tax.houseList.BZZM         = new Tax_BZZM();
                        tax.houseList.BZZM.BZ_BJ   = bzVONode.SelectSingleNode("bz_bj").InnerText;
                        tax.houseList.BZZM.BZ_BZXX = bzVONode.SelectSingleNode("bz_bzxx").InnerText;
                        tax.houseList.BZZM.BZ_DH   = bzVONode.SelectSingleNode("bz_dh").InnerText;
                        tax.houseList.BZZM.BZ_DZ   = bzVONode.SelectSingleNode("bz_dz").InnerText;
                        tax.houseList.BZZM.BZ_LX   = bzVONode.SelectSingleNode("bz_lx").InnerText;
                        tax.houseList.BZZM.BZ_MC   = bzVONode.SelectSingleNode("bz_mc").InnerText;
                        tax.houseList.BZZM.BZ_MJ   = bzVONode.SelectSingleNode("bz_mj").InnerText;
                        tax.houseList.BZZM.BZ_SJ   = bzVONode.SelectSingleNode("bz_sj").InnerText;
                        tax.houseList.BZZM.BZ_SLR  = bzVONode.SelectSingleNode("bz_slr").InnerText;
                        tax.houseList.BZZM.BZ_WSH  = bzVONode.SelectSingleNode("bz_wsh").InnerText;
                        tax.houseList.BZZM.BZ_YCQR = bzVONode.SelectSingleNode("bz_ycqr").InnerText;
                        tax.houseList.BZZM.BZ_YY   = bzVONode.SelectSingleNode("bz_yy").InnerText;
                    }
                }
                XmlNode mzVONode = houseListNode.SelectSingleNode("mzVO");
                if (mzVONode != null)
                {
                    XmlNode mz_bjNode = mzVONode.SelectSingleNode("mz_bj");
                    if (!mz_bjNode.InnerText.Equals("0"))
                    {
                        tax.houseList.MZZM         = new Tax_MZZM();
                        tax.houseList.MZZM.MZ_BJ   = mzVONode.SelectSingleNode("mz_bj").InnerText;
                        tax.houseList.MZZM.MZ_CJJG = mzVONode.SelectSingleNode("mz_cjjg").InnerText;
                        tax.houseList.MZZM.MZ_DYSJ = mzVONode.SelectSingleNode("mz_dysj").InnerText;
                        tax.houseList.MZZM.MZ_DZ   = mzVONode.SelectSingleNode("mz_dz").InnerText;
                        tax.houseList.MZZM.MZ_JMLX = mzVONode.SelectSingleNode("mz_jmlx").InnerText;
                        tax.houseList.MZZM.MZ_JSJG = mzVONode.SelectSingleNode("mz_jsjg").InnerText;
                        tax.houseList.MZZM.MZ_JZJG = mzVONode.SelectSingleNode("mz_jzjg").InnerText;
                        tax.houseList.MZZM.MZ_MJ   = mzVONode.SelectSingleNode("mz_mj").InnerText;
                        tax.houseList.MZZM.MZ_QSJE = mzVONode.SelectSingleNode("mz_qsje").InnerText;
                        tax.houseList.MZZM.MZ_SZJE = mzVONode.SelectSingleNode("mz_szje").InnerText;
                        tax.houseList.MZZM.MZ_WSH  = mzVONode.SelectSingleNode("mz_wsh").InnerText;
                        tax.houseList.MZZM.MZ_ZYLX = mzVONode.SelectSingleNode("mz_zylx").InnerText;
                        tax.houseList.MZZM.MZ_ZYSJ = mzVONode.SelectSingleNode("mz_zysj").InnerText;
                    }
                }
                XmlNode qsVONode = houseListNode.SelectSingleNode("qsVO");
                if (qsVONode != null)
                {
                    tax.houseList.QSXXs = new List <Tax_QSXX>();
                    XmlNodeList qsVONodeList = qsVONode.ChildNodes;
                    Tax_QSXX    qsxx         = null;
                    foreach (XmlNode qsChildVONode in qsVONodeList)
                    {
                        if (qsChildVONode.Name.Equals("qs_bj"))
                        {
                            if (!qsChildVONode.InnerText.Equals("0"))
                            {
                                qsxx = new Tax_QSXX();
                                tax.houseList.QSXXs.Add(qsxx);
                            }
                            else
                            {
                                break;
                            }
                            qsxx.QS_BJ = qsChildVONode.InnerText;
                        }
                        else
                        {
                            if (qsChildVONode.Name.Equals("qs_fzsj"))
                            {
                                qsxx.QS_FZSJ = qsChildVONode.InnerText;
                            }
                            if (qsChildVONode.Name.Equals("qs_xqh"))
                            {
                                qsxx.QS_XQH = qsChildVONode.InnerText;
                            }
                            if (qsChildVONode.Name.Equals("qs_nsrsbm"))
                            {
                                qsxx.QS_NSRSBM = qsChildVONode.InnerText;
                            }
                            if (qsChildVONode.Name.Equals("qs_mc"))
                            {
                                qsxx.QS_MC = qsChildVONode.InnerText;
                            }
                            if (qsChildVONode.Name.Equals("qs_dz"))
                            {
                                qsxx.QS_DZ = qsChildVONode.InnerText;
                            }
                            if (qsChildVONode.Name.Equals("qs_mj"))
                            {
                                qsxx.QS_MJ = qsChildVONode.InnerText;
                            }
                            if (qsChildVONode.Name.Equals("qs_yt"))
                            {
                                qsxx.QS_YT = qsChildVONode.InnerText;
                            }
                            if (qsChildVONode.Name.Equals("qs_zsxm"))
                            {
                                qsxx.QS_ZSXM = qsChildVONode.InnerText;
                            }
                            if (qsChildVONode.Name.Equals("qs_zspm"))
                            {
                                qsxx.QS_ZSPM = qsChildVONode.InnerText;
                            }
                            if (qsChildVONode.Name.Equals("qs_jsyj"))
                            {
                                qsxx.QS_JSYJ = qsChildVONode.InnerText;
                            }
                            if (qsChildVONode.Name.Equals("qs_sl"))
                            {
                                qsxx.QS_SL = qsChildVONode.InnerText;
                            }
                            if (qsChildVONode.Name.Equals("qs_jm"))
                            {
                                qsxx.QS_JM = qsChildVONode.InnerText;
                            }
                            if (qsChildVONode.Name.Equals("qs_ssqq"))
                            {
                                qsxx.QS_SSQQ = qsChildVONode.InnerText;
                            }
                            if (qsChildVONode.Name.Equals("qs_ssqz"))
                            {
                                qsxx.QS_SSQZ = qsChildVONode.InnerText;
                            }
                            if (qsChildVONode.Name.Equals("qs_sjje"))
                            {
                                qsxx.QS_SJJE = qsChildVONode.InnerText;
                            }
                            if (qsChildVONode.Name.Equals("qs_tpr"))
                            {
                                qsxx.QS_TPR = qsChildVONode.InnerText;
                            }
                            if (qsChildVONode.Name.Equals("qs_bz"))
                            {
                                qsxx.QS_BZ = qsChildVONode.InnerText;
                            }
                        }
                    }
                }
            }
            return(tax);
        }