예제 #1
0
파일: t1927.cs 프로젝트: tdoobw/XingAPI
        public static XQAllOutBlocks Get(string shcode = default, string date = default, string sdate = default, string edate = default)
        {
            using (XQt1927 instance = new XQt1927())
            {
                instance.SetFieldData(XQt1927InBlock.BlockName, XQt1927InBlock.F.shcode, 0, shcode);             // char 6
                instance.SetFieldData(XQt1927InBlock.BlockName, XQt1927InBlock.F.date, 0, date);                 // char 8
                instance.SetFieldData(XQt1927InBlock.BlockName, XQt1927InBlock.F.sdate, 0, sdate);               // char 8
                instance.SetFieldData(XQt1927InBlock.BlockName, XQt1927InBlock.F.edate, 0, edate);               // char 8

                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
파일: t1927.cs 프로젝트: iPeterPan/XingAPI
        public static XQt1927OutBlock1[] Get(string shcode = default, string date = default, string sdate = default, string edate = default)
        {
            using (XQt1927 instance = new XQt1927())
            {
                instance.SetFieldData(XQt1927InBlock.BlockName, XQt1927InBlock.F.shcode, 0, shcode);             // char 6
                instance.SetFieldData(XQt1927InBlock.BlockName, XQt1927InBlock.F.date, 0, date);                 // char 8
                instance.SetFieldData(XQt1927InBlock.BlockName, XQt1927InBlock.F.sdate, 0, sdate);               // char 8
                instance.SetFieldData(XQt1927InBlock.BlockName, XQt1927InBlock.F.edate, 0, edate);               // char 8

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

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