First we need to upload our file and read it to a Data Table. Now, we can pass our result to the below method where we can attach a unique batch code to the set which will be useful later when performing our search.
After we insert our records to the database we need to reset the controls and make it available so that our user can add the records from the file to the filter criteria.
Finally, we use our batch code and add it to our criteria. (Using NHibernate here for example)
For this example I only had two scan codes in my Test.csv file. Those two records were returned since they matched my search criteria but you can see where I am going with this...
No comments:
Post a Comment