public static XQt1444OutBlock1[] Get(string upcode = default, long idx = default) { using (XQt1444 instance = new XQt1444()) { instance.SetFieldData(XQt1444InBlock.BlockName, XQt1444InBlock.F.upcode, 0, upcode); // char 3 instance.SetFieldData(XQt1444InBlock.BlockName, XQt1444InBlock.F.idx, 0, idx.ToString("d4")); // long 4 if (instance.Request() < 0) { return(null); } var outBlock = instance.GetBlock1s(); return(outBlock); } }
public static XQAllOutBlocks Get(string upcode = default, long idx = default) { using (XQt1444 instance = new XQt1444()) { instance.SetFieldData(XQt1444InBlock.BlockName, XQt1444InBlock.F.upcode, 0, upcode); // char 3 instance.SetFieldData(XQt1444InBlock.BlockName, XQt1444InBlock.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); } }