Example #1
0
        public static XQAllOutBlocks Get(char gubun1 = default, char gubun2 = default, string from_date = default, string to_date = default)
        {
            using (XQt2814 instance = new XQt2814())
            {
                instance.SetFieldData(XQt2814InBlock.BlockName, XQt2814InBlock.F.gubun1, 0, gubun1.ToString());        // char 1
                instance.SetFieldData(XQt2814InBlock.BlockName, XQt2814InBlock.F.gubun2, 0, gubun2.ToString());        // char 1
                instance.SetFieldData(XQt2814InBlock.BlockName, XQt2814InBlock.F.from_date, 0, from_date);             // char 8
                instance.SetFieldData(XQt2814InBlock.BlockName, XQt2814InBlock.F.to_date, 0, to_date);                 // 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);
            }
        }
Example #2
0
        public static XQt2814OutBlock1[] Get(char gubun1 = default, char gubun2 = default, string from_date = default, string to_date = default)
        {
            using (XQt2814 instance = new XQt2814())
            {
                instance.SetFieldData(XQt2814InBlock.BlockName, XQt2814InBlock.F.gubun1, 0, gubun1.ToString());        // char 1
                instance.SetFieldData(XQt2814InBlock.BlockName, XQt2814InBlock.F.gubun2, 0, gubun2.ToString());        // char 1
                instance.SetFieldData(XQt2814InBlock.BlockName, XQt2814InBlock.F.from_date, 0, from_date);             // char 8
                instance.SetFieldData(XQt2814InBlock.BlockName, XQt2814InBlock.F.to_date, 0, to_date);                 // char 8

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

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