Exemple #1
0
        public static XQAllOutBlocks Get(char gubun = default, string styymm = default, string enyymm = default, long idx = default)
        {
            using (XQt1403 instance = new XQt1403())
            {
                instance.SetFieldData(XQt1403InBlock.BlockName, XQt1403InBlock.F.gubun, 0, gubun.ToString());        // char 1
                instance.SetFieldData(XQt1403InBlock.BlockName, XQt1403InBlock.F.styymm, 0, styymm);                 // char 6
                instance.SetFieldData(XQt1403InBlock.BlockName, XQt1403InBlock.F.enyymm, 0, enyymm);                 // char 6
                instance.SetFieldData(XQt1403InBlock.BlockName, XQt1403InBlock.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);
            }
        }
Exemple #2
0
        public static XQt1403OutBlock1[] Get(char gubun = default, string styymm = default, string enyymm = default, long idx = default)
        {
            using (XQt1403 instance = new XQt1403())
            {
                instance.SetFieldData(XQt1403InBlock.BlockName, XQt1403InBlock.F.gubun, 0, gubun.ToString());        // char 1
                instance.SetFieldData(XQt1403InBlock.BlockName, XQt1403InBlock.F.styymm, 0, styymm);                 // char 6
                instance.SetFieldData(XQt1403InBlock.BlockName, XQt1403InBlock.F.enyymm, 0, enyymm);                 // char 6
                instance.SetFieldData(XQt1403InBlock.BlockName, XQt1403InBlock.F.idx, 0, idx.ToString("d4"));        // long 4

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

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