Example #1
0
        public int Request(XingSession sess, string shcode)
        {
            int ec = 0;

            t1102._t1102InBlock in_block = new t1102._t1102InBlock();
            in_block.shcode = Encoding.ASCII.GetBytes(shcode);

            XingQuery query = new XingQuery();
            query.TRCode = "t1102";
            query.InBlock = in_block;
            query.ReceivedCB = new XingQuery.ReceivedFunc(this.ReceivedFunc);
            query.ErrorCB = new XingQuery.ErrorFunc(this.ErrorFunc);

            ec = sess.Execute<t1102._t1102InBlock>(query, false);
            if (ec < 0)
            {
                LogMsg("[t1102Req::Request] Execute fail. : ec(" + ec + ")");
                return -1;
            }

            return 0;
        }
Example #2
0
        public int Request(XingSession sess, string shcode)
        {
            int ec = 0;


            t1102._t1102InBlock in_block = new t1102._t1102InBlock();
            in_block.shcode = Encoding.ASCII.GetBytes(shcode);

            XingQuery query = new XingQuery();

            query.TRCode     = "t1102";
            query.InBlock    = in_block;
            query.ReceivedCB = new XingQuery.ReceivedFunc(this.ReceivedFunc);
            query.ErrorCB    = new XingQuery.ErrorFunc(this.ErrorFunc);

            ec = sess.Execute <t1102._t1102InBlock>(query, false);
            if (ec < 0)
            {
                LogMsg("[t1102Req::Request] Execute fail. : ec(" + ec + ")");
                return(-1);
            }

            return(0);
        }