洛阳中航光电项目,为12年项目,此处使用反编译工具恢复源码,恢复为.netframe4.0版本,但仍需使用ie8访问; 数据库使用oracle,现再192.168.8.3服务器,访问账户scott,密码800100

Classify.js 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. //function ArrayList() {
  2. // var args = ArrayList.arguments;
  3. // var initialCapacity = 10;
  4. //
  5. // if (args != null && args.length > 0) {
  6. // initialCapacity = args[0];
  7. // }
  8. //
  9. // var elementData = new Array(initialCapacity);
  10. // var elementCount = 0;
  11. // ArrayList.prototype.size = function() {
  12. // return elementCount;
  13. // };
  14. //
  15. // this.add = function (element) {
  16. // //alert("add");
  17. // ensureCapacity(elementCount + 1);
  18. // elementData[elementCount++] = element;
  19. // return true;
  20. // };
  21. //
  22. // this.addElementAt = function (index, element) {
  23. // //alert("addElementAt");
  24. // if (index > elementCount || index < 0) {
  25. // alert("IndexOutOfBoundsException, Index: " + index + ", Size: " + elementCount);
  26. // return;
  27. // //throw (new Error(-1,"IndexOutOfBoundsException, Index: "+index+", Size: " + elementCount));
  28. // }
  29. // ensureCapacity(elementCount + 1);
  30. // for (var i = elementCount + 1; i > index; i--) {
  31. // elementData[i] = elementData[i - 1];
  32. // }
  33. // elementData[index] = element;
  34. // elementCount++;
  35. // };
  36. //
  37. // this.setElementAt = function (index, element) {
  38. // //alert("setElementAt");
  39. // if (index > elementCount || index < 0) {
  40. // alert("IndexOutOfBoundsException, Index: " + index + ", Size: " + elementCount);
  41. // return;
  42. // //throw (new Error(-1,"IndexOutOfBoundsException, Index: "+index+", Size: " + elementCount));
  43. // }
  44. // elementData[index] = element;
  45. // };
  46. //
  47. // this.toString = function () {
  48. // //alert("toString()");
  49. // var str = "{";
  50. // for (var i = 0; i < elementCount; i++) {
  51. // if (i > 0) {
  52. // str += ",";
  53. // }
  54. // str += elementData[i];
  55. // }
  56. // str += "}";
  57. // return str;
  58. // };
  59. //
  60. // this.get = function (index) {
  61. // //alert("elementAt");
  62. // if (index >= elementCount) {
  63. // alert("ArrayIndexOutOfBoundsException, " + index + " >= " + elementCount);
  64. // return;
  65. // //throw ( new Error( -1,"ArrayIndexOutOfBoundsException, " + index + " >= " + elementCount ) );
  66. // }
  67. // return elementData[index];
  68. // };
  69. //
  70. // this.remove = function (index) {
  71. // if (index >= elementCount) {
  72. // alert("ArrayIndexOutOfBoundsException, " + index + " >= " + elementCount);
  73. // //return;
  74. // throw (new Error(-1, "ArrayIndexOutOfBoundsException, " + index + " >= " + elementCount));
  75. // }
  76. // var oldData = elementData[index];
  77. // for (var i = index; i < elementCount - 1; i++) {
  78. // elementData[i] = elementData[i + 1];
  79. // }
  80. // elementData[elementCount - 1] = null;
  81. // elementCount--;
  82. // return oldData;
  83. // };
  84. //
  85. // this.isEmpty = function () {
  86. // return elementCount == 0;
  87. // };
  88. //
  89. // this.indexOf = function (elem) {
  90. // //alert("indexOf");
  91. // for (var i = 0; i < elementCount; i++) {
  92. // if (elementData[i] == elem) {
  93. // return i;
  94. // }
  95. // }
  96. // return -1;
  97. // };
  98. //
  99. // this.lastIndexOf = function (elem) {
  100. // for (var i = elementCount - 1; i >= 0; i--) {
  101. // if (elementData[i] == elem) {
  102. // return i;
  103. // }
  104. // }
  105. // return -1;
  106. // };
  107. //
  108. // this.contains = function (elem) {
  109. // return this.indexOf(elem) >= 0;
  110. // };
  111. //
  112. // function ensureCapacity(minCapacity) {
  113. // var oldCapacity = elementData.length;
  114. // if (minCapacity > oldCapacity) {
  115. // var oldData = elementData;
  116. // var newCapacity = parseInt((oldCapacity * 3) / 2 + 1);
  117. // if (newCapacity < minCapacity) {
  118. // newCapacity = minCapacity;
  119. // }
  120. // elementData = new Array(newCapacity);
  121. // for (var i = 0; i < oldCapacity; i++) {
  122. // elementData[i] = oldData[i];
  123. // }
  124. // }
  125. // }
  126. //}
  127. function classify() {
  128. this.ID = 0;
  129. this.Name = "";;
  130. this.Sort = 0;
  131. this.Code = "";
  132. this.State = 0;
  133. this.Parent = 0;
  134. }
  135. classify.prototype.EditName = function(name) {
  136. this.Name = name;
  137. };
  138. classify.prototype.EditSort = function(sort) {
  139. this.Sort = sort;
  140. };
  141. classify.prototype.EditCode = function(code) {
  142. this.Code = code;
  143. };