示例#1
0
文件: t2805.cs 项目: tdoobw/XingAPI
        public static XQAllOutBlocks Get(string shcode = default, char futcheck = default, string date = default, string cts_code = default, string lastdate = default, int cnt = default)
        {
            using (XQt2805 instance = new XQt2805())
            {
                instance.SetFieldData(XQt2805InBlock.BlockName, XQt2805InBlock.F.shcode, 0, shcode);                // char 8
                instance.SetFieldData(XQt2805InBlock.BlockName, XQt2805InBlock.F.futcheck, 0, futcheck.ToString()); // char 1
                instance.SetFieldData(XQt2805InBlock.BlockName, XQt2805InBlock.F.date, 0, date);                    // char 8
                instance.SetFieldData(XQt2805InBlock.BlockName, XQt2805InBlock.F.cts_code, 0, cts_code);            // char 8
                instance.SetFieldData(XQt2805InBlock.BlockName, XQt2805InBlock.F.lastdate, 0, lastdate);            // char 8
                instance.SetFieldData(XQt2805InBlock.BlockName, XQt2805InBlock.F.cnt, 0, cnt.ToString("d3"));       // int 3

                if (instance.Request() < 0)
                {
                    return(null);
                }

                XQAllOutBlocks results = new XQAllOutBlocks();
                results.OutBlock = instance.GetBlock();
                if (results.OutBlock.IsValidData == false)
                {
                    return(null);
                }

                results.OutBlock1 = instance.GetBlock1s();
                return(results);
            }
        }
示例#2
0
        public static XQt2805OutBlock1[] Get(string shcode = default, char futcheck = default, string date = default, string cts_code = default, string lastdate = default, int cnt = default)
        {
            using (XQt2805 instance = new XQt2805())
            {
                instance.SetFieldData(XQt2805InBlock.BlockName, XQt2805InBlock.F.shcode, 0, shcode);                // char 8
                instance.SetFieldData(XQt2805InBlock.BlockName, XQt2805InBlock.F.futcheck, 0, futcheck.ToString()); // char 1
                instance.SetFieldData(XQt2805InBlock.BlockName, XQt2805InBlock.F.date, 0, date);                    // char 8
                instance.SetFieldData(XQt2805InBlock.BlockName, XQt2805InBlock.F.cts_code, 0, cts_code);            // char 8
                instance.SetFieldData(XQt2805InBlock.BlockName, XQt2805InBlock.F.lastdate, 0, lastdate);            // char 8
                instance.SetFieldData(XQt2805InBlock.BlockName, XQt2805InBlock.F.cnt, 0, cnt.ToString("d3"));       // int 3

                if (instance.Request() < 0)
                {
                    return(null);
                }

                var outBlock = instance.GetBlock1s();
                return(outBlock);
            }
        }