public int Execute(XingSession sess, string acc_no, string acc_pw) { CSPAQ12200._CSPAQ12200InBlock1 in_block = new CSPAQ12200._CSPAQ12200InBlock1(); in_block.RecCnt = Encoding.ASCII.GetBytes("00001"); in_block.MgmtBrnNo = Encoding.ASCII.GetBytes(" "); in_block.AcntNo = Encoding.ASCII.GetBytes(acc_no.PadRight(20, ' ')); in_block.Pwd = Encoding.ASCII.GetBytes(acc_pw.PadRight(8, ' ')); in_block.BalCreTp = Encoding.ASCII.GetBytes("0"); XingQuery query = new XingQuery(); query.TRCode = "CSPAQ12200"; query.InBlock = in_block; query.ReceivedCB = new XingQuery.ReceivedFunc(this.ReceivedFunc); query.ErrorCB = new XingQuery.ErrorFunc(this.ErrorFunc); query.MessageCB = new XingQuery.MessageFunc(this.MessageFunc); int ec = sess.Execute<CSPAQ12200._CSPAQ12200InBlock1>(query, false); if (ec < 0) { LogMsg("[CSPAQ12200::Request] Execute fail. : ec(" + ec + ")"); return -1; } return 0; }
public int Execute(XingSession sess, string acc_no, string acc_pw) { CSPAQ12200._CSPAQ12200InBlock1 in_block = new CSPAQ12200._CSPAQ12200InBlock1(); in_block.RecCnt = Encoding.ASCII.GetBytes("00001"); in_block.MgmtBrnNo = Encoding.ASCII.GetBytes(" "); in_block.AcntNo = Encoding.ASCII.GetBytes(acc_no.PadRight(20, ' ')); in_block.Pwd = Encoding.ASCII.GetBytes(acc_pw.PadRight(8, ' ')); in_block.BalCreTp = Encoding.ASCII.GetBytes("0"); XingQuery query = new XingQuery(); query.TRCode = "CSPAQ12200"; query.InBlock = in_block; query.ReceivedCB = new XingQuery.ReceivedFunc(this.ReceivedFunc); query.ErrorCB = new XingQuery.ErrorFunc(this.ErrorFunc); query.MessageCB = new XingQuery.MessageFunc(this.MessageFunc); int ec = sess.Execute <CSPAQ12200._CSPAQ12200InBlock1>(query, false); if (ec < 0) { LogMsg("[CSPAQ12200::Request] Execute fail. : ec(" + ec + ")"); return(-1); } return(0); }