public void LoadFromExcel(string path) { IExcelImport ex = UnityContainer.Resolve <AssortForOrderImport>(); _dataExcel = ex.GetDataFromExcel(path); foreach (IDataRecord dataRecord in _dataExcel) { OrderCategorys.CheckedGoodsByCode(dataRecord.Code); } }
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); }