Esempio n. 1
0
        public static XQAllOutBlocks Get(char gubun = default, char jongchk = default, char jkrate = default, string shcode = default, long idx = default)
        {
            using (XQt1411 instance = new XQt1411())
            {
                instance.SetFieldData(XQt1411InBlock.BlockName, XQt1411InBlock.F.gubun, 0, gubun.ToString());        // char 1
                instance.SetFieldData(XQt1411InBlock.BlockName, XQt1411InBlock.F.jongchk, 0, jongchk.ToString());    // char 1
                instance.SetFieldData(XQt1411InBlock.BlockName, XQt1411InBlock.F.jkrate, 0, jkrate.ToString());      // char 1
                instance.SetFieldData(XQt1411InBlock.BlockName, XQt1411InBlock.F.shcode, 0, shcode);                 // char 6
                instance.SetFieldData(XQt1411InBlock.BlockName, XQt1411InBlock.F.idx, 0, idx.ToString("d4"));        // long 4

                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);
            }
        }
Esempio n. 2
0
        public static XQt1411OutBlock1[] Get(char gubun = default, char jongchk = default, char jkrate = default, string shcode = default, long idx = default)
        {
            using (XQt1411 instance = new XQt1411())
            {
                instance.SetFieldData(XQt1411InBlock.BlockName, XQt1411InBlock.F.gubun, 0, gubun.ToString());        // char 1
                instance.SetFieldData(XQt1411InBlock.BlockName, XQt1411InBlock.F.jongchk, 0, jongchk.ToString());    // char 1
                instance.SetFieldData(XQt1411InBlock.BlockName, XQt1411InBlock.F.jkrate, 0, jkrate.ToString());      // char 1
                instance.SetFieldData(XQt1411InBlock.BlockName, XQt1411InBlock.F.shcode, 0, shcode);                 // char 6
                instance.SetFieldData(XQt1411InBlock.BlockName, XQt1411InBlock.F.idx, 0, idx.ToString("d4"));        // long 4

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

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