Пример #1
0
        static public string BS30600123(BS30600123 b, string nodeNo, string trandType, ref XmlDocument xml)
        {
            head s = new head();

            s.ServiceNo = "P0720002";
            s.SceneNo   = "09";
            s.TradeCode = "WYPJ30600123";
            XmlHelper xhs  = setHead(s);
            string    send = "";

            xhs.setBody("applicantAcctNo", b.ApplicantAcctNo);
            xhs.setBody("billId", b.BillId);
            xhs.setBody("signUpMark", b.SignUpMark);
            xhs.setBody("signature", b.Signature);
            xhs.setBody("transNo", b.TransNo);
            xhs.setBody("reserve1", b.Reserve1);
            xhs.setBody("remark1", b.Remark1);
            xhs.setBody("remark2", b.Remark2);

            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());
        }
Пример #2
0
        //统一拒绝同意接口
        private string ET30600123(string signUpMark, string transNo)
        {
            try
            {
                XmlDocument doc1 = new XmlDocument();
                BS30600123  b    = new BS30600123();
                b.ApplicantAcctNo = xdoc.SelectSingleNode("//ebank//cust_account").InnerText.Trim();
                b.BillId          = xdoc.SelectSingleNode("//ebank//rgctIds").InnerText.Trim();
                b.Signature       = xdoc.SelectSingleNode("//ebank//warteeSign").InnerText.Trim();
                b.SignUpMark      = signUpMark;
                b.TransNo         = transNo;

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