예제 #1
0
        private static async Task GetMaterialAsync()
        {
            const string MATERIAL_CODE = "1DACTV76A201000002";

            IMaterialManager manager = ServiceProvider.GetRequiredService <IMaterialManager>();
            Material         result  = await manager.GetMaterialWithSubTableAsync(MATERIAL_CODE);

            manager.Print(result);
        }
예제 #2
0
        private static async Task GetMaterialsByPrefixWithSubTablesAsync()
        {
            const string MATERIAL_PREFIX = "11AKPAK";
            const int    RECORD_COUNT    = 10;

            IMaterialManager manager = ServiceProvider.GetRequiredService <IMaterialManager>();
            List <Material>  result  = await manager.GetMaterialsByPrefixWithSubTablesAsync(MATERIAL_PREFIX, RECORD_COUNT);

            manager.Print(result);
        }