Exemplo n.º 1
0
        public static XQAllOutBlocks Get(string shcode = default, string gubun = default, string time = default, string cnt = default)
        {
            using (XQt1471 instance = new XQt1471())
            {
                instance.SetFieldData(XQt1471InBlock.BlockName, XQt1471InBlock.F.shcode, 0, shcode);           // char 6
                instance.SetFieldData(XQt1471InBlock.BlockName, XQt1471InBlock.F.gubun, 0, gubun);             // char 2
                instance.SetFieldData(XQt1471InBlock.BlockName, XQt1471InBlock.F.time, 0, time);               // char 6
                instance.SetFieldData(XQt1471InBlock.BlockName, XQt1471InBlock.F.cnt, 0, cnt);                 // char 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);
            }
        }
Exemplo n.º 2
0
        public static XQt1471OutBlock1[] Get(string shcode = default, string gubun = default, string time = default, string cnt = default)
        {
            using (XQt1471 instance = new XQt1471())
            {
                instance.SetFieldData(XQt1471InBlock.BlockName, XQt1471InBlock.F.shcode, 0, shcode);           // char 6
                instance.SetFieldData(XQt1471InBlock.BlockName, XQt1471InBlock.F.gubun, 0, gubun);             // char 2
                instance.SetFieldData(XQt1471InBlock.BlockName, XQt1471InBlock.F.time, 0, time);               // char 6
                instance.SetFieldData(XQt1471InBlock.BlockName, XQt1471InBlock.F.cnt, 0, cnt);                 // char 3

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

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