public static XQAllOutBlocks Get(string shcode = default, char gubun1 = default, string tradno = default, string cts_date = default) { using (XQt3401 instance = new XQt3401()) { instance.SetFieldData(XQt3401InBlock.BlockName, XQt3401InBlock.F.shcode, 0, shcode); // char 9 instance.SetFieldData(XQt3401InBlock.BlockName, XQt3401InBlock.F.gubun1, 0, gubun1.ToString()); // char 1 instance.SetFieldData(XQt3401InBlock.BlockName, XQt3401InBlock.F.tradno, 0, tradno); // char 3 instance.SetFieldData(XQt3401InBlock.BlockName, XQt3401InBlock.F.cts_date, 0, cts_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); } }
public static XQt3401OutBlock1[] Get(string shcode = default, char gubun1 = default, string tradno = default, string cts_date = default) { using (XQt3401 instance = new XQt3401()) { instance.SetFieldData(XQt3401InBlock.BlockName, XQt3401InBlock.F.shcode, 0, shcode); // char 9 instance.SetFieldData(XQt3401InBlock.BlockName, XQt3401InBlock.F.gubun1, 0, gubun1.ToString()); // char 1 instance.SetFieldData(XQt3401InBlock.BlockName, XQt3401InBlock.F.tradno, 0, tradno); // char 3 instance.SetFieldData(XQt3401InBlock.BlockName, XQt3401InBlock.F.cts_date, 0, cts_date); // char 8 if (instance.Request() < 0) { return(null); } var outBlock = instance.GetBlock1s(); return(outBlock); } }