Exemplo n.º 1
0
        public static XQt1404OutBlock1[] Get(char gubun = default, char jongchk = default, string cts_shcode = default)
        {
            using (XQt1404 instance = new XQt1404())
            {
                instance.SetFieldData(XQt1404InBlock.BlockName, XQt1404InBlock.F.gubun, 0, gubun.ToString());                // char 1
                instance.SetFieldData(XQt1404InBlock.BlockName, XQt1404InBlock.F.jongchk, 0, jongchk.ToString());            // char 1
                instance.SetFieldData(XQt1404InBlock.BlockName, XQt1404InBlock.F.cts_shcode, 0, cts_shcode);                 // char 6

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

                var outBlock = instance.GetBlock1s();
                return(outBlock);
            }
        }
Exemplo n.º 2
0
        public static XQAllOutBlocks Get(char gubun = default, char jongchk = default, string cts_shcode = default)
        {
            using (XQt1404 instance = new XQt1404())
            {
                instance.SetFieldData(XQt1404InBlock.BlockName, XQt1404InBlock.F.gubun, 0, gubun.ToString());                // char 1
                instance.SetFieldData(XQt1404InBlock.BlockName, XQt1404InBlock.F.jongchk, 0, jongchk.ToString());            // char 1
                instance.SetFieldData(XQt1404InBlock.BlockName, XQt1404InBlock.F.cts_shcode, 0, cts_shcode);                 // char 6

                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);
            }
        }