예제 #1
0
파일: BSET.cs 프로젝트: lmj823/dianpiao
        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());
        }
예제 #2
0
파일: ET.cs 프로젝트: lmj823/dianpiao
        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));
            }
        }