コード例 #1
0
ファイル: MMDAQ91200.cs プロジェクト: iPeterPan/XingAPI
        public static XQMMDAQ91200OutBlock2[] Get(long RecCnt = default, string IsuLgclssCode = default, string IsuMdclssCode = default)
        {
            using (XQMMDAQ91200 instance = new XQMMDAQ91200())
            {
                instance.SetFieldData(XQMMDAQ91200InBlock1.BlockName, XQMMDAQ91200InBlock1.F.RecCnt, 0, RecCnt.ToString("d5"));                // long 5
                instance.SetFieldData(XQMMDAQ91200InBlock1.BlockName, XQMMDAQ91200InBlock1.F.IsuLgclssCode, 0, IsuLgclssCode);                 // char 2
                instance.SetFieldData(XQMMDAQ91200InBlock1.BlockName, XQMMDAQ91200InBlock1.F.IsuMdclssCode, 0, IsuMdclssCode);                 // char 2

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

                var outBlock = instance.GetBlock2s();
                return(outBlock);
            }
        }
コード例 #2
0
        public static XQAllOutBlocks Get(long RecCnt = default, string IsuLgclssCode = default, string IsuMdclssCode = default)
        {
            using (XQMMDAQ91200 instance = new XQMMDAQ91200())
            {
                instance.SetFieldData(XQMMDAQ91200InBlock1.BlockName, XQMMDAQ91200InBlock1.F.RecCnt, 0, RecCnt.ToString("d5"));                // long 5
                instance.SetFieldData(XQMMDAQ91200InBlock1.BlockName, XQMMDAQ91200InBlock1.F.IsuLgclssCode, 0, IsuLgclssCode);                 // char 2
                instance.SetFieldData(XQMMDAQ91200InBlock1.BlockName, XQMMDAQ91200InBlock1.F.IsuMdclssCode, 0, IsuMdclssCode);                 // char 2

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

                XQAllOutBlocks results = new XQAllOutBlocks();
                results.OutBlock1 = instance.GetBlock1();
                if (results.OutBlock1.IsValidData == false)
                {
                    return(null);
                }

                results.OutBlock2 = instance.GetBlock2s();
                return(results);
            }
        }