コード例 #1
0
ファイル: BSET.cs プロジェクト: lmj823/dianpiao
        static public string BS30600107(BS30600107 b, string nodeNo, string trandType, ref XmlDocument xml)
        {
            head s = new head();

            s.ServiceNo = "P0730001";
            s.SceneNo   = "17";
            s.TradeCode = "WYPJ30600107";
            XmlHelper xhs  = setHead(s);
            string    send = "";

            xhs.setBody("applicantAcctNo", b.ApplicantAcctNo);
            xhs.setBody("transNo", b.TransNo);
            xhs.setBody("remitter", b.Remitter);
            xhs.setBody("payee", b.Payee);
            xhs.setBody("draweeBankName", b.DraweeBankName);
            xhs.setBody("billNo", b.BillNo);
            xhs.setBody("maxAcptDt", b.MaxAcptDt);
            xhs.setBody("minAcptDt", b.MinAcptDt);
            xhs.setBody("maxDueDt", b.MaxDueDt);
            xhs.setBody("minDueDt", b.MinDueDt);
            xhs.setBody("maxBillMoney", b.MaxBillMoney);
            xhs.setBody("minBillMoney", b.MinBillMoney);
            xhs.setBody("reserve1", b.Reserve1);
            xhs.setBody("pageSize", b.PageSize);
            xhs.setBody("currentPage", b.CurrentPage);
            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
ファイル: ET.cs プロジェクト: lmj823/dianpiao
 private string ET0106()
 {
     try
     {
         XmlDocument doc1 = new XmlDocument();
         BS30600107  b    = new BS30600107();
         b.ApplicantAcctNo = xdoc.SelectSingleNode("//ebank//cust_account").InnerText.Trim();
         b.MaxBillMoney    = xdoc.SelectSingleNode("//ebank//billMoney").InnerText.Trim();
         b.MinBillMoney    = xdoc.SelectSingleNode("//ebank//billMoney").InnerText.Trim();
         b.MaxAcptDt       = xdoc.SelectSingleNode("//ebank//acptDt").InnerText.Trim().Replace("-", "");
         b.MinAcptDt       = xdoc.SelectSingleNode("//ebank//acptDt").InnerText.Trim().Replace("-", "");
         b.MaxDueDt        = xdoc.SelectSingleNode("//ebank//dueDt").InnerText.Trim().Replace("-", "");
         b.MinDueDt        = xdoc.SelectSingleNode("//ebank//dueDt").InnerText.Trim().Replace("-", "");
         b.Remitter        = xdoc.SelectSingleNode("//ebank//remitter").InnerText.Trim();
         b.Payee           = xdoc.SelectSingleNode("//ebank//payee").InnerText.Trim();
         b.PageSize        = xdoc.SelectSingleNode("//ebank//pageSize").InnerText.Trim();
         b.CurrentPage     = xdoc.SelectSingleNode("//ebank//currentPage").InnerText.Trim();
         b.TransNo         = "200101";
         if (BSET.BS30600107(b, nodeNo, trandType, ref doc1) == "error")
         {
             retSysError(errMsg);
         }
         else
         {
             if (doc1.SelectSingleNode("//root//head//ErrorCode").InnerText.Trim() == "")
             {
                 string recode = doc1.SelectSingleNode("//root//body//error_code").InnerText.Trim();
                 if (recode != "")
                 {
                     xher.UpdateContent("/ebank/hostReturnCode", doc1.SelectSingleNode("//root//body//error_code").InnerText.Trim());
                     xher.UpdateContent("/ebank/hostErrorMessage", doc1.SelectSingleNode("//root//body//error_text").InnerText.Trim());
                 }
                 else
                 {
                     xher.UpdateContent("/ebank/hostReturnCode", "99999");
                     xher.UpdateContent("/ebank/hostErrorMessage", "未知错误");
                 }
             }
             else if (doc1.SelectSingleNode("//root//head//ErrorCode").InnerText.Trim() != "000000")
             {
                 xher.UpdateContent("/ebank/hostReturnCode", doc1.SelectSingleNode("//root//head//ErrorCode").InnerText.Trim());
                 xher.UpdateContent("/ebank/hostErrorMessage", doc1.SelectSingleNode("//root//head//ErrorMsg").InnerText.Trim());
             }
             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));
     }
 }