99c60dc6acc8f57b7bc7d2c21e9d39ed9ef8a45a.svn-base 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. BemsWebApplication.PriceCompare = function (params, viewInfo) {
  2. var customers = [{
  3. "ID" : 1,
  4. "CompanyName" : "Premier Buy",
  5. "Address" : "7601 Penn Avenue South",
  6. "City" : "Richfield",
  7. "State" : "Minnesota",
  8. "Zipcode" : 55423,
  9. "Phone" : "(612) 291-1000",
  10. "Fax" : "(612) 291-2001",
  11. "Website" : "http =//www.nowebsitepremierbuy.com"
  12. }, {
  13. "ID" : 2,
  14. "CompanyName" : "ElectrixMax",
  15. "Address" : "263 Shuman Blvd",
  16. "City" : "Naperville",
  17. "State" : "Illinois",
  18. "Zipcode" : 60563,
  19. "Phone" : "(630) 438-7800",
  20. "Fax" : "(630) 438-7801",
  21. "Website" : "http =//www.nowebsiteelectrixmax.com"
  22. }, {
  23. "ID" : 3,
  24. "CompanyName" : "Video Emporium",
  25. "Address" : "1201 Elm Street",
  26. "City" : "Dallas",
  27. "State" : "Texas",
  28. "Zipcode" : 75270,
  29. "Phone" : "(214) 854-3000",
  30. "Fax" : "(214) 854-3001",
  31. "Website" : "http =//www.nowebsitevideoemporium.com"
  32. }, {
  33. "ID" : 4,
  34. "CompanyName" : "Screen Shop",
  35. "Address" : "1000 Lowes Blvd",
  36. "City" : "Mooresville",
  37. "State" : "North Carolina",
  38. "Zipcode" : 28117,
  39. "Phone" : "(800) 445-6937",
  40. "Fax" : "(800) 445-6938",
  41. "Website" : "http =//www.nowebsitescreenshop.com"
  42. }, {
  43. "ID" : 5,
  44. "CompanyName" : "Braeburn",
  45. "Address" : "1 Infinite Loop",
  46. "City" : "Cupertino",
  47. "State" : "California",
  48. "Zipcode" : 95014,
  49. "Phone" : "(408) 996-1010",
  50. "Fax" : "(408) 996-1012",
  51. "Website" : "http =//www.nowebsitebraeburn.com"
  52. }, {
  53. "ID" : 6,
  54. "CompanyName" : "PriceCo",
  55. "Address" : "30 Hunter Lane",
  56. "City" : "Camp Hill",
  57. "State" : "Pennsylvania",
  58. "Zipcode" : 17011,
  59. "Phone" : "(717) 761-2633",
  60. "Fax" : "(717) 761-2334",
  61. "Website" : "http =//www.nowebsitepriceco.com"
  62. }, {
  63. "ID" : 7,
  64. "CompanyName" : "Ultimate Gadget",
  65. "Address" : "1557 Watson Blvd",
  66. "City" : "Warner Robbins",
  67. "State" : "Georgia",
  68. "Zipcode" : 31093,
  69. "Phone" : "(995) 623-6785",
  70. "Fax" : "(995) 623-6786",
  71. "Website" : "http =//www.nowebsiteultimategadget.com"
  72. }, {
  73. "ID" : 8,
  74. "CompanyName" : "EZ Stop",
  75. "Address" : "618 Michillinda Ave.",
  76. "City" : "Arcadia",
  77. "State" : "California",
  78. "Zipcode" : 91007,
  79. "Phone" : "(626) 265-8632",
  80. "Fax" : "(626) 265-8633",
  81. "Website" : "http =//www.nowebsiteezstop.com"
  82. }, {
  83. "ID" : 9,
  84. "CompanyName" : "Clicker",
  85. "Address" : "1100 W. Artesia Blvd.",
  86. "City" : "Compton",
  87. "State" : "California",
  88. "Zipcode" : 90220,
  89. "Phone" : "(310) 884-9000",
  90. "Fax" : "(310) 884-9001",
  91. "Website" : "http =//www.nowebsiteclicker.com"
  92. }, {
  93. "ID" : 10,
  94. "CompanyName" : "Store of America",
  95. "Address" : "2401 Utah Ave. South",
  96. "City" : "Seattle",
  97. "State" : "Washington",
  98. "Zipcode" : 98134,
  99. "Phone" : "(206) 447-1575",
  100. "Fax" : "(206) 447-1576",
  101. "Website" : "http =//www.nowebsiteamerica.com"
  102. }, {
  103. "ID" : 11,
  104. "CompanyName" : "Zone Toys",
  105. "Address" : "1945 S Cienega Boulevard",
  106. "City" : "Los Angeles",
  107. "State" : "California",
  108. "Zipcode" : 90034,
  109. "Phone" : "(310) 237-5642",
  110. "Fax" : "(310) 237-5643",
  111. "Website" : "http =//www.nowebsitezonetoys.com"
  112. }, {
  113. "ID" : 12,
  114. "CompanyName" : "ACME",
  115. "Address" : "2525 E El Segundo Blvd",
  116. "City" : "El Segundo",
  117. "State" : "California",
  118. "Zipcode" : 90245,
  119. "Phone" : "(310) 536-0611",
  120. "Fax" : "(310) 536-0612",
  121. "Website" : "http =//www.nowebsiteacme.com"
  122. }, {
  123. "ID" : 13,
  124. "CompanyName" : "Super Mart of the West",
  125. "Address" : "702 SW 8th Street",
  126. "City" : "Bentonville",
  127. "State" : "Arkansas",
  128. "Zipcode" : 72716,
  129. "Phone" : "(800) 555-2797",
  130. "Fax" : "(800) 555-2171",
  131. "Website" : "http://www.nowebsitesupermart.com"
  132. }, {
  133. "ID" : 14,
  134. "CompanyName" : "Electronics Depot",
  135. "Address" : "2455 Paces Ferry Road NW",
  136. "City" : "Atlanta",
  137. "State" : "Georgia",
  138. "Zipcode" : 30339,
  139. "Phone" : "(800) 595-3232",
  140. "Fax" : "(800) 595-3231",
  141. "Website" : "http =//www.nowebsitedepot.com"
  142. }, {
  143. "ID" : 15,
  144. "CompanyName" : "K&S Music",
  145. "Address" : "1000 Nicllet Mall",
  146. "City" : "Minneapolis",
  147. "State" : "Minnesota",
  148. "Zipcode" : 55403,
  149. "Phone" : "(612) 304-6073",
  150. "Fax" : "(612) 304-6074",
  151. "Website" : "http =//www.nowebsitemusic.com"
  152. }, {
  153. "ID" : 16,
  154. "CompanyName" : "Tom's Club",
  155. "Address" : "999 Lake Drive",
  156. "City" : "Issaquah",
  157. "State" : "Washington",
  158. "Zipcode" : 98027,
  159. "Phone" : "(800) 955-2292",
  160. "Fax" : "(800) 955-2293",
  161. "Website" : "http =//www.nowebsitetomsclub.com"
  162. }, {
  163. "ID" : 17,
  164. "CompanyName" : "E-Mart",
  165. "Address" : "3333 Beverly Rd",
  166. "City" : "Hoffman Estates",
  167. "State" : "Illinois",
  168. "Zipcode" : 60179,
  169. "Phone" : "(847) 286-2500",
  170. "Fax" : "(847) 286-2501",
  171. "Website" : "http =//www.nowebsiteemart.com"
  172. }, {
  173. "ID" : 18,
  174. "CompanyName" : "Walters",
  175. "Address" : "200 Wilmot Rd",
  176. "City" : "Deerfield",
  177. "State" : "Illinois",
  178. "Zipcode" : 60015,
  179. "Phone" : "(847) 940-2500",
  180. "Fax" : "(847) 940-2501",
  181. "Website" : "http =//www.nowebsitewalters.com"
  182. }, {
  183. "ID" : 19,
  184. "CompanyName" : "StereoShack",
  185. "Address" : "400 Commerce S",
  186. "City" : "Fort Worth",
  187. "State" : "Texas",
  188. "Zipcode" : 76102,
  189. "Phone" : "(817) 820-0741",
  190. "Fax" : "(817) 820-0742",
  191. "Website" : "http =//www.nowebsiteshack.com"
  192. }, {
  193. "ID" : 20,
  194. "CompanyName" : "Circuit Town",
  195. "Address" : "2200 Kensington Court",
  196. "City" : "Oak Brook",
  197. "State" : "Illinois",
  198. "Zipcode" : 60523,
  199. "Phone" : "(800) 955-2929",
  200. "Fax" : "(800) 955-9392",
  201. "Website" : "http =//www.nowebsitecircuittown.com"
  202. }];
  203. function handleViewShown() {
  204. }
  205. var searchViewOptions = {
  206. };
  207. function handleSearchInSearchView() {
  208. }
  209. var viewModel = $.extend(BWA.CommonView.create(params, viewInfo, searchViewOptions, ko.observable(null), handleViewShown, null, handleSearchInSearchView),
  210. {
  211. testGrid: {
  212. dataSource: customers,
  213. columns: [{dataField:'CompanyName', cellTemplate: function (container, options) {
  214. container.height(100);
  215. $('<img />')
  216. .height(100)
  217. .attr('src', "\views\08_plan_establishment\sample1.png")
  218. .appendTo(container);
  219. }}, 'City', 'State', 'Phone', 'Fax']
  220. }
  221. });
  222. return viewModel;
  223. };