Exemplo n.º 1
0
        static public string BS30600016(BS30600016 b, string nodeNo, string trandType, ref XmlDocument xml)
        {
            head s = new head();

            if (trandType == "ET0131")
            {
                s.ServiceNo = "P0720002";
                s.SceneNo   = "01";
                s.TradeCode = "WYPJ30600016";
            }
            else if (trandType == "ET0141")
            {
                s.ServiceNo = "P0720002";
                s.SceneNo   = "02";
                s.TradeCode = "WYPJ30600026";
            }
            else if (trandType == "ET0111")
            {
                s.ServiceNo = "P0720002";
                s.SceneNo   = "03";
                s.TradeCode = "WYPJ30600006";
            }
            XmlHelper xhs  = setHead(s);
            string    send = "";

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

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

            return(jg.ToString());
        }
Exemplo n.º 2
0
        private string ET0141()
        {
            try
            {
                XmlDocument doc1 = new XmlDocument();
                BS30600016  b    = new BS30600016();//字段一样,实际为核心30600026
                b.ApplicantAcctNo = xdoc.SelectSingleNode("//ebank//cust_account").InnerText.Trim();
                b.BillId          = xdoc.SelectSingleNode("//ebank//rgct_ids").InnerText.Trim();
                b.Signature       = xdoc.SelectSingleNode("//ebank//warteeSign").InnerText.Trim();

                if (BSET.BS30600016(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());
                }

                return(formatRetStr(xher));
            }
            catch (Exception ex)
            {
                return(retCatch(ex));
            }
        }