Advertisement
Guest User

Untitled

a guest
Jul 10th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function QCLOSEDPLOTS(){
  2.     var PlotID = null;
  3.  var selectNoBlob = 'PlotID';
  4. };
  5.     QCLOSEDPLOTS.prototype.getPlotID = function() {
  6.         return this.PlotID;
  7.     };
  8.     QCLOSEDPLOTS.prototype.toString = function() {
  9.         var retVal = "";
  10.         retVal += "[PlotID][" + this.PlotID + "]";
  11.         return retVal;
  12.     };
  13. var QCLOSEDPLOTSDAO = function(){
  14. };
  15. QCLOSEDPLOTSDAO.doresultset = function(resultset) {
  16.         var resultarray = new Array(resultset.rowCount);
  17.         for (var i = 0; i < resultset.rowCount; i++){
  18.             var result = new QCLOSEDPLOTS();
  19.             this.loadFromResultset(result, resultset);
  20.             resultset.next();
  21.             resultarray[i] = result;
  22.         }
  23.         return resultarray;
  24.     };
  25. QCLOSEDPLOTSDAO.loadFromResultset = function(object, resultset) {
  26.         Titanium.API.info("loading QCLOSEDPLOTS...");
  27.         object.PlotID = resultset.fieldByName('PlotID');
  28.     };
  29. QCLOSEDPLOTSDAO.getUsingPlotID = function(PlotID) {
  30.         var resultset =  db.getConnection().execute('select PlotID from QCLOSEDPLOTS where PlotID = ? ',PlotID);
  31.         var resultarray = this.doresultset(resultset);
  32.         resultset.close();
  33.         return resultarray;
  34.     };
  35. QCLOSEDPLOTSDAO.getall = function() {
  36.         var resultset =  db.getConnection().execute('select PlotID from QCLOSEDPLOTS');
  37.         var resultarray = this.doresultset(resultset);
  38.         resultset.close();
  39.         return resultarray;
  40.     };
  41. QCLOSEDPLOTSDAO.getUsing = function(where) {
  42.         sqlstring = 'select PlotID from QCLOSEDPLOTS where ' + where;
  43.         var resultset =  db.getConnection().execute(sqlstring);
  44.         var resultarray = this.doresultset(resultset);
  45.         resultset.close();
  46.         return resultarray;
  47.     };
  48. function QDRWGS(){
  49.     var DrwgID = null;
  50.     var ImageFilename = null;
  51.     var DrwgTitle = null;
  52.     var Photo = null;
  53.     var PlottedPhoto = null;
  54.     var srt = null;
  55.     var LocID = null;
  56.     var NotCurr = null;
  57.     var EdgeNav = null;
  58.     var GridNo = null;
  59.     var Across = null;
  60.     var Down = null;
  61.     var TL = null;
  62.     var T = null;
  63.     var TR = null;
  64.     var R = null;
  65.     var BR = null;
  66.     var B = null;
  67.     var BL = null;
  68.     var L = null;
  69.  var selectNoBlob = 'DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L';
  70. };
  71.     QDRWGS.prototype.getDrwgID = function() {
  72.         return this.DrwgID;
  73.     };
  74.     QDRWGS.prototype.getImageFilename = function() {
  75.         return this.ImageFilename;
  76.     };
  77.     QDRWGS.prototype.getDrwgTitle = function() {
  78.         return this.DrwgTitle;
  79.     };
  80.     QDRWGS.prototype.getPhoto = function() {
  81.          if (this.Photo == null) {
  82.             result = db.getConnection().execute('select Photo from QDRWGS where ');
  83.             this.Photo = result.field(0);
  84.          }
  85.         return this.Photo;
  86.     };
  87.     QDRWGS.prototype.getPlottedPhoto = function() {
  88.          if (this.PlottedPhoto == null) {
  89.             result = db.getConnection().execute('select PlottedPhoto from QDRWGS where ');
  90.             this.PlottedPhoto = result.field(0);
  91.          }
  92.         return this.PlottedPhoto;
  93.     };
  94.     QDRWGS.prototype.getsrt = function() {
  95.         return this.srt;
  96.     };
  97.     QDRWGS.prototype.getLocID = function() {
  98.         return this.LocID;
  99.     };
  100.     QDRWGS.prototype.getNotCurr = function() {
  101.         return this.NotCurr;
  102.     };
  103.     QDRWGS.prototype.getEdgeNav = function() {
  104.         return this.EdgeNav;
  105.     };
  106.     QDRWGS.prototype.getGridNo = function() {
  107.         return this.GridNo;
  108.     };
  109.     QDRWGS.prototype.getAcross = function() {
  110.         return this.Across;
  111.     };
  112.     QDRWGS.prototype.getDown = function() {
  113.         return this.Down;
  114.     };
  115.     QDRWGS.prototype.getTL = function() {
  116.         return this.TL;
  117.     };
  118.     QDRWGS.prototype.getT = function() {
  119.         return this.T;
  120.     };
  121.     QDRWGS.prototype.getTR = function() {
  122.         return this.TR;
  123.     };
  124.     QDRWGS.prototype.getR = function() {
  125.         return this.R;
  126.     };
  127.     QDRWGS.prototype.getBR = function() {
  128.         return this.BR;
  129.     };
  130.     QDRWGS.prototype.getB = function() {
  131.         return this.B;
  132.     };
  133.     QDRWGS.prototype.getBL = function() {
  134.         return this.BL;
  135.     };
  136.     QDRWGS.prototype.getL = function() {
  137.         return this.L;
  138.     };
  139.     QDRWGS.prototype.toString = function() {
  140.         var retVal = "";
  141.         retVal += "[DrwgID][" + this.DrwgID + "]";
  142.         retVal += "[ImageFilename][" + this.ImageFilename + "]";
  143.         retVal += "[DrwgTitle][" + this.DrwgTitle + "]";
  144.         retVal += "[Photo][" + this.Photo + "]";
  145.         retVal += "[PlottedPhoto][" + this.PlottedPhoto + "]";
  146.         retVal += "[srt][" + this.srt + "]";
  147.         retVal += "[LocID][" + this.LocID + "]";
  148.         retVal += "[NotCurr][" + this.NotCurr + "]";
  149.         retVal += "[EdgeNav][" + this.EdgeNav + "]";
  150.         retVal += "[GridNo][" + this.GridNo + "]";
  151.         retVal += "[Across][" + this.Across + "]";
  152.         retVal += "[Down][" + this.Down + "]";
  153.         retVal += "[TL][" + this.TL + "]";
  154.         retVal += "[T][" + this.T + "]";
  155.         retVal += "[TR][" + this.TR + "]";
  156.         retVal += "[R][" + this.R + "]";
  157.         retVal += "[BR][" + this.BR + "]";
  158.         retVal += "[B][" + this.B + "]";
  159.         retVal += "[BL][" + this.BL + "]";
  160.         retVal += "[L][" + this.L + "]";
  161.         return retVal;
  162.     };
  163. var QDRWGSDAO = function(){
  164. };
  165. QDRWGSDAO.doresultset = function(resultset) {
  166.         var resultarray = new Array(resultset.rowCount);
  167.         for (var i = 0; i < resultset.rowCount; i++){
  168.             var result = new QDRWGS();
  169.             this.loadFromResultset(result, resultset);
  170.             resultset.next();
  171.             resultarray[i] = result;
  172.         }
  173.         return resultarray;
  174.     };
  175. QDRWGSDAO.loadFromResultset = function(object, resultset) {
  176.         Titanium.API.info("loading QDRWGS...");
  177.         object.DrwgID = resultset.fieldByName('DrwgID');
  178.         object.ImageFilename = resultset.fieldByName('ImageFilename');
  179.         object.DrwgTitle = resultset.fieldByName('DrwgTitle');
  180.         object.srt = resultset.fieldByName('srt');
  181.         object.LocID = resultset.fieldByName('LocID');
  182.         object.NotCurr = resultset.fieldByName('NotCurr');
  183.         object.EdgeNav = resultset.fieldByName('EdgeNav');
  184.         object.GridNo = resultset.fieldByName('GridNo');
  185.         object.Across = resultset.fieldByName('Across');
  186.         object.Down = resultset.fieldByName('Down');
  187.         object.TL = resultset.fieldByName('TL');
  188.         object.T = resultset.fieldByName('T');
  189.         object.TR = resultset.fieldByName('TR');
  190.         object.R = resultset.fieldByName('R');
  191.         object.BR = resultset.fieldByName('BR');
  192.         object.B = resultset.fieldByName('B');
  193.         object.BL = resultset.fieldByName('BL');
  194.         object.L = resultset.fieldByName('L');
  195.     };
  196. QDRWGSDAO.getUsingDrwgID = function(DrwgID) {
  197.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where DrwgID = ? ',DrwgID);
  198.         var resultarray = this.doresultset(resultset);
  199.         resultset.close();
  200.         return resultarray;
  201.     };
  202. QDRWGSDAO.getUsingImageFilename = function(ImageFilename) {
  203.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where ImageFilename = ? ',ImageFilename);
  204.         var resultarray = this.doresultset(resultset);
  205.         resultset.close();
  206.         return resultarray;
  207.     };
  208. QDRWGSDAO.getUsingDrwgTitle = function(DrwgTitle) {
  209.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where DrwgTitle = ? ',DrwgTitle);
  210.         var resultarray = this.doresultset(resultset);
  211.         resultset.close();
  212.         return resultarray;
  213.     };
  214. QDRWGSDAO.getUsingPhoto = function(Photo) {
  215.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where Photo = ? ',Photo);
  216.         var resultarray = this.doresultset(resultset);
  217.         resultset.close();
  218.         return resultarray;
  219.     };
  220. QDRWGSDAO.getUsingPlottedPhoto = function(PlottedPhoto) {
  221.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where PlottedPhoto = ? ',PlottedPhoto);
  222.         var resultarray = this.doresultset(resultset);
  223.         resultset.close();
  224.         return resultarray;
  225.     };
  226. QDRWGSDAO.getUsingsrt = function(srt) {
  227.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where srt = ? ',srt);
  228.         var resultarray = this.doresultset(resultset);
  229.         resultset.close();
  230.         return resultarray;
  231.     };
  232. QDRWGSDAO.getUsingLocID = function(LocID) {
  233.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where LocID = ? ',LocID);
  234.         var resultarray = this.doresultset(resultset);
  235.         resultset.close();
  236.         return resultarray;
  237.     };
  238. QDRWGSDAO.getUsingNotCurr = function(NotCurr) {
  239.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where NotCurr = ? ',NotCurr);
  240.         var resultarray = this.doresultset(resultset);
  241.         resultset.close();
  242.         return resultarray;
  243.     };
  244. QDRWGSDAO.getUsingEdgeNav = function(EdgeNav) {
  245.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where EdgeNav = ? ',EdgeNav);
  246.         var resultarray = this.doresultset(resultset);
  247.         resultset.close();
  248.         return resultarray;
  249.     };
  250. QDRWGSDAO.getUsingGridNo = function(GridNo) {
  251.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where GridNo = ? ',GridNo);
  252.         var resultarray = this.doresultset(resultset);
  253.         resultset.close();
  254.         return resultarray;
  255.     };
  256. QDRWGSDAO.getUsingAcross = function(Across) {
  257.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where Across = ? ',Across);
  258.         var resultarray = this.doresultset(resultset);
  259.         resultset.close();
  260.         return resultarray;
  261.     };
  262. QDRWGSDAO.getUsingDown = function(Down) {
  263.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where Down = ? ',Down);
  264.         var resultarray = this.doresultset(resultset);
  265.         resultset.close();
  266.         return resultarray;
  267.     };
  268. QDRWGSDAO.getUsingTL = function(TL) {
  269.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where TL = ? ',TL);
  270.         var resultarray = this.doresultset(resultset);
  271.         resultset.close();
  272.         return resultarray;
  273.     };
  274. QDRWGSDAO.getUsingT = function(T) {
  275.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where T = ? ',T);
  276.         var resultarray = this.doresultset(resultset);
  277.         resultset.close();
  278.         return resultarray;
  279.     };
  280. QDRWGSDAO.getUsingTR = function(TR) {
  281.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where TR = ? ',TR);
  282.         var resultarray = this.doresultset(resultset);
  283.         resultset.close();
  284.         return resultarray;
  285.     };
  286. QDRWGSDAO.getUsingR = function(R) {
  287.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where R = ? ',R);
  288.         var resultarray = this.doresultset(resultset);
  289.         resultset.close();
  290.         return resultarray;
  291.     };
  292. QDRWGSDAO.getUsingBR = function(BR) {
  293.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where BR = ? ',BR);
  294.         var resultarray = this.doresultset(resultset);
  295.         resultset.close();
  296.         return resultarray;
  297.     };
  298. QDRWGSDAO.getUsingB = function(B) {
  299.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where B = ? ',B);
  300.         var resultarray = this.doresultset(resultset);
  301.         resultset.close();
  302.         return resultarray;
  303.     };
  304. QDRWGSDAO.getUsingBL = function(BL) {
  305.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where BL = ? ',BL);
  306.         var resultarray = this.doresultset(resultset);
  307.         resultset.close();
  308.         return resultarray;
  309.     };
  310. QDRWGSDAO.getUsingL = function(L) {
  311.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where L = ? ',L);
  312.         var resultarray = this.doresultset(resultset);
  313.         resultset.close();
  314.         return resultarray;
  315.     };
  316. QDRWGSDAO.getall = function() {
  317.         var resultset =  db.getConnection().execute('select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS');
  318.         var resultarray = this.doresultset(resultset);
  319.         resultset.close();
  320.         return resultarray;
  321.     };
  322. QDRWGSDAO.getUsing = function(where) {
  323.         sqlstring = 'select DrwgID,ImageFilename,DrwgTitle,srt,LocID,NotCurr,EdgeNav,GridNo,Across,Down,TL,T,TR,R,BR,B,BL,L from QDRWGS where ' + where;
  324.         var resultset =  db.getConnection().execute(sqlstring);
  325.         var resultarray = this.doresultset(resultset);
  326.         resultset.close();
  327.         return resultarray;
  328.     };
  329. function QDRWGSNAGS(){
  330.     var DrwgID = null;
  331.     var CountofDrwgSnags = null;
  332.  var selectNoBlob = 'DrwgID,CountofDrwgSnags';
  333. };
  334.     QDRWGSNAGS.prototype.getDrwgID = function() {
  335.         return this.DrwgID;
  336.     };
  337.     QDRWGSNAGS.prototype.getCountofDrwgSnags = function() {
  338.         return this.CountofDrwgSnags;
  339.     };
  340.     QDRWGSNAGS.prototype.toString = function() {
  341.         var retVal = "";
  342.         retVal += "[DrwgID][" + this.DrwgID + "]";
  343.         retVal += "[CountofDrwgSnags][" + this.CountofDrwgSnags + "]";
  344.         return retVal;
  345.     };
  346. var QDRWGSNAGSDAO = function(){
  347. };
  348. QDRWGSNAGSDAO.doresultset = function(resultset) {
  349.         var resultarray = new Array(resultset.rowCount);
  350.         for (var i = 0; i < resultset.rowCount; i++){
  351.             var result = new QDRWGSNAGS();
  352.             this.loadFromResultset(result, resultset);
  353.             resultset.next();
  354.             resultarray[i] = result;
  355.         }
  356.         return resultarray;
  357.     };
  358. QDRWGSNAGSDAO.loadFromResultset = function(object, resultset) {
  359.         Titanium.API.info("loading QDRWGSNAGS...");
  360.         object.DrwgID = resultset.fieldByName('DrwgID');
  361.         object.CountofDrwgSnags = resultset.fieldByName('CountofDrwgSnags');
  362.     };
  363. QDRWGSNAGSDAO.getUsingDrwgID = function(DrwgID) {
  364.         var resultset =  db.getConnection().execute('select DrwgID,CountofDrwgSnags from QDRWGSNAGS where DrwgID = ? ',DrwgID);
  365.         var resultarray = this.doresultset(resultset);
  366.         resultset.close();
  367.         return resultarray;
  368.     };
  369. QDRWGSNAGSDAO.getUsingCountofDrwgSnags = function(CountofDrwgSnags) {
  370.         var resultset =  db.getConnection().execute('select DrwgID,CountofDrwgSnags from QDRWGSNAGS where CountofDrwgSnags = ? ',CountofDrwgSnags);
  371.         var resultarray = this.doresultset(resultset);
  372.         resultset.close();
  373.         return resultarray;
  374.     };
  375. QDRWGSNAGSDAO.getall = function() {
  376.         var resultset =  db.getConnection().execute('select DrwgID,CountofDrwgSnags from QDRWGSNAGS');
  377.         var resultarray = this.doresultset(resultset);
  378.         resultset.close();
  379.         return resultarray;
  380.     };
  381. QDRWGSNAGSDAO.getUsing = function(where) {
  382.         sqlstring = 'select DrwgID,CountofDrwgSnags from QDRWGSNAGS where ' + where;
  383.         var resultset =  db.getConnection().execute(sqlstring);
  384.         var resultarray = this.doresultset(resultset);
  385.         resultset.close();
  386.         return resultarray;
  387.     };
  388. function QGROUPS(){
  389.     var GroupID = null;
  390.     var Groupname = null;
  391.     var GroupInits = null;
  392.     var Email = null;
  393.  var selectNoBlob = 'GroupID,Groupname,GroupInits,Email';
  394. };
  395.     QGROUPS.prototype.getGroupID = function() {
  396.         return this.GroupID;
  397.     };
  398.     QGROUPS.prototype.getGroupname = function() {
  399.         return this.Groupname;
  400.     };
  401.     QGROUPS.prototype.getGroupInits = function() {
  402.         return this.GroupInits;
  403.     };
  404.     QGROUPS.prototype.getEmail = function() {
  405.         return this.Email;
  406.     };
  407.     QGROUPS.prototype.toString = function() {
  408.         var retVal = "";
  409.         retVal += "[GroupID][" + this.GroupID + "]";
  410.         retVal += "[Groupname][" + this.Groupname + "]";
  411.         retVal += "[GroupInits][" + this.GroupInits + "]";
  412.         retVal += "[Email][" + this.Email + "]";
  413.         return retVal;
  414.     };
  415. var QGROUPSDAO = function(){
  416. };
  417. QGROUPSDAO.doresultset = function(resultset) {
  418.         var resultarray = new Array(resultset.rowCount);
  419.         for (var i = 0; i < resultset.rowCount; i++){
  420.             var result = new QGROUPS();
  421.             this.loadFromResultset(result, resultset);
  422.             resultset.next();
  423.             resultarray[i] = result;
  424.         }
  425.         return resultarray;
  426.     };
  427. QGROUPSDAO.loadFromResultset = function(object, resultset) {
  428.         Titanium.API.info("loading QGROUPS...");
  429.         object.GroupID = resultset.fieldByName('GroupID');
  430.         object.Groupname = resultset.fieldByName('Groupname');
  431.         object.GroupInits = resultset.fieldByName('GroupInits');
  432.         object.Email = resultset.fieldByName('Email');
  433.     };
  434. QGROUPSDAO.getUsingGroupID = function(GroupID) {
  435.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,Email from QGROUPS where GroupID = ? ',GroupID);
  436.         var resultarray = this.doresultset(resultset);
  437.         resultset.close();
  438.         return resultarray;
  439.     };
  440. QGROUPSDAO.getUsingGroupname = function(Groupname) {
  441.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,Email from QGROUPS where Groupname = ? ',Groupname);
  442.         var resultarray = this.doresultset(resultset);
  443.         resultset.close();
  444.         return resultarray;
  445.     };
  446. QGROUPSDAO.getUsingGroupInits = function(GroupInits) {
  447.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,Email from QGROUPS where GroupInits = ? ',GroupInits);
  448.         var resultarray = this.doresultset(resultset);
  449.         resultset.close();
  450.         return resultarray;
  451.     };
  452. QGROUPSDAO.getUsingEmail = function(Email) {
  453.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,Email from QGROUPS where Email = ? ',Email);
  454.         var resultarray = this.doresultset(resultset);
  455.         resultset.close();
  456.         return resultarray;
  457.     };
  458. QGROUPSDAO.getall = function() {
  459.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,Email from QGROUPS');
  460.         var resultarray = this.doresultset(resultset);
  461.         resultset.close();
  462.         return resultarray;
  463.     };
  464. QGROUPSDAO.getUsing = function(where) {
  465.         sqlstring = 'select GroupID,Groupname,GroupInits,Email from QGROUPS where ' + where;
  466.         var resultset =  db.getConnection().execute(sqlstring);
  467.         var resultarray = this.doresultset(resultset);
  468.         resultset.close();
  469.         return resultarray;
  470.     };
  471. function QGROUPSNAGDRWGS(){
  472.     var GroupID = null;
  473.     var DrwgID = null;
  474.     var CountOfSnagID = null;
  475.     var GroupInits = null;
  476.  var selectNoBlob = 'GroupID,DrwgID,CountOfSnagID,GroupInits';
  477. };
  478.     QGROUPSNAGDRWGS.prototype.getGroupID = function() {
  479.         return this.GroupID;
  480.     };
  481.     QGROUPSNAGDRWGS.prototype.getDrwgID = function() {
  482.         return this.DrwgID;
  483.     };
  484.     QGROUPSNAGDRWGS.prototype.getCountOfSnagID = function() {
  485.         return this.CountOfSnagID;
  486.     };
  487.     QGROUPSNAGDRWGS.prototype.getGroupInits = function() {
  488.         return this.GroupInits;
  489.     };
  490.     QGROUPSNAGDRWGS.prototype.toString = function() {
  491.         var retVal = "";
  492.         retVal += "[GroupID][" + this.GroupID + "]";
  493.         retVal += "[DrwgID][" + this.DrwgID + "]";
  494.         retVal += "[CountOfSnagID][" + this.CountOfSnagID + "]";
  495.         retVal += "[GroupInits][" + this.GroupInits + "]";
  496.         return retVal;
  497.     };
  498. var QGROUPSNAGDRWGSDAO = function(){
  499. };
  500. QGROUPSNAGDRWGSDAO.doresultset = function(resultset) {
  501.         var resultarray = new Array(resultset.rowCount);
  502.         for (var i = 0; i < resultset.rowCount; i++){
  503.             var result = new QGROUPSNAGDRWGS();
  504.             this.loadFromResultset(result, resultset);
  505.             resultset.next();
  506.             resultarray[i] = result;
  507.         }
  508.         return resultarray;
  509.     };
  510. QGROUPSNAGDRWGSDAO.loadFromResultset = function(object, resultset) {
  511.         Titanium.API.info("loading QGROUPSNAGDRWGS...");
  512.         object.GroupID = resultset.fieldByName('GroupID');
  513.         object.DrwgID = resultset.fieldByName('DrwgID');
  514.         object.CountOfSnagID = resultset.fieldByName('CountOfSnagID');
  515.         object.GroupInits = resultset.fieldByName('GroupInits');
  516.     };
  517. QGROUPSNAGDRWGSDAO.getUsingGroupID = function(GroupID) {
  518.         var resultset =  db.getConnection().execute('select GroupID,DrwgID,CountOfSnagID,GroupInits from QGROUPSNAGDRWGS where GroupID = ? ',GroupID);
  519.         var resultarray = this.doresultset(resultset);
  520.         resultset.close();
  521.         return resultarray;
  522.     };
  523. QGROUPSNAGDRWGSDAO.getUsingDrwgID = function(DrwgID) {
  524.         var resultset =  db.getConnection().execute('select GroupID,DrwgID,CountOfSnagID,GroupInits from QGROUPSNAGDRWGS where DrwgID = ? ',DrwgID);
  525.         var resultarray = this.doresultset(resultset);
  526.         resultset.close();
  527.         return resultarray;
  528.     };
  529. QGROUPSNAGDRWGSDAO.getUsingCountOfSnagID = function(CountOfSnagID) {
  530.         var resultset =  db.getConnection().execute('select GroupID,DrwgID,CountOfSnagID,GroupInits from QGROUPSNAGDRWGS where CountOfSnagID = ? ',CountOfSnagID);
  531.         var resultarray = this.doresultset(resultset);
  532.         resultset.close();
  533.         return resultarray;
  534.     };
  535. QGROUPSNAGDRWGSDAO.getUsingGroupInits = function(GroupInits) {
  536.         var resultset =  db.getConnection().execute('select GroupID,DrwgID,CountOfSnagID,GroupInits from QGROUPSNAGDRWGS where GroupInits = ? ',GroupInits);
  537.         var resultarray = this.doresultset(resultset);
  538.         resultset.close();
  539.         return resultarray;
  540.     };
  541. QGROUPSNAGDRWGSDAO.getall = function() {
  542.         var resultset =  db.getConnection().execute('select GroupID,DrwgID,CountOfSnagID,GroupInits from QGROUPSNAGDRWGS');
  543.         var resultarray = this.doresultset(resultset);
  544.         resultset.close();
  545.         return resultarray;
  546.     };
  547. QGROUPSNAGDRWGSDAO.getUsing = function(where) {
  548.         sqlstring = 'select GroupID,DrwgID,CountOfSnagID,GroupInits from QGROUPSNAGDRWGS where ' + where;
  549.         var resultset =  db.getConnection().execute(sqlstring);
  550.         var resultarray = this.doresultset(resultset);
  551.         resultset.close();
  552.         return resultarray;
  553.     };
  554. function QGROUPSNAGS(){
  555.     var GroupID = null;
  556.     var CountOfSnagID = null;
  557.  var selectNoBlob = 'GroupID,CountOfSnagID';
  558. };
  559.     QGROUPSNAGS.prototype.getGroupID = function() {
  560.         return this.GroupID;
  561.     };
  562.     QGROUPSNAGS.prototype.getCountOfSnagID = function() {
  563.         return this.CountOfSnagID;
  564.     };
  565.     QGROUPSNAGS.prototype.toString = function() {
  566.         var retVal = "";
  567.         retVal += "[GroupID][" + this.GroupID + "]";
  568.         retVal += "[CountOfSnagID][" + this.CountOfSnagID + "]";
  569.         return retVal;
  570.     };
  571. var QGROUPSNAGSDAO = function(){
  572. };
  573. QGROUPSNAGSDAO.doresultset = function(resultset) {
  574.         var resultarray = new Array(resultset.rowCount);
  575.         for (var i = 0; i < resultset.rowCount; i++){
  576.             var result = new QGROUPSNAGS();
  577.             this.loadFromResultset(result, resultset);
  578.             resultset.next();
  579.             resultarray[i] = result;
  580.         }
  581.         return resultarray;
  582.     };
  583. QGROUPSNAGSDAO.loadFromResultset = function(object, resultset) {
  584.         Titanium.API.info("loading QGROUPSNAGS...");
  585.         object.GroupID = resultset.fieldByName('GroupID');
  586.         object.CountOfSnagID = resultset.fieldByName('CountOfSnagID');
  587.     };
  588. QGROUPSNAGSDAO.getUsingGroupID = function(GroupID) {
  589.         var resultset =  db.getConnection().execute('select GroupID,CountOfSnagID from QGROUPSNAGS where GroupID = ? ',GroupID);
  590.         var resultarray = this.doresultset(resultset);
  591.         resultset.close();
  592.         return resultarray;
  593.     };
  594. QGROUPSNAGSDAO.getUsingCountOfSnagID = function(CountOfSnagID) {
  595.         var resultset =  db.getConnection().execute('select GroupID,CountOfSnagID from QGROUPSNAGS where CountOfSnagID = ? ',CountOfSnagID);
  596.         var resultarray = this.doresultset(resultset);
  597.         resultset.close();
  598.         return resultarray;
  599.     };
  600. QGROUPSNAGSDAO.getall = function() {
  601.         var resultset =  db.getConnection().execute('select GroupID,CountOfSnagID from QGROUPSNAGS');
  602.         var resultarray = this.doresultset(resultset);
  603.         resultset.close();
  604.         return resultarray;
  605.     };
  606. QGROUPSNAGSDAO.getUsing = function(where) {
  607.         sqlstring = 'select GroupID,CountOfSnagID from QGROUPSNAGS where ' + where;
  608.         var resultset =  db.getConnection().execute(sqlstring);
  609.         var resultarray = this.doresultset(resultset);
  610.         resultset.close();
  611.         return resultarray;
  612.     };
  613. function QLINKS(){
  614.     var SnagID = null;
  615.     var DrwgID = null;
  616.     var Status = null;
  617.     var ShortDescrip = null;
  618.     var Location = null;
  619.     var Xcoord = null;
  620.     var YCoord = null;
  621.     var Priority = null;
  622.     var Datestamp = null;
  623.     var DrwgLink = null;
  624.     var Photo = null;
  625.     var DoBy = null;
  626.     var PPCGUID = null;
  627.     var GroupID = null;
  628.     var GroupInits = null;
  629.     var DateClosed = null;
  630.     var BigPhoto = null;
  631.     var SCID = null;
  632.     var Lat = null;
  633.     var Lng = null;
  634.     var Owner = null;
  635.     var SDCode = null;
  636.     var SDID = null;
  637.     var PlotID = null;
  638.     var TradeCode = null;
  639.     var MPGUID = null;
  640.  var selectNoBlob = 'SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID';
  641. };
  642.     QLINKS.prototype.getSnagID = function() {
  643.         return this.SnagID;
  644.     };
  645.     QLINKS.prototype.getDrwgID = function() {
  646.         return this.DrwgID;
  647.     };
  648.     QLINKS.prototype.getStatus = function() {
  649.         return this.Status;
  650.     };
  651.     QLINKS.prototype.getShortDescrip = function() {
  652.         return this.ShortDescrip;
  653.     };
  654.     QLINKS.prototype.getLocation = function() {
  655.         return this.Location;
  656.     };
  657.     QLINKS.prototype.getXcoord = function() {
  658.         return this.Xcoord;
  659.     };
  660.     QLINKS.prototype.getYCoord = function() {
  661.         return this.YCoord;
  662.     };
  663.     QLINKS.prototype.getPriority = function() {
  664.         return this.Priority;
  665.     };
  666.     QLINKS.prototype.getDatestamp = function() {
  667.         return this.Datestamp;
  668.     };
  669.     QLINKS.prototype.getDrwgLink = function() {
  670.         return this.DrwgLink;
  671.     };
  672.     QLINKS.prototype.getPhoto = function() {
  673.          if (this.Photo == null) {
  674.             result = db.getConnection().execute('select Photo from QLINKS where ');
  675.             this.Photo = result.field(0);
  676.          }
  677.         return this.Photo;
  678.     };
  679.     QLINKS.prototype.getDoBy = function() {
  680.         return this.DoBy;
  681.     };
  682.     QLINKS.prototype.getPPCGUID = function() {
  683.         return this.PPCGUID;
  684.     };
  685.     QLINKS.prototype.getGroupID = function() {
  686.         return this.GroupID;
  687.     };
  688.     QLINKS.prototype.getGroupInits = function() {
  689.         return this.GroupInits;
  690.     };
  691.     QLINKS.prototype.getDateClosed = function() {
  692.         return this.DateClosed;
  693.     };
  694.     QLINKS.prototype.getBigPhoto = function() {
  695.          if (this.BigPhoto == null) {
  696.             result = db.getConnection().execute('select BigPhoto from QLINKS where ');
  697.             this.BigPhoto = result.field(0);
  698.          }
  699.         return this.BigPhoto;
  700.     };
  701.     QLINKS.prototype.getSCID = function() {
  702.         return this.SCID;
  703.     };
  704.     QLINKS.prototype.getLat = function() {
  705.         return this.Lat;
  706.     };
  707.     QLINKS.prototype.getLng = function() {
  708.         return this.Lng;
  709.     };
  710.     QLINKS.prototype.getOwner = function() {
  711.         return this.Owner;
  712.     };
  713.     QLINKS.prototype.getSDCode = function() {
  714.         return this.SDCode;
  715.     };
  716.     QLINKS.prototype.getSDID = function() {
  717.         return this.SDID;
  718.     };
  719.     QLINKS.prototype.getPlotID = function() {
  720.         return this.PlotID;
  721.     };
  722.     QLINKS.prototype.getTradeCode = function() {
  723.         return this.TradeCode;
  724.     };
  725.     QLINKS.prototype.getMPGUID = function() {
  726.         return this.MPGUID;
  727.     };
  728.     QLINKS.prototype.toString = function() {
  729.         var retVal = "";
  730.         retVal += "[SnagID][" + this.SnagID + "]";
  731.         retVal += "[DrwgID][" + this.DrwgID + "]";
  732.         retVal += "[Status][" + this.Status + "]";
  733.         retVal += "[ShortDescrip][" + this.ShortDescrip + "]";
  734.         retVal += "[Location][" + this.Location + "]";
  735.         retVal += "[Xcoord][" + this.Xcoord + "]";
  736.         retVal += "[YCoord][" + this.YCoord + "]";
  737.         retVal += "[Priority][" + this.Priority + "]";
  738.         retVal += "[Datestamp][" + this.Datestamp + "]";
  739.         retVal += "[DrwgLink][" + this.DrwgLink + "]";
  740.         retVal += "[Photo][" + this.Photo + "]";
  741.         retVal += "[DoBy][" + this.DoBy + "]";
  742.         retVal += "[PPCGUID][" + this.PPCGUID + "]";
  743.         retVal += "[GroupID][" + this.GroupID + "]";
  744.         retVal += "[GroupInits][" + this.GroupInits + "]";
  745.         retVal += "[DateClosed][" + this.DateClosed + "]";
  746.         retVal += "[BigPhoto][" + this.BigPhoto + "]";
  747.         retVal += "[SCID][" + this.SCID + "]";
  748.         retVal += "[Lat][" + this.Lat + "]";
  749.         retVal += "[Lng][" + this.Lng + "]";
  750.         retVal += "[Owner][" + this.Owner + "]";
  751.         retVal += "[SDCode][" + this.SDCode + "]";
  752.         retVal += "[SDID][" + this.SDID + "]";
  753.         retVal += "[PlotID][" + this.PlotID + "]";
  754.         retVal += "[TradeCode][" + this.TradeCode + "]";
  755.         retVal += "[MPGUID][" + this.MPGUID + "]";
  756.         return retVal;
  757.     };
  758. var QLINKSDAO = function(){
  759. };
  760. QLINKSDAO.doresultset = function(resultset) {
  761.         var resultarray = new Array(resultset.rowCount);
  762.         for (var i = 0; i < resultset.rowCount; i++){
  763.             var result = new QLINKS();
  764.             this.loadFromResultset(result, resultset);
  765.             resultset.next();
  766.             resultarray[i] = result;
  767.         }
  768.         return resultarray;
  769.     };
  770. QLINKSDAO.loadFromResultset = function(object, resultset) {
  771.         Titanium.API.info("loading QLINKS...");
  772.         object.SnagID = resultset.fieldByName('SnagID');
  773.         object.DrwgID = resultset.fieldByName('DrwgID');
  774.         object.Status = resultset.fieldByName('Status');
  775.         object.ShortDescrip = resultset.fieldByName('ShortDescrip');
  776.         object.Location = resultset.fieldByName('Location');
  777.         object.Xcoord = resultset.fieldByName('Xcoord');
  778.         object.YCoord = resultset.fieldByName('YCoord');
  779.         object.Priority = resultset.fieldByName('Priority');
  780.         object.Datestamp = resultset.fieldByName('Datestamp');
  781.         object.DrwgLink = resultset.fieldByName('DrwgLink');
  782.         object.DoBy = resultset.fieldByName('DoBy');
  783.         object.PPCGUID = resultset.fieldByName('PPCGUID');
  784.         object.GroupID = resultset.fieldByName('GroupID');
  785.         object.GroupInits = resultset.fieldByName('GroupInits');
  786.         object.DateClosed = resultset.fieldByName('DateClosed');
  787.         object.SCID = resultset.fieldByName('SCID');
  788.         object.Lat = resultset.fieldByName('Lat');
  789.         object.Lng = resultset.fieldByName('Lng');
  790.         object.Owner = resultset.fieldByName('Owner');
  791.         object.SDCode = resultset.fieldByName('SDCode');
  792.         object.SDID = resultset.fieldByName('SDID');
  793.         object.PlotID = resultset.fieldByName('PlotID');
  794.         object.TradeCode = resultset.fieldByName('TradeCode');
  795.         object.MPGUID = resultset.fieldByName('MPGUID');
  796.     };
  797. QLINKSDAO.getUsingSnagID = function(SnagID) {
  798.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where SnagID = ? ',SnagID);
  799.         var resultarray = this.doresultset(resultset);
  800.         resultset.close();
  801.         return resultarray;
  802.     };
  803. QLINKSDAO.getUsingDrwgID = function(DrwgID) {
  804.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where DrwgID = ? ',DrwgID);
  805.         var resultarray = this.doresultset(resultset);
  806.         resultset.close();
  807.         return resultarray;
  808.     };
  809. QLINKSDAO.getUsingStatus = function(Status) {
  810.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where Status = ? ',Status);
  811.         var resultarray = this.doresultset(resultset);
  812.         resultset.close();
  813.         return resultarray;
  814.     };
  815. QLINKSDAO.getUsingShortDescrip = function(ShortDescrip) {
  816.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where ShortDescrip = ? ',ShortDescrip);
  817.         var resultarray = this.doresultset(resultset);
  818.         resultset.close();
  819.         return resultarray;
  820.     };
  821. QLINKSDAO.getUsingLocation = function(Location) {
  822.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where Location = ? ',Location);
  823.         var resultarray = this.doresultset(resultset);
  824.         resultset.close();
  825.         return resultarray;
  826.     };
  827. QLINKSDAO.getUsingXcoord = function(Xcoord) {
  828.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where Xcoord = ? ',Xcoord);
  829.         var resultarray = this.doresultset(resultset);
  830.         resultset.close();
  831.         return resultarray;
  832.     };
  833. QLINKSDAO.getUsingYCoord = function(YCoord) {
  834.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where YCoord = ? ',YCoord);
  835.         var resultarray = this.doresultset(resultset);
  836.         resultset.close();
  837.         return resultarray;
  838.     };
  839. QLINKSDAO.getUsingPriority = function(Priority) {
  840.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where Priority = ? ',Priority);
  841.         var resultarray = this.doresultset(resultset);
  842.         resultset.close();
  843.         return resultarray;
  844.     };
  845. QLINKSDAO.getUsingDatestamp = function(Datestamp) {
  846.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where Datestamp = ? ',Datestamp);
  847.         var resultarray = this.doresultset(resultset);
  848.         resultset.close();
  849.         return resultarray;
  850.     };
  851. QLINKSDAO.getUsingDrwgLink = function(DrwgLink) {
  852.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where DrwgLink = ? ',DrwgLink);
  853.         var resultarray = this.doresultset(resultset);
  854.         resultset.close();
  855.         return resultarray;
  856.     };
  857. QLINKSDAO.getUsingPhoto = function(Photo) {
  858.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where Photo = ? ',Photo);
  859.         var resultarray = this.doresultset(resultset);
  860.         resultset.close();
  861.         return resultarray;
  862.     };
  863. QLINKSDAO.getUsingDoBy = function(DoBy) {
  864.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where DoBy = ? ',DoBy);
  865.         var resultarray = this.doresultset(resultset);
  866.         resultset.close();
  867.         return resultarray;
  868.     };
  869. QLINKSDAO.getUsingPPCGUID = function(PPCGUID) {
  870.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where PPCGUID = ? ',PPCGUID);
  871.         var resultarray = this.doresultset(resultset);
  872.         resultset.close();
  873.         return resultarray;
  874.     };
  875. QLINKSDAO.getUsingGroupID = function(GroupID) {
  876.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where GroupID = ? ',GroupID);
  877.         var resultarray = this.doresultset(resultset);
  878.         resultset.close();
  879.         return resultarray;
  880.     };
  881. QLINKSDAO.getUsingGroupInits = function(GroupInits) {
  882.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where GroupInits = ? ',GroupInits);
  883.         var resultarray = this.doresultset(resultset);
  884.         resultset.close();
  885.         return resultarray;
  886.     };
  887. QLINKSDAO.getUsingDateClosed = function(DateClosed) {
  888.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where DateClosed = ? ',DateClosed);
  889.         var resultarray = this.doresultset(resultset);
  890.         resultset.close();
  891.         return resultarray;
  892.     };
  893. QLINKSDAO.getUsingBigPhoto = function(BigPhoto) {
  894.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where BigPhoto = ? ',BigPhoto);
  895.         var resultarray = this.doresultset(resultset);
  896.         resultset.close();
  897.         return resultarray;
  898.     };
  899. QLINKSDAO.getUsingSCID = function(SCID) {
  900.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where SCID = ? ',SCID);
  901.         var resultarray = this.doresultset(resultset);
  902.         resultset.close();
  903.         return resultarray;
  904.     };
  905. QLINKSDAO.getUsingLat = function(Lat) {
  906.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where Lat = ? ',Lat);
  907.         var resultarray = this.doresultset(resultset);
  908.         resultset.close();
  909.         return resultarray;
  910.     };
  911. QLINKSDAO.getUsingLng = function(Lng) {
  912.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where Lng = ? ',Lng);
  913.         var resultarray = this.doresultset(resultset);
  914.         resultset.close();
  915.         return resultarray;
  916.     };
  917. QLINKSDAO.getUsingOwner = function(Owner) {
  918.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where Owner = ? ',Owner);
  919.         var resultarray = this.doresultset(resultset);
  920.         resultset.close();
  921.         return resultarray;
  922.     };
  923. QLINKSDAO.getUsingSDCode = function(SDCode) {
  924.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where SDCode = ? ',SDCode);
  925.         var resultarray = this.doresultset(resultset);
  926.         resultset.close();
  927.         return resultarray;
  928.     };
  929. QLINKSDAO.getUsingSDID = function(SDID) {
  930.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where SDID = ? ',SDID);
  931.         var resultarray = this.doresultset(resultset);
  932.         resultset.close();
  933.         return resultarray;
  934.     };
  935. QLINKSDAO.getUsingPlotID = function(PlotID) {
  936.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where PlotID = ? ',PlotID);
  937.         var resultarray = this.doresultset(resultset);
  938.         resultset.close();
  939.         return resultarray;
  940.     };
  941. QLINKSDAO.getUsingTradeCode = function(TradeCode) {
  942.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where TradeCode = ? ',TradeCode);
  943.         var resultarray = this.doresultset(resultset);
  944.         resultset.close();
  945.         return resultarray;
  946.     };
  947. QLINKSDAO.getUsingMPGUID = function(MPGUID) {
  948.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where MPGUID = ? ',MPGUID);
  949.         var resultarray = this.doresultset(resultset);
  950.         resultset.close();
  951.         return resultarray;
  952.     };
  953. QLINKSDAO.getall = function() {
  954.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS');
  955.         var resultarray = this.doresultset(resultset);
  956.         resultset.close();
  957.         return resultarray;
  958.     };
  959. QLINKSDAO.getUsing = function(where) {
  960.         sqlstring = 'select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID from QLINKS where ' + where;
  961.         var resultset =  db.getConnection().execute(sqlstring);
  962.         var resultarray = this.doresultset(resultset);
  963.         resultset.close();
  964.         return resultarray;
  965.     };
  966. function QPASSEDPLOTS(){
  967.     var PlotID = null;
  968.     var SumOfPasses = null;
  969.     var CountOfSCID = null;
  970.  var selectNoBlob = 'PlotID,SumOfPasses,CountOfSCID';
  971. };
  972.     QPASSEDPLOTS.prototype.getPlotID = function() {
  973.         return this.PlotID;
  974.     };
  975.     QPASSEDPLOTS.prototype.getSumOfPasses = function() {
  976.         return this.SumOfPasses;
  977.     };
  978.     QPASSEDPLOTS.prototype.getCountOfSCID = function() {
  979.         return this.CountOfSCID;
  980.     };
  981.     QPASSEDPLOTS.prototype.toString = function() {
  982.         var retVal = "";
  983.         retVal += "[PlotID][" + this.PlotID + "]";
  984.         retVal += "[SumOfPasses][" + this.SumOfPasses + "]";
  985.         retVal += "[CountOfSCID][" + this.CountOfSCID + "]";
  986.         return retVal;
  987.     };
  988. var QPASSEDPLOTSDAO = function(){
  989. };
  990. QPASSEDPLOTSDAO.doresultset = function(resultset) {
  991.         var resultarray = new Array(resultset.rowCount);
  992.         for (var i = 0; i < resultset.rowCount; i++){
  993.             var result = new QPASSEDPLOTS();
  994.             this.loadFromResultset(result, resultset);
  995.             resultset.next();
  996.             resultarray[i] = result;
  997.         }
  998.         return resultarray;
  999.     };
  1000. QPASSEDPLOTSDAO.loadFromResultset = function(object, resultset) {
  1001.         Titanium.API.info("loading QPASSEDPLOTS...");
  1002.         object.PlotID = resultset.fieldByName('PlotID');
  1003.         object.SumOfPasses = resultset.fieldByName('SumOfPasses');
  1004.         object.CountOfSCID = resultset.fieldByName('CountOfSCID');
  1005.     };
  1006. QPASSEDPLOTSDAO.getUsingPlotID = function(PlotID) {
  1007.         var resultset =  db.getConnection().execute('select PlotID,SumOfPasses,CountOfSCID from QPASSEDPLOTS where PlotID = ? ',PlotID);
  1008.         var resultarray = this.doresultset(resultset);
  1009.         resultset.close();
  1010.         return resultarray;
  1011.     };
  1012. QPASSEDPLOTSDAO.getUsingSumOfPasses = function(SumOfPasses) {
  1013.         var resultset =  db.getConnection().execute('select PlotID,SumOfPasses,CountOfSCID from QPASSEDPLOTS where SumOfPasses = ? ',SumOfPasses);
  1014.         var resultarray = this.doresultset(resultset);
  1015.         resultset.close();
  1016.         return resultarray;
  1017.     };
  1018. QPASSEDPLOTSDAO.getUsingCountOfSCID = function(CountOfSCID) {
  1019.         var resultset =  db.getConnection().execute('select PlotID,SumOfPasses,CountOfSCID from QPASSEDPLOTS where CountOfSCID = ? ',CountOfSCID);
  1020.         var resultarray = this.doresultset(resultset);
  1021.         resultset.close();
  1022.         return resultarray;
  1023.     };
  1024. QPASSEDPLOTSDAO.getall = function() {
  1025.         var resultset =  db.getConnection().execute('select PlotID,SumOfPasses,CountOfSCID from QPASSEDPLOTS');
  1026.         var resultarray = this.doresultset(resultset);
  1027.         resultset.close();
  1028.         return resultarray;
  1029.     };
  1030. QPASSEDPLOTSDAO.getUsing = function(where) {
  1031.         sqlstring = 'select PlotID,SumOfPasses,CountOfSCID from QPASSEDPLOTS where ' + where;
  1032.         var resultset =  db.getConnection().execute(sqlstring);
  1033.         var resultarray = this.doresultset(resultset);
  1034.         resultset.close();
  1035.         return resultarray;
  1036.     };
  1037. function QSCHEDPLOTTOTS(){
  1038.     var PlotID = null;
  1039.     var Passed = null;
  1040.     var TotChks = null;
  1041.     var Failed = null;
  1042.     var NotCheckd = null;
  1043.  var selectNoBlob = 'PlotID,Passed,TotChks,Failed,NotCheckd';
  1044. };
  1045.     QSCHEDPLOTTOTS.prototype.getPlotID = function() {
  1046.         return this.PlotID;
  1047.     };
  1048.     QSCHEDPLOTTOTS.prototype.getPassed = function() {
  1049.         return this.Passed;
  1050.     };
  1051.     QSCHEDPLOTTOTS.prototype.getTotChks = function() {
  1052.         return this.TotChks;
  1053.     };
  1054.     QSCHEDPLOTTOTS.prototype.getFailed = function() {
  1055.         return this.Failed;
  1056.     };
  1057.     QSCHEDPLOTTOTS.prototype.getNotCheckd = function() {
  1058.         return this.NotCheckd;
  1059.     };
  1060.     QSCHEDPLOTTOTS.prototype.toString = function() {
  1061.         var retVal = "";
  1062.         retVal += "[PlotID][" + this.PlotID + "]";
  1063.         retVal += "[Passed][" + this.Passed + "]";
  1064.         retVal += "[TotChks][" + this.TotChks + "]";
  1065.         retVal += "[Failed][" + this.Failed + "]";
  1066.         retVal += "[NotCheckd][" + this.NotCheckd + "]";
  1067.         return retVal;
  1068.     };
  1069. var QSCHEDPLOTTOTSDAO = function(){
  1070. };
  1071. QSCHEDPLOTTOTSDAO.doresultset = function(resultset) {
  1072.         var resultarray = new Array(resultset.rowCount);
  1073.         for (var i = 0; i < resultset.rowCount; i++){
  1074.             var result = new QSCHEDPLOTTOTS();
  1075.             this.loadFromResultset(result, resultset);
  1076.             resultset.next();
  1077.             resultarray[i] = result;
  1078.         }
  1079.         return resultarray;
  1080.     };
  1081. QSCHEDPLOTTOTSDAO.loadFromResultset = function(object, resultset) {
  1082.         Titanium.API.info("loading QSCHEDPLOTTOTS...");
  1083.         object.PlotID = resultset.fieldByName('PlotID');
  1084.         object.Passed = resultset.fieldByName('Passed');
  1085.         object.TotChks = resultset.fieldByName('TotChks');
  1086.         object.Failed = resultset.fieldByName('Failed');
  1087.         object.NotCheckd = resultset.fieldByName('NotCheckd');
  1088.     };
  1089. QSCHEDPLOTTOTSDAO.getUsingPlotID = function(PlotID) {
  1090.         var resultset =  db.getConnection().execute('select PlotID,Passed,TotChks,Failed,NotCheckd from QSCHEDPLOTTOTS where PlotID = ? ',PlotID);
  1091.         var resultarray = this.doresultset(resultset);
  1092.         resultset.close();
  1093.         return resultarray;
  1094.     };
  1095. QSCHEDPLOTTOTSDAO.getUsingPassed = function(Passed) {
  1096.         var resultset =  db.getConnection().execute('select PlotID,Passed,TotChks,Failed,NotCheckd from QSCHEDPLOTTOTS where Passed = ? ',Passed);
  1097.         var resultarray = this.doresultset(resultset);
  1098.         resultset.close();
  1099.         return resultarray;
  1100.     };
  1101. QSCHEDPLOTTOTSDAO.getUsingTotChks = function(TotChks) {
  1102.         var resultset =  db.getConnection().execute('select PlotID,Passed,TotChks,Failed,NotCheckd from QSCHEDPLOTTOTS where TotChks = ? ',TotChks);
  1103.         var resultarray = this.doresultset(resultset);
  1104.         resultset.close();
  1105.         return resultarray;
  1106.     };
  1107. QSCHEDPLOTTOTSDAO.getUsingFailed = function(Failed) {
  1108.         var resultset =  db.getConnection().execute('select PlotID,Passed,TotChks,Failed,NotCheckd from QSCHEDPLOTTOTS where Failed = ? ',Failed);
  1109.         var resultarray = this.doresultset(resultset);
  1110.         resultset.close();
  1111.         return resultarray;
  1112.     };
  1113. QSCHEDPLOTTOTSDAO.getUsingNotCheckd = function(NotCheckd) {
  1114.         var resultset =  db.getConnection().execute('select PlotID,Passed,TotChks,Failed,NotCheckd from QSCHEDPLOTTOTS where NotCheckd = ? ',NotCheckd);
  1115.         var resultarray = this.doresultset(resultset);
  1116.         resultset.close();
  1117.         return resultarray;
  1118.     };
  1119. QSCHEDPLOTTOTSDAO.getall = function() {
  1120.         var resultset =  db.getConnection().execute('select PlotID,Passed,TotChks,Failed,NotCheckd from QSCHEDPLOTTOTS');
  1121.         var resultarray = this.doresultset(resultset);
  1122.         resultset.close();
  1123.         return resultarray;
  1124.     };
  1125. QSCHEDPLOTTOTSDAO.getUsing = function(where) {
  1126.         sqlstring = 'select PlotID,Passed,TotChks,Failed,NotCheckd from QSCHEDPLOTTOTS where ' + where;
  1127.         var resultset =  db.getConnection().execute(sqlstring);
  1128.         var resultarray = this.doresultset(resultset);
  1129.         resultset.close();
  1130.         return resultarray;
  1131.     };
  1132. function QSELCOMMENTS(){
  1133.     var Comment = null;
  1134.  var selectNoBlob = 'Comment';
  1135. };
  1136.     QSELCOMMENTS.prototype.getComment = function() {
  1137.         return this.Comment;
  1138.     };
  1139.     QSELCOMMENTS.prototype.toString = function() {
  1140.         var retVal = "";
  1141.         retVal += "[Comment][" + this.Comment + "]";
  1142.         return retVal;
  1143.     };
  1144. var QSELCOMMENTSDAO = function(){
  1145. };
  1146. QSELCOMMENTSDAO.doresultset = function(resultset) {
  1147.         var resultarray = new Array(resultset.rowCount);
  1148.         for (var i = 0; i < resultset.rowCount; i++){
  1149.             var result = new QSELCOMMENTS();
  1150.             this.loadFromResultset(result, resultset);
  1151.             resultset.next();
  1152.             resultarray[i] = result;
  1153.         }
  1154.         return resultarray;
  1155.     };
  1156. QSELCOMMENTSDAO.loadFromResultset = function(object, resultset) {
  1157.         Titanium.API.info("loading QSELCOMMENTS...");
  1158.         object.Comment = resultset.fieldByName('Comment');
  1159.     };
  1160. QSELCOMMENTSDAO.getUsingComment = function(Comment) {
  1161.         var resultset =  db.getConnection().execute('select Comment from QSELCOMMENTS where Comment = ? ',Comment);
  1162.         var resultarray = this.doresultset(resultset);
  1163.         resultset.close();
  1164.         return resultarray;
  1165.     };
  1166. QSELCOMMENTSDAO.getall = function() {
  1167.         var resultset =  db.getConnection().execute('select Comment from QSELCOMMENTS');
  1168.         var resultarray = this.doresultset(resultset);
  1169.         resultset.close();
  1170.         return resultarray;
  1171.     };
  1172. QSELCOMMENTSDAO.getUsing = function(where) {
  1173.         sqlstring = 'select Comment from QSELCOMMENTS where ' + where;
  1174.         var resultset =  db.getConnection().execute(sqlstring);
  1175.         var resultarray = this.doresultset(resultset);
  1176.         resultset.close();
  1177.         return resultarray;
  1178.     };
  1179. function QSELDRWGS(){
  1180.     var DrwgTitle = null;
  1181.     var DrwgID = null;
  1182.  var selectNoBlob = 'DrwgTitle,DrwgID';
  1183. };
  1184.     QSELDRWGS.prototype.getDrwgTitle = function() {
  1185.         return this.DrwgTitle;
  1186.     };
  1187.     QSELDRWGS.prototype.getDrwgID = function() {
  1188.         return this.DrwgID;
  1189.     };
  1190.     QSELDRWGS.prototype.toString = function() {
  1191.         var retVal = "";
  1192.         retVal += "[DrwgTitle][" + this.DrwgTitle + "]";
  1193.         retVal += "[DrwgID][" + this.DrwgID + "]";
  1194.         return retVal;
  1195.     };
  1196. var QSELDRWGSDAO = function(){
  1197. };
  1198. QSELDRWGSDAO.doresultset = function(resultset) {
  1199.         var resultarray = new Array(resultset.rowCount);
  1200.         for (var i = 0; i < resultset.rowCount; i++){
  1201.             var result = new QSELDRWGS();
  1202.             this.loadFromResultset(result, resultset);
  1203.             resultset.next();
  1204.             resultarray[i] = result;
  1205.         }
  1206.         return resultarray;
  1207.     };
  1208. QSELDRWGSDAO.loadFromResultset = function(object, resultset) {
  1209.         Titanium.API.info("loading QSELDRWGS...");
  1210.         object.DrwgTitle = resultset.fieldByName('DrwgTitle');
  1211.         object.DrwgID = resultset.fieldByName('DrwgID');
  1212.     };
  1213. QSELDRWGSDAO.getUsingDrwgTitle = function(DrwgTitle) {
  1214.         var resultset =  db.getConnection().execute('select DrwgTitle,DrwgID from QSELDRWGS where DrwgTitle = ? ',DrwgTitle);
  1215.         var resultarray = this.doresultset(resultset);
  1216.         resultset.close();
  1217.         return resultarray;
  1218.     };
  1219. QSELDRWGSDAO.getUsingDrwgID = function(DrwgID) {
  1220.         var resultset =  db.getConnection().execute('select DrwgTitle,DrwgID from QSELDRWGS where DrwgID = ? ',DrwgID);
  1221.         var resultarray = this.doresultset(resultset);
  1222.         resultset.close();
  1223.         return resultarray;
  1224.     };
  1225. QSELDRWGSDAO.getall = function() {
  1226.         var resultset =  db.getConnection().execute('select DrwgTitle,DrwgID from QSELDRWGS');
  1227.         var resultarray = this.doresultset(resultset);
  1228.         resultset.close();
  1229.         return resultarray;
  1230.     };
  1231. QSELDRWGSDAO.getUsing = function(where) {
  1232.         sqlstring = 'select DrwgTitle,DrwgID from QSELDRWGS where ' + where;
  1233.         var resultset =  db.getConnection().execute(sqlstring);
  1234.         var resultarray = this.doresultset(resultset);
  1235.         resultset.close();
  1236.         return resultarray;
  1237.     };
  1238. function QSELDRWGSETS(){
  1239.     var DSID = null;
  1240.     var DSname = null;
  1241.  var selectNoBlob = 'DSID,DSname';
  1242. };
  1243.     QSELDRWGSETS.prototype.getDSID = function() {
  1244.         return this.DSID;
  1245.     };
  1246.     QSELDRWGSETS.prototype.getDSname = function() {
  1247.         return this.DSname;
  1248.     };
  1249.     QSELDRWGSETS.prototype.toString = function() {
  1250.         var retVal = "";
  1251.         retVal += "[DSID][" + this.DSID + "]";
  1252.         retVal += "[DSname][" + this.DSname + "]";
  1253.         return retVal;
  1254.     };
  1255. var QSELDRWGSETSDAO = function(){
  1256. };
  1257. QSELDRWGSETSDAO.doresultset = function(resultset) {
  1258.         var resultarray = new Array(resultset.rowCount);
  1259.         for (var i = 0; i < resultset.rowCount; i++){
  1260.             var result = new QSELDRWGSETS();
  1261.             this.loadFromResultset(result, resultset);
  1262.             resultset.next();
  1263.             resultarray[i] = result;
  1264.         }
  1265.         return resultarray;
  1266.     };
  1267. QSELDRWGSETSDAO.loadFromResultset = function(object, resultset) {
  1268.         Titanium.API.info("loading QSELDRWGSETS...");
  1269.         object.DSID = resultset.fieldByName('DSID');
  1270.         object.DSname = resultset.fieldByName('DSname');
  1271.     };
  1272. QSELDRWGSETSDAO.getUsingDSID = function(DSID) {
  1273.         var resultset =  db.getConnection().execute('select DSID,DSname from QSELDRWGSETS where DSID = ? ',DSID);
  1274.         var resultarray = this.doresultset(resultset);
  1275.         resultset.close();
  1276.         return resultarray;
  1277.     };
  1278. QSELDRWGSETSDAO.getUsingDSname = function(DSname) {
  1279.         var resultset =  db.getConnection().execute('select DSID,DSname from QSELDRWGSETS where DSname = ? ',DSname);
  1280.         var resultarray = this.doresultset(resultset);
  1281.         resultset.close();
  1282.         return resultarray;
  1283.     };
  1284. QSELDRWGSETSDAO.getall = function() {
  1285.         var resultset =  db.getConnection().execute('select DSID,DSname from QSELDRWGSETS');
  1286.         var resultarray = this.doresultset(resultset);
  1287.         resultset.close();
  1288.         return resultarray;
  1289.     };
  1290. QSELDRWGSETSDAO.getUsing = function(where) {
  1291.         sqlstring = 'select DSID,DSname from QSELDRWGSETS where ' + where;
  1292.         var resultset =  db.getConnection().execute(sqlstring);
  1293.         var resultarray = this.doresultset(resultset);
  1294.         resultset.close();
  1295.         return resultarray;
  1296.     };
  1297. function QSELGROUPS(){
  1298.     var GroupID = null;
  1299.     var Groupname = null;
  1300.  var selectNoBlob = 'GroupID,Groupname';
  1301. };
  1302.     QSELGROUPS.prototype.getGroupID = function() {
  1303.         return this.GroupID;
  1304.     };
  1305.     QSELGROUPS.prototype.getGroupname = function() {
  1306.         return this.Groupname;
  1307.     };
  1308.     QSELGROUPS.prototype.toString = function() {
  1309.         var retVal = "";
  1310.         retVal += "[GroupID][" + this.GroupID + "]";
  1311.         retVal += "[Groupname][" + this.Groupname + "]";
  1312.         return retVal;
  1313.     };
  1314. var QSELGROUPSDAO = function(){
  1315. };
  1316. QSELGROUPSDAO.doresultset = function(resultset) {
  1317.         var resultarray = new Array(resultset.rowCount);
  1318.         for (var i = 0; i < resultset.rowCount; i++){
  1319.             var result = new QSELGROUPS();
  1320.             this.loadFromResultset(result, resultset);
  1321.             resultset.next();
  1322.             resultarray[i] = result;
  1323.         }
  1324.         return resultarray;
  1325.     };
  1326. QSELGROUPSDAO.loadFromResultset = function(object, resultset) {
  1327.         Titanium.API.info("loading QSELGROUPS...");
  1328.         object.GroupID = resultset.fieldByName('GroupID');
  1329.         object.Groupname = resultset.fieldByName('Groupname');
  1330.     };
  1331. QSELGROUPSDAO.getUsingGroupID = function(GroupID) {
  1332.         var resultset =  db.getConnection().execute('select GroupID,Groupname from QSELGROUPS where GroupID = ? ',GroupID);
  1333.         var resultarray = this.doresultset(resultset);
  1334.         resultset.close();
  1335.         return resultarray;
  1336.     };
  1337. QSELGROUPSDAO.getUsingGroupname = function(Groupname) {
  1338.         var resultset =  db.getConnection().execute('select GroupID,Groupname from QSELGROUPS where Groupname = ? ',Groupname);
  1339.         var resultarray = this.doresultset(resultset);
  1340.         resultset.close();
  1341.         return resultarray;
  1342.     };
  1343. QSELGROUPSDAO.getall = function() {
  1344.         var resultset =  db.getConnection().execute('select GroupID,Groupname from QSELGROUPS');
  1345.         var resultarray = this.doresultset(resultset);
  1346.         resultset.close();
  1347.         return resultarray;
  1348.     };
  1349. QSELGROUPSDAO.getUsing = function(where) {
  1350.         sqlstring = 'select GroupID,Groupname from QSELGROUPS where ' + where;
  1351.         var resultset =  db.getConnection().execute(sqlstring);
  1352.         var resultarray = this.doresultset(resultset);
  1353.         resultset.close();
  1354.         return resultarray;
  1355.     };
  1356. function QSUBCONS(){
  1357.     var GroupID = null;
  1358.     var Groupname = null;
  1359.     var GroupInits = null;
  1360.     var Email = null;
  1361.  var selectNoBlob = 'GroupID,Groupname,GroupInits,Email';
  1362. };
  1363.     QSUBCONS.prototype.getGroupID = function() {
  1364.         return this.GroupID;
  1365.     };
  1366.     QSUBCONS.prototype.getGroupname = function() {
  1367.         return this.Groupname;
  1368.     };
  1369.     QSUBCONS.prototype.getGroupInits = function() {
  1370.         return this.GroupInits;
  1371.     };
  1372.     QSUBCONS.prototype.getEmail = function() {
  1373.         return this.Email;
  1374.     };
  1375.     QSUBCONS.prototype.toString = function() {
  1376.         var retVal = "";
  1377.         retVal += "[GroupID][" + this.GroupID + "]";
  1378.         retVal += "[Groupname][" + this.Groupname + "]";
  1379.         retVal += "[GroupInits][" + this.GroupInits + "]";
  1380.         retVal += "[Email][" + this.Email + "]";
  1381.         return retVal;
  1382.     };
  1383. var QSUBCONSDAO = function(){
  1384. };
  1385. QSUBCONSDAO.doresultset = function(resultset) {
  1386.         var resultarray = new Array(resultset.rowCount);
  1387.         for (var i = 0; i < resultset.rowCount; i++){
  1388.             var result = new QSUBCONS();
  1389.             this.loadFromResultset(result, resultset);
  1390.             resultset.next();
  1391.             resultarray[i] = result;
  1392.         }
  1393.         return resultarray;
  1394.     };
  1395. QSUBCONSDAO.loadFromResultset = function(object, resultset) {
  1396.         Titanium.API.info("loading QSUBCONS...");
  1397.         object.GroupID = resultset.fieldByName('GroupID');
  1398.         object.Groupname = resultset.fieldByName('Groupname');
  1399.         object.GroupInits = resultset.fieldByName('GroupInits');
  1400.         object.Email = resultset.fieldByName('Email');
  1401.     };
  1402. QSUBCONSDAO.getUsingGroupID = function(GroupID) {
  1403.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,Email from QSUBCONS where GroupID = ? ',GroupID);
  1404.         var resultarray = this.doresultset(resultset);
  1405.         resultset.close();
  1406.         return resultarray;
  1407.     };
  1408. QSUBCONSDAO.getUsingGroupname = function(Groupname) {
  1409.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,Email from QSUBCONS where Groupname = ? ',Groupname);
  1410.         var resultarray = this.doresultset(resultset);
  1411.         resultset.close();
  1412.         return resultarray;
  1413.     };
  1414. QSUBCONSDAO.getUsingGroupInits = function(GroupInits) {
  1415.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,Email from QSUBCONS where GroupInits = ? ',GroupInits);
  1416.         var resultarray = this.doresultset(resultset);
  1417.         resultset.close();
  1418.         return resultarray;
  1419.     };
  1420. QSUBCONSDAO.getUsingEmail = function(Email) {
  1421.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,Email from QSUBCONS where Email = ? ',Email);
  1422.         var resultarray = this.doresultset(resultset);
  1423.         resultset.close();
  1424.         return resultarray;
  1425.     };
  1426. QSUBCONSDAO.getall = function() {
  1427.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,Email from QSUBCONS');
  1428.         var resultarray = this.doresultset(resultset);
  1429.         resultset.close();
  1430.         return resultarray;
  1431.     };
  1432. QSUBCONSDAO.getUsing = function(where) {
  1433.         sqlstring = 'select GroupID,Groupname,GroupInits,Email from QSUBCONS where ' + where;
  1434.         var resultset =  db.getConnection().execute(sqlstring);
  1435.         var resultarray = this.doresultset(resultset);
  1436.         resultset.close();
  1437.         return resultarray;
  1438.     };
  1439. function QUSERSNAGSDRWGGROUPCNT(){
  1440.     var DrwgID = null;
  1441.     var GroupID = null;
  1442.     var Groupname = null;
  1443.     var UserID = null;
  1444.     var CountOfSnagID = null;
  1445.  var selectNoBlob = 'DrwgID,GroupID,Groupname,UserID,CountOfSnagID';
  1446. };
  1447.     QUSERSNAGSDRWGGROUPCNT.prototype.getDrwgID = function() {
  1448.         return this.DrwgID;
  1449.     };
  1450.     QUSERSNAGSDRWGGROUPCNT.prototype.getGroupID = function() {
  1451.         return this.GroupID;
  1452.     };
  1453.     QUSERSNAGSDRWGGROUPCNT.prototype.getGroupname = function() {
  1454.         return this.Groupname;
  1455.     };
  1456.     QUSERSNAGSDRWGGROUPCNT.prototype.getUserID = function() {
  1457.         return this.UserID;
  1458.     };
  1459.     QUSERSNAGSDRWGGROUPCNT.prototype.getCountOfSnagID = function() {
  1460.         return this.CountOfSnagID;
  1461.     };
  1462.     QUSERSNAGSDRWGGROUPCNT.prototype.toString = function() {
  1463.         var retVal = "";
  1464.         retVal += "[DrwgID][" + this.DrwgID + "]";
  1465.         retVal += "[GroupID][" + this.GroupID + "]";
  1466.         retVal += "[Groupname][" + this.Groupname + "]";
  1467.         retVal += "[UserID][" + this.UserID + "]";
  1468.         retVal += "[CountOfSnagID][" + this.CountOfSnagID + "]";
  1469.         return retVal;
  1470.     };
  1471. var QUSERSNAGSDRWGGROUPCNTDAO = function(){
  1472. };
  1473. QUSERSNAGSDRWGGROUPCNTDAO.doresultset = function(resultset) {
  1474.         var resultarray = new Array(resultset.rowCount);
  1475.         for (var i = 0; i < resultset.rowCount; i++){
  1476.             var result = new QUSERSNAGSDRWGGROUPCNT();
  1477.             this.loadFromResultset(result, resultset);
  1478.             resultset.next();
  1479.             resultarray[i] = result;
  1480.         }
  1481.         return resultarray;
  1482.     };
  1483. QUSERSNAGSDRWGGROUPCNTDAO.loadFromResultset = function(object, resultset) {
  1484.         Titanium.API.info("loading QUSERSNAGSDRWGGROUPCNT...");
  1485.         object.DrwgID = resultset.fieldByName('DrwgID');
  1486.         object.GroupID = resultset.fieldByName('GroupID');
  1487.         object.Groupname = resultset.fieldByName('Groupname');
  1488.         object.UserID = resultset.fieldByName('UserID');
  1489.         object.CountOfSnagID = resultset.fieldByName('CountOfSnagID');
  1490.     };
  1491. QUSERSNAGSDRWGGROUPCNTDAO.getUsingDrwgID = function(DrwgID) {
  1492.         var resultset =  db.getConnection().execute('select DrwgID,GroupID,Groupname,UserID,CountOfSnagID from QUSERSNAGSDRWGGROUPCNT where DrwgID = ? ',DrwgID);
  1493.         var resultarray = this.doresultset(resultset);
  1494.         resultset.close();
  1495.         return resultarray;
  1496.     };
  1497. QUSERSNAGSDRWGGROUPCNTDAO.getUsingGroupID = function(GroupID) {
  1498.         var resultset =  db.getConnection().execute('select DrwgID,GroupID,Groupname,UserID,CountOfSnagID from QUSERSNAGSDRWGGROUPCNT where GroupID = ? ',GroupID);
  1499.         var resultarray = this.doresultset(resultset);
  1500.         resultset.close();
  1501.         return resultarray;
  1502.     };
  1503. QUSERSNAGSDRWGGROUPCNTDAO.getUsingGroupname = function(Groupname) {
  1504.         var resultset =  db.getConnection().execute('select DrwgID,GroupID,Groupname,UserID,CountOfSnagID from QUSERSNAGSDRWGGROUPCNT where Groupname = ? ',Groupname);
  1505.         var resultarray = this.doresultset(resultset);
  1506.         resultset.close();
  1507.         return resultarray;
  1508.     };
  1509. QUSERSNAGSDRWGGROUPCNTDAO.getUsingUserID = function(UserID) {
  1510.         var resultset =  db.getConnection().execute('select DrwgID,GroupID,Groupname,UserID,CountOfSnagID from QUSERSNAGSDRWGGROUPCNT where UserID = ? ',UserID);
  1511.         var resultarray = this.doresultset(resultset);
  1512.         resultset.close();
  1513.         return resultarray;
  1514.     };
  1515. QUSERSNAGSDRWGGROUPCNTDAO.getUsingCountOfSnagID = function(CountOfSnagID) {
  1516.         var resultset =  db.getConnection().execute('select DrwgID,GroupID,Groupname,UserID,CountOfSnagID from QUSERSNAGSDRWGGROUPCNT where CountOfSnagID = ? ',CountOfSnagID);
  1517.         var resultarray = this.doresultset(resultset);
  1518.         resultset.close();
  1519.         return resultarray;
  1520.     };
  1521. QUSERSNAGSDRWGGROUPCNTDAO.getall = function() {
  1522.         var resultset =  db.getConnection().execute('select DrwgID,GroupID,Groupname,UserID,CountOfSnagID from QUSERSNAGSDRWGGROUPCNT');
  1523.         var resultarray = this.doresultset(resultset);
  1524.         resultset.close();
  1525.         return resultarray;
  1526.     };
  1527. QUSERSNAGSDRWGGROUPCNTDAO.getUsing = function(where) {
  1528.         sqlstring = 'select DrwgID,GroupID,Groupname,UserID,CountOfSnagID from QUSERSNAGSDRWGGROUPCNT where ' + where;
  1529.         var resultset =  db.getConnection().execute(sqlstring);
  1530.         var resultarray = this.doresultset(resultset);
  1531.         resultset.close();
  1532.         return resultarray;
  1533.     };
  1534. function QUSERSNAGSGROUPCNT(){
  1535.     var UserID = null;
  1536.     var GroupID = null;
  1537.     var Groupname = null;
  1538.     var CountOfSnagID = null;
  1539.  var selectNoBlob = 'UserID,GroupID,Groupname,CountOfSnagID';
  1540. };
  1541.     QUSERSNAGSGROUPCNT.prototype.getUserID = function() {
  1542.         return this.UserID;
  1543.     };
  1544.     QUSERSNAGSGROUPCNT.prototype.getGroupID = function() {
  1545.         return this.GroupID;
  1546.     };
  1547.     QUSERSNAGSGROUPCNT.prototype.getGroupname = function() {
  1548.         return this.Groupname;
  1549.     };
  1550.     QUSERSNAGSGROUPCNT.prototype.getCountOfSnagID = function() {
  1551.         return this.CountOfSnagID;
  1552.     };
  1553.     QUSERSNAGSGROUPCNT.prototype.toString = function() {
  1554.         var retVal = "";
  1555.         retVal += "[UserID][" + this.UserID + "]";
  1556.         retVal += "[GroupID][" + this.GroupID + "]";
  1557.         retVal += "[Groupname][" + this.Groupname + "]";
  1558.         retVal += "[CountOfSnagID][" + this.CountOfSnagID + "]";
  1559.         return retVal;
  1560.     };
  1561. var QUSERSNAGSGROUPCNTDAO = function(){
  1562. };
  1563. QUSERSNAGSGROUPCNTDAO.doresultset = function(resultset) {
  1564.         var resultarray = new Array(resultset.rowCount);
  1565.         for (var i = 0; i < resultset.rowCount; i++){
  1566.             var result = new QUSERSNAGSGROUPCNT();
  1567.             this.loadFromResultset(result, resultset);
  1568.             resultset.next();
  1569.             resultarray[i] = result;
  1570.         }
  1571.         return resultarray;
  1572.     };
  1573. QUSERSNAGSGROUPCNTDAO.loadFromResultset = function(object, resultset) {
  1574.         Titanium.API.info("loading QUSERSNAGSGROUPCNT...");
  1575.         object.UserID = resultset.fieldByName('UserID');
  1576.         object.GroupID = resultset.fieldByName('GroupID');
  1577.         object.Groupname = resultset.fieldByName('Groupname');
  1578.         object.CountOfSnagID = resultset.fieldByName('CountOfSnagID');
  1579.     };
  1580. QUSERSNAGSGROUPCNTDAO.getUsingUserID = function(UserID) {
  1581.         var resultset =  db.getConnection().execute('select UserID,GroupID,Groupname,CountOfSnagID from QUSERSNAGSGROUPCNT where UserID = ? ',UserID);
  1582.         var resultarray = this.doresultset(resultset);
  1583.         resultset.close();
  1584.         return resultarray;
  1585.     };
  1586. QUSERSNAGSGROUPCNTDAO.getUsingGroupID = function(GroupID) {
  1587.         var resultset =  db.getConnection().execute('select UserID,GroupID,Groupname,CountOfSnagID from QUSERSNAGSGROUPCNT where GroupID = ? ',GroupID);
  1588.         var resultarray = this.doresultset(resultset);
  1589.         resultset.close();
  1590.         return resultarray;
  1591.     };
  1592. QUSERSNAGSGROUPCNTDAO.getUsingGroupname = function(Groupname) {
  1593.         var resultset =  db.getConnection().execute('select UserID,GroupID,Groupname,CountOfSnagID from QUSERSNAGSGROUPCNT where Groupname = ? ',Groupname);
  1594.         var resultarray = this.doresultset(resultset);
  1595.         resultset.close();
  1596.         return resultarray;
  1597.     };
  1598. QUSERSNAGSGROUPCNTDAO.getUsingCountOfSnagID = function(CountOfSnagID) {
  1599.         var resultset =  db.getConnection().execute('select UserID,GroupID,Groupname,CountOfSnagID from QUSERSNAGSGROUPCNT where CountOfSnagID = ? ',CountOfSnagID);
  1600.         var resultarray = this.doresultset(resultset);
  1601.         resultset.close();
  1602.         return resultarray;
  1603.     };
  1604. QUSERSNAGSGROUPCNTDAO.getall = function() {
  1605.         var resultset =  db.getConnection().execute('select UserID,GroupID,Groupname,CountOfSnagID from QUSERSNAGSGROUPCNT');
  1606.         var resultarray = this.doresultset(resultset);
  1607.         resultset.close();
  1608.         return resultarray;
  1609.     };
  1610. QUSERSNAGSGROUPCNTDAO.getUsing = function(where) {
  1611.         sqlstring = 'select UserID,GroupID,Groupname,CountOfSnagID from QUSERSNAGSGROUPCNT where ' + where;
  1612.         var resultset =  db.getConnection().execute(sqlstring);
  1613.         var resultarray = this.doresultset(resultset);
  1614.         resultset.close();
  1615.         return resultarray;
  1616.     };
  1617. function QUSERSNAGSGROUPDRWGCNT(){
  1618.     var DrwgID = null;
  1619.     var DrwgTitle = null;
  1620.     var CountOfSnagID = null;
  1621.     var GroupID = null;
  1622.     var UserID = null;
  1623.  var selectNoBlob = 'DrwgID,DrwgTitle,CountOfSnagID,GroupID,UserID';
  1624. };
  1625.     QUSERSNAGSGROUPDRWGCNT.prototype.getDrwgID = function() {
  1626.         return this.DrwgID;
  1627.     };
  1628.     QUSERSNAGSGROUPDRWGCNT.prototype.getDrwgTitle = function() {
  1629.         return this.DrwgTitle;
  1630.     };
  1631.     QUSERSNAGSGROUPDRWGCNT.prototype.getCountOfSnagID = function() {
  1632.         return this.CountOfSnagID;
  1633.     };
  1634.     QUSERSNAGSGROUPDRWGCNT.prototype.getGroupID = function() {
  1635.         return this.GroupID;
  1636.     };
  1637.     QUSERSNAGSGROUPDRWGCNT.prototype.getUserID = function() {
  1638.         return this.UserID;
  1639.     };
  1640.     QUSERSNAGSGROUPDRWGCNT.prototype.toString = function() {
  1641.         var retVal = "";
  1642.         retVal += "[DrwgID][" + this.DrwgID + "]";
  1643.         retVal += "[DrwgTitle][" + this.DrwgTitle + "]";
  1644.         retVal += "[CountOfSnagID][" + this.CountOfSnagID + "]";
  1645.         retVal += "[GroupID][" + this.GroupID + "]";
  1646.         retVal += "[UserID][" + this.UserID + "]";
  1647.         return retVal;
  1648.     };
  1649. var QUSERSNAGSGROUPDRWGCNTDAO = function(){
  1650. };
  1651. QUSERSNAGSGROUPDRWGCNTDAO.doresultset = function(resultset) {
  1652.         var resultarray = new Array(resultset.rowCount);
  1653.         for (var i = 0; i < resultset.rowCount; i++){
  1654.             var result = new QUSERSNAGSGROUPDRWGCNT();
  1655.             this.loadFromResultset(result, resultset);
  1656.             resultset.next();
  1657.             resultarray[i] = result;
  1658.         }
  1659.         return resultarray;
  1660.     };
  1661. QUSERSNAGSGROUPDRWGCNTDAO.loadFromResultset = function(object, resultset) {
  1662.         Titanium.API.info("loading QUSERSNAGSGROUPDRWGCNT...");
  1663.         object.DrwgID = resultset.fieldByName('DrwgID');
  1664.         object.DrwgTitle = resultset.fieldByName('DrwgTitle');
  1665.         object.CountOfSnagID = resultset.fieldByName('CountOfSnagID');
  1666.         object.GroupID = resultset.fieldByName('GroupID');
  1667.         object.UserID = resultset.fieldByName('UserID');
  1668.     };
  1669. QUSERSNAGSGROUPDRWGCNTDAO.getUsingDrwgID = function(DrwgID) {
  1670.         var resultset =  db.getConnection().execute('select DrwgID,DrwgTitle,CountOfSnagID,GroupID,UserID from QUSERSNAGSGROUPDRWGCNT where DrwgID = ? ',DrwgID);
  1671.         var resultarray = this.doresultset(resultset);
  1672.         resultset.close();
  1673.         return resultarray;
  1674.     };
  1675. QUSERSNAGSGROUPDRWGCNTDAO.getUsingDrwgTitle = function(DrwgTitle) {
  1676.         var resultset =  db.getConnection().execute('select DrwgID,DrwgTitle,CountOfSnagID,GroupID,UserID from QUSERSNAGSGROUPDRWGCNT where DrwgTitle = ? ',DrwgTitle);
  1677.         var resultarray = this.doresultset(resultset);
  1678.         resultset.close();
  1679.         return resultarray;
  1680.     };
  1681. QUSERSNAGSGROUPDRWGCNTDAO.getUsingCountOfSnagID = function(CountOfSnagID) {
  1682.         var resultset =  db.getConnection().execute('select DrwgID,DrwgTitle,CountOfSnagID,GroupID,UserID from QUSERSNAGSGROUPDRWGCNT where CountOfSnagID = ? ',CountOfSnagID);
  1683.         var resultarray = this.doresultset(resultset);
  1684.         resultset.close();
  1685.         return resultarray;
  1686.     };
  1687. QUSERSNAGSGROUPDRWGCNTDAO.getUsingGroupID = function(GroupID) {
  1688.         var resultset =  db.getConnection().execute('select DrwgID,DrwgTitle,CountOfSnagID,GroupID,UserID from QUSERSNAGSGROUPDRWGCNT where GroupID = ? ',GroupID);
  1689.         var resultarray = this.doresultset(resultset);
  1690.         resultset.close();
  1691.         return resultarray;
  1692.     };
  1693. QUSERSNAGSGROUPDRWGCNTDAO.getUsingUserID = function(UserID) {
  1694.         var resultset =  db.getConnection().execute('select DrwgID,DrwgTitle,CountOfSnagID,GroupID,UserID from QUSERSNAGSGROUPDRWGCNT where UserID = ? ',UserID);
  1695.         var resultarray = this.doresultset(resultset);
  1696.         resultset.close();
  1697.         return resultarray;
  1698.     };
  1699. QUSERSNAGSGROUPDRWGCNTDAO.getall = function() {
  1700.         var resultset =  db.getConnection().execute('select DrwgID,DrwgTitle,CountOfSnagID,GroupID,UserID from QUSERSNAGSGROUPDRWGCNT');
  1701.         var resultarray = this.doresultset(resultset);
  1702.         resultset.close();
  1703.         return resultarray;
  1704.     };
  1705. QUSERSNAGSGROUPDRWGCNTDAO.getUsing = function(where) {
  1706.         sqlstring = 'select DrwgID,DrwgTitle,CountOfSnagID,GroupID,UserID from QUSERSNAGSGROUPDRWGCNT where ' + where;
  1707.         var resultset =  db.getConnection().execute(sqlstring);
  1708.         var resultarray = this.doresultset(resultset);
  1709.         resultset.close();
  1710.         return resultarray;
  1711.     };
  1712. function QUSERSNAGSOWNERCNT(){
  1713.     var UserID = null;
  1714.     var Owner = null;
  1715.     var Fullname = null;
  1716.     var CountOfSnagID = null;
  1717.  var selectNoBlob = 'UserID,Owner,Fullname,CountOfSnagID';
  1718. };
  1719.     QUSERSNAGSOWNERCNT.prototype.getUserID = function() {
  1720.         return this.UserID;
  1721.     };
  1722.     QUSERSNAGSOWNERCNT.prototype.getOwner = function() {
  1723.         return this.Owner;
  1724.     };
  1725.     QUSERSNAGSOWNERCNT.prototype.getFullname = function() {
  1726.         return this.Fullname;
  1727.     };
  1728.     QUSERSNAGSOWNERCNT.prototype.getCountOfSnagID = function() {
  1729.         return this.CountOfSnagID;
  1730.     };
  1731.     QUSERSNAGSOWNERCNT.prototype.toString = function() {
  1732.         var retVal = "";
  1733.         retVal += "[UserID][" + this.UserID + "]";
  1734.         retVal += "[Owner][" + this.Owner + "]";
  1735.         retVal += "[Fullname][" + this.Fullname + "]";
  1736.         retVal += "[CountOfSnagID][" + this.CountOfSnagID + "]";
  1737.         return retVal;
  1738.     };
  1739. var QUSERSNAGSOWNERCNTDAO = function(){
  1740. };
  1741. QUSERSNAGSOWNERCNTDAO.doresultset = function(resultset) {
  1742.         var resultarray = new Array(resultset.rowCount);
  1743.         for (var i = 0; i < resultset.rowCount; i++){
  1744.             var result = new QUSERSNAGSOWNERCNT();
  1745.             this.loadFromResultset(result, resultset);
  1746.             resultset.next();
  1747.             resultarray[i] = result;
  1748.         }
  1749.         return resultarray;
  1750.     };
  1751. QUSERSNAGSOWNERCNTDAO.loadFromResultset = function(object, resultset) {
  1752.         Titanium.API.info("loading QUSERSNAGSOWNERCNT...");
  1753.         object.UserID = resultset.fieldByName('UserID');
  1754.         object.Owner = resultset.fieldByName('Owner');
  1755.         object.Fullname = resultset.fieldByName('Fullname');
  1756.         object.CountOfSnagID = resultset.fieldByName('CountOfSnagID');
  1757.     };
  1758. QUSERSNAGSOWNERCNTDAO.getUsingUserID = function(UserID) {
  1759.         var resultset =  db.getConnection().execute('select UserID,Owner,Fullname,CountOfSnagID from QUSERSNAGSOWNERCNT where UserID = ? ',UserID);
  1760.         var resultarray = this.doresultset(resultset);
  1761.         resultset.close();
  1762.         return resultarray;
  1763.     };
  1764. QUSERSNAGSOWNERCNTDAO.getUsingOwner = function(Owner) {
  1765.         var resultset =  db.getConnection().execute('select UserID,Owner,Fullname,CountOfSnagID from QUSERSNAGSOWNERCNT where Owner = ? ',Owner);
  1766.         var resultarray = this.doresultset(resultset);
  1767.         resultset.close();
  1768.         return resultarray;
  1769.     };
  1770. QUSERSNAGSOWNERCNTDAO.getUsingFullname = function(Fullname) {
  1771.         var resultset =  db.getConnection().execute('select UserID,Owner,Fullname,CountOfSnagID from QUSERSNAGSOWNERCNT where Fullname = ? ',Fullname);
  1772.         var resultarray = this.doresultset(resultset);
  1773.         resultset.close();
  1774.         return resultarray;
  1775.     };
  1776. QUSERSNAGSOWNERCNTDAO.getUsingCountOfSnagID = function(CountOfSnagID) {
  1777.         var resultset =  db.getConnection().execute('select UserID,Owner,Fullname,CountOfSnagID from QUSERSNAGSOWNERCNT where CountOfSnagID = ? ',CountOfSnagID);
  1778.         var resultarray = this.doresultset(resultset);
  1779.         resultset.close();
  1780.         return resultarray;
  1781.     };
  1782. QUSERSNAGSOWNERCNTDAO.getall = function() {
  1783.         var resultset =  db.getConnection().execute('select UserID,Owner,Fullname,CountOfSnagID from QUSERSNAGSOWNERCNT');
  1784.         var resultarray = this.doresultset(resultset);
  1785.         resultset.close();
  1786.         return resultarray;
  1787.     };
  1788. QUSERSNAGSOWNERCNTDAO.getUsing = function(where) {
  1789.         sqlstring = 'select UserID,Owner,Fullname,CountOfSnagID from QUSERSNAGSOWNERCNT where ' + where;
  1790.         var resultset =  db.getConnection().execute(sqlstring);
  1791.         var resultarray = this.doresultset(resultset);
  1792.         resultset.close();
  1793.         return resultarray;
  1794.     };
  1795. function QUSERSNAGSOWNERDRWGCNT(){
  1796.     var DrwgID = null;
  1797.     var DrwgTitle = null;
  1798.     var CountOfSnagID = null;
  1799.     var Owner = null;
  1800.     var UserID = null;
  1801.  var selectNoBlob = 'DrwgID,DrwgTitle,CountOfSnagID,Owner,UserID';
  1802. };
  1803.     QUSERSNAGSOWNERDRWGCNT.prototype.getDrwgID = function() {
  1804.         return this.DrwgID;
  1805.     };
  1806.     QUSERSNAGSOWNERDRWGCNT.prototype.getDrwgTitle = function() {
  1807.         return this.DrwgTitle;
  1808.     };
  1809.     QUSERSNAGSOWNERDRWGCNT.prototype.getCountOfSnagID = function() {
  1810.         return this.CountOfSnagID;
  1811.     };
  1812.     QUSERSNAGSOWNERDRWGCNT.prototype.getOwner = function() {
  1813.         return this.Owner;
  1814.     };
  1815.     QUSERSNAGSOWNERDRWGCNT.prototype.getUserID = function() {
  1816.         return this.UserID;
  1817.     };
  1818.     QUSERSNAGSOWNERDRWGCNT.prototype.toString = function() {
  1819.         var retVal = "";
  1820.         retVal += "[DrwgID][" + this.DrwgID + "]";
  1821.         retVal += "[DrwgTitle][" + this.DrwgTitle + "]";
  1822.         retVal += "[CountOfSnagID][" + this.CountOfSnagID + "]";
  1823.         retVal += "[Owner][" + this.Owner + "]";
  1824.         retVal += "[UserID][" + this.UserID + "]";
  1825.         return retVal;
  1826.     };
  1827. var QUSERSNAGSOWNERDRWGCNTDAO = function(){
  1828. };
  1829. QUSERSNAGSOWNERDRWGCNTDAO.doresultset = function(resultset) {
  1830.         var resultarray = new Array(resultset.rowCount);
  1831.         for (var i = 0; i < resultset.rowCount; i++){
  1832.             var result = new QUSERSNAGSOWNERDRWGCNT();
  1833.             this.loadFromResultset(result, resultset);
  1834.             resultset.next();
  1835.             resultarray[i] = result;
  1836.         }
  1837.         return resultarray;
  1838.     };
  1839. QUSERSNAGSOWNERDRWGCNTDAO.loadFromResultset = function(object, resultset) {
  1840.         Titanium.API.info("loading QUSERSNAGSOWNERDRWGCNT...");
  1841.         object.DrwgID = resultset.fieldByName('DrwgID');
  1842.         object.DrwgTitle = resultset.fieldByName('DrwgTitle');
  1843.         object.CountOfSnagID = resultset.fieldByName('CountOfSnagID');
  1844.         object.Owner = resultset.fieldByName('Owner');
  1845.         object.UserID = resultset.fieldByName('UserID');
  1846.     };
  1847. QUSERSNAGSOWNERDRWGCNTDAO.getUsingDrwgID = function(DrwgID) {
  1848.         var resultset =  db.getConnection().execute('select DrwgID,DrwgTitle,CountOfSnagID,Owner,UserID from QUSERSNAGSOWNERDRWGCNT where DrwgID = ? ',DrwgID);
  1849.         var resultarray = this.doresultset(resultset);
  1850.         resultset.close();
  1851.         return resultarray;
  1852.     };
  1853. QUSERSNAGSOWNERDRWGCNTDAO.getUsingDrwgTitle = function(DrwgTitle) {
  1854.         var resultset =  db.getConnection().execute('select DrwgID,DrwgTitle,CountOfSnagID,Owner,UserID from QUSERSNAGSOWNERDRWGCNT where DrwgTitle = ? ',DrwgTitle);
  1855.         var resultarray = this.doresultset(resultset);
  1856.         resultset.close();
  1857.         return resultarray;
  1858.     };
  1859. QUSERSNAGSOWNERDRWGCNTDAO.getUsingCountOfSnagID = function(CountOfSnagID) {
  1860.         var resultset =  db.getConnection().execute('select DrwgID,DrwgTitle,CountOfSnagID,Owner,UserID from QUSERSNAGSOWNERDRWGCNT where CountOfSnagID = ? ',CountOfSnagID);
  1861.         var resultarray = this.doresultset(resultset);
  1862.         resultset.close();
  1863.         return resultarray;
  1864.     };
  1865. QUSERSNAGSOWNERDRWGCNTDAO.getUsingOwner = function(Owner) {
  1866.         var resultset =  db.getConnection().execute('select DrwgID,DrwgTitle,CountOfSnagID,Owner,UserID from QUSERSNAGSOWNERDRWGCNT where Owner = ? ',Owner);
  1867.         var resultarray = this.doresultset(resultset);
  1868.         resultset.close();
  1869.         return resultarray;
  1870.     };
  1871. QUSERSNAGSOWNERDRWGCNTDAO.getUsingUserID = function(UserID) {
  1872.         var resultset =  db.getConnection().execute('select DrwgID,DrwgTitle,CountOfSnagID,Owner,UserID from QUSERSNAGSOWNERDRWGCNT where UserID = ? ',UserID);
  1873.         var resultarray = this.doresultset(resultset);
  1874.         resultset.close();
  1875.         return resultarray;
  1876.     };
  1877. QUSERSNAGSOWNERDRWGCNTDAO.getall = function() {
  1878.         var resultset =  db.getConnection().execute('select DrwgID,DrwgTitle,CountOfSnagID,Owner,UserID from QUSERSNAGSOWNERDRWGCNT');
  1879.         var resultarray = this.doresultset(resultset);
  1880.         resultset.close();
  1881.         return resultarray;
  1882.     };
  1883. QUSERSNAGSOWNERDRWGCNTDAO.getUsing = function(where) {
  1884.         sqlstring = 'select DrwgID,DrwgTitle,CountOfSnagID,Owner,UserID from QUSERSNAGSOWNERDRWGCNT where ' + where;
  1885.         var resultset =  db.getConnection().execute(sqlstring);
  1886.         var resultarray = this.doresultset(resultset);
  1887.         resultset.close();
  1888.         return resultarray;
  1889.     };
  1890. function QGROUPDRWGS(){
  1891.     var GroupID = null;
  1892.     var Groupname = null;
  1893.     var GroupInits = null;
  1894.     var DrwgID = null;
  1895.     var DrwgTitle = null;
  1896.     var srt = null;
  1897.  var selectNoBlob = 'GroupID,Groupname,GroupInits,DrwgID,DrwgTitle,srt';
  1898. };
  1899.     QGROUPDRWGS.prototype.getGroupID = function() {
  1900.         return this.GroupID;
  1901.     };
  1902.     QGROUPDRWGS.prototype.getGroupname = function() {
  1903.         return this.Groupname;
  1904.     };
  1905.     QGROUPDRWGS.prototype.getGroupInits = function() {
  1906.         return this.GroupInits;
  1907.     };
  1908.     QGROUPDRWGS.prototype.getDrwgID = function() {
  1909.         return this.DrwgID;
  1910.     };
  1911.     QGROUPDRWGS.prototype.getDrwgTitle = function() {
  1912.         return this.DrwgTitle;
  1913.     };
  1914.     QGROUPDRWGS.prototype.getsrt = function() {
  1915.         return this.srt;
  1916.     };
  1917.     QGROUPDRWGS.prototype.toString = function() {
  1918.         var retVal = "";
  1919.         retVal += "[GroupID][" + this.GroupID + "]";
  1920.         retVal += "[Groupname][" + this.Groupname + "]";
  1921.         retVal += "[GroupInits][" + this.GroupInits + "]";
  1922.         retVal += "[DrwgID][" + this.DrwgID + "]";
  1923.         retVal += "[DrwgTitle][" + this.DrwgTitle + "]";
  1924.         retVal += "[srt][" + this.srt + "]";
  1925.         return retVal;
  1926.     };
  1927. var QGROUPDRWGSDAO = function(){
  1928. };
  1929. QGROUPDRWGSDAO.doresultset = function(resultset) {
  1930.         var resultarray = new Array(resultset.rowCount);
  1931.         for (var i = 0; i < resultset.rowCount; i++){
  1932.             var result = new QGROUPDRWGS();
  1933.             this.loadFromResultset(result, resultset);
  1934.             resultset.next();
  1935.             resultarray[i] = result;
  1936.         }
  1937.         return resultarray;
  1938.     };
  1939. QGROUPDRWGSDAO.loadFromResultset = function(object, resultset) {
  1940.         Titanium.API.info("loading QGROUPDRWGS...");
  1941.         object.GroupID = resultset.fieldByName('GroupID');
  1942.         object.Groupname = resultset.fieldByName('Groupname');
  1943.         object.GroupInits = resultset.fieldByName('GroupInits');
  1944.         object.DrwgID = resultset.fieldByName('DrwgID');
  1945.         object.DrwgTitle = resultset.fieldByName('DrwgTitle');
  1946.         object.srt = resultset.fieldByName('srt');
  1947.     };
  1948. QGROUPDRWGSDAO.getUsingGroupID = function(GroupID) {
  1949.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,DrwgID,DrwgTitle,srt from QGROUPDRWGS where GroupID = ? ',GroupID);
  1950.         var resultarray = this.doresultset(resultset);
  1951.         resultset.close();
  1952.         return resultarray;
  1953.     };
  1954. QGROUPDRWGSDAO.getUsingGroupname = function(Groupname) {
  1955.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,DrwgID,DrwgTitle,srt from QGROUPDRWGS where Groupname = ? ',Groupname);
  1956.         var resultarray = this.doresultset(resultset);
  1957.         resultset.close();
  1958.         return resultarray;
  1959.     };
  1960. QGROUPDRWGSDAO.getUsingGroupInits = function(GroupInits) {
  1961.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,DrwgID,DrwgTitle,srt from QGROUPDRWGS where GroupInits = ? ',GroupInits);
  1962.         var resultarray = this.doresultset(resultset);
  1963.         resultset.close();
  1964.         return resultarray;
  1965.     };
  1966. QGROUPDRWGSDAO.getUsingDrwgID = function(DrwgID) {
  1967.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,DrwgID,DrwgTitle,srt from QGROUPDRWGS where DrwgID = ? ',DrwgID);
  1968.         var resultarray = this.doresultset(resultset);
  1969.         resultset.close();
  1970.         return resultarray;
  1971.     };
  1972. QGROUPDRWGSDAO.getUsingDrwgTitle = function(DrwgTitle) {
  1973.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,DrwgID,DrwgTitle,srt from QGROUPDRWGS where DrwgTitle = ? ',DrwgTitle);
  1974.         var resultarray = this.doresultset(resultset);
  1975.         resultset.close();
  1976.         return resultarray;
  1977.     };
  1978. QGROUPDRWGSDAO.getUsingsrt = function(srt) {
  1979.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,DrwgID,DrwgTitle,srt from QGROUPDRWGS where srt = ? ',srt);
  1980.         var resultarray = this.doresultset(resultset);
  1981.         resultset.close();
  1982.         return resultarray;
  1983.     };
  1984. QGROUPDRWGSDAO.getall = function() {
  1985.         var resultset =  db.getConnection().execute('select GroupID,Groupname,GroupInits,DrwgID,DrwgTitle,srt from QGROUPDRWGS');
  1986.         var resultarray = this.doresultset(resultset);
  1987.         resultset.close();
  1988.         return resultarray;
  1989.     };
  1990. QGROUPDRWGSDAO.getUsing = function(where) {
  1991.         sqlstring = 'select GroupID,Groupname,GroupInits,DrwgID,DrwgTitle,srt from QGROUPDRWGS where ' + where;
  1992.         var resultset =  db.getConnection().execute(sqlstring);
  1993.         var resultarray = this.doresultset(resultset);
  1994.         resultset.close();
  1995.         return resultarray;
  1996.     };
  1997. function QDRWGSNAGSDDL(){
  1998.     var DrwgID = null;
  1999.     var DrwgTitleCntr = null;
  2000.     var DrwgSnags = null;
  2001.  var selectNoBlob = 'DrwgID,DrwgTitleCntr,DrwgSnags';
  2002. };
  2003.     QDRWGSNAGSDDL.prototype.getDrwgID = function() {
  2004.         return this.DrwgID;
  2005.     };
  2006.     QDRWGSNAGSDDL.prototype.getDrwgTitleCntr = function() {
  2007.         return this.DrwgTitleCntr;
  2008.     };
  2009.     QDRWGSNAGSDDL.prototype.getDrwgSnags = function() {
  2010.         return this.DrwgSnags;
  2011.     };
  2012.     QDRWGSNAGSDDL.prototype.toString = function() {
  2013.         var retVal = "";
  2014.         retVal += "[DrwgID][" + this.DrwgID + "]";
  2015.         retVal += "[DrwgTitleCntr][" + this.DrwgTitleCntr + "]";
  2016.         retVal += "[DrwgSnags][" + this.DrwgSnags + "]";
  2017.         return retVal;
  2018.     };
  2019. var QDRWGSNAGSDDLDAO = function(){
  2020. };
  2021. QDRWGSNAGSDDLDAO.doresultset = function(resultset) {
  2022.         var resultarray = new Array(resultset.rowCount);
  2023.         for (var i = 0; i < resultset.rowCount; i++){
  2024.             var result = new QDRWGSNAGSDDL();
  2025.             this.loadFromResultset(result, resultset);
  2026.             resultset.next();
  2027.             resultarray[i] = result;
  2028.         }
  2029.         return resultarray;
  2030.     };
  2031. QDRWGSNAGSDDLDAO.loadFromResultset = function(object, resultset) {
  2032.         Titanium.API.info("loading QDRWGSNAGSDDL...");
  2033.         object.DrwgID = resultset.fieldByName('DrwgID');
  2034.         object.DrwgTitleCntr = resultset.fieldByName('DrwgTitleCntr');
  2035.         object.DrwgSnags = resultset.fieldByName('DrwgSnags');
  2036.     };
  2037. QDRWGSNAGSDDLDAO.getUsingDrwgID = function(DrwgID) {
  2038.         var resultset =  db.getConnection().execute('select DrwgID,DrwgTitleCntr,DrwgSnags from QDRWGSNAGSDDL where DrwgID = ? ',DrwgID);
  2039.         var resultarray = this.doresultset(resultset);
  2040.         resultset.close();
  2041.         return resultarray;
  2042.     };
  2043. QDRWGSNAGSDDLDAO.getUsingDrwgTitleCntr = function(DrwgTitleCntr) {
  2044.         var resultset =  db.getConnection().execute('select DrwgID,DrwgTitleCntr,DrwgSnags from QDRWGSNAGSDDL where DrwgTitleCntr = ? ',DrwgTitleCntr);
  2045.         var resultarray = this.doresultset(resultset);
  2046.         resultset.close();
  2047.         return resultarray;
  2048.     };
  2049. QDRWGSNAGSDDLDAO.getUsingDrwgSnags = function(DrwgSnags) {
  2050.         var resultset =  db.getConnection().execute('select DrwgID,DrwgTitleCntr,DrwgSnags from QDRWGSNAGSDDL where DrwgSnags = ? ',DrwgSnags);
  2051.         var resultarray = this.doresultset(resultset);
  2052.         resultset.close();
  2053.         return resultarray;
  2054.     };
  2055. QDRWGSNAGSDDLDAO.getall = function() {
  2056.         var resultset =  db.getConnection().execute('select DrwgID,DrwgTitleCntr,DrwgSnags from QDRWGSNAGSDDL');
  2057.         var resultarray = this.doresultset(resultset);
  2058.         resultset.close();
  2059.         return resultarray;
  2060.     };
  2061. QDRWGSNAGSDDLDAO.getUsing = function(where) {
  2062.         sqlstring = 'select DrwgID,DrwgTitleCntr,DrwgSnags from QDRWGSNAGSDDL where ' + where;
  2063.         var resultset =  db.getConnection().execute(sqlstring);
  2064.         var resultarray = this.doresultset(resultset);
  2065.         resultset.close();
  2066.         return resultarray;
  2067.     };
  2068. function QGROUPSNAGSCOUNT(){
  2069.     var GroupID = null;
  2070.     var groupname = null;
  2071.  var selectNoBlob = 'GroupID,groupname';
  2072. };
  2073.     QGROUPSNAGSCOUNT.prototype.getGroupID = function() {
  2074.         return this.GroupID;
  2075.     };
  2076.     QGROUPSNAGSCOUNT.prototype.getgroupname = function() {
  2077.         return this.groupname;
  2078.     };
  2079.     QGROUPSNAGSCOUNT.prototype.toString = function() {
  2080.         var retVal = "";
  2081.         retVal += "[GroupID][" + this.GroupID + "]";
  2082.         retVal += "[groupname][" + this.groupname + "]";
  2083.         return retVal;
  2084.     };
  2085. var QGROUPSNAGSCOUNTDAO = function(){
  2086. };
  2087. QGROUPSNAGSCOUNTDAO.doresultset = function(resultset) {
  2088.         var resultarray = new Array(resultset.rowCount);
  2089.         for (var i = 0; i < resultset.rowCount; i++){
  2090.             var result = new QGROUPSNAGSCOUNT();
  2091.             this.loadFromResultset(result, resultset);
  2092.             resultset.next();
  2093.             resultarray[i] = result;
  2094.         }
  2095.         return resultarray;
  2096.     };
  2097. QGROUPSNAGSCOUNTDAO.loadFromResultset = function(object, resultset) {
  2098.         Titanium.API.info("loading QGROUPSNAGSCOUNT...");
  2099.         object.GroupID = resultset.fieldByName('GroupID');
  2100.         object.groupname = resultset.fieldByName('groupname');
  2101.     };
  2102. QGROUPSNAGSCOUNTDAO.getUsingGroupID = function(GroupID) {
  2103.         var resultset =  db.getConnection().execute('select GroupID,groupname from QGROUPSNAGSCOUNT where GroupID = ? ',GroupID);
  2104.         var resultarray = this.doresultset(resultset);
  2105.         resultset.close();
  2106.         return resultarray;
  2107.     };
  2108. QGROUPSNAGSCOUNTDAO.getUsinggroupname = function(groupname) {
  2109.         var resultset =  db.getConnection().execute('select GroupID,groupname from QGROUPSNAGSCOUNT where groupname = ? ',groupname);
  2110.         var resultarray = this.doresultset(resultset);
  2111.         resultset.close();
  2112.         return resultarray;
  2113.     };
  2114. QGROUPSNAGSCOUNTDAO.getall = function() {
  2115.         var resultset =  db.getConnection().execute('select GroupID,groupname from QGROUPSNAGSCOUNT');
  2116.         var resultarray = this.doresultset(resultset);
  2117.         resultset.close();
  2118.         return resultarray;
  2119.     };
  2120. QGROUPSNAGSCOUNTDAO.getUsing = function(where) {
  2121.         sqlstring = 'select GroupID,groupname from QGROUPSNAGSCOUNT where ' + where;
  2122.         var resultset =  db.getConnection().execute(sqlstring);
  2123.         var resultarray = this.doresultset(resultset);
  2124.         resultset.close();
  2125.         return resultarray;
  2126.     };
  2127. function QGROUPSNAGDRWGSDDL(){
  2128.     var GroupID = null;
  2129.     var Groupname = null;
  2130.     var DrwgID = null;
  2131.     var DrwgTitle = null;
  2132.     var CountOfSnagID = null;
  2133.  var selectNoBlob = 'GroupID,Groupname,DrwgID,DrwgTitle,CountOfSnagID';
  2134. };
  2135.     QGROUPSNAGDRWGSDDL.prototype.getGroupID = function() {
  2136.         return this.GroupID;
  2137.     };
  2138.     QGROUPSNAGDRWGSDDL.prototype.getGroupname = function() {
  2139.         return this.Groupname;
  2140.     };
  2141.     QGROUPSNAGDRWGSDDL.prototype.getDrwgID = function() {
  2142.         return this.DrwgID;
  2143.     };
  2144.     QGROUPSNAGDRWGSDDL.prototype.getDrwgTitle = function() {
  2145.         return this.DrwgTitle;
  2146.     };
  2147.     QGROUPSNAGDRWGSDDL.prototype.getCountOfSnagID = function() {
  2148.         return this.CountOfSnagID;
  2149.     };
  2150.     QGROUPSNAGDRWGSDDL.prototype.toString = function() {
  2151.         var retVal = "";
  2152.         retVal += "[GroupID][" + this.GroupID + "]";
  2153.         retVal += "[Groupname][" + this.Groupname + "]";
  2154.         retVal += "[DrwgID][" + this.DrwgID + "]";
  2155.         retVal += "[DrwgTitle][" + this.DrwgTitle + "]";
  2156.         retVal += "[CountOfSnagID][" + this.CountOfSnagID + "]";
  2157.         return retVal;
  2158.     };
  2159. var QGROUPSNAGDRWGSDDLDAO = function(){
  2160. };
  2161. QGROUPSNAGDRWGSDDLDAO.doresultset = function(resultset) {
  2162.         var resultarray = new Array(resultset.rowCount);
  2163.         for (var i = 0; i < resultset.rowCount; i++){
  2164.             var result = new QGROUPSNAGDRWGSDDL();
  2165.             this.loadFromResultset(result, resultset);
  2166.             resultset.next();
  2167.             resultarray[i] = result;
  2168.         }
  2169.         return resultarray;
  2170.     };
  2171. QGROUPSNAGDRWGSDDLDAO.loadFromResultset = function(object, resultset) {
  2172.         Titanium.API.info("loading QGROUPSNAGDRWGSDDL...");
  2173.         object.GroupID = resultset.fieldByName('GroupID');
  2174.         object.Groupname = resultset.fieldByName('Groupname');
  2175.         object.DrwgID = resultset.fieldByName('DrwgID');
  2176.         object.DrwgTitle = resultset.fieldByName('DrwgTitle');
  2177.         object.CountOfSnagID = resultset.fieldByName('CountOfSnagID');
  2178.     };
  2179. QGROUPSNAGDRWGSDDLDAO.getUsingGroupID = function(GroupID) {
  2180.         var resultset =  db.getConnection().execute('select GroupID,Groupname,DrwgID,DrwgTitle,CountOfSnagID from QGROUPSNAGDRWGSDDL where GroupID = ? ',GroupID);
  2181.         var resultarray = this.doresultset(resultset);
  2182.         resultset.close();
  2183.         return resultarray;
  2184.     };
  2185. QGROUPSNAGDRWGSDDLDAO.getUsingGroupname = function(Groupname) {
  2186.         var resultset =  db.getConnection().execute('select GroupID,Groupname,DrwgID,DrwgTitle,CountOfSnagID from QGROUPSNAGDRWGSDDL where Groupname = ? ',Groupname);
  2187.         var resultarray = this.doresultset(resultset);
  2188.         resultset.close();
  2189.         return resultarray;
  2190.     };
  2191. QGROUPSNAGDRWGSDDLDAO.getUsingDrwgID = function(DrwgID) {
  2192.         var resultset =  db.getConnection().execute('select GroupID,Groupname,DrwgID,DrwgTitle,CountOfSnagID from QGROUPSNAGDRWGSDDL where DrwgID = ? ',DrwgID);
  2193.         var resultarray = this.doresultset(resultset);
  2194.         resultset.close();
  2195.         return resultarray;
  2196.     };
  2197. QGROUPSNAGDRWGSDDLDAO.getUsingDrwgTitle = function(DrwgTitle) {
  2198.         var resultset =  db.getConnection().execute('select GroupID,Groupname,DrwgID,DrwgTitle,CountOfSnagID from QGROUPSNAGDRWGSDDL where DrwgTitle = ? ',DrwgTitle);
  2199.         var resultarray = this.doresultset(resultset);
  2200.         resultset.close();
  2201.         return resultarray;
  2202.     };
  2203. QGROUPSNAGDRWGSDDLDAO.getUsingCountOfSnagID = function(CountOfSnagID) {
  2204.         var resultset =  db.getConnection().execute('select GroupID,Groupname,DrwgID,DrwgTitle,CountOfSnagID from QGROUPSNAGDRWGSDDL where CountOfSnagID = ? ',CountOfSnagID);
  2205.         var resultarray = this.doresultset(resultset);
  2206.         resultset.close();
  2207.         return resultarray;
  2208.     };
  2209. QGROUPSNAGDRWGSDDLDAO.getall = function() {
  2210.         var resultset =  db.getConnection().execute('select GroupID,Groupname,DrwgID,DrwgTitle,CountOfSnagID from QGROUPSNAGDRWGSDDL');
  2211.         var resultarray = this.doresultset(resultset);
  2212.         resultset.close();
  2213.         return resultarray;
  2214.     };
  2215. QGROUPSNAGDRWGSDDLDAO.getUsing = function(where) {
  2216.         sqlstring = 'select GroupID,Groupname,DrwgID,DrwgTitle,CountOfSnagID from QGROUPSNAGDRWGSDDL where ' + where;
  2217.         var resultset =  db.getConnection().execute(sqlstring);
  2218.         var resultarray = this.doresultset(resultset);
  2219.         resultset.close();
  2220.         return resultarray;
  2221.     };
  2222. function QGROUPSNAGSUSER(){
  2223.     var GroupID = null;
  2224.     var groupname = null;
  2225.     var UserID = null;
  2226.  var selectNoBlob = 'GroupID,groupname,UserID';
  2227. };
  2228.     QGROUPSNAGSUSER.prototype.getGroupID = function() {
  2229.         return this.GroupID;
  2230.     };
  2231.     QGROUPSNAGSUSER.prototype.getgroupname = function() {
  2232.         return this.groupname;
  2233.     };
  2234.     QGROUPSNAGSUSER.prototype.getUserID = function() {
  2235.         return this.UserID;
  2236.     };
  2237.     QGROUPSNAGSUSER.prototype.toString = function() {
  2238.         var retVal = "";
  2239.         retVal += "[GroupID][" + this.GroupID + "]";
  2240.         retVal += "[groupname][" + this.groupname + "]";
  2241.         retVal += "[UserID][" + this.UserID + "]";
  2242.         return retVal;
  2243.     };
  2244. var QGROUPSNAGSUSERDAO = function(){
  2245. };
  2246. QGROUPSNAGSUSERDAO.doresultset = function(resultset) {
  2247.         var resultarray = new Array(resultset.rowCount);
  2248.         for (var i = 0; i < resultset.rowCount; i++){
  2249.             var result = new QGROUPSNAGSUSER();
  2250.             this.loadFromResultset(result, resultset);
  2251.             resultset.next();
  2252.             resultarray[i] = result;
  2253.         }
  2254.         return resultarray;
  2255.     };
  2256. QGROUPSNAGSUSERDAO.loadFromResultset = function(object, resultset) {
  2257.         Titanium.API.info("loading QGROUPSNAGSUSER...");
  2258.         object.GroupID = resultset.fieldByName('GroupID');
  2259.         object.groupname = resultset.fieldByName('groupname');
  2260.         object.UserID = resultset.fieldByName('UserID');
  2261.     };
  2262. QGROUPSNAGSUSERDAO.getUsingGroupID = function(GroupID) {
  2263.         var resultset =  db.getConnection().execute('select GroupID,groupname,UserID from QGROUPSNAGSUSER where GroupID = ? ',GroupID);
  2264.         var resultarray = this.doresultset(resultset);
  2265.         resultset.close();
  2266.         return resultarray;
  2267.     };
  2268. QGROUPSNAGSUSERDAO.getUsinggroupname = function(groupname) {
  2269.         var resultset =  db.getConnection().execute('select GroupID,groupname,UserID from QGROUPSNAGSUSER where groupname = ? ',groupname);
  2270.         var resultarray = this.doresultset(resultset);
  2271.         resultset.close();
  2272.         return resultarray;
  2273.     };
  2274. QGROUPSNAGSUSERDAO.getUsingUserID = function(UserID) {
  2275.         var resultset =  db.getConnection().execute('select GroupID,groupname,UserID from QGROUPSNAGSUSER where UserID = ? ',UserID);
  2276.         var resultarray = this.doresultset(resultset);
  2277.         resultset.close();
  2278.         return resultarray;
  2279.     };
  2280. QGROUPSNAGSUSERDAO.getall = function() {
  2281.         var resultset =  db.getConnection().execute('select GroupID,groupname,UserID from QGROUPSNAGSUSER');
  2282.         var resultarray = this.doresultset(resultset);
  2283.         resultset.close();
  2284.         return resultarray;
  2285.     };
  2286. QGROUPSNAGSUSERDAO.getUsing = function(where) {
  2287.         sqlstring = 'select GroupID,groupname,UserID from QGROUPSNAGSUSER where ' + where;
  2288.         var resultset =  db.getConnection().execute(sqlstring);
  2289.         var resultarray = this.doresultset(resultset);
  2290.         resultset.close();
  2291.         return resultarray;
  2292.     };
  2293. function QGROUPSNAGGROUPSDDL(){
  2294.     var UserID = null;
  2295.     var GroupID = null;
  2296.     var Groupname = null;
  2297.     var DrwgID = null;
  2298.  var selectNoBlob = 'UserID,GroupID,Groupname,DrwgID';
  2299. };
  2300.     QGROUPSNAGGROUPSDDL.prototype.getUserID = function() {
  2301.         return this.UserID;
  2302.     };
  2303.     QGROUPSNAGGROUPSDDL.prototype.getGroupID = function() {
  2304.         return this.GroupID;
  2305.     };
  2306.     QGROUPSNAGGROUPSDDL.prototype.getGroupname = function() {
  2307.         return this.Groupname;
  2308.     };
  2309.     QGROUPSNAGGROUPSDDL.prototype.getDrwgID = function() {
  2310.         return this.DrwgID;
  2311.     };
  2312.     QGROUPSNAGGROUPSDDL.prototype.toString = function() {
  2313.         var retVal = "";
  2314.         retVal += "[UserID][" + this.UserID + "]";
  2315.         retVal += "[GroupID][" + this.GroupID + "]";
  2316.         retVal += "[Groupname][" + this.Groupname + "]";
  2317.         retVal += "[DrwgID][" + this.DrwgID + "]";
  2318.         return retVal;
  2319.     };
  2320. var QGROUPSNAGGROUPSDDLDAO = function(){
  2321. };
  2322. QGROUPSNAGGROUPSDDLDAO.doresultset = function(resultset) {
  2323.         var resultarray = new Array(resultset.rowCount);
  2324.         for (var i = 0; i < resultset.rowCount; i++){
  2325.             var result = new QGROUPSNAGGROUPSDDL();
  2326.             this.loadFromResultset(result, resultset);
  2327.             resultset.next();
  2328.             resultarray[i] = result;
  2329.         }
  2330.         return resultarray;
  2331.     };
  2332. QGROUPSNAGGROUPSDDLDAO.loadFromResultset = function(object, resultset) {
  2333.         Titanium.API.info("loading QGROUPSNAGGROUPSDDL...");
  2334.         object.UserID = resultset.fieldByName('UserID');
  2335.         object.GroupID = resultset.fieldByName('GroupID');
  2336.         object.Groupname = resultset.fieldByName('Groupname');
  2337.         object.DrwgID = resultset.fieldByName('DrwgID');
  2338.     };
  2339. QGROUPSNAGGROUPSDDLDAO.getUsingUserID = function(UserID) {
  2340.         var resultset =  db.getConnection().execute('select UserID,GroupID,Groupname,DrwgID from QGROUPSNAGGROUPSDDL where UserID = ? ',UserID);
  2341.         var resultarray = this.doresultset(resultset);
  2342.         resultset.close();
  2343.         return resultarray;
  2344.     };
  2345. QGROUPSNAGGROUPSDDLDAO.getUsingGroupID = function(GroupID) {
  2346.         var resultset =  db.getConnection().execute('select UserID,GroupID,Groupname,DrwgID from QGROUPSNAGGROUPSDDL where GroupID = ? ',GroupID);
  2347.         var resultarray = this.doresultset(resultset);
  2348.         resultset.close();
  2349.         return resultarray;
  2350.     };
  2351. QGROUPSNAGGROUPSDDLDAO.getUsingGroupname = function(Groupname) {
  2352.         var resultset =  db.getConnection().execute('select UserID,GroupID,Groupname,DrwgID from QGROUPSNAGGROUPSDDL where Groupname = ? ',Groupname);
  2353.         var resultarray = this.doresultset(resultset);
  2354.         resultset.close();
  2355.         return resultarray;
  2356.     };
  2357. QGROUPSNAGGROUPSDDLDAO.getUsingDrwgID = function(DrwgID) {
  2358.         var resultset =  db.getConnection().execute('select UserID,GroupID,Groupname,DrwgID from QGROUPSNAGGROUPSDDL where DrwgID = ? ',DrwgID);
  2359.         var resultarray = this.doresultset(resultset);
  2360.         resultset.close();
  2361.         return resultarray;
  2362.     };
  2363. QGROUPSNAGGROUPSDDLDAO.getall = function() {
  2364.         var resultset =  db.getConnection().execute('select UserID,GroupID,Groupname,DrwgID from QGROUPSNAGGROUPSDDL');
  2365.         var resultarray = this.doresultset(resultset);
  2366.         resultset.close();
  2367.         return resultarray;
  2368.     };
  2369. QGROUPSNAGGROUPSDDLDAO.getUsing = function(where) {
  2370.         sqlstring = 'select UserID,GroupID,Groupname,DrwgID from QGROUPSNAGGROUPSDDL where ' + where;
  2371.         var resultset =  db.getConnection().execute(sqlstring);
  2372.         var resultarray = this.doresultset(resultset);
  2373.         resultset.close();
  2374.         return resultarray;
  2375.     };
  2376. function QMDRPDFS(){
  2377.     var DrwgID = null;
  2378.     var MDRcode = null;
  2379.     var Descrip = null;
  2380.     var PDFname = null;
  2381.     var MDRCateg = null;
  2382.  var selectNoBlob = 'DrwgID,MDRcode,Descrip,PDFname,MDRCateg';
  2383. };
  2384.     QMDRPDFS.prototype.getDrwgID = function() {
  2385.         return this.DrwgID;
  2386.     };
  2387.     QMDRPDFS.prototype.getMDRcode = function() {
  2388.         return this.MDRcode;
  2389.     };
  2390.     QMDRPDFS.prototype.getDescrip = function() {
  2391.         return this.Descrip;
  2392.     };
  2393.     QMDRPDFS.prototype.getPDFname = function() {
  2394.         return this.PDFname;
  2395.     };
  2396.     QMDRPDFS.prototype.getMDRCateg = function() {
  2397.         return this.MDRCateg;
  2398.     };
  2399.     QMDRPDFS.prototype.toString = function() {
  2400.         var retVal = "";
  2401.         retVal += "[DrwgID][" + this.DrwgID + "]";
  2402.         retVal += "[MDRcode][" + this.MDRcode + "]";
  2403.         retVal += "[Descrip][" + this.Descrip + "]";
  2404.         retVal += "[PDFname][" + this.PDFname + "]";
  2405.         retVal += "[MDRCateg][" + this.MDRCateg + "]";
  2406.         return retVal;
  2407.     };
  2408. var QMDRPDFSDAO = function(){
  2409. };
  2410. QMDRPDFSDAO.doresultset = function(resultset) {
  2411.         var resultarray = new Array(resultset.rowCount);
  2412.         for (var i = 0; i < resultset.rowCount; i++){
  2413.             var result = new QMDRPDFS();
  2414.             this.loadFromResultset(result, resultset);
  2415.             resultset.next();
  2416.             resultarray[i] = result;
  2417.         }
  2418.         return resultarray;
  2419.     };
  2420. QMDRPDFSDAO.loadFromResultset = function(object, resultset) {
  2421.         Titanium.API.info("loading QMDRPDFS...");
  2422.         object.DrwgID = resultset.fieldByName('DrwgID');
  2423.         object.MDRcode = resultset.fieldByName('MDRcode');
  2424.         object.Descrip = resultset.fieldByName('Descrip');
  2425.         object.PDFname = resultset.fieldByName('PDFname');
  2426.         object.MDRCateg = resultset.fieldByName('MDRCateg');
  2427.     };
  2428. QMDRPDFSDAO.getUsingDrwgID = function(DrwgID) {
  2429.         var resultset =  db.getConnection().execute('select DrwgID,MDRcode,Descrip,PDFname,MDRCateg from QMDRPDFS where DrwgID = ? ',DrwgID);
  2430.         var resultarray = this.doresultset(resultset);
  2431.         resultset.close();
  2432.         return resultarray;
  2433.     };
  2434. QMDRPDFSDAO.getUsingMDRcode = function(MDRcode) {
  2435.         var resultset =  db.getConnection().execute('select DrwgID,MDRcode,Descrip,PDFname,MDRCateg from QMDRPDFS where MDRcode = ? ',MDRcode);
  2436.         var resultarray = this.doresultset(resultset);
  2437.         resultset.close();
  2438.         return resultarray;
  2439.     };
  2440. QMDRPDFSDAO.getUsingDescrip = function(Descrip) {
  2441.         var resultset =  db.getConnection().execute('select DrwgID,MDRcode,Descrip,PDFname,MDRCateg from QMDRPDFS where Descrip = ? ',Descrip);
  2442.         var resultarray = this.doresultset(resultset);
  2443.         resultset.close();
  2444.         return resultarray;
  2445.     };
  2446. QMDRPDFSDAO.getUsingPDFname = function(PDFname) {
  2447.         var resultset =  db.getConnection().execute('select DrwgID,MDRcode,Descrip,PDFname,MDRCateg from QMDRPDFS where PDFname = ? ',PDFname);
  2448.         var resultarray = this.doresultset(resultset);
  2449.         resultset.close();
  2450.         return resultarray;
  2451.     };
  2452. QMDRPDFSDAO.getUsingMDRCateg = function(MDRCateg) {
  2453.         var resultset =  db.getConnection().execute('select DrwgID,MDRcode,Descrip,PDFname,MDRCateg from QMDRPDFS where MDRCateg = ? ',MDRCateg);
  2454.         var resultarray = this.doresultset(resultset);
  2455.         resultset.close();
  2456.         return resultarray;
  2457.     };
  2458. QMDRPDFSDAO.getall = function() {
  2459.         var resultset =  db.getConnection().execute('select DrwgID,MDRcode,Descrip,PDFname,MDRCateg from QMDRPDFS');
  2460.         var resultarray = this.doresultset(resultset);
  2461.         resultset.close();
  2462.         return resultarray;
  2463.     };
  2464. QMDRPDFSDAO.getUsing = function(where) {
  2465.         sqlstring = 'select DrwgID,MDRcode,Descrip,PDFname,MDRCateg from QMDRPDFS where ' + where;
  2466.         var resultset =  db.getConnection().execute(sqlstring);
  2467.         var resultarray = this.doresultset(resultset);
  2468.         resultset.close();
  2469.         return resultarray;
  2470.     };
  2471. function QSCHEDPLOTSTATS(){
  2472.     var SchedID = null;
  2473.     var Schedname = null;
  2474.     var DrwgID = null;
  2475.     var DrwgTitle = null;
  2476.     var PlotID = null;
  2477.     var ShortDescrip = null;
  2478.     var Status = null;
  2479.     var Passed = null;
  2480.     var Failed = null;
  2481.     var NotCheckd = null;
  2482.     var Total = null;
  2483.     var ClosedCnt = null;
  2484.     var OpenCnt = null;
  2485.     var TotCnt = null;
  2486.  var selectNoBlob = 'SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt';
  2487. };
  2488.     QSCHEDPLOTSTATS.prototype.getSchedID = function() {
  2489.         return this.SchedID;
  2490.     };
  2491.     QSCHEDPLOTSTATS.prototype.getSchedname = function() {
  2492.         return this.Schedname;
  2493.     };
  2494.     QSCHEDPLOTSTATS.prototype.getDrwgID = function() {
  2495.         return this.DrwgID;
  2496.     };
  2497.     QSCHEDPLOTSTATS.prototype.getDrwgTitle = function() {
  2498.         return this.DrwgTitle;
  2499.     };
  2500.     QSCHEDPLOTSTATS.prototype.getPlotID = function() {
  2501.         return this.PlotID;
  2502.     };
  2503.     QSCHEDPLOTSTATS.prototype.getShortDescrip = function() {
  2504.         return this.ShortDescrip;
  2505.     };
  2506.     QSCHEDPLOTSTATS.prototype.getStatus = function() {
  2507.         return this.Status;
  2508.     };
  2509.     QSCHEDPLOTSTATS.prototype.getPassed = function() {
  2510.         return this.Passed;
  2511.     };
  2512.     QSCHEDPLOTSTATS.prototype.getFailed = function() {
  2513.         return this.Failed;
  2514.     };
  2515.     QSCHEDPLOTSTATS.prototype.getNotCheckd = function() {
  2516.         return this.NotCheckd;
  2517.     };
  2518.     QSCHEDPLOTSTATS.prototype.getTotal = function() {
  2519.         return this.Total;
  2520.     };
  2521.     QSCHEDPLOTSTATS.prototype.getClosedCnt = function() {
  2522.         return this.ClosedCnt;
  2523.     };
  2524.     QSCHEDPLOTSTATS.prototype.getOpenCnt = function() {
  2525.         return this.OpenCnt;
  2526.     };
  2527.     QSCHEDPLOTSTATS.prototype.getTotCnt = function() {
  2528.         return this.TotCnt;
  2529.     };
  2530.     QSCHEDPLOTSTATS.prototype.toString = function() {
  2531.         var retVal = "";
  2532.         retVal += "[SchedID][" + this.SchedID + "]";
  2533.         retVal += "[Schedname][" + this.Schedname + "]";
  2534.         retVal += "[DrwgID][" + this.DrwgID + "]";
  2535.         retVal += "[DrwgTitle][" + this.DrwgTitle + "]";
  2536.         retVal += "[PlotID][" + this.PlotID + "]";
  2537.         retVal += "[ShortDescrip][" + this.ShortDescrip + "]";
  2538.         retVal += "[Status][" + this.Status + "]";
  2539.         retVal += "[Passed][" + this.Passed + "]";
  2540.         retVal += "[Failed][" + this.Failed + "]";
  2541.         retVal += "[NotCheckd][" + this.NotCheckd + "]";
  2542.         retVal += "[Total][" + this.Total + "]";
  2543.         retVal += "[ClosedCnt][" + this.ClosedCnt + "]";
  2544.         retVal += "[OpenCnt][" + this.OpenCnt + "]";
  2545.         retVal += "[TotCnt][" + this.TotCnt + "]";
  2546.         return retVal;
  2547.     };
  2548. var QSCHEDPLOTSTATSDAO = function(){
  2549. };
  2550. QSCHEDPLOTSTATSDAO.doresultset = function(resultset) {
  2551.         var resultarray = new Array(resultset.rowCount);
  2552.         for (var i = 0; i < resultset.rowCount; i++){
  2553.             var result = new QSCHEDPLOTSTATS();
  2554.             this.loadFromResultset(result, resultset);
  2555.             resultset.next();
  2556.             resultarray[i] = result;
  2557.         }
  2558.         return resultarray;
  2559.     };
  2560. QSCHEDPLOTSTATSDAO.loadFromResultset = function(object, resultset) {
  2561.         Titanium.API.info("loading QSCHEDPLOTSTATS...");
  2562.         object.SchedID = resultset.fieldByName('SchedID');
  2563.         object.Schedname = resultset.fieldByName('Schedname');
  2564.         object.DrwgID = resultset.fieldByName('DrwgID');
  2565.         object.DrwgTitle = resultset.fieldByName('DrwgTitle');
  2566.         object.PlotID = resultset.fieldByName('PlotID');
  2567.         object.ShortDescrip = resultset.fieldByName('ShortDescrip');
  2568.         object.Status = resultset.fieldByName('Status');
  2569.         object.Passed = resultset.fieldByName('Passed');
  2570.         object.Failed = resultset.fieldByName('Failed');
  2571.         object.NotCheckd = resultset.fieldByName('NotCheckd');
  2572.         object.Total = resultset.fieldByName('Total');
  2573.         object.ClosedCnt = resultset.fieldByName('ClosedCnt');
  2574.         object.OpenCnt = resultset.fieldByName('OpenCnt');
  2575.         object.TotCnt = resultset.fieldByName('TotCnt');
  2576.     };
  2577. QSCHEDPLOTSTATSDAO.getUsingSchedID = function(SchedID) {
  2578.         var resultset =  db.getConnection().execute('select SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt from QSCHEDPLOTSTATS where SchedID = ? ',SchedID);
  2579.         var resultarray = this.doresultset(resultset);
  2580.         resultset.close();
  2581.         return resultarray;
  2582.     };
  2583. QSCHEDPLOTSTATSDAO.getUsingSchedname = function(Schedname) {
  2584.         var resultset =  db.getConnection().execute('select SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt from QSCHEDPLOTSTATS where Schedname = ? ',Schedname);
  2585.         var resultarray = this.doresultset(resultset);
  2586.         resultset.close();
  2587.         return resultarray;
  2588.     };
  2589. QSCHEDPLOTSTATSDAO.getUsingDrwgID = function(DrwgID) {
  2590.         var resultset =  db.getConnection().execute('select SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt from QSCHEDPLOTSTATS where DrwgID = ? ',DrwgID);
  2591.         var resultarray = this.doresultset(resultset);
  2592.         resultset.close();
  2593.         return resultarray;
  2594.     };
  2595. QSCHEDPLOTSTATSDAO.getUsingDrwgTitle = function(DrwgTitle) {
  2596.         var resultset =  db.getConnection().execute('select SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt from QSCHEDPLOTSTATS where DrwgTitle = ? ',DrwgTitle);
  2597.         var resultarray = this.doresultset(resultset);
  2598.         resultset.close();
  2599.         return resultarray;
  2600.     };
  2601. QSCHEDPLOTSTATSDAO.getUsingPlotID = function(PlotID) {
  2602.         var resultset =  db.getConnection().execute('select SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt from QSCHEDPLOTSTATS where PlotID = ? ',PlotID);
  2603.         var resultarray = this.doresultset(resultset);
  2604.         resultset.close();
  2605.         return resultarray;
  2606.     };
  2607. QSCHEDPLOTSTATSDAO.getUsingShortDescrip = function(ShortDescrip) {
  2608.         var resultset =  db.getConnection().execute('select SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt from QSCHEDPLOTSTATS where ShortDescrip = ? ',ShortDescrip);
  2609.         var resultarray = this.doresultset(resultset);
  2610.         resultset.close();
  2611.         return resultarray;
  2612.     };
  2613. QSCHEDPLOTSTATSDAO.getUsingStatus = function(Status) {
  2614.         var resultset =  db.getConnection().execute('select SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt from QSCHEDPLOTSTATS where Status = ? ',Status);
  2615.         var resultarray = this.doresultset(resultset);
  2616.         resultset.close();
  2617.         return resultarray;
  2618.     };
  2619. QSCHEDPLOTSTATSDAO.getUsingPassed = function(Passed) {
  2620.         var resultset =  db.getConnection().execute('select SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt from QSCHEDPLOTSTATS where Passed = ? ',Passed);
  2621.         var resultarray = this.doresultset(resultset);
  2622.         resultset.close();
  2623.         return resultarray;
  2624.     };
  2625. QSCHEDPLOTSTATSDAO.getUsingFailed = function(Failed) {
  2626.         var resultset =  db.getConnection().execute('select SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt from QSCHEDPLOTSTATS where Failed = ? ',Failed);
  2627.         var resultarray = this.doresultset(resultset);
  2628.         resultset.close();
  2629.         return resultarray;
  2630.     };
  2631. QSCHEDPLOTSTATSDAO.getUsingNotCheckd = function(NotCheckd) {
  2632.         var resultset =  db.getConnection().execute('select SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt from QSCHEDPLOTSTATS where NotCheckd = ? ',NotCheckd);
  2633.         var resultarray = this.doresultset(resultset);
  2634.         resultset.close();
  2635.         return resultarray;
  2636.     };
  2637. QSCHEDPLOTSTATSDAO.getUsingTotal = function(Total) {
  2638.         var resultset =  db.getConnection().execute('select SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt from QSCHEDPLOTSTATS where Total = ? ',Total);
  2639.         var resultarray = this.doresultset(resultset);
  2640.         resultset.close();
  2641.         return resultarray;
  2642.     };
  2643. QSCHEDPLOTSTATSDAO.getUsingClosedCnt = function(ClosedCnt) {
  2644.         var resultset =  db.getConnection().execute('select SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt from QSCHEDPLOTSTATS where ClosedCnt = ? ',ClosedCnt);
  2645.         var resultarray = this.doresultset(resultset);
  2646.         resultset.close();
  2647.         return resultarray;
  2648.     };
  2649. QSCHEDPLOTSTATSDAO.getUsingOpenCnt = function(OpenCnt) {
  2650.         var resultset =  db.getConnection().execute('select SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt from QSCHEDPLOTSTATS where OpenCnt = ? ',OpenCnt);
  2651.         var resultarray = this.doresultset(resultset);
  2652.         resultset.close();
  2653.         return resultarray;
  2654.     };
  2655. QSCHEDPLOTSTATSDAO.getUsingTotCnt = function(TotCnt) {
  2656.         var resultset =  db.getConnection().execute('select SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt from QSCHEDPLOTSTATS where TotCnt = ? ',TotCnt);
  2657.         var resultarray = this.doresultset(resultset);
  2658.         resultset.close();
  2659.         return resultarray;
  2660.     };
  2661. QSCHEDPLOTSTATSDAO.getall = function() {
  2662.         var resultset =  db.getConnection().execute('select SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt from QSCHEDPLOTSTATS');
  2663.         var resultarray = this.doresultset(resultset);
  2664.         resultset.close();
  2665.         return resultarray;
  2666.     };
  2667. QSCHEDPLOTSTATSDAO.getUsing = function(where) {
  2668.         sqlstring = 'select SchedID,Schedname,DrwgID,DrwgTitle,PlotID,ShortDescrip,Status,Passed,Failed,NotCheckd,Total,ClosedCnt,OpenCnt,TotCnt from QSCHEDPLOTSTATS where ' + where;
  2669.         var resultset =  db.getConnection().execute(sqlstring);
  2670.         var resultarray = this.doresultset(resultset);
  2671.         resultset.close();
  2672.         return resultarray;
  2673.     };
  2674. function QSELSDTYPES(){
  2675.     var SDCode = null;
  2676.     var Description = null;
  2677.  var selectNoBlob = 'SDCode,Description';
  2678. };
  2679.     QSELSDTYPES.prototype.getSDCode = function() {
  2680.         return this.SDCode;
  2681.     };
  2682.     QSELSDTYPES.prototype.getDescription = function() {
  2683.         return this.Description;
  2684.     };
  2685.     QSELSDTYPES.prototype.toString = function() {
  2686.         var retVal = "";
  2687.         retVal += "[SDCode][" + this.SDCode + "]";
  2688.         retVal += "[Description][" + this.Description + "]";
  2689.         return retVal;
  2690.     };
  2691. var QSELSDTYPESDAO = function(){
  2692. };
  2693. QSELSDTYPESDAO.doresultset = function(resultset) {
  2694.         var resultarray = new Array(resultset.rowCount);
  2695.         for (var i = 0; i < resultset.rowCount; i++){
  2696.             var result = new QSELSDTYPES();
  2697.             this.loadFromResultset(result, resultset);
  2698.             resultset.next();
  2699.             resultarray[i] = result;
  2700.         }
  2701.         return resultarray;
  2702.     };
  2703. QSELSDTYPESDAO.loadFromResultset = function(object, resultset) {
  2704.         Titanium.API.info("loading QSELSDTYPES...");
  2705.         object.SDCode = resultset.fieldByName('SDCode');
  2706.         object.Description = resultset.fieldByName('Description');
  2707.     };
  2708. QSELSDTYPESDAO.getUsingSDCode = function(SDCode) {
  2709.         var resultset =  db.getConnection().execute('select SDCode,Description from QSELSDTYPES where SDCode = ? ',SDCode);
  2710.         var resultarray = this.doresultset(resultset);
  2711.         resultset.close();
  2712.         return resultarray;
  2713.     };
  2714. QSELSDTYPESDAO.getUsingDescription = function(Description) {
  2715.         var resultset =  db.getConnection().execute('select SDCode,Description from QSELSDTYPES where Description = ? ',Description);
  2716.         var resultarray = this.doresultset(resultset);
  2717.         resultset.close();
  2718.         return resultarray;
  2719.     };
  2720. QSELSDTYPESDAO.getall = function() {
  2721.         var resultset =  db.getConnection().execute('select SDCode,Description from QSELSDTYPES');
  2722.         var resultarray = this.doresultset(resultset);
  2723.         resultset.close();
  2724.         return resultarray;
  2725.     };
  2726. QSELSDTYPESDAO.getUsing = function(where) {
  2727.         sqlstring = 'select SDCode,Description from QSELSDTYPES where ' + where;
  2728.         var resultset =  db.getConnection().execute(sqlstring);
  2729.         var resultarray = this.doresultset(resultset);
  2730.         resultset.close();
  2731.         return resultarray;
  2732.     };
  2733. function QSTDDEFECTS(){
  2734.     var SDCode = null;
  2735.     var Description = null;
  2736.     var Defect = null;
  2737.  var selectNoBlob = 'SDCode,Description,Defect';
  2738. };
  2739.     QSTDDEFECTS.prototype.getSDCode = function() {
  2740.         return this.SDCode;
  2741.     };
  2742.     QSTDDEFECTS.prototype.getDescription = function() {
  2743.         return this.Description;
  2744.     };
  2745.     QSTDDEFECTS.prototype.getDefect = function() {
  2746.         return this.Defect;
  2747.     };
  2748.     QSTDDEFECTS.prototype.toString = function() {
  2749.         var retVal = "";
  2750.         retVal += "[SDCode][" + this.SDCode + "]";
  2751.         retVal += "[Description][" + this.Description + "]";
  2752.         retVal += "[Defect][" + this.Defect + "]";
  2753.         return retVal;
  2754.     };
  2755. var QSTDDEFECTSDAO = function(){
  2756. };
  2757. QSTDDEFECTSDAO.doresultset = function(resultset) {
  2758.         var resultarray = new Array(resultset.rowCount);
  2759.         for (var i = 0; i < resultset.rowCount; i++){
  2760.             var result = new QSTDDEFECTS();
  2761.             this.loadFromResultset(result, resultset);
  2762.             resultset.next();
  2763.             resultarray[i] = result;
  2764.         }
  2765.         return resultarray;
  2766.     };
  2767. QSTDDEFECTSDAO.loadFromResultset = function(object, resultset) {
  2768.         Titanium.API.info("loading QSTDDEFECTS...");
  2769.         object.SDCode = resultset.fieldByName('SDCode');
  2770.         object.Description = resultset.fieldByName('Description');
  2771.         object.Defect = resultset.fieldByName('Defect');
  2772.     };
  2773. QSTDDEFECTSDAO.getUsingSDCode = function(SDCode) {
  2774.         var resultset =  db.getConnection().execute('select SDCode,Description,Defect from QSTDDEFECTS where SDCode = ? ',SDCode);
  2775.         var resultarray = this.doresultset(resultset);
  2776.         resultset.close();
  2777.         return resultarray;
  2778.     };
  2779. QSTDDEFECTSDAO.getUsingDescription = function(Description) {
  2780.         var resultset =  db.getConnection().execute('select SDCode,Description,Defect from QSTDDEFECTS where Description = ? ',Description);
  2781.         var resultarray = this.doresultset(resultset);
  2782.         resultset.close();
  2783.         return resultarray;
  2784.     };
  2785. QSTDDEFECTSDAO.getUsingDefect = function(Defect) {
  2786.         var resultset =  db.getConnection().execute('select SDCode,Description,Defect from QSTDDEFECTS where Defect = ? ',Defect);
  2787.         var resultarray = this.doresultset(resultset);
  2788.         resultset.close();
  2789.         return resultarray;
  2790.     };
  2791. QSTDDEFECTSDAO.getall = function() {
  2792.         var resultset =  db.getConnection().execute('select SDCode,Description,Defect from QSTDDEFECTS');
  2793.         var resultarray = this.doresultset(resultset);
  2794.         resultset.close();
  2795.         return resultarray;
  2796.     };
  2797. QSTDDEFECTSDAO.getUsing = function(where) {
  2798.         sqlstring = 'select SDCode,Description,Defect from QSTDDEFECTS where ' + where;
  2799.         var resultset =  db.getConnection().execute(sqlstring);
  2800.         var resultarray = this.doresultset(resultset);
  2801.         resultset.close();
  2802.         return resultarray;
  2803.     };
  2804. function QUSERS(){
  2805.     var UserID = null;
  2806.     var Username = null;
  2807.     var Password = null;
  2808.     var Fullname = null;
  2809.     var EmergencyEmail = null;
  2810.     var Current = null;
  2811.     var Role = null;
  2812.     var Email = null;
  2813.     var LastLogin = null;
  2814.     var Culture = null;
  2815.  var selectNoBlob = 'UserID,Username,Password,Fullname,EmergencyEmail,Current,Role,Email,LastLogin,Culture';
  2816. };
  2817.     QUSERS.prototype.getUserID = function() {
  2818.         return this.UserID;
  2819.     };
  2820.     QUSERS.prototype.getUsername = function() {
  2821.         return this.Username;
  2822.     };
  2823.     QUSERS.prototype.getPassword = function() {
  2824.         return this.Password;
  2825.     };
  2826.     QUSERS.prototype.getFullname = function() {
  2827.         return this.Fullname;
  2828.     };
  2829.     QUSERS.prototype.getEmergencyEmail = function() {
  2830.         return this.EmergencyEmail;
  2831.     };
  2832.     QUSERS.prototype.getCurrent = function() {
  2833.         return this.Current;
  2834.     };
  2835.     QUSERS.prototype.getRole = function() {
  2836.         return this.Role;
  2837.     };
  2838.     QUSERS.prototype.getEmail = function() {
  2839.         return this.Email;
  2840.     };
  2841.     QUSERS.prototype.getLastLogin = function() {
  2842.         return this.LastLogin;
  2843.     };
  2844.     QUSERS.prototype.getCulture = function() {
  2845.         return this.Culture;
  2846.     };
  2847.     QUSERS.prototype.toString = function() {
  2848.         var retVal = "";
  2849.         retVal += "[UserID][" + this.UserID + "]";
  2850.         retVal += "[Username][" + this.Username + "]";
  2851.         retVal += "[Password][" + this.Password + "]";
  2852.         retVal += "[Fullname][" + this.Fullname + "]";
  2853.         retVal += "[EmergencyEmail][" + this.EmergencyEmail + "]";
  2854.         retVal += "[Current][" + this.Current + "]";
  2855.         retVal += "[Role][" + this.Role + "]";
  2856.         retVal += "[Email][" + this.Email + "]";
  2857.         retVal += "[LastLogin][" + this.LastLogin + "]";
  2858.         retVal += "[Culture][" + this.Culture + "]";
  2859.         return retVal;
  2860.     };
  2861. var QUSERSDAO = function(){
  2862. };
  2863. QUSERSDAO.doresultset = function(resultset) {
  2864.         var resultarray = new Array(resultset.rowCount);
  2865.         for (var i = 0; i < resultset.rowCount; i++){
  2866.             var result = new QUSERS();
  2867.             this.loadFromResultset(result, resultset);
  2868.             resultset.next();
  2869.             resultarray[i] = result;
  2870.         }
  2871.         return resultarray;
  2872.     };
  2873. QUSERSDAO.loadFromResultset = function(object, resultset) {
  2874.         Titanium.API.info("loading QUSERS...");
  2875.         object.UserID = resultset.fieldByName('UserID');
  2876.         object.Username = resultset.fieldByName('Username');
  2877.         object.Password = resultset.fieldByName('Password');
  2878.         object.Fullname = resultset.fieldByName('Fullname');
  2879.         object.EmergencyEmail = resultset.fieldByName('EmergencyEmail');
  2880.         object.Current = resultset.fieldByName('Current');
  2881.         object.Role = resultset.fieldByName('Role');
  2882.         object.Email = resultset.fieldByName('Email');
  2883.         object.LastLogin = resultset.fieldByName('LastLogin');
  2884.         object.Culture = resultset.fieldByName('Culture');
  2885.     };
  2886. QUSERSDAO.getUsingUserID = function(UserID) {
  2887.         var resultset =  db.getConnection().execute('select UserID,Username,Password,Fullname,EmergencyEmail,Current,Role,Email,LastLogin,Culture from QUSERS where UserID = ? ',UserID);
  2888.         var resultarray = this.doresultset(resultset);
  2889.         resultset.close();
  2890.         return resultarray;
  2891.     };
  2892. QUSERSDAO.getUsingUsername = function(Username) {
  2893.         var resultset =  db.getConnection().execute('select UserID,Username,Password,Fullname,EmergencyEmail,Current,Role,Email,LastLogin,Culture from QUSERS where Username = ? ',Username);
  2894.         var resultarray = this.doresultset(resultset);
  2895.         resultset.close();
  2896.         return resultarray;
  2897.     };
  2898. QUSERSDAO.getUsingPassword = function(Password) {
  2899.         var resultset =  db.getConnection().execute('select UserID,Username,Password,Fullname,EmergencyEmail,Current,Role,Email,LastLogin,Culture from QUSERS where Password = ? ',Password);
  2900.         var resultarray = this.doresultset(resultset);
  2901.         resultset.close();
  2902.         return resultarray;
  2903.     };
  2904. QUSERSDAO.getUsingFullname = function(Fullname) {
  2905.         var resultset =  db.getConnection().execute('select UserID,Username,Password,Fullname,EmergencyEmail,Current,Role,Email,LastLogin,Culture from QUSERS where Fullname = ? ',Fullname);
  2906.         var resultarray = this.doresultset(resultset);
  2907.         resultset.close();
  2908.         return resultarray;
  2909.     };
  2910. QUSERSDAO.getUsingEmergencyEmail = function(EmergencyEmail) {
  2911.         var resultset =  db.getConnection().execute('select UserID,Username,Password,Fullname,EmergencyEmail,Current,Role,Email,LastLogin,Culture from QUSERS where EmergencyEmail = ? ',EmergencyEmail);
  2912.         var resultarray = this.doresultset(resultset);
  2913.         resultset.close();
  2914.         return resultarray;
  2915.     };
  2916. QUSERSDAO.getUsingCurrent = function(Current) {
  2917.         var resultset =  db.getConnection().execute('select UserID,Username,Password,Fullname,EmergencyEmail,Current,Role,Email,LastLogin,Culture from QUSERS where Current = ? ',Current);
  2918.         var resultarray = this.doresultset(resultset);
  2919.         resultset.close();
  2920.         return resultarray;
  2921.     };
  2922. QUSERSDAO.getUsingRole = function(Role) {
  2923.         var resultset =  db.getConnection().execute('select UserID,Username,Password,Fullname,EmergencyEmail,Current,Role,Email,LastLogin,Culture from QUSERS where Role = ? ',Role);
  2924.         var resultarray = this.doresultset(resultset);
  2925.         resultset.close();
  2926.         return resultarray;
  2927.     };
  2928. QUSERSDAO.getUsingEmail = function(Email) {
  2929.         var resultset =  db.getConnection().execute('select UserID,Username,Password,Fullname,EmergencyEmail,Current,Role,Email,LastLogin,Culture from QUSERS where Email = ? ',Email);
  2930.         var resultarray = this.doresultset(resultset);
  2931.         resultset.close();
  2932.         return resultarray;
  2933.     };
  2934. QUSERSDAO.getUsingLastLogin = function(LastLogin) {
  2935.         var resultset =  db.getConnection().execute('select UserID,Username,Password,Fullname,EmergencyEmail,Current,Role,Email,LastLogin,Culture from QUSERS where LastLogin = ? ',LastLogin);
  2936.         var resultarray = this.doresultset(resultset);
  2937.         resultset.close();
  2938.         return resultarray;
  2939.     };
  2940. QUSERSDAO.getUsingCulture = function(Culture) {
  2941.         var resultset =  db.getConnection().execute('select UserID,Username,Password,Fullname,EmergencyEmail,Current,Role,Email,LastLogin,Culture from QUSERS where Culture = ? ',Culture);
  2942.         var resultarray = this.doresultset(resultset);
  2943.         resultset.close();
  2944.         return resultarray;
  2945.     };
  2946. QUSERSDAO.getall = function() {
  2947.         var resultset =  db.getConnection().execute('select UserID,Username,Password,Fullname,EmergencyEmail,Current,Role,Email,LastLogin,Culture from QUSERS');
  2948.         var resultarray = this.doresultset(resultset);
  2949.         resultset.close();
  2950.         return resultarray;
  2951.     };
  2952. QUSERSDAO.getUsing = function(where) {
  2953.         sqlstring = 'select UserID,Username,Password,Fullname,EmergencyEmail,Current,Role,Email,LastLogin,Culture from QUSERS where ' + where;
  2954.         var resultset =  db.getConnection().execute(sqlstring);
  2955.         var resultarray = this.doresultset(resultset);
  2956.         resultset.close();
  2957.         return resultarray;
  2958.     };
  2959. function QUSERSDTYPES(){
  2960.     var SDCode = null;
  2961.     var Description = null;
  2962.     var UserID = null;
  2963.     var CanUse = null;
  2964.  var selectNoBlob = 'SDCode,Description,UserID,CanUse';
  2965. };
  2966.     QUSERSDTYPES.prototype.getSDCode = function() {
  2967.         return this.SDCode;
  2968.     };
  2969.     QUSERSDTYPES.prototype.getDescription = function() {
  2970.         return this.Description;
  2971.     };
  2972.     QUSERSDTYPES.prototype.getUserID = function() {
  2973.         return this.UserID;
  2974.     };
  2975.     QUSERSDTYPES.prototype.getCanUse = function() {
  2976.         return this.CanUse;
  2977.     };
  2978.     QUSERSDTYPES.prototype.toString = function() {
  2979.         var retVal = "";
  2980.         retVal += "[SDCode][" + this.SDCode + "]";
  2981.         retVal += "[Description][" + this.Description + "]";
  2982.         retVal += "[UserID][" + this.UserID + "]";
  2983.         retVal += "[CanUse][" + this.CanUse + "]";
  2984.         return retVal;
  2985.     };
  2986. var QUSERSDTYPESDAO = function(){
  2987. };
  2988. QUSERSDTYPESDAO.doresultset = function(resultset) {
  2989.         var resultarray = new Array(resultset.rowCount);
  2990.         for (var i = 0; i < resultset.rowCount; i++){
  2991.             var result = new QUSERSDTYPES();
  2992.             this.loadFromResultset(result, resultset);
  2993.             resultset.next();
  2994.             resultarray[i] = result;
  2995.         }
  2996.         return resultarray;
  2997.     };
  2998. QUSERSDTYPESDAO.loadFromResultset = function(object, resultset) {
  2999.         Titanium.API.info("loading QUSERSDTYPES...");
  3000.         object.SDCode = resultset.fieldByName('SDCode');
  3001.         object.Description = resultset.fieldByName('Description');
  3002.         object.UserID = resultset.fieldByName('UserID');
  3003.         object.CanUse = resultset.fieldByName('CanUse');
  3004.     };
  3005. QUSERSDTYPESDAO.getUsingSDCode = function(SDCode) {
  3006.         var resultset =  db.getConnection().execute('select SDCode,Description,UserID,CanUse from QUSERSDTYPES where SDCode = ? ',SDCode);
  3007.         var resultarray = this.doresultset(resultset);
  3008.         resultset.close();
  3009.         return resultarray;
  3010.     };
  3011. QUSERSDTYPESDAO.getUsingDescription = function(Description) {
  3012.         var resultset =  db.getConnection().execute('select SDCode,Description,UserID,CanUse from QUSERSDTYPES where Description = ? ',Description);
  3013.         var resultarray = this.doresultset(resultset);
  3014.         resultset.close();
  3015.         return resultarray;
  3016.     };
  3017. QUSERSDTYPESDAO.getUsingUserID = function(UserID) {
  3018.         var resultset =  db.getConnection().execute('select SDCode,Description,UserID,CanUse from QUSERSDTYPES where UserID = ? ',UserID);
  3019.         var resultarray = this.doresultset(resultset);
  3020.         resultset.close();
  3021.         return resultarray;
  3022.     };
  3023. QUSERSDTYPESDAO.getUsingCanUse = function(CanUse) {
  3024.         var resultset =  db.getConnection().execute('select SDCode,Description,UserID,CanUse from QUSERSDTYPES where CanUse = ? ',CanUse);
  3025.         var resultarray = this.doresultset(resultset);
  3026.         resultset.close();
  3027.         return resultarray;
  3028.     };
  3029. QUSERSDTYPESDAO.getall = function() {
  3030.         var resultset =  db.getConnection().execute('select SDCode,Description,UserID,CanUse from QUSERSDTYPES');
  3031.         var resultarray = this.doresultset(resultset);
  3032.         resultset.close();
  3033.         return resultarray;
  3034.     };
  3035. QUSERSDTYPESDAO.getUsing = function(where) {
  3036.         sqlstring = 'select SDCode,Description,UserID,CanUse from QUSERSDTYPES where ' + where;
  3037.         var resultset =  db.getConnection().execute(sqlstring);
  3038.         var resultarray = this.doresultset(resultset);
  3039.         resultset.close();
  3040.         return resultarray;
  3041.     };
  3042. function QROOMS(){
  3043.     var DrwgID = null;
  3044.     var Room = null;
  3045.  var selectNoBlob = 'DrwgID,Room';
  3046. };
  3047.     QROOMS.prototype.getDrwgID = function() {
  3048.         return this.DrwgID;
  3049.     };
  3050.     QROOMS.prototype.getRoom = function() {
  3051.         return this.Room;
  3052.     };
  3053.     QROOMS.prototype.toString = function() {
  3054.         var retVal = "";
  3055.         retVal += "[DrwgID][" + this.DrwgID + "]";
  3056.         retVal += "[Room][" + this.Room + "]";
  3057.         return retVal;
  3058.     };
  3059. var QROOMSDAO = function(){
  3060. };
  3061. QROOMSDAO.doresultset = function(resultset) {
  3062.         var resultarray = new Array(resultset.rowCount);
  3063.         for (var i = 0; i < resultset.rowCount; i++){
  3064.             var result = new QROOMS();
  3065.             this.loadFromResultset(result, resultset);
  3066.             resultset.next();
  3067.             resultarray[i] = result;
  3068.         }
  3069.         return resultarray;
  3070.     };
  3071. QROOMSDAO.loadFromResultset = function(object, resultset) {
  3072.         Titanium.API.info("loading QROOMS...");
  3073.         object.DrwgID = resultset.fieldByName('DrwgID');
  3074.         object.Room = resultset.fieldByName('Room');
  3075.     };
  3076. QROOMSDAO.getUsingDrwgID = function(DrwgID) {
  3077.         var resultset =  db.getConnection().execute('select DrwgID,Room from QROOMS where DrwgID = ? ',DrwgID);
  3078.         var resultarray = this.doresultset(resultset);
  3079.         resultset.close();
  3080.         return resultarray;
  3081.     };
  3082. QROOMSDAO.getUsingRoom = function(Room) {
  3083.         var resultset =  db.getConnection().execute('select DrwgID,Room from QROOMS where Room = ? ',Room);
  3084.         var resultarray = this.doresultset(resultset);
  3085.         resultset.close();
  3086.         return resultarray;
  3087.     };
  3088. QROOMSDAO.getall = function() {
  3089.         var resultset =  db.getConnection().execute('select DrwgID,Room from QROOMS');
  3090.         var resultarray = this.doresultset(resultset);
  3091.         resultset.close();
  3092.         return resultarray;
  3093.     };
  3094. QROOMSDAO.getUsing = function(where) {
  3095.         sqlstring = 'select DrwgID,Room from QROOMS where ' + where;
  3096.         var resultset =  db.getConnection().execute(sqlstring);
  3097.         var resultarray = this.doresultset(resultset);
  3098.         resultset.close();
  3099.         return resultarray;
  3100.     };
  3101. function QUSERINSPECTIONS(){
  3102.     var UIID = null;
  3103.     var UserID = null;
  3104.     var Username = null;
  3105.     var SchedID = null;
  3106.     var Schedname = null;
  3107.     var SchedInits = null;
  3108.     var CanUse = null;
  3109.  var selectNoBlob = 'UIID,UserID,Username,SchedID,Schedname,SchedInits,CanUse';
  3110. };
  3111.     QUSERINSPECTIONS.prototype.getUIID = function() {
  3112.         return this.UIID;
  3113.     };
  3114.     QUSERINSPECTIONS.prototype.getUserID = function() {
  3115.         return this.UserID;
  3116.     };
  3117.     QUSERINSPECTIONS.prototype.getUsername = function() {
  3118.         return this.Username;
  3119.     };
  3120.     QUSERINSPECTIONS.prototype.getSchedID = function() {
  3121.         return this.SchedID;
  3122.     };
  3123.     QUSERINSPECTIONS.prototype.getSchedname = function() {
  3124.         return this.Schedname;
  3125.     };
  3126.     QUSERINSPECTIONS.prototype.getSchedInits = function() {
  3127.         return this.SchedInits;
  3128.     };
  3129.     QUSERINSPECTIONS.prototype.getCanUse = function() {
  3130.         return this.CanUse;
  3131.     };
  3132.     QUSERINSPECTIONS.prototype.toString = function() {
  3133.         var retVal = "";
  3134.         retVal += "[UIID][" + this.UIID + "]";
  3135.         retVal += "[UserID][" + this.UserID + "]";
  3136.         retVal += "[Username][" + this.Username + "]";
  3137.         retVal += "[SchedID][" + this.SchedID + "]";
  3138.         retVal += "[Schedname][" + this.Schedname + "]";
  3139.         retVal += "[SchedInits][" + this.SchedInits + "]";
  3140.         retVal += "[CanUse][" + this.CanUse + "]";
  3141.         return retVal;
  3142.     };
  3143. var QUSERINSPECTIONSDAO = function(){
  3144. };
  3145. QUSERINSPECTIONSDAO.doresultset = function(resultset) {
  3146.         var resultarray = new Array(resultset.rowCount);
  3147.         for (var i = 0; i < resultset.rowCount; i++){
  3148.             var result = new QUSERINSPECTIONS();
  3149.             this.loadFromResultset(result, resultset);
  3150.             resultset.next();
  3151.             resultarray[i] = result;
  3152.         }
  3153.         return resultarray;
  3154.     };
  3155. QUSERINSPECTIONSDAO.loadFromResultset = function(object, resultset) {
  3156.         Titanium.API.info("loading QUSERINSPECTIONS...");
  3157.         object.UIID = resultset.fieldByName('UIID');
  3158.         object.UserID = resultset.fieldByName('UserID');
  3159.         object.Username = resultset.fieldByName('Username');
  3160.         object.SchedID = resultset.fieldByName('SchedID');
  3161.         object.Schedname = resultset.fieldByName('Schedname');
  3162.         object.SchedInits = resultset.fieldByName('SchedInits');
  3163.         object.CanUse = resultset.fieldByName('CanUse');
  3164.     };
  3165. QUSERINSPECTIONSDAO.getUsingUIID = function(UIID) {
  3166.         var resultset =  db.getConnection().execute('select UIID,UserID,Username,SchedID,Schedname,SchedInits,CanUse from QUSERINSPECTIONS where UIID = ? ',UIID);
  3167.         var resultarray = this.doresultset(resultset);
  3168.         resultset.close();
  3169.         return resultarray;
  3170.     };
  3171. QUSERINSPECTIONSDAO.getUsingUserID = function(UserID) {
  3172.         var resultset =  db.getConnection().execute('select UIID,UserID,Username,SchedID,Schedname,SchedInits,CanUse from QUSERINSPECTIONS where UserID = ? ',UserID);
  3173.         var resultarray = this.doresultset(resultset);
  3174.         resultset.close();
  3175.         return resultarray;
  3176.     };
  3177. QUSERINSPECTIONSDAO.getUsingUsername = function(Username) {
  3178.         var resultset =  db.getConnection().execute('select UIID,UserID,Username,SchedID,Schedname,SchedInits,CanUse from QUSERINSPECTIONS where Username = ? ',Username);
  3179.         var resultarray = this.doresultset(resultset);
  3180.         resultset.close();
  3181.         return resultarray;
  3182.     };
  3183. QUSERINSPECTIONSDAO.getUsingSchedID = function(SchedID) {
  3184.         var resultset =  db.getConnection().execute('select UIID,UserID,Username,SchedID,Schedname,SchedInits,CanUse from QUSERINSPECTIONS where SchedID = ? ',SchedID);
  3185.         var resultarray = this.doresultset(resultset);
  3186.         resultset.close();
  3187.         return resultarray;
  3188.     };
  3189. QUSERINSPECTIONSDAO.getUsingSchedname = function(Schedname) {
  3190.         var resultset =  db.getConnection().execute('select UIID,UserID,Username,SchedID,Schedname,SchedInits,CanUse from QUSERINSPECTIONS where Schedname = ? ',Schedname);
  3191.         var resultarray = this.doresultset(resultset);
  3192.         resultset.close();
  3193.         return resultarray;
  3194.     };
  3195. QUSERINSPECTIONSDAO.getUsingSchedInits = function(SchedInits) {
  3196.         var resultset =  db.getConnection().execute('select UIID,UserID,Username,SchedID,Schedname,SchedInits,CanUse from QUSERINSPECTIONS where SchedInits = ? ',SchedInits);
  3197.         var resultarray = this.doresultset(resultset);
  3198.         resultset.close();
  3199.         return resultarray;
  3200.     };
  3201. QUSERINSPECTIONSDAO.getUsingCanUse = function(CanUse) {
  3202.         var resultset =  db.getConnection().execute('select UIID,UserID,Username,SchedID,Schedname,SchedInits,CanUse from QUSERINSPECTIONS where CanUse = ? ',CanUse);
  3203.         var resultarray = this.doresultset(resultset);
  3204.         resultset.close();
  3205.         return resultarray;
  3206.     };
  3207. QUSERINSPECTIONSDAO.getall = function() {
  3208.         var resultset =  db.getConnection().execute('select UIID,UserID,Username,SchedID,Schedname,SchedInits,CanUse from QUSERINSPECTIONS');
  3209.         var resultarray = this.doresultset(resultset);
  3210.         resultset.close();
  3211.         return resultarray;
  3212.     };
  3213. QUSERINSPECTIONSDAO.getUsing = function(where) {
  3214.         sqlstring = 'select UIID,UserID,Username,SchedID,Schedname,SchedInits,CanUse from QUSERINSPECTIONS where ' + where;
  3215.         var resultset =  db.getConnection().execute(sqlstring);
  3216.         var resultarray = this.doresultset(resultset);
  3217.         resultset.close();
  3218.         return resultarray;
  3219.     };
  3220. function QLASTCHANGE(){
  3221.     var SnagID = null;
  3222.     var LastChanged = null;
  3223.     var MaxOfSUID = null;
  3224.  var selectNoBlob = 'SnagID,LastChanged,MaxOfSUID';
  3225. };
  3226.     QLASTCHANGE.prototype.getSnagID = function() {
  3227.         return this.SnagID;
  3228.     };
  3229.     QLASTCHANGE.prototype.getLastChanged = function() {
  3230.         return this.LastChanged;
  3231.     };
  3232.     QLASTCHANGE.prototype.getMaxOfSUID = function() {
  3233.         return this.MaxOfSUID;
  3234.     };
  3235.     QLASTCHANGE.prototype.toString = function() {
  3236.         var retVal = "";
  3237.         retVal += "[SnagID][" + this.SnagID + "]";
  3238.         retVal += "[LastChanged][" + this.LastChanged + "]";
  3239.         retVal += "[MaxOfSUID][" + this.MaxOfSUID + "]";
  3240.         return retVal;
  3241.     };
  3242. var QLASTCHANGEDAO = function(){
  3243. };
  3244. QLASTCHANGEDAO.doresultset = function(resultset) {
  3245.         var resultarray = new Array(resultset.rowCount);
  3246.         for (var i = 0; i < resultset.rowCount; i++){
  3247.             var result = new QLASTCHANGE();
  3248.             this.loadFromResultset(result, resultset);
  3249.             resultset.next();
  3250.             resultarray[i] = result;
  3251.         }
  3252.         return resultarray;
  3253.     };
  3254. QLASTCHANGEDAO.loadFromResultset = function(object, resultset) {
  3255.         Titanium.API.info("loading QLASTCHANGE...");
  3256.         object.SnagID = resultset.fieldByName('SnagID');
  3257.         object.LastChanged = resultset.fieldByName('LastChanged');
  3258.         object.MaxOfSUID = resultset.fieldByName('MaxOfSUID');
  3259.     };
  3260. QLASTCHANGEDAO.getUsingSnagID = function(SnagID) {
  3261.         var resultset =  db.getConnection().execute('select SnagID,LastChanged,MaxOfSUID from QLASTCHANGE where SnagID = ? ',SnagID);
  3262.         var resultarray = this.doresultset(resultset);
  3263.         resultset.close();
  3264.         return resultarray;
  3265.     };
  3266. QLASTCHANGEDAO.getUsingLastChanged = function(LastChanged) {
  3267.         var resultset =  db.getConnection().execute('select SnagID,LastChanged,MaxOfSUID from QLASTCHANGE where LastChanged = ? ',LastChanged);
  3268.         var resultarray = this.doresultset(resultset);
  3269.         resultset.close();
  3270.         return resultarray;
  3271.     };
  3272. QLASTCHANGEDAO.getUsingMaxOfSUID = function(MaxOfSUID) {
  3273.         var resultset =  db.getConnection().execute('select SnagID,LastChanged,MaxOfSUID from QLASTCHANGE where MaxOfSUID = ? ',MaxOfSUID);
  3274.         var resultarray = this.doresultset(resultset);
  3275.         resultset.close();
  3276.         return resultarray;
  3277.     };
  3278. QLASTCHANGEDAO.getall = function() {
  3279.         var resultset =  db.getConnection().execute('select SnagID,LastChanged,MaxOfSUID from QLASTCHANGE');
  3280.         var resultarray = this.doresultset(resultset);
  3281.         resultset.close();
  3282.         return resultarray;
  3283.     };
  3284. QLASTCHANGEDAO.getUsing = function(where) {
  3285.         sqlstring = 'select SnagID,LastChanged,MaxOfSUID from QLASTCHANGE where ' + where;
  3286.         var resultset =  db.getConnection().execute(sqlstring);
  3287.         var resultarray = this.doresultset(resultset);
  3288.         resultset.close();
  3289.         return resultarray;
  3290.     };
  3291. function QLASTCHANGEDALL(){
  3292.     var SnagID = null;
  3293.     var LastChanged = null;
  3294.     var Status = null;
  3295.     var FixDescrip = null;
  3296.     var UserID = null;
  3297.     var Username = null;
  3298.     var Fullname = null;
  3299.     var DaysOld = null;
  3300.  var selectNoBlob = 'SnagID,LastChanged,Status,FixDescrip,UserID,Username,Fullname,DaysOld';
  3301. };
  3302.     QLASTCHANGEDALL.prototype.getSnagID = function() {
  3303.         return this.SnagID;
  3304.     };
  3305.     QLASTCHANGEDALL.prototype.getLastChanged = function() {
  3306.         return this.LastChanged;
  3307.     };
  3308.     QLASTCHANGEDALL.prototype.getStatus = function() {
  3309.         return this.Status;
  3310.     };
  3311.     QLASTCHANGEDALL.prototype.getFixDescrip = function() {
  3312.         return this.FixDescrip;
  3313.     };
  3314.     QLASTCHANGEDALL.prototype.getUserID = function() {
  3315.         return this.UserID;
  3316.     };
  3317.     QLASTCHANGEDALL.prototype.getUsername = function() {
  3318.         return this.Username;
  3319.     };
  3320.     QLASTCHANGEDALL.prototype.getFullname = function() {
  3321.         return this.Fullname;
  3322.     };
  3323.     QLASTCHANGEDALL.prototype.getDaysOld = function() {
  3324.         return this.DaysOld;
  3325.     };
  3326.     QLASTCHANGEDALL.prototype.toString = function() {
  3327.         var retVal = "";
  3328.         retVal += "[SnagID][" + this.SnagID + "]";
  3329.         retVal += "[LastChanged][" + this.LastChanged + "]";
  3330.         retVal += "[Status][" + this.Status + "]";
  3331.         retVal += "[FixDescrip][" + this.FixDescrip + "]";
  3332.         retVal += "[UserID][" + this.UserID + "]";
  3333.         retVal += "[Username][" + this.Username + "]";
  3334.         retVal += "[Fullname][" + this.Fullname + "]";
  3335.         retVal += "[DaysOld][" + this.DaysOld + "]";
  3336.         return retVal;
  3337.     };
  3338. var QLASTCHANGEDALLDAO = function(){
  3339. };
  3340. QLASTCHANGEDALLDAO.doresultset = function(resultset) {
  3341.         var resultarray = new Array(resultset.rowCount);
  3342.         for (var i = 0; i < resultset.rowCount; i++){
  3343.             var result = new QLASTCHANGEDALL();
  3344.             this.loadFromResultset(result, resultset);
  3345.             resultset.next();
  3346.             resultarray[i] = result;
  3347.         }
  3348.         return resultarray;
  3349.     };
  3350. QLASTCHANGEDALLDAO.loadFromResultset = function(object, resultset) {
  3351.         Titanium.API.info("loading QLASTCHANGEDALL...");
  3352.         object.SnagID = resultset.fieldByName('SnagID');
  3353.         object.LastChanged = resultset.fieldByName('LastChanged');
  3354.         object.Status = resultset.fieldByName('Status');
  3355.         object.FixDescrip = resultset.fieldByName('FixDescrip');
  3356.         object.UserID = resultset.fieldByName('UserID');
  3357.         object.Username = resultset.fieldByName('Username');
  3358.         object.Fullname = resultset.fieldByName('Fullname');
  3359.         object.DaysOld = resultset.fieldByName('DaysOld');
  3360.     };
  3361. QLASTCHANGEDALLDAO.getUsingSnagID = function(SnagID) {
  3362.         var resultset =  db.getConnection().execute('select SnagID,LastChanged,Status,FixDescrip,UserID,Username,Fullname,DaysOld from QLASTCHANGEDALL where SnagID = ? ',SnagID);
  3363.         var resultarray = this.doresultset(resultset);
  3364.         resultset.close();
  3365.         return resultarray;
  3366.     };
  3367. QLASTCHANGEDALLDAO.getUsingLastChanged = function(LastChanged) {
  3368.         var resultset =  db.getConnection().execute('select SnagID,LastChanged,Status,FixDescrip,UserID,Username,Fullname,DaysOld from QLASTCHANGEDALL where LastChanged = ? ',LastChanged);
  3369.         var resultarray = this.doresultset(resultset);
  3370.         resultset.close();
  3371.         return resultarray;
  3372.     };
  3373. QLASTCHANGEDALLDAO.getUsingStatus = function(Status) {
  3374.         var resultset =  db.getConnection().execute('select SnagID,LastChanged,Status,FixDescrip,UserID,Username,Fullname,DaysOld from QLASTCHANGEDALL where Status = ? ',Status);
  3375.         var resultarray = this.doresultset(resultset);
  3376.         resultset.close();
  3377.         return resultarray;
  3378.     };
  3379. QLASTCHANGEDALLDAO.getUsingFixDescrip = function(FixDescrip) {
  3380.         var resultset =  db.getConnection().execute('select SnagID,LastChanged,Status,FixDescrip,UserID,Username,Fullname,DaysOld from QLASTCHANGEDALL where FixDescrip = ? ',FixDescrip);
  3381.         var resultarray = this.doresultset(resultset);
  3382.         resultset.close();
  3383.         return resultarray;
  3384.     };
  3385. QLASTCHANGEDALLDAO.getUsingUserID = function(UserID) {
  3386.         var resultset =  db.getConnection().execute('select SnagID,LastChanged,Status,FixDescrip,UserID,Username,Fullname,DaysOld from QLASTCHANGEDALL where UserID = ? ',UserID);
  3387.         var resultarray = this.doresultset(resultset);
  3388.         resultset.close();
  3389.         return resultarray;
  3390.     };
  3391. QLASTCHANGEDALLDAO.getUsingUsername = function(Username) {
  3392.         var resultset =  db.getConnection().execute('select SnagID,LastChanged,Status,FixDescrip,UserID,Username,Fullname,DaysOld from QLASTCHANGEDALL where Username = ? ',Username);
  3393.         var resultarray = this.doresultset(resultset);
  3394.         resultset.close();
  3395.         return resultarray;
  3396.     };
  3397. QLASTCHANGEDALLDAO.getUsingFullname = function(Fullname) {
  3398.         var resultset =  db.getConnection().execute('select SnagID,LastChanged,Status,FixDescrip,UserID,Username,Fullname,DaysOld from QLASTCHANGEDALL where Fullname = ? ',Fullname);
  3399.         var resultarray = this.doresultset(resultset);
  3400.         resultset.close();
  3401.         return resultarray;
  3402.     };
  3403. QLASTCHANGEDALLDAO.getUsingDaysOld = function(DaysOld) {
  3404.         var resultset =  db.getConnection().execute('select SnagID,LastChanged,Status,FixDescrip,UserID,Username,Fullname,DaysOld from QLASTCHANGEDALL where DaysOld = ? ',DaysOld);
  3405.         var resultarray = this.doresultset(resultset);
  3406.         resultset.close();
  3407.         return resultarray;
  3408.     };
  3409. QLASTCHANGEDALLDAO.getall = function() {
  3410.         var resultset =  db.getConnection().execute('select SnagID,LastChanged,Status,FixDescrip,UserID,Username,Fullname,DaysOld from QLASTCHANGEDALL');
  3411.         var resultarray = this.doresultset(resultset);
  3412.         resultset.close();
  3413.         return resultarray;
  3414.     };
  3415. QLASTCHANGEDALLDAO.getUsing = function(where) {
  3416.         sqlstring = 'select SnagID,LastChanged,Status,FixDescrip,UserID,Username,Fullname,DaysOld from QLASTCHANGEDALL where ' + where;
  3417.         var resultset =  db.getConnection().execute(sqlstring);
  3418.         var resultarray = this.doresultset(resultset);
  3419.         resultset.close();
  3420.         return resultarray;
  3421.     };
  3422. function QSNAGS(){
  3423.     var SnagID = null;
  3424.     var DrwgID = null;
  3425.     var Status = null;
  3426.     var ShortDescrip = null;
  3427.     var Location = null;
  3428.     var Xcoord = null;
  3429.     var YCoord = null;
  3430.     var Priority = null;
  3431.     var Datestamp = null;
  3432.     var DrwgLink = null;
  3433.     var Photo = null;
  3434.     var DoBy = null;
  3435.     var PPCGUID = null;
  3436.     var GroupID = null;
  3437.     var GroupInits = null;
  3438.     var DateClosed = null;
  3439.     var BigPhoto = null;
  3440.     var SCID = null;
  3441.     var Lat = null;
  3442.     var Lng = null;
  3443.     var Owner = null;
  3444.     var SDCode = null;
  3445.     var SDID = null;
  3446.     var PlotID = null;
  3447.     var TradeCode = null;
  3448.     var MPGUID = null;
  3449.     var FixStatus = null;
  3450.  var selectNoBlob = 'SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus';
  3451. };
  3452.     QSNAGS.prototype.getSnagID = function() {
  3453.         return this.SnagID;
  3454.     };
  3455.     QSNAGS.prototype.getDrwgID = function() {
  3456.         return this.DrwgID;
  3457.     };
  3458.     QSNAGS.prototype.getStatus = function() {
  3459.         return this.Status;
  3460.     };
  3461.     QSNAGS.prototype.getShortDescrip = function() {
  3462.         return this.ShortDescrip;
  3463.     };
  3464.     QSNAGS.prototype.getLocation = function() {
  3465.         return this.Location;
  3466.     };
  3467.     QSNAGS.prototype.getXcoord = function() {
  3468.         return this.Xcoord;
  3469.     };
  3470.     QSNAGS.prototype.getYCoord = function() {
  3471.         return this.YCoord;
  3472.     };
  3473.     QSNAGS.prototype.getPriority = function() {
  3474.         return this.Priority;
  3475.     };
  3476.     QSNAGS.prototype.getDatestamp = function() {
  3477.         return this.Datestamp;
  3478.     };
  3479.     QSNAGS.prototype.getDrwgLink = function() {
  3480.         return this.DrwgLink;
  3481.     };
  3482.     QSNAGS.prototype.getPhoto = function() {
  3483.          if (this.Photo == null) {
  3484.             result = db.getConnection().execute('select Photo from QSNAGS where ');
  3485.             this.Photo = result.field(0);
  3486.          }
  3487.         return this.Photo;
  3488.     };
  3489.     QSNAGS.prototype.getDoBy = function() {
  3490.         return this.DoBy;
  3491.     };
  3492.     QSNAGS.prototype.getPPCGUID = function() {
  3493.         return this.PPCGUID;
  3494.     };
  3495.     QSNAGS.prototype.getGroupID = function() {
  3496.         return this.GroupID;
  3497.     };
  3498.     QSNAGS.prototype.getGroupInits = function() {
  3499.         return this.GroupInits;
  3500.     };
  3501.     QSNAGS.prototype.getDateClosed = function() {
  3502.         return this.DateClosed;
  3503.     };
  3504.     QSNAGS.prototype.getBigPhoto = function() {
  3505.          if (this.BigPhoto == null) {
  3506.             result = db.getConnection().execute('select BigPhoto from QSNAGS where ');
  3507.             this.BigPhoto = result.field(0);
  3508.          }
  3509.         return this.BigPhoto;
  3510.     };
  3511.     QSNAGS.prototype.getSCID = function() {
  3512.         return this.SCID;
  3513.     };
  3514.     QSNAGS.prototype.getLat = function() {
  3515.         return this.Lat;
  3516.     };
  3517.     QSNAGS.prototype.getLng = function() {
  3518.         return this.Lng;
  3519.     };
  3520.     QSNAGS.prototype.getOwner = function() {
  3521.         return this.Owner;
  3522.     };
  3523.     QSNAGS.prototype.getSDCode = function() {
  3524.         return this.SDCode;
  3525.     };
  3526.     QSNAGS.prototype.getSDID = function() {
  3527.         return this.SDID;
  3528.     };
  3529.     QSNAGS.prototype.getPlotID = function() {
  3530.         return this.PlotID;
  3531.     };
  3532.     QSNAGS.prototype.getTradeCode = function() {
  3533.         return this.TradeCode;
  3534.     };
  3535.     QSNAGS.prototype.getMPGUID = function() {
  3536.         return this.MPGUID;
  3537.     };
  3538.     QSNAGS.prototype.getFixStatus = function() {
  3539.         return this.FixStatus;
  3540.     };
  3541.     QSNAGS.prototype.toString = function() {
  3542.         var retVal = "";
  3543.         retVal += "[SnagID][" + this.SnagID + "]";
  3544.         retVal += "[DrwgID][" + this.DrwgID + "]";
  3545.         retVal += "[Status][" + this.Status + "]";
  3546.         retVal += "[ShortDescrip][" + this.ShortDescrip + "]";
  3547.         retVal += "[Location][" + this.Location + "]";
  3548.         retVal += "[Xcoord][" + this.Xcoord + "]";
  3549.         retVal += "[YCoord][" + this.YCoord + "]";
  3550.         retVal += "[Priority][" + this.Priority + "]";
  3551.         retVal += "[Datestamp][" + this.Datestamp + "]";
  3552.         retVal += "[DrwgLink][" + this.DrwgLink + "]";
  3553.         retVal += "[Photo][" + this.Photo + "]";
  3554.         retVal += "[DoBy][" + this.DoBy + "]";
  3555.         retVal += "[PPCGUID][" + this.PPCGUID + "]";
  3556.         retVal += "[GroupID][" + this.GroupID + "]";
  3557.         retVal += "[GroupInits][" + this.GroupInits + "]";
  3558.         retVal += "[DateClosed][" + this.DateClosed + "]";
  3559.         retVal += "[BigPhoto][" + this.BigPhoto + "]";
  3560.         retVal += "[SCID][" + this.SCID + "]";
  3561.         retVal += "[Lat][" + this.Lat + "]";
  3562.         retVal += "[Lng][" + this.Lng + "]";
  3563.         retVal += "[Owner][" + this.Owner + "]";
  3564.         retVal += "[SDCode][" + this.SDCode + "]";
  3565.         retVal += "[SDID][" + this.SDID + "]";
  3566.         retVal += "[PlotID][" + this.PlotID + "]";
  3567.         retVal += "[TradeCode][" + this.TradeCode + "]";
  3568.         retVal += "[MPGUID][" + this.MPGUID + "]";
  3569.         retVal += "[FixStatus][" + this.FixStatus + "]";
  3570.         return retVal;
  3571.     };
  3572. var QSNAGSDAO = function(){
  3573. };
  3574. QSNAGSDAO.doresultset = function(resultset) {
  3575.         var resultarray = new Array(resultset.rowCount);
  3576.         for (var i = 0; i < resultset.rowCount; i++){
  3577.             var result = new QSNAGS();
  3578.             this.loadFromResultset(result, resultset);
  3579.             resultset.next();
  3580.             resultarray[i] = result;
  3581.         }
  3582.         return resultarray;
  3583.     };
  3584. QSNAGSDAO.loadFromResultset = function(object, resultset) {
  3585.         Titanium.API.info("loading QSNAGS...");
  3586.         object.SnagID = resultset.fieldByName('SnagID');
  3587.         object.DrwgID = resultset.fieldByName('DrwgID');
  3588.         object.Status = resultset.fieldByName('Status');
  3589.         object.ShortDescrip = resultset.fieldByName('ShortDescrip');
  3590.         object.Location = resultset.fieldByName('Location');
  3591.         object.Xcoord = resultset.fieldByName('Xcoord');
  3592.         object.YCoord = resultset.fieldByName('YCoord');
  3593.         object.Priority = resultset.fieldByName('Priority');
  3594.         object.Datestamp = resultset.fieldByName('Datestamp');
  3595.         object.DrwgLink = resultset.fieldByName('DrwgLink');
  3596.         object.DoBy = resultset.fieldByName('DoBy');
  3597.         object.PPCGUID = resultset.fieldByName('PPCGUID');
  3598.         object.GroupID = resultset.fieldByName('GroupID');
  3599.         object.GroupInits = resultset.fieldByName('GroupInits');
  3600.         object.DateClosed = resultset.fieldByName('DateClosed');
  3601.         object.SCID = resultset.fieldByName('SCID');
  3602.         object.Lat = resultset.fieldByName('Lat');
  3603.         object.Lng = resultset.fieldByName('Lng');
  3604.         object.Owner = resultset.fieldByName('Owner');
  3605.         object.SDCode = resultset.fieldByName('SDCode');
  3606.         object.SDID = resultset.fieldByName('SDID');
  3607.         object.PlotID = resultset.fieldByName('PlotID');
  3608.         object.TradeCode = resultset.fieldByName('TradeCode');
  3609.         object.MPGUID = resultset.fieldByName('MPGUID');
  3610.         object.FixStatus = resultset.fieldByName('FixStatus');
  3611.     };
  3612. QSNAGSDAO.getUsingSnagID = function(SnagID) {
  3613.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where SnagID = ? ',SnagID);
  3614.         var resultarray = this.doresultset(resultset);
  3615.         resultset.close();
  3616.         return resultarray;
  3617.     };
  3618. QSNAGSDAO.getUsingDrwgID = function(DrwgID) {
  3619.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where DrwgID = ? ',DrwgID);
  3620.         var resultarray = this.doresultset(resultset);
  3621.         resultset.close();
  3622.         return resultarray;
  3623.     };
  3624. QSNAGSDAO.getUsingStatus = function(Status) {
  3625.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where Status = ? ',Status);
  3626.         var resultarray = this.doresultset(resultset);
  3627.         resultset.close();
  3628.         return resultarray;
  3629.     };
  3630. QSNAGSDAO.getUsingShortDescrip = function(ShortDescrip) {
  3631.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where ShortDescrip = ? ',ShortDescrip);
  3632.         var resultarray = this.doresultset(resultset);
  3633.         resultset.close();
  3634.         return resultarray;
  3635.     };
  3636. QSNAGSDAO.getUsingLocation = function(Location) {
  3637.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where Location = ? ',Location);
  3638.         var resultarray = this.doresultset(resultset);
  3639.         resultset.close();
  3640.         return resultarray;
  3641.     };
  3642. QSNAGSDAO.getUsingXcoord = function(Xcoord) {
  3643.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where Xcoord = ? ',Xcoord);
  3644.         var resultarray = this.doresultset(resultset);
  3645.         resultset.close();
  3646.         return resultarray;
  3647.     };
  3648. QSNAGSDAO.getUsingYCoord = function(YCoord) {
  3649.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where YCoord = ? ',YCoord);
  3650.         var resultarray = this.doresultset(resultset);
  3651.         resultset.close();
  3652.         return resultarray;
  3653.     };
  3654. QSNAGSDAO.getUsingPriority = function(Priority) {
  3655.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where Priority = ? ',Priority);
  3656.         var resultarray = this.doresultset(resultset);
  3657.         resultset.close();
  3658.         return resultarray;
  3659.     };
  3660. QSNAGSDAO.getUsingDatestamp = function(Datestamp) {
  3661.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where Datestamp = ? ',Datestamp);
  3662.         var resultarray = this.doresultset(resultset);
  3663.         resultset.close();
  3664.         return resultarray;
  3665.     };
  3666. QSNAGSDAO.getUsingDrwgLink = function(DrwgLink) {
  3667.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where DrwgLink = ? ',DrwgLink);
  3668.         var resultarray = this.doresultset(resultset);
  3669.         resultset.close();
  3670.         return resultarray;
  3671.     };
  3672. QSNAGSDAO.getUsingPhoto = function(Photo) {
  3673.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where Photo = ? ',Photo);
  3674.         var resultarray = this.doresultset(resultset);
  3675.         resultset.close();
  3676.         return resultarray;
  3677.     };
  3678. QSNAGSDAO.getUsingDoBy = function(DoBy) {
  3679.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where DoBy = ? ',DoBy);
  3680.         var resultarray = this.doresultset(resultset);
  3681.         resultset.close();
  3682.         return resultarray;
  3683.     };
  3684. QSNAGSDAO.getUsingPPCGUID = function(PPCGUID) {
  3685.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where PPCGUID = ? ',PPCGUID);
  3686.         var resultarray = this.doresultset(resultset);
  3687.         resultset.close();
  3688.         return resultarray;
  3689.     };
  3690. QSNAGSDAO.getUsingGroupID = function(GroupID) {
  3691.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where GroupID = ? ',GroupID);
  3692.         var resultarray = this.doresultset(resultset);
  3693.         resultset.close();
  3694.         return resultarray;
  3695.     };
  3696. QSNAGSDAO.getUsingGroupInits = function(GroupInits) {
  3697.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where GroupInits = ? ',GroupInits);
  3698.         var resultarray = this.doresultset(resultset);
  3699.         resultset.close();
  3700.         return resultarray;
  3701.     };
  3702. QSNAGSDAO.getUsingDateClosed = function(DateClosed) {
  3703.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where DateClosed = ? ',DateClosed);
  3704.         var resultarray = this.doresultset(resultset);
  3705.         resultset.close();
  3706.         return resultarray;
  3707.     };
  3708. QSNAGSDAO.getUsingBigPhoto = function(BigPhoto) {
  3709.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where BigPhoto = ? ',BigPhoto);
  3710.         var resultarray = this.doresultset(resultset);
  3711.         resultset.close();
  3712.         return resultarray;
  3713.     };
  3714. QSNAGSDAO.getUsingSCID = function(SCID) {
  3715.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where SCID = ? ',SCID);
  3716.         var resultarray = this.doresultset(resultset);
  3717.         resultset.close();
  3718.         return resultarray;
  3719.     };
  3720. QSNAGSDAO.getUsingLat = function(Lat) {
  3721.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where Lat = ? ',Lat);
  3722.         var resultarray = this.doresultset(resultset);
  3723.         resultset.close();
  3724.         return resultarray;
  3725.     };
  3726. QSNAGSDAO.getUsingLng = function(Lng) {
  3727.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where Lng = ? ',Lng);
  3728.         var resultarray = this.doresultset(resultset);
  3729.         resultset.close();
  3730.         return resultarray;
  3731.     };
  3732. QSNAGSDAO.getUsingOwner = function(Owner) {
  3733.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where Owner = ? ',Owner);
  3734.         var resultarray = this.doresultset(resultset);
  3735.         resultset.close();
  3736.         return resultarray;
  3737.     };
  3738. QSNAGSDAO.getUsingSDCode = function(SDCode) {
  3739.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where SDCode = ? ',SDCode);
  3740.         var resultarray = this.doresultset(resultset);
  3741.         resultset.close();
  3742.         return resultarray;
  3743.     };
  3744. QSNAGSDAO.getUsingSDID = function(SDID) {
  3745.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where SDID = ? ',SDID);
  3746.         var resultarray = this.doresultset(resultset);
  3747.         resultset.close();
  3748.         return resultarray;
  3749.     };
  3750. QSNAGSDAO.getUsingPlotID = function(PlotID) {
  3751.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where PlotID = ? ',PlotID);
  3752.         var resultarray = this.doresultset(resultset);
  3753.         resultset.close();
  3754.         return resultarray;
  3755.     };
  3756. QSNAGSDAO.getUsingTradeCode = function(TradeCode) {
  3757.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where TradeCode = ? ',TradeCode);
  3758.         var resultarray = this.doresultset(resultset);
  3759.         resultset.close();
  3760.         return resultarray;
  3761.     };
  3762. QSNAGSDAO.getUsingMPGUID = function(MPGUID) {
  3763.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where MPGUID = ? ',MPGUID);
  3764.         var resultarray = this.doresultset(resultset);
  3765.         resultset.close();
  3766.         return resultarray;
  3767.     };
  3768. QSNAGSDAO.getUsingFixStatus = function(FixStatus) {
  3769.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where FixStatus = ? ',FixStatus);
  3770.         var resultarray = this.doresultset(resultset);
  3771.         resultset.close();
  3772.         return resultarray;
  3773.     };
  3774. QSNAGSDAO.getall = function() {
  3775.         var resultset =  db.getConnection().execute('select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS');
  3776.         var resultarray = this.doresultset(resultset);
  3777.         resultset.close();
  3778.         return resultarray;
  3779.     };
  3780. QSNAGSDAO.getUsing = function(where) {
  3781.         sqlstring = 'select SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGS where ' + where;
  3782.         var resultset =  db.getConnection().execute(sqlstring);
  3783.         var resultarray = this.doresultset(resultset);
  3784.         resultset.close();
  3785.         return resultarray;
  3786.     };
  3787. function QSNAGSUG(){
  3788.     var Role = null;
  3789.     var UserID = null;
  3790.     var SnagID = null;
  3791.     var DrwgID = null;
  3792.     var Status = null;
  3793.     var ShortDescrip = null;
  3794.     var Location = null;
  3795.     var Xcoord = null;
  3796.     var YCoord = null;
  3797.     var Priority = null;
  3798.     var Datestamp = null;
  3799.     var DrwgLink = null;
  3800.     var Photo = null;
  3801.     var DoBy = null;
  3802.     var PPCGUID = null;
  3803.     var GroupID = null;
  3804.     var GroupInits = null;
  3805.     var DateClosed = null;
  3806.     var BigPhoto = null;
  3807.     var SCID = null;
  3808.     var Lat = null;
  3809.     var Lng = null;
  3810.     var Owner = null;
  3811.     var SDCode = null;
  3812.     var SDID = null;
  3813.     var PlotID = null;
  3814.     var TradeCode = null;
  3815.     var MPGUID = null;
  3816.     var FixStatus = null;
  3817.  var selectNoBlob = 'Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus';
  3818. };
  3819.     QSNAGSUG.prototype.getRole = function() {
  3820.         return this.Role;
  3821.     };
  3822.     QSNAGSUG.prototype.getUserID = function() {
  3823.         return this.UserID;
  3824.     };
  3825.     QSNAGSUG.prototype.getSnagID = function() {
  3826.         return this.SnagID;
  3827.     };
  3828.     QSNAGSUG.prototype.getDrwgID = function() {
  3829.         return this.DrwgID;
  3830.     };
  3831.     QSNAGSUG.prototype.getStatus = function() {
  3832.         return this.Status;
  3833.     };
  3834.     QSNAGSUG.prototype.getShortDescrip = function() {
  3835.         return this.ShortDescrip;
  3836.     };
  3837.     QSNAGSUG.prototype.getLocation = function() {
  3838.         return this.Location;
  3839.     };
  3840.     QSNAGSUG.prototype.getXcoord = function() {
  3841.         return this.Xcoord;
  3842.     };
  3843.     QSNAGSUG.prototype.getYCoord = function() {
  3844.         return this.YCoord;
  3845.     };
  3846.     QSNAGSUG.prototype.getPriority = function() {
  3847.         return this.Priority;
  3848.     };
  3849.     QSNAGSUG.prototype.getDatestamp = function() {
  3850.         return this.Datestamp;
  3851.     };
  3852.     QSNAGSUG.prototype.getDrwgLink = function() {
  3853.         return this.DrwgLink;
  3854.     };
  3855.     QSNAGSUG.prototype.getPhoto = function() {
  3856.          if (this.Photo == null) {
  3857.             result = db.getConnection().execute('select Photo from QSNAGSUG where ');
  3858.             this.Photo = result.field(0);
  3859.          }
  3860.         return this.Photo;
  3861.     };
  3862.     QSNAGSUG.prototype.getDoBy = function() {
  3863.         return this.DoBy;
  3864.     };
  3865.     QSNAGSUG.prototype.getPPCGUID = function() {
  3866.         return this.PPCGUID;
  3867.     };
  3868.     QSNAGSUG.prototype.getGroupID = function() {
  3869.         return this.GroupID;
  3870.     };
  3871.     QSNAGSUG.prototype.getGroupInits = function() {
  3872.         return this.GroupInits;
  3873.     };
  3874.     QSNAGSUG.prototype.getDateClosed = function() {
  3875.         return this.DateClosed;
  3876.     };
  3877.     QSNAGSUG.prototype.getBigPhoto = function() {
  3878.          if (this.BigPhoto == null) {
  3879.             result = db.getConnection().execute('select BigPhoto from QSNAGSUG where ');
  3880.             this.BigPhoto = result.field(0);
  3881.          }
  3882.         return this.BigPhoto;
  3883.     };
  3884.     QSNAGSUG.prototype.getSCID = function() {
  3885.         return this.SCID;
  3886.     };
  3887.     QSNAGSUG.prototype.getLat = function() {
  3888.         return this.Lat;
  3889.     };
  3890.     QSNAGSUG.prototype.getLng = function() {
  3891.         return this.Lng;
  3892.     };
  3893.     QSNAGSUG.prototype.getOwner = function() {
  3894.         return this.Owner;
  3895.     };
  3896.     QSNAGSUG.prototype.getSDCode = function() {
  3897.         return this.SDCode;
  3898.     };
  3899.     QSNAGSUG.prototype.getSDID = function() {
  3900.         return this.SDID;
  3901.     };
  3902.     QSNAGSUG.prototype.getPlotID = function() {
  3903.         return this.PlotID;
  3904.     };
  3905.     QSNAGSUG.prototype.getTradeCode = function() {
  3906.         return this.TradeCode;
  3907.     };
  3908.     QSNAGSUG.prototype.getMPGUID = function() {
  3909.         return this.MPGUID;
  3910.     };
  3911.     QSNAGSUG.prototype.getFixStatus = function() {
  3912.         return this.FixStatus;
  3913.     };
  3914.     QSNAGSUG.prototype.toString = function() {
  3915.         var retVal = "";
  3916.         retVal += "[Role][" + this.Role + "]";
  3917.         retVal += "[UserID][" + this.UserID + "]";
  3918.         retVal += "[SnagID][" + this.SnagID + "]";
  3919.         retVal += "[DrwgID][" + this.DrwgID + "]";
  3920.         retVal += "[Status][" + this.Status + "]";
  3921.         retVal += "[ShortDescrip][" + this.ShortDescrip + "]";
  3922.         retVal += "[Location][" + this.Location + "]";
  3923.         retVal += "[Xcoord][" + this.Xcoord + "]";
  3924.         retVal += "[YCoord][" + this.YCoord + "]";
  3925.         retVal += "[Priority][" + this.Priority + "]";
  3926.         retVal += "[Datestamp][" + this.Datestamp + "]";
  3927.         retVal += "[DrwgLink][" + this.DrwgLink + "]";
  3928.         retVal += "[Photo][" + this.Photo + "]";
  3929.         retVal += "[DoBy][" + this.DoBy + "]";
  3930.         retVal += "[PPCGUID][" + this.PPCGUID + "]";
  3931.         retVal += "[GroupID][" + this.GroupID + "]";
  3932.         retVal += "[GroupInits][" + this.GroupInits + "]";
  3933.         retVal += "[DateClosed][" + this.DateClosed + "]";
  3934.         retVal += "[BigPhoto][" + this.BigPhoto + "]";
  3935.         retVal += "[SCID][" + this.SCID + "]";
  3936.         retVal += "[Lat][" + this.Lat + "]";
  3937.         retVal += "[Lng][" + this.Lng + "]";
  3938.         retVal += "[Owner][" + this.Owner + "]";
  3939.         retVal += "[SDCode][" + this.SDCode + "]";
  3940.         retVal += "[SDID][" + this.SDID + "]";
  3941.         retVal += "[PlotID][" + this.PlotID + "]";
  3942.         retVal += "[TradeCode][" + this.TradeCode + "]";
  3943.         retVal += "[MPGUID][" + this.MPGUID + "]";
  3944.         retVal += "[FixStatus][" + this.FixStatus + "]";
  3945.         return retVal;
  3946.     };
  3947. var QSNAGSUGDAO = function(){
  3948. };
  3949. QSNAGSUGDAO.doresultset = function(resultset) {
  3950.         var resultarray = new Array(resultset.rowCount);
  3951.         for (var i = 0; i < resultset.rowCount; i++){
  3952.             var result = new QSNAGSUG();
  3953.             this.loadFromResultset(result, resultset);
  3954.             resultset.next();
  3955.             resultarray[i] = result;
  3956.         }
  3957.         return resultarray;
  3958.     };
  3959. QSNAGSUGDAO.loadFromResultset = function(object, resultset) {
  3960.         Titanium.API.info("loading QSNAGSUG...");
  3961.         object.Role = resultset.fieldByName('Role');
  3962.         object.UserID = resultset.fieldByName('UserID');
  3963.         object.SnagID = resultset.fieldByName('SnagID');
  3964.         object.DrwgID = resultset.fieldByName('DrwgID');
  3965.         object.Status = resultset.fieldByName('Status');
  3966.         object.ShortDescrip = resultset.fieldByName('ShortDescrip');
  3967.         object.Location = resultset.fieldByName('Location');
  3968.         object.Xcoord = resultset.fieldByName('Xcoord');
  3969.         object.YCoord = resultset.fieldByName('YCoord');
  3970.         object.Priority = resultset.fieldByName('Priority');
  3971.         object.Datestamp = resultset.fieldByName('Datestamp');
  3972.         object.DrwgLink = resultset.fieldByName('DrwgLink');
  3973.         object.DoBy = resultset.fieldByName('DoBy');
  3974.         object.PPCGUID = resultset.fieldByName('PPCGUID');
  3975.         object.GroupID = resultset.fieldByName('GroupID');
  3976.         object.GroupInits = resultset.fieldByName('GroupInits');
  3977.         object.DateClosed = resultset.fieldByName('DateClosed');
  3978.         object.SCID = resultset.fieldByName('SCID');
  3979.         object.Lat = resultset.fieldByName('Lat');
  3980.         object.Lng = resultset.fieldByName('Lng');
  3981.         object.Owner = resultset.fieldByName('Owner');
  3982.         object.SDCode = resultset.fieldByName('SDCode');
  3983.         object.SDID = resultset.fieldByName('SDID');
  3984.         object.PlotID = resultset.fieldByName('PlotID');
  3985.         object.TradeCode = resultset.fieldByName('TradeCode');
  3986.         object.MPGUID = resultset.fieldByName('MPGUID');
  3987.         object.FixStatus = resultset.fieldByName('FixStatus');
  3988.     };
  3989. QSNAGSUGDAO.getUsingRole = function(Role) {
  3990.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where Role = ? ',Role);
  3991.         var resultarray = this.doresultset(resultset);
  3992.         resultset.close();
  3993.         return resultarray;
  3994.     };
  3995. QSNAGSUGDAO.getUsingUserID = function(UserID) {
  3996.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where UserID = ? ',UserID);
  3997.         var resultarray = this.doresultset(resultset);
  3998.         resultset.close();
  3999.         return resultarray;
  4000.     };
  4001. QSNAGSUGDAO.getUsingSnagID = function(SnagID) {
  4002.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where SnagID = ? ',SnagID);
  4003.         var resultarray = this.doresultset(resultset);
  4004.         resultset.close();
  4005.         return resultarray;
  4006.     };
  4007. QSNAGSUGDAO.getUsingDrwgID = function(DrwgID) {
  4008.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where DrwgID = ? ',DrwgID);
  4009.         var resultarray = this.doresultset(resultset);
  4010.         resultset.close();
  4011.         return resultarray;
  4012.     };
  4013. QSNAGSUGDAO.getUsingStatus = function(Status) {
  4014.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where Status = ? ',Status);
  4015.         var resultarray = this.doresultset(resultset);
  4016.         resultset.close();
  4017.         return resultarray;
  4018.     };
  4019. QSNAGSUGDAO.getUsingShortDescrip = function(ShortDescrip) {
  4020.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where ShortDescrip = ? ',ShortDescrip);
  4021.         var resultarray = this.doresultset(resultset);
  4022.         resultset.close();
  4023.         return resultarray;
  4024.     };
  4025. QSNAGSUGDAO.getUsingLocation = function(Location) {
  4026.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where Location = ? ',Location);
  4027.         var resultarray = this.doresultset(resultset);
  4028.         resultset.close();
  4029.         return resultarray;
  4030.     };
  4031. QSNAGSUGDAO.getUsingXcoord = function(Xcoord) {
  4032.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where Xcoord = ? ',Xcoord);
  4033.         var resultarray = this.doresultset(resultset);
  4034.         resultset.close();
  4035.         return resultarray;
  4036.     };
  4037. QSNAGSUGDAO.getUsingYCoord = function(YCoord) {
  4038.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where YCoord = ? ',YCoord);
  4039.         var resultarray = this.doresultset(resultset);
  4040.         resultset.close();
  4041.         return resultarray;
  4042.     };
  4043. QSNAGSUGDAO.getUsingPriority = function(Priority) {
  4044.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where Priority = ? ',Priority);
  4045.         var resultarray = this.doresultset(resultset);
  4046.         resultset.close();
  4047.         return resultarray;
  4048.     };
  4049. QSNAGSUGDAO.getUsingDatestamp = function(Datestamp) {
  4050.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where Datestamp = ? ',Datestamp);
  4051.         var resultarray = this.doresultset(resultset);
  4052.         resultset.close();
  4053.         return resultarray;
  4054.     };
  4055. QSNAGSUGDAO.getUsingDrwgLink = function(DrwgLink) {
  4056.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where DrwgLink = ? ',DrwgLink);
  4057.         var resultarray = this.doresultset(resultset);
  4058.         resultset.close();
  4059.         return resultarray;
  4060.     };
  4061. QSNAGSUGDAO.getUsingPhoto = function(Photo) {
  4062.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where Photo = ? ',Photo);
  4063.         var resultarray = this.doresultset(resultset);
  4064.         resultset.close();
  4065.         return resultarray;
  4066.     };
  4067. QSNAGSUGDAO.getUsingDoBy = function(DoBy) {
  4068.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where DoBy = ? ',DoBy);
  4069.         var resultarray = this.doresultset(resultset);
  4070.         resultset.close();
  4071.         return resultarray;
  4072.     };
  4073. QSNAGSUGDAO.getUsingPPCGUID = function(PPCGUID) {
  4074.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where PPCGUID = ? ',PPCGUID);
  4075.         var resultarray = this.doresultset(resultset);
  4076.         resultset.close();
  4077.         return resultarray;
  4078.     };
  4079. QSNAGSUGDAO.getUsingGroupID = function(GroupID) {
  4080.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where GroupID = ? ',GroupID);
  4081.         var resultarray = this.doresultset(resultset);
  4082.         resultset.close();
  4083.         return resultarray;
  4084.     };
  4085. QSNAGSUGDAO.getUsingGroupInits = function(GroupInits) {
  4086.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where GroupInits = ? ',GroupInits);
  4087.         var resultarray = this.doresultset(resultset);
  4088.         resultset.close();
  4089.         return resultarray;
  4090.     };
  4091. QSNAGSUGDAO.getUsingDateClosed = function(DateClosed) {
  4092.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where DateClosed = ? ',DateClosed);
  4093.         var resultarray = this.doresultset(resultset);
  4094.         resultset.close();
  4095.         return resultarray;
  4096.     };
  4097. QSNAGSUGDAO.getUsingBigPhoto = function(BigPhoto) {
  4098.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where BigPhoto = ? ',BigPhoto);
  4099.         var resultarray = this.doresultset(resultset);
  4100.         resultset.close();
  4101.         return resultarray;
  4102.     };
  4103. QSNAGSUGDAO.getUsingSCID = function(SCID) {
  4104.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where SCID = ? ',SCID);
  4105.         var resultarray = this.doresultset(resultset);
  4106.         resultset.close();
  4107.         return resultarray;
  4108.     };
  4109. QSNAGSUGDAO.getUsingLat = function(Lat) {
  4110.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where Lat = ? ',Lat);
  4111.         var resultarray = this.doresultset(resultset);
  4112.         resultset.close();
  4113.         return resultarray;
  4114.     };
  4115. QSNAGSUGDAO.getUsingLng = function(Lng) {
  4116.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where Lng = ? ',Lng);
  4117.         var resultarray = this.doresultset(resultset);
  4118.         resultset.close();
  4119.         return resultarray;
  4120.     };
  4121. QSNAGSUGDAO.getUsingOwner = function(Owner) {
  4122.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where Owner = ? ',Owner);
  4123.         var resultarray = this.doresultset(resultset);
  4124.         resultset.close();
  4125.         return resultarray;
  4126.     };
  4127. QSNAGSUGDAO.getUsingSDCode = function(SDCode) {
  4128.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where SDCode = ? ',SDCode);
  4129.         var resultarray = this.doresultset(resultset);
  4130.         resultset.close();
  4131.         return resultarray;
  4132.     };
  4133. QSNAGSUGDAO.getUsingSDID = function(SDID) {
  4134.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where SDID = ? ',SDID);
  4135.         var resultarray = this.doresultset(resultset);
  4136.         resultset.close();
  4137.         return resultarray;
  4138.     };
  4139. QSNAGSUGDAO.getUsingPlotID = function(PlotID) {
  4140.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where PlotID = ? ',PlotID);
  4141.         var resultarray = this.doresultset(resultset);
  4142.         resultset.close();
  4143.         return resultarray;
  4144.     };
  4145. QSNAGSUGDAO.getUsingTradeCode = function(TradeCode) {
  4146.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where TradeCode = ? ',TradeCode);
  4147.         var resultarray = this.doresultset(resultset);
  4148.         resultset.close();
  4149.         return resultarray;
  4150.     };
  4151. QSNAGSUGDAO.getUsingMPGUID = function(MPGUID) {
  4152.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where MPGUID = ? ',MPGUID);
  4153.         var resultarray = this.doresultset(resultset);
  4154.         resultset.close();
  4155.         return resultarray;
  4156.     };
  4157. QSNAGSUGDAO.getUsingFixStatus = function(FixStatus) {
  4158.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where FixStatus = ? ',FixStatus);
  4159.         var resultarray = this.doresultset(resultset);
  4160.         resultset.close();
  4161.         return resultarray;
  4162.     };
  4163. QSNAGSUGDAO.getall = function() {
  4164.         var resultset =  db.getConnection().execute('select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG');
  4165.         var resultarray = this.doresultset(resultset);
  4166.         resultset.close();
  4167.         return resultarray;
  4168.     };
  4169. QSNAGSUGDAO.getUsing = function(where) {
  4170.         sqlstring = 'select Role,UserID,SnagID,DrwgID,Status,ShortDescrip,Location,Xcoord,YCoord,Priority,Datestamp,DrwgLink,DoBy,PPCGUID,GroupID,GroupInits,DateClosed,SCID,Lat,Lng,Owner,SDCode,SDID,PlotID,TradeCode,MPGUID,FixStatus from QSNAGSUG where ' + where;
  4171.         var resultset =  db.getConnection().execute(sqlstring);
  4172.         var resultarray = this.doresultset(resultset);
  4173.         resultset.close();
  4174.         return resultarray;
  4175.     };
  4176. function QUSERSNAGS(){
  4177.     var UserID = null;
  4178.     var GroupID = null;
  4179.     var SnagID = null;
  4180.     var DrwgID = null;
  4181.     var Owner = null;
  4182.     var DrwgTitle = null;
  4183.     var Groupname = null;
  4184.  var selectNoBlob = 'UserID,GroupID,SnagID,DrwgID,Owner,DrwgTitle,Groupname';
  4185. };
  4186.     QUSERSNAGS.prototype.getUserID = function() {
  4187.         return this.UserID;
  4188.     };
  4189.     QUSERSNAGS.prototype.getGroupID = function() {
  4190.         return this.GroupID;
  4191.     };
  4192.     QUSERSNAGS.prototype.getSnagID = function() {
  4193.         return this.SnagID;
  4194.     };
  4195.     QUSERSNAGS.prototype.getDrwgID = function() {
  4196.         return this.DrwgID;
  4197.     };
  4198.     QUSERSNAGS.prototype.getOwner = function() {
  4199.         return this.Owner;
  4200.     };
  4201.     QUSERSNAGS.prototype.getDrwgTitle = function() {
  4202.         return this.DrwgTitle;
  4203.     };
  4204.     QUSERSNAGS.prototype.getGroupname = function() {
  4205.         return this.Groupname;
  4206.     };
  4207.     QUSERSNAGS.prototype.toString = function() {
  4208.         var retVal = "";
  4209.         retVal += "[UserID][" + this.UserID + "]";
  4210.         retVal += "[GroupID][" + this.GroupID + "]";
  4211.         retVal += "[SnagID][" + this.SnagID + "]";
  4212.         retVal += "[DrwgID][" + this.DrwgID + "]";
  4213.         retVal += "[Owner][" + this.Owner + "]";
  4214.         retVal += "[DrwgTitle][" + this.DrwgTitle + "]";
  4215.         retVal += "[Groupname][" + this.Groupname + "]";
  4216.         return retVal;
  4217.     };
  4218. var QUSERSNAGSDAO = function(){
  4219. };
  4220. QUSERSNAGSDAO.doresultset = function(resultset) {
  4221.         var resultarray = new Array(resultset.rowCount);
  4222.         for (var i = 0; i < resultset.rowCount; i++){
  4223.             var result = new QUSERSNAGS();
  4224.             this.loadFromResultset(result, resultset);
  4225.             resultset.next();
  4226.             resultarray[i] = result;
  4227.         }
  4228.         return resultarray;
  4229.     };
  4230. QUSERSNAGSDAO.loadFromResultset = function(object, resultset) {
  4231.         Titanium.API.info("loading QUSERSNAGS...");
  4232.         object.UserID = resultset.fieldByName('UserID');
  4233.         object.GroupID = resultset.fieldByName('GroupID');
  4234.         object.SnagID = resultset.fieldByName('SnagID');
  4235.         object.DrwgID = resultset.fieldByName('DrwgID');
  4236.         object.Owner = resultset.fieldByName('Owner');
  4237.         object.DrwgTitle = resultset.fieldByName('DrwgTitle');
  4238.         object.Groupname = resultset.fieldByName('Groupname');
  4239.     };
  4240. QUSERSNAGSDAO.getUsingUserID = function(UserID) {
  4241.         var resultset =  db.getConnection().execute('select UserID,GroupID,SnagID,DrwgID,Owner,DrwgTitle,Groupname from QUSERSNAGS where UserID = ? ',UserID);
  4242.         var resultarray = this.doresultset(resultset);
  4243.         resultset.close();
  4244.         return resultarray;
  4245.     };
  4246. QUSERSNAGSDAO.getUsingGroupID = function(GroupID) {
  4247.         var resultset =  db.getConnection().execute('select UserID,GroupID,SnagID,DrwgID,Owner,DrwgTitle,Groupname from QUSERSNAGS where GroupID = ? ',GroupID);
  4248.         var resultarray = this.doresultset(resultset);
  4249.         resultset.close();
  4250.         return resultarray;
  4251.     };
  4252. QUSERSNAGSDAO.getUsingSnagID = function(SnagID) {
  4253.         var resultset =  db.getConnection().execute('select UserID,GroupID,SnagID,DrwgID,Owner,DrwgTitle,Groupname from QUSERSNAGS where SnagID = ? ',SnagID);
  4254.         var resultarray = this.doresultset(resultset);
  4255.         resultset.close();
  4256.         return resultarray;
  4257.     };
  4258. QUSERSNAGSDAO.getUsingDrwgID = function(DrwgID) {
  4259.         var resultset =  db.getConnection().execute('select UserID,GroupID,SnagID,DrwgID,Owner,DrwgTitle,Groupname from QUSERSNAGS where DrwgID = ? ',DrwgID);
  4260.         var resultarray = this.doresultset(resultset);
  4261.         resultset.close();
  4262.         return resultarray;
  4263.     };
  4264. QUSERSNAGSDAO.getUsingOwner = function(Owner) {
  4265.         var resultset =  db.getConnection().execute('select UserID,GroupID,SnagID,DrwgID,Owner,DrwgTitle,Groupname from QUSERSNAGS where Owner = ? ',Owner);
  4266.         var resultarray = this.doresultset(resultset);
  4267.         resultset.close();
  4268.         return resultarray;
  4269.     };
  4270. QUSERSNAGSDAO.getUsingDrwgTitle = function(DrwgTitle) {
  4271.         var resultset =  db.getConnection().execute('select UserID,GroupID,SnagID,DrwgID,Owner,DrwgTitle,Groupname from QUSERSNAGS where DrwgTitle = ? ',DrwgTitle);
  4272.         var resultarray = this.doresultset(resultset);
  4273.         resultset.close();
  4274.         return resultarray;
  4275.     };
  4276. QUSERSNAGSDAO.getUsingGroupname = function(Groupname) {
  4277.         var resultset =  db.getConnection().execute('select UserID,GroupID,SnagID,DrwgID,Owner,DrwgTitle,Groupname from QUSERSNAGS where Groupname = ? ',Groupname);
  4278.         var resultarray = this.doresultset(resultset);
  4279.         resultset.close();
  4280.         return resultarray;
  4281.     };
  4282. QUSERSNAGSDAO.getall = function() {
  4283.         var resultset =  db.getConnection().execute('select UserID,GroupID,SnagID,DrwgID,Owner,DrwgTitle,Groupname from QUSERSNAGS');
  4284.         var resultarray = this.doresultset(resultset);
  4285.         resultset.close();
  4286.         return resultarray;
  4287.     };
  4288. QUSERSNAGSDAO.getUsing = function(where) {
  4289.         sqlstring = 'select UserID,GroupID,SnagID,DrwgID,Owner,DrwgTitle,Groupname from QUSERSNAGS where ' + where;
  4290.         var resultset =  db.getConnection().execute(sqlstring);
  4291.         var resultarray = this.doresultset(resultset);
  4292.         resultset.close();
  4293.         return resultarray;
  4294.     };
  4295. function QGROUPSBYTRADE(){
  4296.     var TradeCode = null;
  4297.     var TradeDescrip = null;
  4298.     var GroupID = null;
  4299.     var Groupname = null;
  4300.     var GroupInits = null;
  4301.     var Email = null;
  4302.     var Email2 = null;
  4303.     var Email3 = null;
  4304.     var CanBeEmailed = null;
  4305.     var Current = null;
  4306.     var Culture = null;
  4307.  var selectNoBlob = 'TradeCode,TradeDescrip,GroupID,Groupname,GroupInits,Email,Email2,Email3,CanBeEmailed,Current,Culture';
  4308. };
  4309.     QGROUPSBYTRADE.prototype.getTradeCode = function() {
  4310.         return this.TradeCode;
  4311.     };
  4312.     QGROUPSBYTRADE.prototype.getTradeDescrip = function() {
  4313.         return this.TradeDescrip;
  4314.     };
  4315.     QGROUPSBYTRADE.prototype.getGroupID = function() {
  4316.         return this.GroupID;
  4317.     };
  4318.     QGROUPSBYTRADE.prototype.getGroupname = function() {
  4319.         return this.Groupname;
  4320.     };
  4321.     QGROUPSBYTRADE.prototype.getGroupInits = function() {
  4322.         return this.GroupInits;
  4323.     };
  4324.     QGROUPSBYTRADE.prototype.getEmail = function() {
  4325.         return this.Email;
  4326.     };
  4327.     QGROUPSBYTRADE.prototype.getEmail2 = function() {
  4328.         return this.Email2;
  4329.     };
  4330.     QGROUPSBYTRADE.prototype.getEmail3 = function() {
  4331.         return this.Email3;
  4332.     };
  4333.     QGROUPSBYTRADE.prototype.getCanBeEmailed = function() {
  4334.         return this.CanBeEmailed;
  4335.     };
  4336.     QGROUPSBYTRADE.prototype.getCurrent = function() {
  4337.         return this.Current;
  4338.     };
  4339.     QGROUPSBYTRADE.prototype.getCulture = function() {
  4340.         return this.Culture;
  4341.     };
  4342.     QGROUPSBYTRADE.prototype.toString = function() {
  4343.         var retVal = "";
  4344.         retVal += "[TradeCode][" + this.TradeCode + "]";
  4345.         retVal += "[TradeDescrip][" + this.TradeDescrip + "]";
  4346.         retVal += "[GroupID][" + this.GroupID + "]";
  4347.         retVal += "[Groupname][" + this.Groupname + "]";
  4348.         retVal += "[GroupInits][" + this.GroupInits + "]";
  4349.         retVal += "[Email][" + this.Email + "]";
  4350.         retVal += "[Email2][" + this.Email2 + "]";
  4351.         retVal += "[Email3][" + this.Email3 + "]";
  4352.         retVal += "[CanBeEmailed][" + this.CanBeEmailed + "]";
  4353.         retVal += "[Current][" + this.Current + "]";
  4354.         retVal += "[Culture][" + this.Culture + "]";
  4355.         return retVal;
  4356.     };
  4357. var QGROUPSBYTRADEDAO = function(){
  4358. };
  4359. QGROUPSBYTRADEDAO.doresultset = function(resultset) {
  4360.         var resultarray = new Array(resultset.rowCount);
  4361.         for (var i = 0; i < resultset.rowCount; i++){
  4362.             var result = new QGROUPSBYTRADE();
  4363.             this.loadFromResultset(result, resultset);
  4364.             resultset.next();
  4365.             resultarray[i] = result;
  4366.         }
  4367.         return resultarray;
  4368.     };
  4369. QGROUPSBYTRADEDAO.loadFromResultset = function(object, resultset) {
  4370.         Titanium.API.info("loading QGROUPSBYTRADE...");
  4371.         object.TradeCode = resultset.fieldByName('TradeCode');
  4372.         object.TradeDescrip = resultset.fieldByName('TradeDescrip');
  4373.         object.GroupID = resultset.fieldByName('GroupID');
  4374.         object.Groupname = resultset.fieldByName('Groupname');
  4375.         object.GroupInits = resultset.fieldByName('GroupInits');
  4376.         object.Email = resultset.fieldByName('Email');
  4377.         object.Email2 = resultset.fieldByName('Email2');
  4378.         object.Email3 = resultset.fieldByName('Email3');
  4379.         object.CanBeEmailed = resultset.fieldByName('CanBeEmailed');
  4380.         object.Current = resultset.fieldByName('Current');
  4381.         object.Culture = resultset.fieldByName('Culture');
  4382.     };
  4383. QGROUPSBYTRADEDAO.getUsingTradeCode = function(TradeCode) {
  4384.         var resultset =  db.getConnection().execute('select TradeCode,TradeDescrip,GroupID,Groupname,GroupInits,Email,Email2,Email3,CanBeEmailed,Current,Culture from QGROUPSBYTRADE where TradeCode = ? ',TradeCode);
  4385.         var resultarray = this.doresultset(resultset);
  4386.         resultset.close();
  4387.         return resultarray;
  4388.     };
  4389. QGROUPSBYTRADEDAO.getUsingTradeDescrip = function(TradeDescrip) {
  4390.         var resultset =  db.getConnection().execute('select TradeCode,TradeDescrip,GroupID,Groupname,GroupInits,Email,Email2,Email3,CanBeEmailed,Current,Culture from QGROUPSBYTRADE where TradeDescrip = ? ',TradeDescrip);
  4391.         var resultarray = this.doresultset(resultset);
  4392.         resultset.close();
  4393.         return resultarray;
  4394.     };
  4395. QGROUPSBYTRADEDAO.getUsingGroupID = function(GroupID) {
  4396.         var resultset =  db.getConnection().execute('select TradeCode,TradeDescrip,GroupID,Groupname,GroupInits,Email,Email2,Email3,CanBeEmailed,Current,Culture from QGROUPSBYTRADE where GroupID = ? ',GroupID);
  4397.         var resultarray = this.doresultset(resultset);
  4398.         resultset.close();
  4399.         return resultarray;
  4400.     };
  4401. QGROUPSBYTRADEDAO.getUsingGroupname = function(Groupname) {
  4402.         var resultset =  db.getConnection().execute('select TradeCode,TradeDescrip,GroupID,Groupname,GroupInits,Email,Email2,Email3,CanBeEmailed,Current,Culture from QGROUPSBYTRADE where Groupname = ? ',Groupname);
  4403.         var resultarray = this.doresultset(resultset);
  4404.         resultset.close();
  4405.         return resultarray;
  4406.     };
  4407. QGROUPSBYTRADEDAO.getUsingGroupInits = function(GroupInits) {
  4408.         var resultset =  db.getConnection().execute('select TradeCode,TradeDescrip,GroupID,Groupname,GroupInits,Email,Email2,Email3,CanBeEmailed,Current,Culture from QGROUPSBYTRADE where GroupInits = ? ',GroupInits);
  4409.         var resultarray = this.doresultset(resultset);
  4410.         resultset.close();
  4411.         return resultarray;
  4412.     };
  4413. QGROUPSBYTRADEDAO.getUsingEmail = function(Email) {
  4414.         var resultset =  db.getConnection().execute('select TradeCode,TradeDescrip,GroupID,Groupname,GroupInits,Email,Email2,Email3,CanBeEmailed,Current,Culture from QGROUPSBYTRADE where Email = ? ',Email);
  4415.         var resultarray = this.doresultset(resultset);
  4416.         resultset.close();
  4417.         return resultarray;
  4418.     };
  4419. QGROUPSBYTRADEDAO.getUsingEmail2 = function(Email2) {
  4420.         var resultset =  db.getConnection().execute('select TradeCode,TradeDescrip,GroupID,Groupname,GroupInits,Email,Email2,Email3,CanBeEmailed,Current,Culture from QGROUPSBYTRADE where Email2 = ? ',Email2);
  4421.         var resultarray = this.doresultset(resultset);
  4422.         resultset.close();
  4423.         return resultarray;
  4424.     };
  4425. QGROUPSBYTRADEDAO.getUsingEmail3 = function(Email3) {
  4426.         var resultset =  db.getConnection().execute('select TradeCode,TradeDescrip,GroupID,Groupname,GroupInits,Email,Email2,Email3,CanBeEmailed,Current,Culture from QGROUPSBYTRADE where Email3 = ? ',Email3);
  4427.         var resultarray = this.doresultset(resultset);
  4428.         resultset.close();
  4429.         return resultarray;
  4430.     };
  4431. QGROUPSBYTRADEDAO.getUsingCanBeEmailed = function(CanBeEmailed) {
  4432.         var resultset =  db.getConnection().execute('select TradeCode,TradeDescrip,GroupID,Groupname,GroupInits,Email,Email2,Email3,CanBeEmailed,Current,Culture from QGROUPSBYTRADE where CanBeEmailed = ? ',CanBeEmailed);
  4433.         var resultarray = this.doresultset(resultset);
  4434.         resultset.close();
  4435.         return resultarray;
  4436.     };
  4437. QGROUPSBYTRADEDAO.getUsingCurrent = function(Current) {
  4438.         var resultset =  db.getConnection().execute('select TradeCode,TradeDescrip,GroupID,Groupname,GroupInits,Email,Email2,Email3,CanBeEmailed,Current,Culture from QGROUPSBYTRADE where Current = ? ',Current);
  4439.         var resultarray = this.doresultset(resultset);
  4440.         resultset.close();
  4441.         return resultarray;
  4442.     };
  4443. QGROUPSBYTRADEDAO.getUsingCulture = function(Culture) {
  4444.         var resultset =  db.getConnection().execute('select TradeCode,TradeDescrip,GroupID,Groupname,GroupInits,Email,Email2,Email3,CanBeEmailed,Current,Culture from QGROUPSBYTRADE where Culture = ? ',Culture);
  4445.         var resultarray = this.doresultset(resultset);
  4446.         resultset.close();
  4447.         return resultarray;
  4448.     };
  4449. QGROUPSBYTRADEDAO.getall = function() {
  4450.         var resultset =  db.getConnection().execute('select TradeCode,TradeDescrip,GroupID,Groupname,GroupInits,Email,Email2,Email3,CanBeEmailed,Current,Culture from QGROUPSBYTRADE');
  4451.         var resultarray = this.doresultset(resultset);
  4452.         resultset.close();
  4453.         return resultarray;
  4454.     };
  4455. QGROUPSBYTRADEDAO.getUsing = function(where) {
  4456.         sqlstring = 'select TradeCode,TradeDescrip,GroupID,Groupname,GroupInits,Email,Email2,Email3,CanBeEmailed,Current,Culture from QGROUPSBYTRADE where ' + where;
  4457.         var resultset =  db.getConnection().execute(sqlstring);
  4458.         var resultarray = this.doresultset(resultset);
  4459.         resultset.close();
  4460.         return resultarray;
  4461.     };
  4462. function QSNAGDETAILS(){
  4463.     var SDDescription = null;
  4464.     var SDDefect = null;
  4465.     var Priority = null;
  4466.     var SnagID = null;
  4467.     var ShortDescrip = null;
  4468.     var Location = null;
  4469.     var DoBy = null;
  4470.     var Photo = null;
  4471.     var GroupID = null;
  4472.     var GroupInits = null;
  4473.     var Groupname = null;
  4474.  var selectNoBlob = 'SDDescription,SDDefect,Priority,SnagID,ShortDescrip,Location,DoBy,GroupID,GroupInits,Groupname';
  4475. };
  4476.     QSNAGDETAILS.prototype.getSDDescription = function() {
  4477.         return this.SDDescription;
  4478.     };
  4479.     QSNAGDETAILS.prototype.getSDDefect = function() {
  4480.         return this.SDDefect;
  4481.     };
  4482.     QSNAGDETAILS.prototype.getPriority = function() {
  4483.         return this.Priority;
  4484.     };
  4485.     QSNAGDETAILS.prototype.getSnagID = function() {
  4486.         return this.SnagID;
  4487.     };
  4488.     QSNAGDETAILS.prototype.getShortDescrip = function() {
  4489.         return this.ShortDescrip;
  4490.     };
  4491.     QSNAGDETAILS.prototype.getLocation = function() {
  4492.         return this.Location;
  4493.     };
  4494.     QSNAGDETAILS.prototype.getDoBy = function() {
  4495.         return this.DoBy;
  4496.     };
  4497.     QSNAGDETAILS.prototype.getPhoto = function() {
  4498.          if (this.Photo == null) {
  4499.             result = db.getConnection().execute('select Photo from QSNAGDETAILS where ');
  4500.             this.Photo = result.field(0);
  4501.          }
  4502.         return this.Photo;
  4503.     };
  4504.     QSNAGDETAILS.prototype.getGroupID = function() {
  4505.         return this.GroupID;
  4506.     };
  4507.     QSNAGDETAILS.prototype.getGroupInits = function() {
  4508.         return this.GroupInits;
  4509.     };
  4510.     QSNAGDETAILS.prototype.getGroupname = function() {
  4511.         return this.Groupname;
  4512.     };
  4513.     QSNAGDETAILS.prototype.toString = function() {
  4514.         var retVal = "";
  4515.         retVal += "[SDDescription][" + this.SDDescription + "]";
  4516.         retVal += "[SDDefect][" + this.SDDefect + "]";
  4517.         retVal += "[Priority][" + this.Priority + "]";
  4518.         retVal += "[SnagID][" + this.SnagID + "]";
  4519.         retVal += "[ShortDescrip][" + this.ShortDescrip + "]";
  4520.         retVal += "[Location][" + this.Location + "]";
  4521.         retVal += "[DoBy][" + this.DoBy + "]";
  4522.         retVal += "[Photo][" + this.Photo + "]";
  4523.         retVal += "[GroupID][" + this.GroupID + "]";
  4524.         retVal += "[GroupInits][" + this.GroupInits + "]";
  4525.         retVal += "[Groupname][" + this.Groupname + "]";
  4526.         return retVal;
  4527.     };
  4528. var QSNAGDETAILSDAO = function(){
  4529. };
  4530. QSNAGDETAILSDAO.doresultset = function(resultset) {
  4531.         var resultarray = new Array(resultset.rowCount);
  4532.         for (var i = 0; i < resultset.rowCount; i++){
  4533.             var result = new QSNAGDETAILS();
  4534.             this.loadFromResultset(result, resultset);
  4535.             resultset.next();
  4536.             resultarray[i] = result;
  4537.         }
  4538.         return resultarray;
  4539.     };
  4540. QSNAGDETAILSDAO.loadFromResultset = function(object, resultset) {
  4541.         Titanium.API.info("loading QSNAGDETAILS...");
  4542.         object.SDDescription = resultset.fieldByName('SDDescription');
  4543.         object.SDDefect = resultset.fieldByName('SDDefect');
  4544.         object.Priority = resultset.fieldByName('Priority');
  4545.         object.SnagID = resultset.fieldByName('SnagID');
  4546.         object.ShortDescrip = resultset.fieldByName('ShortDescrip');
  4547.         object.Location = resultset.fieldByName('Location');
  4548.         object.DoBy = resultset.fieldByName('DoBy');
  4549.         object.GroupID = resultset.fieldByName('GroupID');
  4550.         object.GroupInits = resultset.fieldByName('GroupInits');
  4551.         object.Groupname = resultset.fieldByName('Groupname');
  4552.     };
  4553. QSNAGDETAILSDAO.getUsingSDDescription = function(SDDescription) {
  4554.         var resultset =  db.getConnection().execute('select SDDescription,SDDefect,Priority,SnagID,ShortDescrip,Location,DoBy,GroupID,GroupInits,Groupname from QSNAGDETAILS where SDDescription = ? ',SDDescription);
  4555.         var resultarray = this.doresultset(resultset);
  4556.         resultset.close();
  4557.         return resultarray;
  4558.     };
  4559. QSNAGDETAILSDAO.getUsingSDDefect = function(SDDefect) {
  4560.         var resultset =  db.getConnection().execute('select SDDescription,SDDefect,Priority,SnagID,ShortDescrip,Location,DoBy,GroupID,GroupInits,Groupname from QSNAGDETAILS where SDDefect = ? ',SDDefect);
  4561.         var resultarray = this.doresultset(resultset);
  4562.         resultset.close();
  4563.         return resultarray;
  4564.     };
  4565. QSNAGDETAILSDAO.getUsingPriority = function(Priority) {
  4566.         var resultset =  db.getConnection().execute('select SDDescription,SDDefect,Priority,SnagID,ShortDescrip,Location,DoBy,GroupID,GroupInits,Groupname from QSNAGDETAILS where Priority = ? ',Priority);
  4567.         var resultarray = this.doresultset(resultset);
  4568.         resultset.close();
  4569.         return resultarray;
  4570.     };
  4571. QSNAGDETAILSDAO.getUsingSnagID = function(SnagID) {
  4572.         var resultset =  db.getConnection().execute('select SDDescription,SDDefect,Priority,SnagID,ShortDescrip,Location,DoBy,GroupID,GroupInits,Groupname from QSNAGDETAILS where SnagID = ? ',SnagID);
  4573.         var resultarray = this.doresultset(resultset);
  4574.         resultset.close();
  4575.         return resultarray;
  4576.     };
  4577. QSNAGDETAILSDAO.getUsingShortDescrip = function(ShortDescrip) {
  4578.         var resultset =  db.getConnection().execute('select SDDescription,SDDefect,Priority,SnagID,ShortDescrip,Location,DoBy,GroupID,GroupInits,Groupname from QSNAGDETAILS where ShortDescrip = ? ',ShortDescrip);
  4579.         var resultarray = this.doresultset(resultset);
  4580.         resultset.close();
  4581.         return resultarray;
  4582.     };
  4583. QSNAGDETAILSDAO.getUsingLocation = function(Location) {
  4584.         var resultset =  db.getConnection().execute('select SDDescription,SDDefect,Priority,SnagID,ShortDescrip,Location,DoBy,GroupID,GroupInits,Groupname from QSNAGDETAILS where Location = ? ',Location);
  4585.         var resultarray = this.doresultset(resultset);
  4586.         resultset.close();
  4587.         return resultarray;
  4588.     };
  4589. QSNAGDETAILSDAO.getUsingDoBy = function(DoBy) {
  4590.         var resultset =  db.getConnection().execute('select SDDescription,SDDefect,Priority,SnagID,ShortDescrip,Location,DoBy,GroupID,GroupInits,Groupname from QSNAGDETAILS where DoBy = ? ',DoBy);
  4591.         var resultarray = this.doresultset(resultset);
  4592.         resultset.close();
  4593.         return resultarray;
  4594.     };
  4595. QSNAGDETAILSDAO.getUsingPhoto = function(Photo) {
  4596.         var resultset =  db.getConnection().execute('select SDDescription,SDDefect,Priority,SnagID,ShortDescrip,Location,DoBy,GroupID,GroupInits,Groupname from QSNAGDETAILS where Photo = ? ',Photo);
  4597.         var resultarray = this.doresultset(resultset);
  4598.         resultset.close();
  4599.         return resultarray;
  4600.     };
  4601. QSNAGDETAILSDAO.getUsingGroupID = function(GroupID) {
  4602.         var resultset =  db.getConnection().execute('select SDDescription,SDDefect,Priority,SnagID,ShortDescrip,Location,DoBy,GroupID,GroupInits,Groupname from QSNAGDETAILS where GroupID = ? ',GroupID);
  4603.         var resultarray = this.doresultset(resultset);
  4604.         resultset.close();
  4605.         return resultarray;
  4606.     };
  4607. QSNAGDETAILSDAO.getUsingGroupInits = function(GroupInits) {
  4608.         var resultset =  db.getConnection().execute('select SDDescription,SDDefect,Priority,SnagID,ShortDescrip,Location,DoBy,GroupID,GroupInits,Groupname from QSNAGDETAILS where GroupInits = ? ',GroupInits);
  4609.         var resultarray = this.doresultset(resultset);
  4610.         resultset.close();
  4611.         return resultarray;
  4612.     };
  4613. QSNAGDETAILSDAO.getUsingGroupname = function(Groupname) {
  4614.         var resultset =  db.getConnection().execute('select SDDescription,SDDefect,Priority,SnagID,ShortDescrip,Location,DoBy,GroupID,GroupInits,Groupname from QSNAGDETAILS where Groupname = ? ',Groupname);
  4615.         var resultarray = this.doresultset(resultset);
  4616.         resultset.close();
  4617.         return resultarray;
  4618.     };
  4619. QSNAGDETAILSDAO.getall = function() {
  4620.         var resultset =  db.getConnection().execute('select SDDescription,SDDefect,Priority,SnagID,ShortDescrip,Location,DoBy,GroupID,GroupInits,Groupname from QSNAGDETAILS');
  4621.         var resultarray = this.doresultset(resultset);
  4622.         resultset.close();
  4623.         return resultarray;
  4624.     };
  4625. QSNAGDETAILSDAO.getUsing = function(where) {
  4626.         sqlstring = 'select SDDescription,SDDefect,Priority,SnagID,ShortDescrip,Location,DoBy,GroupID,GroupInits,Groupname from QSNAGDETAILS where ' + where;
  4627.         var resultset =  db.getConnection().execute(sqlstring);
  4628.         var resultarray = this.doresultset(resultset);
  4629.         resultset.close();
  4630.         return resultarray;
  4631.     };
  4632. function QSCHEDPLOTDETAILS(){
  4633.     var PlotID = null;
  4634.     var SchedID = null;
  4635.     var SchedInits = null;
  4636.     var DrwgID = null;
  4637.     var Xcoord = null;
  4638.     var Ycoord = null;
  4639.     var Status = null;
  4640.     var ShortDescrip = null;
  4641.     var Location = null;
  4642.     var Datestamp = null;
  4643.     var Photo = null;
  4644.     var SetRefs = null;
  4645.     var StartDate = null;
  4646.     var PPCGuid = null;
  4647.     var Lat = null;
  4648.     var Lng = null;
  4649.     var Owner = null;
  4650.     var RecurDue = null;
  4651.     var MPGUID = null;
  4652.     var ExtRef = null;
  4653.     var Schedname = null;
  4654.  var selectNoBlob = 'PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname';
  4655. };
  4656.     QSCHEDPLOTDETAILS.prototype.getPlotID = function() {
  4657.         return this.PlotID;
  4658.     };
  4659.     QSCHEDPLOTDETAILS.prototype.getSchedID = function() {
  4660.         return this.SchedID;
  4661.     };
  4662.     QSCHEDPLOTDETAILS.prototype.getSchedInits = function() {
  4663.         return this.SchedInits;
  4664.     };
  4665.     QSCHEDPLOTDETAILS.prototype.getDrwgID = function() {
  4666.         return this.DrwgID;
  4667.     };
  4668.     QSCHEDPLOTDETAILS.prototype.getXcoord = function() {
  4669.         return this.Xcoord;
  4670.     };
  4671.     QSCHEDPLOTDETAILS.prototype.getYcoord = function() {
  4672.         return this.Ycoord;
  4673.     };
  4674.     QSCHEDPLOTDETAILS.prototype.getStatus = function() {
  4675.         return this.Status;
  4676.     };
  4677.     QSCHEDPLOTDETAILS.prototype.getShortDescrip = function() {
  4678.         return this.ShortDescrip;
  4679.     };
  4680.     QSCHEDPLOTDETAILS.prototype.getLocation = function() {
  4681.         return this.Location;
  4682.     };
  4683.     QSCHEDPLOTDETAILS.prototype.getDatestamp = function() {
  4684.         return this.Datestamp;
  4685.     };
  4686.     QSCHEDPLOTDETAILS.prototype.getPhoto = function() {
  4687.          if (this.Photo == null) {
  4688.             result = db.getConnection().execute('select Photo from QSCHEDPLOTDETAILS where ');
  4689.             this.Photo = result.field(0);
  4690.          }
  4691.         return this.Photo;
  4692.     };
  4693.     QSCHEDPLOTDETAILS.prototype.getSetRefs = function() {
  4694.         return this.SetRefs;
  4695.     };
  4696.     QSCHEDPLOTDETAILS.prototype.getStartDate = function() {
  4697.         return this.StartDate;
  4698.     };
  4699.     QSCHEDPLOTDETAILS.prototype.getPPCGuid = function() {
  4700.         return this.PPCGuid;
  4701.     };
  4702.     QSCHEDPLOTDETAILS.prototype.getLat = function() {
  4703.         return this.Lat;
  4704.     };
  4705.     QSCHEDPLOTDETAILS.prototype.getLng = function() {
  4706.         return this.Lng;
  4707.     };
  4708.     QSCHEDPLOTDETAILS.prototype.getOwner = function() {
  4709.         return this.Owner;
  4710.     };
  4711.     QSCHEDPLOTDETAILS.prototype.getRecurDue = function() {
  4712.         return this.RecurDue;
  4713.     };
  4714.     QSCHEDPLOTDETAILS.prototype.getMPGUID = function() {
  4715.         return this.MPGUID;
  4716.     };
  4717.     QSCHEDPLOTDETAILS.prototype.getExtRef = function() {
  4718.         return this.ExtRef;
  4719.     };
  4720.     QSCHEDPLOTDETAILS.prototype.getSchedname = function() {
  4721.         return this.Schedname;
  4722.     };
  4723.     QSCHEDPLOTDETAILS.prototype.toString = function() {
  4724.         var retVal = "";
  4725.         retVal += "[PlotID][" + this.PlotID + "]";
  4726.         retVal += "[SchedID][" + this.SchedID + "]";
  4727.         retVal += "[SchedInits][" + this.SchedInits + "]";
  4728.         retVal += "[DrwgID][" + this.DrwgID + "]";
  4729.         retVal += "[Xcoord][" + this.Xcoord + "]";
  4730.         retVal += "[Ycoord][" + this.Ycoord + "]";
  4731.         retVal += "[Status][" + this.Status + "]";
  4732.         retVal += "[ShortDescrip][" + this.ShortDescrip + "]";
  4733.         retVal += "[Location][" + this.Location + "]";
  4734.         retVal += "[Datestamp][" + this.Datestamp + "]";
  4735.         retVal += "[Photo][" + this.Photo + "]";
  4736.         retVal += "[SetRefs][" + this.SetRefs + "]";
  4737.         retVal += "[StartDate][" + this.StartDate + "]";
  4738.         retVal += "[PPCGuid][" + this.PPCGuid + "]";
  4739.         retVal += "[Lat][" + this.Lat + "]";
  4740.         retVal += "[Lng][" + this.Lng + "]";
  4741.         retVal += "[Owner][" + this.Owner + "]";
  4742.         retVal += "[RecurDue][" + this.RecurDue + "]";
  4743.         retVal += "[MPGUID][" + this.MPGUID + "]";
  4744.         retVal += "[ExtRef][" + this.ExtRef + "]";
  4745.         retVal += "[Schedname][" + this.Schedname + "]";
  4746.         return retVal;
  4747.     };
  4748. var QSCHEDPLOTDETAILSDAO = function(){
  4749. };
  4750. QSCHEDPLOTDETAILSDAO.doresultset = function(resultset) {
  4751.         var resultarray = new Array(resultset.rowCount);
  4752.         for (var i = 0; i < resultset.rowCount; i++){
  4753.             var result = new QSCHEDPLOTDETAILS();
  4754.             this.loadFromResultset(result, resultset);
  4755.             resultset.next();
  4756.             resultarray[i] = result;
  4757.         }
  4758.         return resultarray;
  4759.     };
  4760. QSCHEDPLOTDETAILSDAO.loadFromResultset = function(object, resultset) {
  4761.         Titanium.API.info("loading QSCHEDPLOTDETAILS...");
  4762.         object.PlotID = resultset.fieldByName('PlotID');
  4763.         object.SchedID = resultset.fieldByName('SchedID');
  4764.         object.SchedInits = resultset.fieldByName('SchedInits');
  4765.         object.DrwgID = resultset.fieldByName('DrwgID');
  4766.         object.Xcoord = resultset.fieldByName('Xcoord');
  4767.         object.Ycoord = resultset.fieldByName('Ycoord');
  4768.         object.Status = resultset.fieldByName('Status');
  4769.         object.ShortDescrip = resultset.fieldByName('ShortDescrip');
  4770.         object.Location = resultset.fieldByName('Location');
  4771.         object.Datestamp = resultset.fieldByName('Datestamp');
  4772.         object.SetRefs = resultset.fieldByName('SetRefs');
  4773.         object.StartDate = resultset.fieldByName('StartDate');
  4774.         object.PPCGuid = resultset.fieldByName('PPCGuid');
  4775.         object.Lat = resultset.fieldByName('Lat');
  4776.         object.Lng = resultset.fieldByName('Lng');
  4777.         object.Owner = resultset.fieldByName('Owner');
  4778.         object.RecurDue = resultset.fieldByName('RecurDue');
  4779.         object.MPGUID = resultset.fieldByName('MPGUID');
  4780.         object.ExtRef = resultset.fieldByName('ExtRef');
  4781.         object.Schedname = resultset.fieldByName('Schedname');
  4782.     };
  4783. QSCHEDPLOTDETAILSDAO.getUsingPlotID = function(PlotID) {
  4784.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where PlotID = ? ',PlotID);
  4785.         var resultarray = this.doresultset(resultset);
  4786.         resultset.close();
  4787.         return resultarray;
  4788.     };
  4789. QSCHEDPLOTDETAILSDAO.getUsingSchedID = function(SchedID) {
  4790.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where SchedID = ? ',SchedID);
  4791.         var resultarray = this.doresultset(resultset);
  4792.         resultset.close();
  4793.         return resultarray;
  4794.     };
  4795. QSCHEDPLOTDETAILSDAO.getUsingSchedInits = function(SchedInits) {
  4796.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where SchedInits = ? ',SchedInits);
  4797.         var resultarray = this.doresultset(resultset);
  4798.         resultset.close();
  4799.         return resultarray;
  4800.     };
  4801. QSCHEDPLOTDETAILSDAO.getUsingDrwgID = function(DrwgID) {
  4802.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where DrwgID = ? ',DrwgID);
  4803.         var resultarray = this.doresultset(resultset);
  4804.         resultset.close();
  4805.         return resultarray;
  4806.     };
  4807. QSCHEDPLOTDETAILSDAO.getUsingXcoord = function(Xcoord) {
  4808.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where Xcoord = ? ',Xcoord);
  4809.         var resultarray = this.doresultset(resultset);
  4810.         resultset.close();
  4811.         return resultarray;
  4812.     };
  4813. QSCHEDPLOTDETAILSDAO.getUsingYcoord = function(Ycoord) {
  4814.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where Ycoord = ? ',Ycoord);
  4815.         var resultarray = this.doresultset(resultset);
  4816.         resultset.close();
  4817.         return resultarray;
  4818.     };
  4819. QSCHEDPLOTDETAILSDAO.getUsingStatus = function(Status) {
  4820.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where Status = ? ',Status);
  4821.         var resultarray = this.doresultset(resultset);
  4822.         resultset.close();
  4823.         return resultarray;
  4824.     };
  4825. QSCHEDPLOTDETAILSDAO.getUsingShortDescrip = function(ShortDescrip) {
  4826.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where ShortDescrip = ? ',ShortDescrip);
  4827.         var resultarray = this.doresultset(resultset);
  4828.         resultset.close();
  4829.         return resultarray;
  4830.     };
  4831. QSCHEDPLOTDETAILSDAO.getUsingLocation = function(Location) {
  4832.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where Location = ? ',Location);
  4833.         var resultarray = this.doresultset(resultset);
  4834.         resultset.close();
  4835.         return resultarray;
  4836.     };
  4837. QSCHEDPLOTDETAILSDAO.getUsingDatestamp = function(Datestamp) {
  4838.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where Datestamp = ? ',Datestamp);
  4839.         var resultarray = this.doresultset(resultset);
  4840.         resultset.close();
  4841.         return resultarray;
  4842.     };
  4843. QSCHEDPLOTDETAILSDAO.getUsingPhoto = function(Photo) {
  4844.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where Photo = ? ',Photo);
  4845.         var resultarray = this.doresultset(resultset);
  4846.         resultset.close();
  4847.         return resultarray;
  4848.     };
  4849. QSCHEDPLOTDETAILSDAO.getUsingSetRefs = function(SetRefs) {
  4850.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where SetRefs = ? ',SetRefs);
  4851.         var resultarray = this.doresultset(resultset);
  4852.         resultset.close();
  4853.         return resultarray;
  4854.     };
  4855. QSCHEDPLOTDETAILSDAO.getUsingStartDate = function(StartDate) {
  4856.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where StartDate = ? ',StartDate);
  4857.         var resultarray = this.doresultset(resultset);
  4858.         resultset.close();
  4859.         return resultarray;
  4860.     };
  4861. QSCHEDPLOTDETAILSDAO.getUsingPPCGuid = function(PPCGuid) {
  4862.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where PPCGuid = ? ',PPCGuid);
  4863.         var resultarray = this.doresultset(resultset);
  4864.         resultset.close();
  4865.         return resultarray;
  4866.     };
  4867. QSCHEDPLOTDETAILSDAO.getUsingLat = function(Lat) {
  4868.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where Lat = ? ',Lat);
  4869.         var resultarray = this.doresultset(resultset);
  4870.         resultset.close();
  4871.         return resultarray;
  4872.     };
  4873. QSCHEDPLOTDETAILSDAO.getUsingLng = function(Lng) {
  4874.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where Lng = ? ',Lng);
  4875.         var resultarray = this.doresultset(resultset);
  4876.         resultset.close();
  4877.         return resultarray;
  4878.     };
  4879. QSCHEDPLOTDETAILSDAO.getUsingOwner = function(Owner) {
  4880.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where Owner = ? ',Owner);
  4881.         var resultarray = this.doresultset(resultset);
  4882.         resultset.close();
  4883.         return resultarray;
  4884.     };
  4885. QSCHEDPLOTDETAILSDAO.getUsingRecurDue = function(RecurDue) {
  4886.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where RecurDue = ? ',RecurDue);
  4887.         var resultarray = this.doresultset(resultset);
  4888.         resultset.close();
  4889.         return resultarray;
  4890.     };
  4891. QSCHEDPLOTDETAILSDAO.getUsingMPGUID = function(MPGUID) {
  4892.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where MPGUID = ? ',MPGUID);
  4893.         var resultarray = this.doresultset(resultset);
  4894.         resultset.close();
  4895.         return resultarray;
  4896.     };
  4897. QSCHEDPLOTDETAILSDAO.getUsingExtRef = function(ExtRef) {
  4898.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where ExtRef = ? ',ExtRef);
  4899.         var resultarray = this.doresultset(resultset);
  4900.         resultset.close();
  4901.         return resultarray;
  4902.     };
  4903. QSCHEDPLOTDETAILSDAO.getUsingSchedname = function(Schedname) {
  4904.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where Schedname = ? ',Schedname);
  4905.         var resultarray = this.doresultset(resultset);
  4906.         resultset.close();
  4907.         return resultarray;
  4908.     };
  4909. QSCHEDPLOTDETAILSDAO.getall = function() {
  4910.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS');
  4911.         var resultarray = this.doresultset(resultset);
  4912.         resultset.close();
  4913.         return resultarray;
  4914.     };
  4915. QSCHEDPLOTDETAILSDAO.getUsing = function(where) {
  4916.         sqlstring = 'select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,MPGUID,ExtRef,Schedname from QSCHEDPLOTDETAILS where ' + where;
  4917.         var resultset =  db.getConnection().execute(sqlstring);
  4918.         var resultarray = this.doresultset(resultset);
  4919.         resultset.close();
  4920.         return resultarray;
  4921.     };
  4922. function QSCHEDPLOTDETAILSPPC(){
  4923.     var PlotID = null;
  4924.     var SchedID = null;
  4925.     var SchedInits = null;
  4926.     var DrwgID = null;
  4927.     var Xcoord = null;
  4928.     var Ycoord = null;
  4929.     var Status = null;
  4930.     var ShortDescrip = null;
  4931.     var Location = null;
  4932.     var Datestamp = null;
  4933.     var Photo = null;
  4934.     var SetRefs = null;
  4935.     var StartDate = null;
  4936.     var PPCGuid = null;
  4937.     var Lat = null;
  4938.     var Lng = null;
  4939.     var Owner = null;
  4940.     var RecurDue = null;
  4941.     var Schedname = null;
  4942.  var selectNoBlob = 'PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname';
  4943. };
  4944.     QSCHEDPLOTDETAILSPPC.prototype.getPlotID = function() {
  4945.         return this.PlotID;
  4946.     };
  4947.     QSCHEDPLOTDETAILSPPC.prototype.getSchedID = function() {
  4948.         return this.SchedID;
  4949.     };
  4950.     QSCHEDPLOTDETAILSPPC.prototype.getSchedInits = function() {
  4951.         return this.SchedInits;
  4952.     };
  4953.     QSCHEDPLOTDETAILSPPC.prototype.getDrwgID = function() {
  4954.         return this.DrwgID;
  4955.     };
  4956.     QSCHEDPLOTDETAILSPPC.prototype.getXcoord = function() {
  4957.         return this.Xcoord;
  4958.     };
  4959.     QSCHEDPLOTDETAILSPPC.prototype.getYcoord = function() {
  4960.         return this.Ycoord;
  4961.     };
  4962.     QSCHEDPLOTDETAILSPPC.prototype.getStatus = function() {
  4963.         return this.Status;
  4964.     };
  4965.     QSCHEDPLOTDETAILSPPC.prototype.getShortDescrip = function() {
  4966.         return this.ShortDescrip;
  4967.     };
  4968.     QSCHEDPLOTDETAILSPPC.prototype.getLocation = function() {
  4969.         return this.Location;
  4970.     };
  4971.     QSCHEDPLOTDETAILSPPC.prototype.getDatestamp = function() {
  4972.         return this.Datestamp;
  4973.     };
  4974.     QSCHEDPLOTDETAILSPPC.prototype.getPhoto = function() {
  4975.          if (this.Photo == null) {
  4976.             result = db.getConnection().execute('select Photo from QSCHEDPLOTDETAILSPPC where ');
  4977.             this.Photo = result.field(0);
  4978.          }
  4979.         return this.Photo;
  4980.     };
  4981.     QSCHEDPLOTDETAILSPPC.prototype.getSetRefs = function() {
  4982.         return this.SetRefs;
  4983.     };
  4984.     QSCHEDPLOTDETAILSPPC.prototype.getStartDate = function() {
  4985.         return this.StartDate;
  4986.     };
  4987.     QSCHEDPLOTDETAILSPPC.prototype.getPPCGuid = function() {
  4988.         return this.PPCGuid;
  4989.     };
  4990.     QSCHEDPLOTDETAILSPPC.prototype.getLat = function() {
  4991.         return this.Lat;
  4992.     };
  4993.     QSCHEDPLOTDETAILSPPC.prototype.getLng = function() {
  4994.         return this.Lng;
  4995.     };
  4996.     QSCHEDPLOTDETAILSPPC.prototype.getOwner = function() {
  4997.         return this.Owner;
  4998.     };
  4999.     QSCHEDPLOTDETAILSPPC.prototype.getRecurDue = function() {
  5000.         return this.RecurDue;
  5001.     };
  5002.     QSCHEDPLOTDETAILSPPC.prototype.getSchedname = function() {
  5003.         return this.Schedname;
  5004.     };
  5005.     QSCHEDPLOTDETAILSPPC.prototype.toString = function() {
  5006.         var retVal = "";
  5007.         retVal += "[PlotID][" + this.PlotID + "]";
  5008.         retVal += "[SchedID][" + this.SchedID + "]";
  5009.         retVal += "[SchedInits][" + this.SchedInits + "]";
  5010.         retVal += "[DrwgID][" + this.DrwgID + "]";
  5011.         retVal += "[Xcoord][" + this.Xcoord + "]";
  5012.         retVal += "[Ycoord][" + this.Ycoord + "]";
  5013.         retVal += "[Status][" + this.Status + "]";
  5014.         retVal += "[ShortDescrip][" + this.ShortDescrip + "]";
  5015.         retVal += "[Location][" + this.Location + "]";
  5016.         retVal += "[Datestamp][" + this.Datestamp + "]";
  5017.         retVal += "[Photo][" + this.Photo + "]";
  5018.         retVal += "[SetRefs][" + this.SetRefs + "]";
  5019.         retVal += "[StartDate][" + this.StartDate + "]";
  5020.         retVal += "[PPCGuid][" + this.PPCGuid + "]";
  5021.         retVal += "[Lat][" + this.Lat + "]";
  5022.         retVal += "[Lng][" + this.Lng + "]";
  5023.         retVal += "[Owner][" + this.Owner + "]";
  5024.         retVal += "[RecurDue][" + this.RecurDue + "]";
  5025.         retVal += "[Schedname][" + this.Schedname + "]";
  5026.         return retVal;
  5027.     };
  5028. var QSCHEDPLOTDETAILSPPCDAO = function(){
  5029. };
  5030. QSCHEDPLOTDETAILSPPCDAO.doresultset = function(resultset) {
  5031.         var resultarray = new Array(resultset.rowCount);
  5032.         for (var i = 0; i < resultset.rowCount; i++){
  5033.             var result = new QSCHEDPLOTDETAILSPPC();
  5034.             this.loadFromResultset(result, resultset);
  5035.             resultset.next();
  5036.             resultarray[i] = result;
  5037.         }
  5038.         return resultarray;
  5039.     };
  5040. QSCHEDPLOTDETAILSPPCDAO.loadFromResultset = function(object, resultset) {
  5041.         Titanium.API.info("loading QSCHEDPLOTDETAILSPPC...");
  5042.         object.PlotID = resultset.fieldByName('PlotID');
  5043.         object.SchedID = resultset.fieldByName('SchedID');
  5044.         object.SchedInits = resultset.fieldByName('SchedInits');
  5045.         object.DrwgID = resultset.fieldByName('DrwgID');
  5046.         object.Xcoord = resultset.fieldByName('Xcoord');
  5047.         object.Ycoord = resultset.fieldByName('Ycoord');
  5048.         object.Status = resultset.fieldByName('Status');
  5049.         object.ShortDescrip = resultset.fieldByName('ShortDescrip');
  5050.         object.Location = resultset.fieldByName('Location');
  5051.         object.Datestamp = resultset.fieldByName('Datestamp');
  5052.         object.SetRefs = resultset.fieldByName('SetRefs');
  5053.         object.StartDate = resultset.fieldByName('StartDate');
  5054.         object.PPCGuid = resultset.fieldByName('PPCGuid');
  5055.         object.Lat = resultset.fieldByName('Lat');
  5056.         object.Lng = resultset.fieldByName('Lng');
  5057.         object.Owner = resultset.fieldByName('Owner');
  5058.         object.RecurDue = resultset.fieldByName('RecurDue');
  5059.         object.Schedname = resultset.fieldByName('Schedname');
  5060.     };
  5061. QSCHEDPLOTDETAILSPPCDAO.getUsingPlotID = function(PlotID) {
  5062.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where PlotID = ? ',PlotID);
  5063.         var resultarray = this.doresultset(resultset);
  5064.         resultset.close();
  5065.         return resultarray;
  5066.     };
  5067. QSCHEDPLOTDETAILSPPCDAO.getUsingSchedID = function(SchedID) {
  5068.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where SchedID = ? ',SchedID);
  5069.         var resultarray = this.doresultset(resultset);
  5070.         resultset.close();
  5071.         return resultarray;
  5072.     };
  5073. QSCHEDPLOTDETAILSPPCDAO.getUsingSchedInits = function(SchedInits) {
  5074.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where SchedInits = ? ',SchedInits);
  5075.         var resultarray = this.doresultset(resultset);
  5076.         resultset.close();
  5077.         return resultarray;
  5078.     };
  5079. QSCHEDPLOTDETAILSPPCDAO.getUsingDrwgID = function(DrwgID) {
  5080.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where DrwgID = ? ',DrwgID);
  5081.         var resultarray = this.doresultset(resultset);
  5082.         resultset.close();
  5083.         return resultarray;
  5084.     };
  5085. QSCHEDPLOTDETAILSPPCDAO.getUsingXcoord = function(Xcoord) {
  5086.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where Xcoord = ? ',Xcoord);
  5087.         var resultarray = this.doresultset(resultset);
  5088.         resultset.close();
  5089.         return resultarray;
  5090.     };
  5091. QSCHEDPLOTDETAILSPPCDAO.getUsingYcoord = function(Ycoord) {
  5092.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where Ycoord = ? ',Ycoord);
  5093.         var resultarray = this.doresultset(resultset);
  5094.         resultset.close();
  5095.         return resultarray;
  5096.     };
  5097. QSCHEDPLOTDETAILSPPCDAO.getUsingStatus = function(Status) {
  5098.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where Status = ? ',Status);
  5099.         var resultarray = this.doresultset(resultset);
  5100.         resultset.close();
  5101.         return resultarray;
  5102.     };
  5103. QSCHEDPLOTDETAILSPPCDAO.getUsingShortDescrip = function(ShortDescrip) {
  5104.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where ShortDescrip = ? ',ShortDescrip);
  5105.         var resultarray = this.doresultset(resultset);
  5106.         resultset.close();
  5107.         return resultarray;
  5108.     };
  5109. QSCHEDPLOTDETAILSPPCDAO.getUsingLocation = function(Location) {
  5110.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where Location = ? ',Location);
  5111.         var resultarray = this.doresultset(resultset);
  5112.         resultset.close();
  5113.         return resultarray;
  5114.     };
  5115. QSCHEDPLOTDETAILSPPCDAO.getUsingDatestamp = function(Datestamp) {
  5116.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where Datestamp = ? ',Datestamp);
  5117.         var resultarray = this.doresultset(resultset);
  5118.         resultset.close();
  5119.         return resultarray;
  5120.     };
  5121. QSCHEDPLOTDETAILSPPCDAO.getUsingPhoto = function(Photo) {
  5122.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where Photo = ? ',Photo);
  5123.         var resultarray = this.doresultset(resultset);
  5124.         resultset.close();
  5125.         return resultarray;
  5126.     };
  5127. QSCHEDPLOTDETAILSPPCDAO.getUsingSetRefs = function(SetRefs) {
  5128.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where SetRefs = ? ',SetRefs);
  5129.         var resultarray = this.doresultset(resultset);
  5130.         resultset.close();
  5131.         return resultarray;
  5132.     };
  5133. QSCHEDPLOTDETAILSPPCDAO.getUsingStartDate = function(StartDate) {
  5134.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where StartDate = ? ',StartDate);
  5135.         var resultarray = this.doresultset(resultset);
  5136.         resultset.close();
  5137.         return resultarray;
  5138.     };
  5139. QSCHEDPLOTDETAILSPPCDAO.getUsingPPCGuid = function(PPCGuid) {
  5140.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where PPCGuid = ? ',PPCGuid);
  5141.         var resultarray = this.doresultset(resultset);
  5142.         resultset.close();
  5143.         return resultarray;
  5144.     };
  5145. QSCHEDPLOTDETAILSPPCDAO.getUsingLat = function(Lat) {
  5146.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where Lat = ? ',Lat);
  5147.         var resultarray = this.doresultset(resultset);
  5148.         resultset.close();
  5149.         return resultarray;
  5150.     };
  5151. QSCHEDPLOTDETAILSPPCDAO.getUsingLng = function(Lng) {
  5152.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where Lng = ? ',Lng);
  5153.         var resultarray = this.doresultset(resultset);
  5154.         resultset.close();
  5155.         return resultarray;
  5156.     };
  5157. QSCHEDPLOTDETAILSPPCDAO.getUsingOwner = function(Owner) {
  5158.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where Owner = ? ',Owner);
  5159.         var resultarray = this.doresultset(resultset);
  5160.         resultset.close();
  5161.         return resultarray;
  5162.     };
  5163. QSCHEDPLOTDETAILSPPCDAO.getUsingRecurDue = function(RecurDue) {
  5164.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where RecurDue = ? ',RecurDue);
  5165.         var resultarray = this.doresultset(resultset);
  5166.         resultset.close();
  5167.         return resultarray;
  5168.     };
  5169. QSCHEDPLOTDETAILSPPCDAO.getUsingSchedname = function(Schedname) {
  5170.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where Schedname = ? ',Schedname);
  5171.         var resultarray = this.doresultset(resultset);
  5172.         resultset.close();
  5173.         return resultarray;
  5174.     };
  5175. QSCHEDPLOTDETAILSPPCDAO.getall = function() {
  5176.         var resultset =  db.getConnection().execute('select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC');
  5177.         var resultarray = this.doresultset(resultset);
  5178.         resultset.close();
  5179.         return resultarray;
  5180.     };
  5181. QSCHEDPLOTDETAILSPPCDAO.getUsing = function(where) {
  5182.         sqlstring = 'select PlotID,SchedID,SchedInits,DrwgID,Xcoord,Ycoord,Status,ShortDescrip,Location,Datestamp,SetRefs,StartDate,PPCGuid,Lat,Lng,Owner,RecurDue,Schedname from QSCHEDPLOTDETAILSPPC where ' + where;
  5183.         var resultset =  db.getConnection().execute(sqlstring);
  5184.         var resultarray = this.doresultset(resultset);
  5185.         resultset.close();
  5186.         return resultarray;
  5187.     };
  5188. function QCLOSEDADHOCS(){
  5189.     var PlotID = null;
  5190.     var Adhoc = null;
  5191.     var Status = null;
  5192.  var selectNoBlob = 'PlotID,Adhoc,Status';
  5193. };
  5194.     QCLOSEDADHOCS.prototype.getPlotID = function() {
  5195.         return this.PlotID;
  5196.     };
  5197.     QCLOSEDADHOCS.prototype.getAdhoc = function() {
  5198.         return this.Adhoc;
  5199.     };
  5200.     QCLOSEDADHOCS.prototype.getStatus = function() {
  5201.         return this.Status;
  5202.     };
  5203.     QCLOSEDADHOCS.prototype.toString = function() {
  5204.         var retVal = "";
  5205.         retVal += "[PlotID][" + this.PlotID + "]";
  5206.         retVal += "[Adhoc][" + this.Adhoc + "]";
  5207.         retVal += "[Status][" + this.Status + "]";
  5208.         return retVal;
  5209.     };
  5210. var QCLOSEDADHOCSDAO = function(){
  5211. };
  5212. QCLOSEDADHOCSDAO.doresultset = function(resultset) {
  5213.         var resultarray = new Array(resultset.rowCount);
  5214.         for (var i = 0; i < resultset.rowCount; i++){
  5215.             var result = new QCLOSEDADHOCS();
  5216.             this.loadFromResultset(result, resultset);
  5217.             resultset.next();
  5218.             resultarray[i] = result;
  5219.         }
  5220.         return resultarray;
  5221.     };
  5222. QCLOSEDADHOCSDAO.loadFromResultset = function(object, resultset) {
  5223.         Titanium.API.info("loading QCLOSEDADHOCS...");
  5224.         object.PlotID = resultset.fieldByName('PlotID');
  5225.         object.Adhoc = resultset.fieldByName('Adhoc');
  5226.         object.Status = resultset.fieldByName('Status');
  5227.     };
  5228. QCLOSEDADHOCSDAO.getUsingPlotID = function(PlotID) {
  5229.         var resultset =  db.getConnection().execute('select PlotID,Adhoc,Status from QCLOSEDADHOCS where PlotID = ? ',PlotID);
  5230.         var resultarray = this.doresultset(resultset);
  5231.         resultset.close();
  5232.         return resultarray;
  5233.     };
  5234. QCLOSEDADHOCSDAO.getUsingAdhoc = function(Adhoc) {
  5235.         var resultset =  db.getConnection().execute('select PlotID,Adhoc,Status from QCLOSEDADHOCS where Adhoc = ? ',Adhoc);
  5236.         var resultarray = this.doresultset(resultset);
  5237.         resultset.close();
  5238.         return resultarray;
  5239.     };
  5240. QCLOSEDADHOCSDAO.getUsingStatus = function(Status) {
  5241.         var resultset =  db.getConnection().execute('select PlotID,Adhoc,Status from QCLOSEDADHOCS where Status = ? ',Status);
  5242.         var resultarray = this.doresultset(resultset);
  5243.         resultset.close();
  5244.         return resultarray;
  5245.     };
  5246. QCLOSEDADHOCSDAO.getall = function() {
  5247.         var resultset =  db.getConnection().execute('select PlotID,Adhoc,Status from QCLOSEDADHOCS');
  5248.         var resultarray = this.doresultset(resultset);
  5249.         resultset.close();
  5250.         return resultarray;
  5251.     };
  5252. QCLOSEDADHOCSDAO.getUsing = function(where) {
  5253.         sqlstring = 'select PlotID,Adhoc,Status from QCLOSEDADHOCS where ' + where;
  5254.         var resultset =  db.getConnection().execute(sqlstring);
  5255.         var resultarray = this.doresultset(resultset);
  5256.         resultset.close();
  5257.         return resultarray;
  5258.     };
  5259. function QSCHEDCHECKSPPC(){
  5260.     var SCID = null;
  5261.     var SetRef = null;
  5262.     var Categ = null;
  5263.     var PlotID = null;
  5264.     var Code = null;
  5265.     var Description = null;
  5266.     var srt = null;
  5267.     var Qty = null;
  5268.     var Result = null;
  5269.     var Comment = null;
  5270.     var UserID = null;
  5271.     var DateStamp = null;
  5272.     var SchedID = null;
  5273.     var PassFail = null;
  5274.     var YYYYMMDD = null;
  5275.     var EditQty = null;
  5276.     var RecurDays = null;
  5277.  var selectNoBlob = 'SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays';
  5278. };
  5279.     QSCHEDCHECKSPPC.prototype.getSCID = function() {
  5280.         return this.SCID;
  5281.     };
  5282.     QSCHEDCHECKSPPC.prototype.getSetRef = function() {
  5283.         return this.SetRef;
  5284.     };
  5285.     QSCHEDCHECKSPPC.prototype.getCateg = function() {
  5286.         return this.Categ;
  5287.     };
  5288.     QSCHEDCHECKSPPC.prototype.getPlotID = function() {
  5289.         return this.PlotID;
  5290.     };
  5291.     QSCHEDCHECKSPPC.prototype.getCode = function() {
  5292.         return this.Code;
  5293.     };
  5294.     QSCHEDCHECKSPPC.prototype.getDescription = function() {
  5295.         return this.Description;
  5296.     };
  5297.     QSCHEDCHECKSPPC.prototype.getsrt = function() {
  5298.         return this.srt;
  5299.     };
  5300.     QSCHEDCHECKSPPC.prototype.getQty = function() {
  5301.         return this.Qty;
  5302.     };
  5303.     QSCHEDCHECKSPPC.prototype.getResult = function() {
  5304.         return this.Result;
  5305.     };
  5306.     QSCHEDCHECKSPPC.prototype.getComment = function() {
  5307.         return this.Comment;
  5308.     };
  5309.     QSCHEDCHECKSPPC.prototype.getUserID = function() {
  5310.         return this.UserID;
  5311.     };
  5312.     QSCHEDCHECKSPPC.prototype.getDateStamp = function() {
  5313.         return this.DateStamp;
  5314.     };
  5315.     QSCHEDCHECKSPPC.prototype.getSchedID = function() {
  5316.         return this.SchedID;
  5317.     };
  5318.     QSCHEDCHECKSPPC.prototype.getPassFail = function() {
  5319.         return this.PassFail;
  5320.     };
  5321.     QSCHEDCHECKSPPC.prototype.getYYYYMMDD = function() {
  5322.         return this.YYYYMMDD;
  5323.     };
  5324.     QSCHEDCHECKSPPC.prototype.getEditQty = function() {
  5325.         return this.EditQty;
  5326.     };
  5327.     QSCHEDCHECKSPPC.prototype.getRecurDays = function() {
  5328.         return this.RecurDays;
  5329.     };
  5330.     QSCHEDCHECKSPPC.prototype.toString = function() {
  5331.         var retVal = "";
  5332.         retVal += "[SCID][" + this.SCID + "]";
  5333.         retVal += "[SetRef][" + this.SetRef + "]";
  5334.         retVal += "[Categ][" + this.Categ + "]";
  5335.         retVal += "[PlotID][" + this.PlotID + "]";
  5336.         retVal += "[Code][" + this.Code + "]";
  5337.         retVal += "[Description][" + this.Description + "]";
  5338.         retVal += "[srt][" + this.srt + "]";
  5339.         retVal += "[Qty][" + this.Qty + "]";
  5340.         retVal += "[Result][" + this.Result + "]";
  5341.         retVal += "[Comment][" + this.Comment + "]";
  5342.         retVal += "[UserID][" + this.UserID + "]";
  5343.         retVal += "[DateStamp][" + this.DateStamp + "]";
  5344.         retVal += "[SchedID][" + this.SchedID + "]";
  5345.         retVal += "[PassFail][" + this.PassFail + "]";
  5346.         retVal += "[YYYYMMDD][" + this.YYYYMMDD + "]";
  5347.         retVal += "[EditQty][" + this.EditQty + "]";
  5348.         retVal += "[RecurDays][" + this.RecurDays + "]";
  5349.         return retVal;
  5350.     };
  5351. var QSCHEDCHECKSPPCDAO = function(){
  5352. };
  5353. QSCHEDCHECKSPPCDAO.doresultset = function(resultset) {
  5354.         var resultarray = new Array(resultset.rowCount);
  5355.         for (var i = 0; i < resultset.rowCount; i++){
  5356.             var result = new QSCHEDCHECKSPPC();
  5357.             this.loadFromResultset(result, resultset);
  5358.             resultset.next();
  5359.             resultarray[i] = result;
  5360.         }
  5361.         return resultarray;
  5362.     };
  5363. QSCHEDCHECKSPPCDAO.loadFromResultset = function(object, resultset) {
  5364.         Titanium.API.info("loading QSCHEDCHECKSPPC...");
  5365.         object.SCID = resultset.fieldByName('SCID');
  5366.         object.SetRef = resultset.fieldByName('SetRef');
  5367.         object.Categ = resultset.fieldByName('Categ');
  5368.         object.PlotID = resultset.fieldByName('PlotID');
  5369.         object.Code = resultset.fieldByName('Code');
  5370.         object.Description = resultset.fieldByName('Description');
  5371.         object.srt = resultset.fieldByName('srt');
  5372.         object.Qty = resultset.fieldByName('Qty');
  5373.         object.Result = resultset.fieldByName('Result');
  5374.         object.Comment = resultset.fieldByName('Comment');
  5375.         object.UserID = resultset.fieldByName('UserID');
  5376.         object.DateStamp = resultset.fieldByName('DateStamp');
  5377.         object.SchedID = resultset.fieldByName('SchedID');
  5378.         object.PassFail = resultset.fieldByName('PassFail');
  5379.         object.YYYYMMDD = resultset.fieldByName('YYYYMMDD');
  5380.         object.EditQty = resultset.fieldByName('EditQty');
  5381.         object.RecurDays = resultset.fieldByName('RecurDays');
  5382.     };
  5383. QSCHEDCHECKSPPCDAO.getUsingSCID = function(SCID) {
  5384.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where SCID = ? ',SCID);
  5385.         var resultarray = this.doresultset(resultset);
  5386.         resultset.close();
  5387.         return resultarray;
  5388.     };
  5389. QSCHEDCHECKSPPCDAO.getUsingSetRef = function(SetRef) {
  5390.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where SetRef = ? ',SetRef);
  5391.         var resultarray = this.doresultset(resultset);
  5392.         resultset.close();
  5393.         return resultarray;
  5394.     };
  5395. QSCHEDCHECKSPPCDAO.getUsingCateg = function(Categ) {
  5396.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where Categ = ? ',Categ);
  5397.         var resultarray = this.doresultset(resultset);
  5398.         resultset.close();
  5399.         return resultarray;
  5400.     };
  5401. QSCHEDCHECKSPPCDAO.getUsingPlotID = function(PlotID) {
  5402.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where PlotID = ? ',PlotID);
  5403.         var resultarray = this.doresultset(resultset);
  5404.         resultset.close();
  5405.         return resultarray;
  5406.     };
  5407. QSCHEDCHECKSPPCDAO.getUsingCode = function(Code) {
  5408.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where Code = ? ',Code);
  5409.         var resultarray = this.doresultset(resultset);
  5410.         resultset.close();
  5411.         return resultarray;
  5412.     };
  5413. QSCHEDCHECKSPPCDAO.getUsingDescription = function(Description) {
  5414.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where Description = ? ',Description);
  5415.         var resultarray = this.doresultset(resultset);
  5416.         resultset.close();
  5417.         return resultarray;
  5418.     };
  5419. QSCHEDCHECKSPPCDAO.getUsingsrt = function(srt) {
  5420.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where srt = ? ',srt);
  5421.         var resultarray = this.doresultset(resultset);
  5422.         resultset.close();
  5423.         return resultarray;
  5424.     };
  5425. QSCHEDCHECKSPPCDAO.getUsingQty = function(Qty) {
  5426.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where Qty = ? ',Qty);
  5427.         var resultarray = this.doresultset(resultset);
  5428.         resultset.close();
  5429.         return resultarray;
  5430.     };
  5431. QSCHEDCHECKSPPCDAO.getUsingResult = function(Result) {
  5432.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where Result = ? ',Result);
  5433.         var resultarray = this.doresultset(resultset);
  5434.         resultset.close();
  5435.         return resultarray;
  5436.     };
  5437. QSCHEDCHECKSPPCDAO.getUsingComment = function(Comment) {
  5438.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where Comment = ? ',Comment);
  5439.         var resultarray = this.doresultset(resultset);
  5440.         resultset.close();
  5441.         return resultarray;
  5442.     };
  5443. QSCHEDCHECKSPPCDAO.getUsingUserID = function(UserID) {
  5444.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where UserID = ? ',UserID);
  5445.         var resultarray = this.doresultset(resultset);
  5446.         resultset.close();
  5447.         return resultarray;
  5448.     };
  5449. QSCHEDCHECKSPPCDAO.getUsingDateStamp = function(DateStamp) {
  5450.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where DateStamp = ? ',DateStamp);
  5451.         var resultarray = this.doresultset(resultset);
  5452.         resultset.close();
  5453.         return resultarray;
  5454.     };
  5455. QSCHEDCHECKSPPCDAO.getUsingSchedID = function(SchedID) {
  5456.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where SchedID = ? ',SchedID);
  5457.         var resultarray = this.doresultset(resultset);
  5458.         resultset.close();
  5459.         return resultarray;
  5460.     };
  5461. QSCHEDCHECKSPPCDAO.getUsingPassFail = function(PassFail) {
  5462.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where PassFail = ? ',PassFail);
  5463.         var resultarray = this.doresultset(resultset);
  5464.         resultset.close();
  5465.         return resultarray;
  5466.     };
  5467. QSCHEDCHECKSPPCDAO.getUsingYYYYMMDD = function(YYYYMMDD) {
  5468.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where YYYYMMDD = ? ',YYYYMMDD);
  5469.         var resultarray = this.doresultset(resultset);
  5470.         resultset.close();
  5471.         return resultarray;
  5472.     };
  5473. QSCHEDCHECKSPPCDAO.getUsingEditQty = function(EditQty) {
  5474.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where EditQty = ? ',EditQty);
  5475.         var resultarray = this.doresultset(resultset);
  5476.         resultset.close();
  5477.         return resultarray;
  5478.     };
  5479. QSCHEDCHECKSPPCDAO.getUsingRecurDays = function(RecurDays) {
  5480.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where RecurDays = ? ',RecurDays);
  5481.         var resultarray = this.doresultset(resultset);
  5482.         resultset.close();
  5483.         return resultarray;
  5484.     };
  5485. QSCHEDCHECKSPPCDAO.getall = function() {
  5486.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC');
  5487.         var resultarray = this.doresultset(resultset);
  5488.         resultset.close();
  5489.         return resultarray;
  5490.     };
  5491. QSCHEDCHECKSPPCDAO.getUsing = function(where) {
  5492.         sqlstring = 'select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,SchedID,PassFail,YYYYMMDD,EditQty,RecurDays from QSCHEDCHECKSPPC where ' + where;
  5493.         var resultset =  db.getConnection().execute(sqlstring);
  5494.         var resultarray = this.doresultset(resultset);
  5495.         resultset.close();
  5496.         return resultarray;
  5497.     };
  5498. function QSCHEDCHECKS(){
  5499.     var SCID = null;
  5500.     var SetRef = null;
  5501.     var Categ = null;
  5502.     var PlotID = null;
  5503.     var Code = null;
  5504.     var Description = null;
  5505.     var srt = null;
  5506.     var Qty = null;
  5507.     var Result = null;
  5508.     var Comment = null;
  5509.     var UserID = null;
  5510.     var DateStamp = null;
  5511.     var DrwgID = null;
  5512.     var SchedID = null;
  5513.     var Schedname = null;
  5514.     var PassFail = null;
  5515.     var YYYYMMDD = null;
  5516.     var PPCGuid = null;
  5517.     var DueBy = null;
  5518.  var selectNoBlob = 'SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy';
  5519. };
  5520.     QSCHEDCHECKS.prototype.getSCID = function() {
  5521.         return this.SCID;
  5522.     };
  5523.     QSCHEDCHECKS.prototype.getSetRef = function() {
  5524.         return this.SetRef;
  5525.     };
  5526.     QSCHEDCHECKS.prototype.getCateg = function() {
  5527.         return this.Categ;
  5528.     };
  5529.     QSCHEDCHECKS.prototype.getPlotID = function() {
  5530.         return this.PlotID;
  5531.     };
  5532.     QSCHEDCHECKS.prototype.getCode = function() {
  5533.         return this.Code;
  5534.     };
  5535.     QSCHEDCHECKS.prototype.getDescription = function() {
  5536.         return this.Description;
  5537.     };
  5538.     QSCHEDCHECKS.prototype.getsrt = function() {
  5539.         return this.srt;
  5540.     };
  5541.     QSCHEDCHECKS.prototype.getQty = function() {
  5542.         return this.Qty;
  5543.     };
  5544.     QSCHEDCHECKS.prototype.getResult = function() {
  5545.         return this.Result;
  5546.     };
  5547.     QSCHEDCHECKS.prototype.getComment = function() {
  5548.         return this.Comment;
  5549.     };
  5550.     QSCHEDCHECKS.prototype.getUserID = function() {
  5551.         return this.UserID;
  5552.     };
  5553.     QSCHEDCHECKS.prototype.getDateStamp = function() {
  5554.         return this.DateStamp;
  5555.     };
  5556.     QSCHEDCHECKS.prototype.getDrwgID = function() {
  5557.         return this.DrwgID;
  5558.     };
  5559.     QSCHEDCHECKS.prototype.getSchedID = function() {
  5560.         return this.SchedID;
  5561.     };
  5562.     QSCHEDCHECKS.prototype.getSchedname = function() {
  5563.         return this.Schedname;
  5564.     };
  5565.     QSCHEDCHECKS.prototype.getPassFail = function() {
  5566.         return this.PassFail;
  5567.     };
  5568.     QSCHEDCHECKS.prototype.getYYYYMMDD = function() {
  5569.         return this.YYYYMMDD;
  5570.     };
  5571.     QSCHEDCHECKS.prototype.getPPCGuid = function() {
  5572.         return this.PPCGuid;
  5573.     };
  5574.     QSCHEDCHECKS.prototype.getDueBy = function() {
  5575.         return this.DueBy;
  5576.     };
  5577.     QSCHEDCHECKS.prototype.toString = function() {
  5578.         var retVal = "";
  5579.         retVal += "[SCID][" + this.SCID + "]";
  5580.         retVal += "[SetRef][" + this.SetRef + "]";
  5581.         retVal += "[Categ][" + this.Categ + "]";
  5582.         retVal += "[PlotID][" + this.PlotID + "]";
  5583.         retVal += "[Code][" + this.Code + "]";
  5584.         retVal += "[Description][" + this.Description + "]";
  5585.         retVal += "[srt][" + this.srt + "]";
  5586.         retVal += "[Qty][" + this.Qty + "]";
  5587.         retVal += "[Result][" + this.Result + "]";
  5588.         retVal += "[Comment][" + this.Comment + "]";
  5589.         retVal += "[UserID][" + this.UserID + "]";
  5590.         retVal += "[DateStamp][" + this.DateStamp + "]";
  5591.         retVal += "[DrwgID][" + this.DrwgID + "]";
  5592.         retVal += "[SchedID][" + this.SchedID + "]";
  5593.         retVal += "[Schedname][" + this.Schedname + "]";
  5594.         retVal += "[PassFail][" + this.PassFail + "]";
  5595.         retVal += "[YYYYMMDD][" + this.YYYYMMDD + "]";
  5596.         retVal += "[PPCGuid][" + this.PPCGuid + "]";
  5597.         retVal += "[DueBy][" + this.DueBy + "]";
  5598.         return retVal;
  5599.     };
  5600. var QSCHEDCHECKSDAO = function(){
  5601. };
  5602. QSCHEDCHECKSDAO.doresultset = function(resultset) {
  5603.         var resultarray = new Array(resultset.rowCount);
  5604.         for (var i = 0; i < resultset.rowCount; i++){
  5605.             var result = new QSCHEDCHECKS();
  5606.             this.loadFromResultset(result, resultset);
  5607.             resultset.next();
  5608.             resultarray[i] = result;
  5609.         }
  5610.         return resultarray;
  5611.     };
  5612. QSCHEDCHECKSDAO.loadFromResultset = function(object, resultset) {
  5613.         Titanium.API.info("loading QSCHEDCHECKS...");
  5614.         object.SCID = resultset.fieldByName('SCID');
  5615.         object.SetRef = resultset.fieldByName('SetRef');
  5616.         object.Categ = resultset.fieldByName('Categ');
  5617.         object.PlotID = resultset.fieldByName('PlotID');
  5618.         object.Code = resultset.fieldByName('Code');
  5619.         object.Description = resultset.fieldByName('Description');
  5620.         object.srt = resultset.fieldByName('srt');
  5621.         object.Qty = resultset.fieldByName('Qty');
  5622.         object.Result = resultset.fieldByName('Result');
  5623.         object.Comment = resultset.fieldByName('Comment');
  5624.         object.UserID = resultset.fieldByName('UserID');
  5625.         object.DateStamp = resultset.fieldByName('DateStamp');
  5626.         object.DrwgID = resultset.fieldByName('DrwgID');
  5627.         object.SchedID = resultset.fieldByName('SchedID');
  5628.         object.Schedname = resultset.fieldByName('Schedname');
  5629.         object.PassFail = resultset.fieldByName('PassFail');
  5630.         object.YYYYMMDD = resultset.fieldByName('YYYYMMDD');
  5631.         object.PPCGuid = resultset.fieldByName('PPCGuid');
  5632.         object.DueBy = resultset.fieldByName('DueBy');
  5633.     };
  5634. QSCHEDCHECKSDAO.getUsingSCID = function(SCID) {
  5635.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where SCID = ? ',SCID);
  5636.         var resultarray = this.doresultset(resultset);
  5637.         resultset.close();
  5638.         return resultarray;
  5639.     };
  5640. QSCHEDCHECKSDAO.getUsingSetRef = function(SetRef) {
  5641.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where SetRef = ? ',SetRef);
  5642.         var resultarray = this.doresultset(resultset);
  5643.         resultset.close();
  5644.         return resultarray;
  5645.     };
  5646. QSCHEDCHECKSDAO.getUsingCateg = function(Categ) {
  5647.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where Categ = ? ',Categ);
  5648.         var resultarray = this.doresultset(resultset);
  5649.         resultset.close();
  5650.         return resultarray;
  5651.     };
  5652. QSCHEDCHECKSDAO.getUsingPlotID = function(PlotID) {
  5653.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where PlotID = ? ',PlotID);
  5654.         var resultarray = this.doresultset(resultset);
  5655.         resultset.close();
  5656.         return resultarray;
  5657.     };
  5658. QSCHEDCHECKSDAO.getUsingCode = function(Code) {
  5659.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where Code = ? ',Code);
  5660.         var resultarray = this.doresultset(resultset);
  5661.         resultset.close();
  5662.         return resultarray;
  5663.     };
  5664. QSCHEDCHECKSDAO.getUsingDescription = function(Description) {
  5665.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where Description = ? ',Description);
  5666.         var resultarray = this.doresultset(resultset);
  5667.         resultset.close();
  5668.         return resultarray;
  5669.     };
  5670. QSCHEDCHECKSDAO.getUsingsrt = function(srt) {
  5671.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where srt = ? ',srt);
  5672.         var resultarray = this.doresultset(resultset);
  5673.         resultset.close();
  5674.         return resultarray;
  5675.     };
  5676. QSCHEDCHECKSDAO.getUsingQty = function(Qty) {
  5677.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where Qty = ? ',Qty);
  5678.         var resultarray = this.doresultset(resultset);
  5679.         resultset.close();
  5680.         return resultarray;
  5681.     };
  5682. QSCHEDCHECKSDAO.getUsingResult = function(Result) {
  5683.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where Result = ? ',Result);
  5684.         var resultarray = this.doresultset(resultset);
  5685.         resultset.close();
  5686.         return resultarray;
  5687.     };
  5688. QSCHEDCHECKSDAO.getUsingComment = function(Comment) {
  5689.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where Comment = ? ',Comment);
  5690.         var resultarray = this.doresultset(resultset);
  5691.         resultset.close();
  5692.         return resultarray;
  5693.     };
  5694. QSCHEDCHECKSDAO.getUsingUserID = function(UserID) {
  5695.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where UserID = ? ',UserID);
  5696.         var resultarray = this.doresultset(resultset);
  5697.         resultset.close();
  5698.         return resultarray;
  5699.     };
  5700. QSCHEDCHECKSDAO.getUsingDateStamp = function(DateStamp) {
  5701.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where DateStamp = ? ',DateStamp);
  5702.         var resultarray = this.doresultset(resultset);
  5703.         resultset.close();
  5704.         return resultarray;
  5705.     };
  5706. QSCHEDCHECKSDAO.getUsingDrwgID = function(DrwgID) {
  5707.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where DrwgID = ? ',DrwgID);
  5708.         var resultarray = this.doresultset(resultset);
  5709.         resultset.close();
  5710.         return resultarray;
  5711.     };
  5712. QSCHEDCHECKSDAO.getUsingSchedID = function(SchedID) {
  5713.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where SchedID = ? ',SchedID);
  5714.         var resultarray = this.doresultset(resultset);
  5715.         resultset.close();
  5716.         return resultarray;
  5717.     };
  5718. QSCHEDCHECKSDAO.getUsingSchedname = function(Schedname) {
  5719.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where Schedname = ? ',Schedname);
  5720.         var resultarray = this.doresultset(resultset);
  5721.         resultset.close();
  5722.         return resultarray;
  5723.     };
  5724. QSCHEDCHECKSDAO.getUsingPassFail = function(PassFail) {
  5725.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where PassFail = ? ',PassFail);
  5726.         var resultarray = this.doresultset(resultset);
  5727.         resultset.close();
  5728.         return resultarray;
  5729.     };
  5730. QSCHEDCHECKSDAO.getUsingYYYYMMDD = function(YYYYMMDD) {
  5731.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where YYYYMMDD = ? ',YYYYMMDD);
  5732.         var resultarray = this.doresultset(resultset);
  5733.         resultset.close();
  5734.         return resultarray;
  5735.     };
  5736. QSCHEDCHECKSDAO.getUsingPPCGuid = function(PPCGuid) {
  5737.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where PPCGuid = ? ',PPCGuid);
  5738.         var resultarray = this.doresultset(resultset);
  5739.         resultset.close();
  5740.         return resultarray;
  5741.     };
  5742. QSCHEDCHECKSDAO.getUsingDueBy = function(DueBy) {
  5743.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where DueBy = ? ',DueBy);
  5744.         var resultarray = this.doresultset(resultset);
  5745.         resultset.close();
  5746.         return resultarray;
  5747.     };
  5748. QSCHEDCHECKSDAO.getall = function() {
  5749.         var resultset =  db.getConnection().execute('select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS');
  5750.         var resultarray = this.doresultset(resultset);
  5751.         resultset.close();
  5752.         return resultarray;
  5753.     };
  5754. QSCHEDCHECKSDAO.getUsing = function(where) {
  5755.         sqlstring = 'select SCID,SetRef,Categ,PlotID,Code,Description,srt,Qty,Result,Comment,UserID,DateStamp,DrwgID,SchedID,Schedname,PassFail,YYYYMMDD,PPCGuid,DueBy from QSCHEDCHECKS where ' + where;
  5756.         var resultset =  db.getConnection().execute(sqlstring);
  5757.         var resultarray = this.doresultset(resultset);
  5758.         resultset.close();
  5759.         return resultarray;
  5760.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement