Exemple #1
0
        public void LoadFromExcel(string path)
        {
            IExcelImport ex = UnityContainer.Resolve <AssortForOrderImport>();

            _dataExcel = ex.GetDataFromExcel(path);
            foreach (IDataRecord dataRecord in _dataExcel)
            {
                OrderCategorys.CheckedGoodsByCode(dataRecord.Code);
            }
        }
Exemple #2
0
        public int LoadFromExcel(string path)
        {
            int                 counter   = 0;
            IExcelImport        ex        = UnityContainer.Resolve <ReqAssortImport>();
            IList <IDataRecord> dataExcel = ex.GetDataFromExcel(path);

            foreach (IDataRecord dataRecord in dataExcel)
            {
                if (Assorts.CheckedGoodsByCode(dataRecord.Code))
                {
                    counter++;
                }
            }
            return(counter);
        }