private string ET0107() { try { XmlDocument doc1 = new XmlDocument(); BS30600002 b = new BS30600002(); b.ApplicantAcctNo = xdoc.SelectSingleNode("//ebank//cust_account").InnerText.Trim(); b.BillId = xdoc.SelectSingleNode("//ebank//rgct_ids").InnerText.Trim(); b.Flag = "2"; b.Signature = xdoc.SelectSingleNode("//ebank//warteeSign").InnerText.Trim(); if (BSET.BS30600002(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)); } }
static public string BS30600002(BS30600002 b, string nodeNo, string trandType, ref XmlDocument xml) { head s = new head(); s.SceneNo = "04"; s.ServiceNo = "P0720001"; s.TradeCode = "WYPJ30600002"; XmlHelper xhs = setHead(s); string send = ""; xhs.setBody("applicantAcctNo", b.ApplicantAcctNo); xhs.setBody("billId", b.BillId); xhs.setBody("flag", b.Flag); xhs.setBody("signature", b.Signature); xhs.setBody("source", b.Source); 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()); }