Exemplo n.º 1
0
        public static XQAllOutBlocks Get(string shcode = default, char gubun = default, long qrycnt = default, string sdate = default, string edate = default, string cts_date = default, char comp_yn = default)
        {
            using (XQt8419 instance = new XQt8419())
            {
                instance.SetFieldData(XQt8419InBlock.BlockName, XQt8419InBlock.F.shcode, 0, shcode);                // char 3
                instance.SetFieldData(XQt8419InBlock.BlockName, XQt8419InBlock.F.gubun, 0, gubun.ToString());       // char 1
                instance.SetFieldData(XQt8419InBlock.BlockName, XQt8419InBlock.F.qrycnt, 0, qrycnt.ToString("d4")); // long 4
                instance.SetFieldData(XQt8419InBlock.BlockName, XQt8419InBlock.F.sdate, 0, sdate);                  // char 8
                instance.SetFieldData(XQt8419InBlock.BlockName, XQt8419InBlock.F.edate, 0, edate);                  // char 8
                instance.SetFieldData(XQt8419InBlock.BlockName, XQt8419InBlock.F.cts_date, 0, cts_date);            // char 8
                instance.SetFieldData(XQt8419InBlock.BlockName, XQt8419InBlock.F.comp_yn, 0, comp_yn.ToString());   // char 1

                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 XQt8419OutBlock1[] Get(string shcode = default, char gubun = default, long qrycnt = default, string sdate = default, string edate = default, string cts_date = default, char comp_yn = default)
        {
            using (XQt8419 instance = new XQt8419())
            {
                instance.SetFieldData(XQt8419InBlock.BlockName, XQt8419InBlock.F.shcode, 0, shcode);                // char 3
                instance.SetFieldData(XQt8419InBlock.BlockName, XQt8419InBlock.F.gubun, 0, gubun.ToString());       // char 1
                instance.SetFieldData(XQt8419InBlock.BlockName, XQt8419InBlock.F.qrycnt, 0, qrycnt.ToString("d4")); // long 4
                instance.SetFieldData(XQt8419InBlock.BlockName, XQt8419InBlock.F.sdate, 0, sdate);                  // char 8
                instance.SetFieldData(XQt8419InBlock.BlockName, XQt8419InBlock.F.edate, 0, edate);                  // char 8
                instance.SetFieldData(XQt8419InBlock.BlockName, XQt8419InBlock.F.cts_date, 0, cts_date);            // char 8
                instance.SetFieldData(XQt8419InBlock.BlockName, XQt8419InBlock.F.comp_yn, 0, comp_yn.ToString());   // char 1

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

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