Exemplo n.º 1
0
        private string ET0103()
        {
            try
            {
                XmlDocument doc1 = new XmlDocument();
                BS30600004  b    = new BS30600004();
                b.ApplicantAcctNo  = xdoc.SelectSingleNode("//ebank//cust_account").InnerText.Trim();
                b.BillType         = xdoc.SelectSingleNode("//ebank//billType").InnerText.Trim();
                b.BillClass        = xdoc.SelectSingleNode("//ebank//billClass").InnerText.Trim();
                b.AcptDt           = xdoc.SelectSingleNode("//ebank//acptDt").InnerText.Trim().Replace("-", "");
                b.DueDt            = xdoc.SelectSingleNode("//ebank//dueDt").InnerText.Trim().Replace("-", "");
                b.BillMoney        = xdoc.SelectSingleNode("//ebank//billMoney").InnerText.Trim();
                b.Remitter         = xdoc.SelectSingleNode("//ebank//remitterCustName").InnerText.Trim();
                b.RemitterAcctNo   = xdoc.SelectSingleNode("//ebank//remitterCustAcct").InnerText.Trim();
                b.RemitterBankName = xdoc.SelectSingleNode("//ebank//remitterCustBank").InnerText.Trim();
                b.RemitterBankNo   = xdoc.SelectSingleNode("//ebank//remitterCustBankNo").InnerText.Trim();
                b.Payee            = xdoc.SelectSingleNode("//ebank//payee").InnerText.Trim();
                b.PayeeAcctNo      = xdoc.SelectSingleNode("//ebank//payeeAcct").InnerText.Trim();
                b.PayeeBankName    = xdoc.SelectSingleNode("//ebank//payeeBank").InnerText.Trim();
                b.PayeeBankNo      = xdoc.SelectSingleNode("//ebank//payeeBankNo").InnerText.Trim();
                b.Acceptor         = xdoc.SelectSingleNode("//ebank//acceptor").InnerText.Trim();
                b.AcceptorAcctNo   = xdoc.SelectSingleNode("//ebank//acceptorAcct").InnerText.Trim();
                b.AcceptorBankName = xdoc.SelectSingleNode("//ebank//acceptorBank").InnerText.Trim();
                b.AcceptorBankNo   = xdoc.SelectSingleNode("//ebank//acceptorBankNo").InnerText.Trim();
                b.ForbidFlag       = xdoc.SelectSingleNode("//ebank//protEndors").InnerText.Trim();
                b.ConferNo         = xdoc.SelectSingleNode("//ebank//conferNo").InnerText.Trim();
                b.InvoiceNo        = "";
                b.BillId           = xdoc.SelectSingleNode("//ebank//rgct_id").InnerText.Trim();

                if (BSET.BS30600004(b, nodeNo, trandType, ref doc1) == "error")
                {
                    retSysError(errMsg);
                }
                else
                {
                    xher.UpdateContent("/ebank/hostReturnCode", doc1.SelectSingleNode("//root//head//ErrorCode").InnerText.Trim());
                    xher.UpdateContent("/ebank/hostErrorMessage", doc1.SelectSingleNode("//root//head//ErrorMsg").InnerText.Trim());
                    if (doc1.SelectSingleNode("//root//head//ErrorCode").InnerText.Trim() == "000000")
                    {
                        xher = new XmlHelper(xdoc);
                        xher.UpdateContent("/ebank/hostReturnCode", doc1.SelectSingleNode("//root//head//ErrorCode").InnerText.Trim());
                        xher.UpdateContent("/ebank/hostErrorMessage", doc1.SelectSingleNode("//root//head//ErrorMsg").InnerText.Trim());
                    }
                }

                return(formatRetStr(xher));
            }
            catch (Exception ex)
            {
                return(retCatch(ex));
            }
        }
Exemplo n.º 2
0
        static public string BS30600007(BS30600004 b, string nodeNo, string trandType, ref XmlDocument xml)
        {
            head s = new head();

            s.ServiceNo = "P0720001";
            s.SceneNo   = "03";
            s.TradeCode = "WYPJ30600007";
            XmlHelper xhs  = setHead(s);
            string    send = "";

            xhs.setBody("applicantAcctNo", b.ApplicantAcctNo);
            xhs.setBody("billId", b.BillId);
            xhs.setBody("reserve1", b.Reserve1);

            send = xhs.GetXmlDoc().OuterXml.Length.ToString().PadLeft(8, '0') + xhs.GetXmlDoc().OuterXml;
            XmlDocument recv = new XmlDocument();
            bool        jg   = tcp.SLSendData(send, nodeNo, trandType, ref xml);

            return(jg.ToString());
        }