Example #1
0
        private string GetSaveTXMBySlbh(string SLBH)
        {
            TaxInterfaceDal dal = new TaxInterfaceDal();
            string          txm = dal.GetTXMBySLBH(SLBH);

            return(txm);
        }
Example #2
0
        private XmlDocument GetSaveTaxInterfaceData(string SLBH)
        {
            TaxInterfaceDal dal      = new TaxInterfaceDal();
            string          conetent = dal.GetTaxInterfaceBySLBH(SLBH);

            if (string.IsNullOrEmpty(conetent))
            {
                return(null);
            }
            else
            {
                XmlDocument doc = new XmlDocument();
                doc.LoadXml(conetent);
                return(doc);
            }
        }
        private XmlDocument GetTaxInterfaceData(string txm, string ry_id, string slbh)
        {
            if (!string.IsNullOrEmpty(txm) && !string.IsNullOrEmpty(ry_id))
            {
                TaxInterfaceDal dal = new TaxInterfaceDal();

                /********************************************************
                 * 铜山
                 * *****************************************************/

                //DSServer.DSWebService.qsxxWebservicePortTypeClient ss = new DSServer.DSWebService.qsxxWebservicePortTypeClient();
                //string sendXML = string.Format(@"<taxXML>
                //<houseList>
                //<houseVo>
                //<txm>{0}</txm>
                //<ry_id>{1}</ry_id>
                //</houseVo>
                //</houseList>
                //</taxXML>
                //", txm, ry_id);
                //string xmlS = ss.getHouseQs(sendXML);

                /************************************************************
                 *  徐州
                 * *********************************************************/
                ServiceSoap ss = new ServiceSoapClient();

                string xmlS = ss.zhuanfa_qsxx(txm, ry_id);

                if (!dal.IfExistsSLBH(slbh))
                {
                    dal.InsertTaxInfo(xmlS, slbh, ry_id, txm);
                }
                else
                {
                    dal.UpdateTaxInfo(xmlS, slbh, ry_id, txm);
                }
                XmlDocument doc = new XmlDocument();
                doc.LoadXml(xmlS);
                return(doc);
            }
            else
            {
                throw new Exception("条形码或用户id为空");
            }
        }
Example #4
0
 private XmlDocument GetTaxInterfaceData(string txm, string ry_id, string slbh)
 {
     if (!string.IsNullOrEmpty(txm) && !string.IsNullOrEmpty(ry_id))
     {
         TaxInterfaceDal dal  = new TaxInterfaceDal();
         ServiceSoap     ss   = new ServiceSoapClient();
         string          xmlS = ss.zhuanfa_qsxx(txm, ry_id);
         if (!dal.IfExistsSLBH(slbh))
         {
             dal.InsertTaxInfo(xmlS, slbh, ry_id, txm);
         }
         else
         {
             dal.UpdateTaxInfo(xmlS, slbh, ry_id, txm);
         }
         XmlDocument doc = new XmlDocument();
         doc.LoadXml(xmlS);
         return(doc);
     }
     else
     {
         throw new Exception("条形码或用户id为空");
     }
 }