Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. //Samples Object
  2. function Samples() {
  3. this.sampleID = new Array();
  4. this.oSampleGroup = new SampleGroup();
  5. this.iSampleCount = 0;
  6. this.sampleName = new Array();
  7. }
  8.  
  9. //SampleGroup Object
  10. function SampleGroup() {
  11. this.oSample = new Array();
  12. this.iSampleCount = 0;
  13. this.addSample = function(barcode, date, time, collectedAt) {
  14. this.oSample[this.iSampleCount] = new Sample(barcode, date, time, collectedAt);
  15. this.iSampleCount += 1;
  16. }
  17. }
  18.  
  19. // add a sample
  20. function Sample(barcode, date, time, collectedAt){
  21. this.sCarcode = barcode;
  22. this.dDate = date;
  23. this.sTime = time;
  24. this.sCollectedDateTime = collectedAt;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement