public static bool LoadIntexFile(string filePath, ref List <DataItemINTEX> listItems, ref List <DataPalletINTEX> listPallet, ref List <DataCaseINTEX> listCases)
        {
            FileStream      fs = new FileStream(filePath, FileMode.Open, FileAccess.Read, FileShare.Read);
            ExcelDataReader excelDataReader = new ExcelDataReader(fs, ref listItems, ref listPallet, ref listCases);

            fs.Close();
            return(listItems.Count > 0 && listPallet.Count > 0);
        }
Example #2
0
 public static bool LoadIntexFile(string filePath, ref List<DataItemINTEX> listItems, ref List<DataPalletINTEX> listPallet, ref List<DataCaseINTEX> listCases)
 {
     FileStream fs = new FileStream(filePath, FileMode.Open, FileAccess.Read, FileShare.Read);
     ExcelDataReader excelDataReader = new ExcelDataReader(fs, ref listItems, ref listPallet, ref listCases);
     fs.Close();
     return listItems.Count > 0 && listPallet.Count > 0;
 }