1var GoodsDetail = function() { 2 this.initialize.apply(this, arguments); 3} 4 5GoodsDetail.prototype = { 6 /** ãµã ãã¤ã«ã°ã«ã¼ã */ 7 thumbnailList: null, 8 9 /** ååã¢ã¤ã³ã³æç´° */ 10 goodsIconList: null, 11 12 /** SKUãªã¹ã */ 13 skuList: null, 14 15 /** ããã©ãæ§æåãªã¹ã */ 16 itemSelectionGoodsList: null, 17 18 /** ã¬ãã¥ã¼ãªã¹ã */ 19 reviewList: null, 20 21 skuDetailList1OnclickAjax: function(sender, e, isForce) { 22 var paramScreenId = document.getElementById("screenId").value; 23 var paramMode = document.getElementById("mode").value; 24 25 var paramShopNo = getValue("shopNo"); 26 var paramSalesGoodsCode = getValue("salesGoodsCode"); 27 var paramSysSkuClassifyCode1 = getValue("skuClassifyCode1"); 28 var paramSkuDetailListValue1 = getValue("skuDetailListValue1"); 29 var paramSysSkuClassifyCode2 = getValue("skuClassifyCode2"); 30 var paramSkuDetailListValue2 = getValue("skuDetailListValue2"); 31 var paramSysSkuClassifyCode3 = getValue("skuClassifyCode3"); 32 var paramSkuDetailListValue3 = getValue("skuDetailListValue3"); 33 var paramIdx = "1"; 34 var resultsStatus; 35 var errorMessage; 36 $.ajaxSetup({ cache: false }); 37 var ajaxUrl = getUrlWithContextPath("jp/eltex/xsp/ajax/custom/AjaxGoodsDetailOnClickBean.json", ""); 38 $.getJSON(ajaxUrl, {"screenId":paramScreenId, "mode":paramMode, "shopNo":paramShopNo, "salesGoodsCode":paramSalesGoodsCode, "sysSkuClassifyCode1":paramSysSkuClassifyCode1, "skuDetailListValue1":paramSkuDetailListValue1, "sysSkuClassifyCode2":paramSysSkuClassifyCode2, "skuDetailListValue2":paramSkuDetailListValue2, "sysSkuClassifyCode3":paramSysSkuClassifyCode3, "skuDetailListValue3":paramSkuDetailListValue3, "idx":paramIdx}, function(info) { 39 if (info == null || info == undefined || info == "") { 40 return; 41 } 42 if (!isNullorUndefined(info.resultsStatus)) { 43 resultsStatus = info.resultsStatus; 44 } 45 if (!isNullorUndefined(info.errorMessage)) { 46 errorMessage = info.errorMessage; 47 } 48 if (!isNullorUndefined(info.results)) { 49 info = info.results; 50 } 51 try { 52 screenItem.skuDetailList1OnclickAjaxSetBlank(); 53 if (!isNullorUndefined(errorMessage) && errorMessage != "") { 54 Validator.outputbyId("skuDetailList1", errorMessage); 55 return; 56 } 57 if (resultsStatus == 1) { 58 Validator.initbyId("skuDetailList1"); 59 60 var skuGoodsNameValue = info.skuGoodsName; 61 setSpanValue("goodsName", skuGoodsNameValue, true); 62 63 var skuDetailListOption2Value = info.skuDetailListOption2; 64 var skuDetailListOption2ValueKeys = info.skuDetailListOption2Keys; 65 setRadioSelectionsFromHash("skuDetailList2", skuDetailListOption2Value, skuDetailListOption2ValueKeys, ""); 66 67 var skuDetailListOption3Value = info.skuDetailListOption3; 68 var skuDetailListOption3ValueKeys = info.skuDetailListOption3Keys; 69 setRadioSelectionsFromHash("skuDetailList3", skuDetailListOption3Value, skuDetailListOption3ValueKeys, ""); 70 71 var skuSelectedSalesGoodsCodeValue = info.skuSelectedSalesGoodsCode; 72 setValue("skuSelectedSalesGoodsCode", skuSelectedSalesGoodsCodeValue, true); 73 } 74 75 // Callback å¦ç 76 cartActiveDecision(); 77 } finally { 78 if (typeof skuDetailList1OnclickAjaxPostProcess == "function") { 79 skuDetailList1OnclickAjaxPostProcess(info, sender, e); 80 } 81 } 82 }); 83 }, 84 85 skuDetailList1OnclickAjaxSetBlank: function() { 86 setSpanValue("goodsName", "", true); 87 removeSelectionsWithoutTemplate("skuDetailList2", ""); 88 removeSelectionsWithoutTemplate("skuDetailList3", ""); 89 setValue("skuSelectedSalesGoodsCode", "", true); 90 }, 91 92 skuDetailList2OnclickAjax: function(sender, e, isForce) { 93 var paramScreenId = document.getElementById("screenId").value; 94 var paramMode = document.getElementById("mode").value; 95 96 var paramShopNo = getValue("shopNo"); 97 var paramSalesGoodsCode = getValue("salesGoodsCode"); 98 var paramSysSkuClassifyCode1 = getValue("skuClassifyCode1"); 99 var paramSkuDetailListValue1 = getValue("skuDetailListValue1"); 100 var paramSysSkuClassifyCode2 = getValue("skuClassifyCode2"); 101 var paramSkuDetailListValue2 = getValue("skuDetailListValue2"); 102 var paramSysSkuClassifyCode3 = getValue("skuClassifyCode3"); 103 var paramSkuDetailListValue3 = getValue("skuDetailListValue3"); 104 var paramIdx = "2"; 105 var resultsStatus; 106 var errorMessage; 107 $.ajaxSetup({ cache: false }); 108 var ajaxUrl = getUrlWithContextPath("jp/eltex/xsp/ajax/custom/AjaxGoodsDetailOnClickBean.json", ""); 109 $.getJSON(ajaxUrl, {"screenId":paramScreenId, "mode":paramMode, "shopNo":paramShopNo, "salesGoodsCode":paramSalesGoodsCode, "sysSkuClassifyCode1":paramSysSkuClassifyCode1, "skuDetailListValue1":paramSkuDetailListValue1, "sysSkuClassifyCode2":paramSysSkuClassifyCode2, "skuDetailListValue2":paramSkuDetailListValue2, "sysSkuClassifyCode3":paramSysSkuClassifyCode3, "skuDetailListValue3":paramSkuDetailListValue3, "idx":paramIdx}, function(info) { 110 if (info == null || info == undefined || info == "") { 111 return; 112 } 113 if (!isNullorUndefined(info.resultsStatus)) { 114 resultsStatus = info.resultsStatus; 115 } 116 if (!isNullorUndefined(info.errorMessage)) { 117 errorMessage = info.errorMessage; 118 } 119 if (!isNullorUndefined(info.results)) { 120 info = info.results; 121 } 122 try { 123 screenItem.skuDetailList2OnclickAjaxSetBlank(); 124 if (!isNullorUndefined(errorMessage) && errorMessage != "") { 125 Validator.outputbyId("skuDetailList2", errorMessage); 126 return; 127 } 128 if (resultsStatus == 1) { 129 Validator.initbyId("skuDetailList2"); 130 131 var skuGoodsNameValue = info.skuGoodsName; 132 setSpanValue("goodsName", skuGoodsNameValue, true); 133 134 var skuDetailListOption3Value = info.skuDetailListOption3; 135 var skuDetailListOption3ValueKeys = info.skuDetailListOption3Keys; 136 setRadioSelectionsFromHash("skuDetailList3", skuDetailListOption3Value, skuDetailListOption3ValueKeys, ""); 137 138 var skuSelectedSalesGoodsCodeValue = info.skuSelectedSalesGoodsCode; 139 setValue("skuSelectedSalesGoodsCode", skuSelectedSalesGoodsCodeValue, true); 140 } 141 142 // Callback å¦ç 143 cartActiveDecision(); 144 } finally { 145 if (typeof skuDetailList2OnclickAjaxPostProcess == "function") { 146 skuDetailList2OnclickAjaxPostProcess(info, sender, e); 147 } 148 } 149 }); 150 }, 151 152 skuDetailList2OnclickAjaxSetBlank: function() { 153 setSpanValue("goodsName", "", true); 154 removeSelectionsWithoutTemplate("skuDetailList3", ""); 155 setValue("skuSelectedSalesGoodsCode", "", true); 156 }, 157 158 addStockRequestOnclickAjax: function(sender, e, isForce) { 159 var paramScreenId = document.getElementById("screenId").value; 160 var paramMode = document.getElementById("mode").value; 161 162 var paramSalesGoodsCode = getValue("salesGoodsCode"); 163 var paramSysGoodsCode = getValue("sysGoodsCode"); 164 var paramSysGoodsSkuCode = getValue("sysGoodsSkuCode"); 165 if (isNullorUndefinedorEmpty(paramSalesGoodsCode) || isNullorUndefinedorEmpty(paramSysGoodsCode) || isNullorUndefinedorEmpty(paramSysGoodsSkuCode)) { 166 this.addStockRequestOnclickAjaxSetBlank(); 167 return; 168 } 169 var resultsStatus; 170 var errorMessage; 171 $.ajaxSetup({ cache: false }); 172 var ajaxUrl = getUrlWithContextPath("jp/eltex/xsp/ajax/custom/AjaxStockRequestSaveBean.json", ""); 173 $.getJSON(ajaxUrl, {"screenId":paramScreenId, "mode":paramMode, "salesGoodsCode":paramSalesGoodsCode, "sysGoodsCode":paramSysGoodsCode, "sysGoodsSkuCode":paramSysGoodsSkuCode}, function(info) { 174 if (info == null || info == undefined || info == "") { 175 return; 176 } 177 if (!isNullorUndefined(info.resultsStatus)) { 178 resultsStatus = info.resultsStatus; 179 } 180 if (!isNullorUndefined(info.errorMessage)) { 181 errorMessage = info.errorMessage; 182 } 183 if (!isNullorUndefined(info.results)) { 184 info = info.results; 185 } 186 try { 187 screenItem.addStockRequestOnclickAjaxSetBlank(); 188 if (!isNullorUndefined(errorMessage) && errorMessage != "") { 189 Validator.outputbyId("addStockRequest", errorMessage); 190 return; 191 } 192 if (resultsStatus == 1) { 193 Validator.initbyId("addStockRequest"); 194 } 195 196 // Callback å¦ç 197 addStockRequestCallback(info, resultsStatus, null); 198 } finally { 199 if (typeof addStockRequestOnclickAjaxPostProcess == "function") { 200 addStockRequestOnclickAjaxPostProcess(info, sender, e); 201 } 202 } 203 }); 204 }, 205 206 addStockRequestOnclickAjaxSetBlank: function() { 207 }, 208 209 skuListAddstockrequestskuOnclickAjax: function(sender, e, rowIndex, indexSymbol, isForce) { 210 var paramScreenId = document.getElementById("screenId").value; 211 var paramMode = document.getElementById("mode").value; 212 213 var paramSalesGoodsCode = getValue("salesGoodsCode", indexSymbol); 214 var paramSysGoodsCode = getValue("sysGoodsCode", indexSymbol); 215 var paramSysGoodsSkuCode = getValue("sysGoodsSkuCode", indexSymbol); 216 if (isNullorUndefinedorEmpty(paramSalesGoodsCode) || isNullorUndefinedorEmpty(paramSysGoodsCode) || isNullorUndefinedorEmpty(paramSysGoodsSkuCode)) { 217 this.skuListAddstockrequestskuOnclickAjaxSetBlank(rowIndex, indexSymbol); 218 return; 219 } 220 var resultsStatus; 221 var errorMessage; 222 $.ajaxSetup({ cache: false }); 223 var ajaxUrl = getUrlWithContextPath("jp/eltex/xsp/ajax/custom/AjaxStockRequestSaveBean.json", ""); 224 $.getJSON(ajaxUrl, {"screenId":paramScreenId, "mode":paramMode, "salesGoodsCode":paramSalesGoodsCode, "sysGoodsCode":paramSysGoodsCode, "sysGoodsSkuCode":paramSysGoodsSkuCode}, function(info) { 225 if (info == null || info == undefined || info == "") { 226 return; 227 } 228 if (!isNullorUndefined(info.resultsStatus)) { 229 resultsStatus = info.resultsStatus; 230 } 231 if (!isNullorUndefined(info.errorMessage)) { 232 errorMessage = info.errorMessage; 233 } 234 if (!isNullorUndefined(info.results)) { 235 info = info.results; 236 } 237 try { 238 screenItem.skuListAddstockrequestskuOnclickAjaxSetBlank(rowIndex, indexSymbol); 239 if (!isNullorUndefined(errorMessage) && errorMessage != "") { 240 Validator.outputbyId("addStockRequestSku" + indexSymbol, errorMessage); 241 return; 242 } 243 if (resultsStatus == 1) { 244 Validator.initbyId("addStockRequestSku" + indexSymbol); 245 } 246 247 // Callback å¦ç 248 addStockRequestCallback(info, resultsStatus, null); 249 } finally { 250 if (typeof skuListAddstockrequestskuOnclickAjaxPostProcess == "function") { 251 skuListAddstockrequestskuOnclickAjaxPostProcess(info, sender, e, rowIndex, indexSymbol); 252 } 253 } 254 }); 255 }, 256 257 skuListAddstockrequestskuOnclickAjaxSetBlank: function(rowIndex, indexSymbol) { 258 }, 259 260 addFavoriteLinkOnclickAjax: function(sender, e, isForce) { 261 var paramScreenId = document.getElementById("screenId").value; 262 var paramMode = document.getElementById("mode").value; 263 264 var paramSalesGoodsCode = getValue("salesGoodsCode"); 265 if (isNullorUndefinedorEmpty(paramSalesGoodsCode)) { 266 this.addFavoriteLinkOnclickAjaxSetBlank(); 267 return; 268 } 269 var resultsStatus; 270 var errorMessage; 271 $.ajaxSetup({ cache: false }); 272 var ajaxUrl = getUrlWithContextPath("jp/eltex/xsp/ajax/custom/AjaxGoodsAddFavoriteBean.json", ""); 273 $.getJSON(ajaxUrl, {"screenId":paramScreenId, "mode":paramMode, "salesGoodsCode":paramSalesGoodsCode}, function(info) { 274 if (info == null || info == undefined || info == "") { 275 return; 276 } 277 if (!isNullorUndefined(info.resultsStatus)) { 278 resultsStatus = info.resultsStatus; 279 } 280 if (!isNullorUndefined(info.errorMessage)) { 281 errorMessage = info.errorMessage; 282 } 283 if (!isNullorUndefined(info.results)) { 284 info = info.results; 285 } 286 try { 287 screenItem.addFavoriteLinkOnclickAjaxSetBlank(); 288 if (!isNullorUndefined(errorMessage) && errorMessage != "") { 289 Validator.outputbyId("addFavoriteLink", errorMessage); 290 return; 291 } 292 if (resultsStatus == 1) { 293 Validator.initbyId("addFavoriteLink"); 294 } 295 296 // Callback å¦ç 297 addFavoriteCallback(info, resultsStatus, null); 298switchFavoriteLinkAdded(resultsStatus, paramSalesGoodsCode, true, false); 299 } finally { 300 if (typeof addFavoriteLinkOnclickAjaxPostProcess == "function") { 301 addFavoriteLinkOnclickAjaxPostProcess(info, sender, e); 302 } 303 } 304 }); 305 }, 306 307 addFavoriteLinkOnclickAjaxSetBlank: function() { 308 }, 309 310 skuListAddfavoritelinkskuOnclickAjax: function(sender, e, rowIndex, indexSymbol, isForce) { 311 var paramScreenId = document.getElementById("screenId").value; 312 var paramMode = document.getElementById("mode").value; 313 314 var paramSalesGoodsCode = getValue("salesGoodsCode", indexSymbol); 315 if (isNullorUndefinedorEmpty(paramSalesGoodsCode)) { 316 this.skuListAddfavoritelinkskuOnclickAjaxSetBlank(rowIndex, indexSymbol); 317 return; 318 } 319 var resultsStatus; 320 var errorMessage; 321 $.ajaxSetup({ cache: false }); 322 var ajaxUrl = getUrlWithContextPath("jp/eltex/xsp/ajax/custom/AjaxGoodsAddFavoriteBean.json", ""); 323 $.getJSON(ajaxUrl, {"screenId":paramScreenId, "mode":paramMode, "salesGoodsCode":paramSalesGoodsCode}, function(info) { 324 if (info == null || info == undefined || info == "") { 325 return; 326 } 327 if (!isNullorUndefined(info.resultsStatus)) { 328 resultsStatus = info.resultsStatus; 329 } 330 if (!isNullorUndefined(info.errorMessage)) { 331 errorMessage = info.errorMessage; 332 } 333 if (!isNullorUndefined(info.results)) { 334 info = info.results; 335 } 336 try { 337 screenItem.skuListAddfavoritelinkskuOnclickAjaxSetBlank(rowIndex, indexSymbol); 338 if (!isNullorUndefined(errorMessage) && errorMessage != "") { 339 Validator.outputbyId("addFavoriteLinkSku" + indexSymbol, errorMessage); 340 return; 341 } 342 if (resultsStatus == 1) { 343 Validator.initbyId("addFavoriteLinkSku" + indexSymbol); 344
344 } 345 346 // Callback å¦ç 347 addFavoriteCallback(info, resultsStatus, null); 348switchFavoriteLinkAdded(resultsStatus, paramSalesGoodsCode, true, true); 349 } finally { 350 if (typeof skuListAddfavoritelinkskuOnclickAjaxPostProcess == "function") { 351 skuListAddfavoritelinkskuOnclickAjaxPostProcess(info, sender, e, rowIndex, indexSymbol); 352 } 353 } 354 }); 355 }, 356 357 skuListAddfavoritelinkskuOnclickAjaxSetBlank: function(rowIndex, indexSymbol) { 358 }, 359 360 removeFavoriteLinkOnclickAjax: function(sender, e, isForce) { 361 var paramScreenId = document.getElementById("screenId").value; 362 var paramMode = document.getElementById("mode").value; 363 364 var paramSysGoodsSkuCode = getValue("sysGoodsSkuCode"); 365 var paramSalesGoodsCode = getValue("salesGoodsCode"); 366 if (isNullorUndefinedorEmpty(paramSysGoodsSkuCode) || isNullorUndefinedorEmpty(paramSalesGoodsCode)) { 367 this.removeFavoriteLinkOnclickAjaxSetBlank(); 368 return; 369 } 370 var resultsStatus; 371 var errorMessage; 372 $.ajaxSetup({ cache: false }); 373 var ajaxUrl = getUrlWithContextPath("jp/eltex/xsp/ajax/custom/AjaxGoodsRemoveFavoriteBean.json", ""); 374 $.getJSON(ajaxUrl, {"screenId":paramScreenId, "mode":paramMode, "sysGoodsSkuCode":paramSysGoodsSkuCode, "salesGoodsCode":paramSalesGoodsCode}, function(info) { 375 if (info == null || info == undefined || info == "") { 376 return; 377 } 378 if (!isNullorUndefined(info.resultsStatus)) { 379 resultsStatus = info.resultsStatus; 380 } 381 if (!isNullorUndefined(info.errorMessage)) { 382 errorMessage = info.errorMessage; 383 } 384 if (!isNullorUndefined(info.results)) { 385 info = info.results; 386 } 387 try { 388 screenItem.removeFavoriteLinkOnclickAjaxSetBlank(); 389 if (!isNullorUndefined(errorMessage) && errorMessage != "") { 390 Validator.outputbyId("removeFavoriteLink", errorMessage); 391 return; 392 } 393 if (resultsStatus == 1) { 394 Validator.initbyId("removeFavoriteLink"); 395 } 396 397 // Callback å¦ç 398 removeFavoriteCallback(info, resultsStatus, null); 399switchFavoriteLinkAdded(resultsStatus, paramSalesGoodsCode, false, false); 400 } finally { 401 if (typeof removeFavoriteLinkOnclickAjaxPostProcess == "function") { 402 removeFavoriteLinkOnclickAjaxPostProcess(info, sender, e); 403 } 404 } 405 }); 406 }, 407 408 removeFavoriteLinkOnclickAjaxSetBlank: function() { 409 }, 410 411 skuListRemovefavoritelinkskuOnclickAjax: function(sender, e, rowIndex, indexSymbol, isForce) { 412 var paramScreenId = document.getElementById("screenId").value; 413 var paramMode = document.getElementById("mode").value; 414 415 var paramSysGoodsSkuCode = getValue("sysGoodsSkuCode", indexSymbol); 416 var paramSalesGoodsCode = getValue("salesGoodsCode", indexSymbol); 417 if (isNullorUndefinedorEmpty(paramSysGoodsSkuCode) || isNullorUndefinedorEmpty(paramSalesGoodsCode)) { 418 this.skuListRemovefavoritelinkskuOnclickAjaxSetBlank(rowIndex, indexSymbol); 419 return; 420 } 421 var resultsStatus; 422 var errorMessage; 423 $.ajaxSetup({ cache: false }); 424 var ajaxUrl = getUrlWithContextPath("jp/eltex/xsp/ajax/custom/AjaxGoodsRemoveFavoriteBean.json", ""); 425 $.getJSON(ajaxUrl, {"screenId":paramScreenId, "mode":paramMode, "sysGoodsSkuCode":paramSysGoodsSkuCode, "salesGoodsCode":paramSalesGoodsCode}, function(info) { 426 if (info == null || info == undefined || info == "") { 427 return; 428 } 429 if (!isNullorUndefined(info.resultsStatus)) { 430 resultsStatus = info.resultsStatus; 431 } 432 if (!isNullorUndefined(info.errorMessage)) { 433 errorMessage = info.errorMessage; 434 } 435 if (!isNullorUndefined(info.results)) { 436 info = info.results; 437 } 438 try { 439 screenItem.skuListRemovefavoritelinkskuOnclickAjaxSetBlank(rowIndex, indexSymbol); 440 if (!isNullorUndefined(errorMessage) && errorMessage != "") { 441 Validator.outputbyId("removeFavoriteLinkSku" + indexSymbol, errorMessage); 442 return; 443 } 444 if (resultsStatus == 1) { 445 Validator.initbyId("removeFavoriteLinkSku" + indexSymbol); 446 } 447 448 // Callback å¦ç 449 removeFavoriteCallback(info, resultsStatus, null); 450switchFavoriteLinkAdded(resultsStatus, paramSalesGoodsCode, false, true); 451 } finally { 452 if (typeof skuListRemovefavoritelinkskuOnclickAjaxPostProcess == "function") { 453 skuListRemovefavoritelinkskuOnclickAjaxPostProcess(info, sender, e, rowIndex, indexSymbol); 454 } 455 } 456 }); 457 }, 458 459 skuListRemovefavoritelinkskuOnclickAjaxSetBlank: function(rowIndex, indexSymbol) { 460 }, 461 462 checkPlusButtonAction : function() { 463 return false;
464 }, 465 466 checkMinusButtonAction : function() { 467 return false; 468 }, 469 470 checkAddRapidOrderCartAction : function() { 471 var isError = false; 472 var form = document.forms["formMain"]; 473 if (this.checkGoodsDetailLayoutInput(form, true, "")) { 474 isError = true; 475 } 476 if (isError) { 477 existErrorAction(); 478 } 479 return isError; 480 }, 481 482 checkAddCartAction : function() { 483 var isError = false; 484 var form = document.forms["formMain"]; 485 if (this.checkGoodsDetailLayoutInput(form, true, "")) { 486 isError = true; 487 } 488 if (isError) { 489 existErrorAction(); 490 } 491 return isError; 492 }, 493 494 checkAddStockRequestAction : function() { 495 return false; 496 }, 497 498 checkToPrePurchaseGoodsAction : function() { 499 var isError = false; 500 var form = document.forms["formMain"]; 501 if (this.checkGoodsDetailLayoutInput(form, true, "")) { 502 isError = true; 503 } 504 if (isError) { 505 existErrorAction(); 506 } 507 return isError; 508 }, 509 510 checkToBrandConsentRequestAction : function() { 511 var isError = false; 512 var form = document.forms["formMain"]; 513 if (this.checkGoodsDetailLayoutInput(form, true, "")) { 514 isError = true; 515 } 516 if (isError) { 517 existErrorAction(); 518 } 519 return isError; 520 }, 521 522 checkAddArrivalAction : function() { 523 var isError = false; 524 var form = document.forms["formMain"]; 525 if (this.checkGoodsDetailLayoutInput(form, true, "")) { 526 isError = true; 527 } 528 if (isError) { 529 existErrorAction(); 530 } 531 return isError; 532 }, 533 534 checkAddFavoriteAction : function() { 535 var isError = false; 536 var form = document.forms["formMain"]; 537 if (this.checkGoodsDetailLayoutInput(form, true, "")) { 538 isError = true; 539 } 540 if (isError) { 541 existErrorAction(); 542 } 543 return isError; 544 }, 545 546 checkAddFavoriteLinkAction : function() { 547 return false; 548 }, 549 550 checkRemoveFavoriteLinkAction : function() { 551 return false; 552 }, 553 554 checkPlusButtonAction : function(rowIndex) { 555 return false; 556 }, 557 558 checkMinusButtonAction : function(rowIndex) { 559 return false; 560 }, 561 562 checkRapidOrderAddCartSkuAction : function(rowIndex) { 563 var isError = false; 564 var form = document.forms["formMain"]; 565 if (this.checkGoodsDetailLayoutInput(form, true, "")) { 566 isError = true; 567 } 568 if (isError) { 569 existErrorAction(); 570 } 571 return isError; 572 }, 573 574 checkAddCartSkuAction : function(rowIndex) { 575 var isError = false; 576 var form = document.forms["formMain"]; 577 if (this.checkGoodsDetailLayoutInput(form, true, "")) { 578 isError = true; 579 } 580 if (isError) { 581 existErrorAction(); 582 } 583 return isError; 584 }, 585 586 checkAddStockRequestSkuAction : function(rowIndex) { 587 return false; 588 }, 589 590 checkToPrePurchaseGoodsSkuAction : function(rowIndex) { 591 var isError = false; 592 var form = document.forms["formMain"]; 593 if (this.checkGoodsDetailLayoutInput(form, true, "")) { 594 isError = true; 595 } 596 if (isError) { 597 existErrorAction(); 598 } 599 return isError; 600 }, 601 602 checkToBrandConsentRequestSkuAction : function(rowIndex) { 603 var isError = false; 604 var form = document.forms["formMain"]; 605 if (this.checkGoodsDetailLayoutInput(form, true, "")) { 606 isError = true; 607 } 608 if (isError) { 609 existErrorAction(); 610 } 611 return isError; 612 }, 613 614 checkAddArrivalSkuAction : function(rowIndex) { 615 var isError = false; 616 var form = document.forms["formMain"]; 617 if (this.checkGoodsDetailLayoutInput(form, true, "")) { 618 isError = true; 619 } 620 if (isError) { 621 existErrorAction(); 622 } 623 return isError; 624 }, 625 626 checkAddFavoriteSkuAction : function(rowIndex) { 627 var isError = false;
628 var form = document.forms["formMain"]; 629 if (this.checkGoodsDetailLayoutInput(form, true, "")) { 630 isError = true; 631 } 632 if (isError) { 633 existErrorAction(); 634 } 635 return isError; 636 }, 637 638 checkAddFavoriteLinkSkuAction : function(rowIndex) { 639 return false; 640 }, 641 642 checkRemoveFavoriteLinkSkuAction : function(rowIndex) { 643 return false; 644 }, 645 646 checkAddSelectedRapidOrderCartAction : function() { 647 var isError = false; 648 var form = document.forms["formMain"]; 649 if (this.checkGoodsDetailLayoutInput(form, true, "")) { 650 isError = true; 651 } 652 if (isError) { 653 existErrorAction(); 654 } 655 return isError; 656 }, 657 658 checkOrderSelectedGoodsAction : function() { 659 var isError = false; 660 var form = document.forms["formMain"]; 661 if (this.checkGoodsDetailLayoutInput(form, true, "")) { 662 isError = true; 663 } 664 if (isError) { 665 existErrorAction(); 666 } 667 return isError; 668 }, 669 670 checkGoodsCountAction : function(rowIndex) { 671 return false; 672 }, 673 674 checkSelectGoodsPlusButtonAction : function(rowIndex) { 675 return false; 676 }, 677 678 checkSelectGoodsMinusButtonAction : function(rowIndex) { 679 return false; 680 }, 681 682 checkReviewButtonAction : function() { 683 var isError = false; 684 var form = document.forms["formMain"]; 685 if (this.checkGoodsDetailLayoutInput(form, true, "")) { 686 isError = true; 687 } 688 if (isError) { 689 existErrorAction(); 690 } 691 return isError; 692 }, 693 694 checkTopGroupNameInput: function(form, required, indexSymbol) { 695 if (form == null || form == undefined) { 696 return false; 697 } 698 var isError = false; 699 if (isNullorUndefined(indexSymbol)) { 700 indexSymbol = ""; 701 } 702 isError = this.checkGoodsDetailLayoutInput(form, required, indexSymbol) || isError; 703 return isError; 704 }, 705 706 checkGoodsDetailLayoutInput: function(form, required, indexSymbol) { 707 if (form == null || form == undefined) { 708 return false; 709 } 710 var isError = false; 711 if (isNullorUndefined(indexSymbol)) { 712 indexSymbol = ""; 713 } 714 isError = this.checkSkuSelectedGroupInput(form, required, indexSymbol) || isError; 715 isError = this.checkGoodsIconGroupInput(form, required, indexSymbol) || isError; 716 isError = this.checkGoodsActionGroupInput(form, required, indexSymbol) || isError; 717 isError = this.checkSkuListInput(form, required, indexSymbol) || isError; 718 isError = this.checkSelectGoodsAreaInput(form, required, indexSymbol) || isError; 719 return isError; 720 }, 721 722 checkSkuSelectedGroupInput: function(form, required, indexSymbol) { 723 if (form == null || form == undefined) { 724 return false; 725 } 726 var isError = false; 727 if (isNullorUndefined(indexSymbol)) { 728 indexSymbol = ""; 729 } 730 isError = this.checkSkuClassifyGroup1Input(form, required, indexSymbol) || isError; 731 isError = this.checkSkuClassifyGroup2Input(form, required, indexSymbol) || isError; 732 isError = this.checkSkuClassifyGroup3Input(form, required, indexSymbol) || isError; 733 return isError; 734 }, 735 736 checkSkuClassifyGroup1Input: function(form, required, indexSymbol) { 737 if (form == null || form == undefined) { 738 return false; 739 } 740 var isError = false; 741 if (isNullorUndefined(indexSymbol)) { 742 indexSymbol = ""; 743 } 744 var skuDetailList1ElementId = "skuDetailList1" + indexSymbol; 745 var skuDetailList1Element = getFirstElement(skuDetailList1ElementId); 746 if (skuDetailList1Element != undefined) { 747 if ((isNullorUndefined(required) || required) && skuDetailList1Element.className.indexOf("REQUIRED_RADIO") >= 0) { 748 Validator.init(skuDetailList1Element); 749 if (!Validator.check(skuDetailList1Element, "input")) { 750 isError = true; 751 } 752 } 753 } 754 755 return isError; 756 }, 757 758 checkSkuClassifyGroup2Input: function(form, required, indexSymbol) { 759 if (form == null || form == undefined) { 760 return false;
761 } 762 var isError = false; 763 if (isNullorUndefined(indexSymbol)) { 764 indexSymbol = ""; 765 } 766 var skuDetailList2ElementId = "skuDetailList2" + indexSymbol; 767 var skuDetailList2Element = getFirstElement(skuDetailList2ElementId); 768 if (skuDetailList2Element != undefined) { 769 if ((isNullorUndefined(required) || required) && skuDetailList2Element.className.indexOf("REQUIRED_RADIO") >= 0) { 770 Validator.init(skuDetailList2Element); 771 if (!Validator.check(skuDetailList2Element, "input")) { 772 isError = true; 773 } 774 } 775 } 776 777 return isError; 778 }, 779 780 checkSkuClassifyGroup3Input: function(form, required, indexSymbol) { 781 if (form == null || form == undefined) { 782 return false; 783 } 784 var isError = false; 785 if (isNullorUndefined(indexSymbol)) { 786 indexSymbol = ""; 787 } 788 var skuDetailList3ElementId = "skuDetailList3" + indexSymbol; 789 var skuDetailList3Element = getFirstElement(skuDetailList3ElementId); 790 if (skuDetailList3Element != undefined) { 791 if ((isNullorUndefined(required) || required) && skuDetailList3Element.className.indexOf("REQUIRED_RADIO") >= 0) { 792 Validator.init(skuDetailList3Element); 793 if (!Validator.check(skuDetailList3Element, "input")) { 794 isError = true; 795 } 796 } 797 } 798 799 return isError; 800 }, 801 802 checkGoodsIconGroupInput: function(form, required, indexSymbol) { 803 if (form == null || form == undefined) { 804 return false; 805 } 806 var isError = false; 807 if (isNullorUndefined(indexSymbol)) { 808 indexSymbol = ""; 809 } 810 isError = this.checkGoodsIconListInput(form, required, indexSymbol) || isError; 811 return isError; 812 }, 813 814 checkGoodsIconListInput: function(form, required, indexSymbol) { 815 if (form == null || form == undefined) { 816 return false; 817 } 818 var isError = false; 819 if (isNullorUndefined(indexSymbol)) { 820 indexSymbol = ""; 821 } 822 var goodsIconListDataSize = 0; 823 var goodsIconListDataSizeElement = document.getElementById("goodsIconListDataSize" + indexSymbol); 824 if (goodsIconListDataSizeElement != null && goodsIconListDataSizeElement != undefined) { 825 var goodsIconListDataSizeValue = parseInt(goodsIconListDataSizeElement.value) 826 if (goodsIconListDataSizeValue != NaN) { 827 goodsIconListDataSize = goodsIconListDataSizeValue; 828 } 829 } 830 for (var i = 0; i < goodsIconListDataSize; i++) { 831 var isDispIconElementId = "isDispIcon" + indexSymbol + "_" + i; 832 var isDispIconElement = getFirstElement(isDispIconElementId); 833 if (isDispIconElement != undefined) { 834 if ((isNullorUndefined(required) || required) && isDispIconElement.className.indexOf("REQUIRED_RADIO") >= 0) { 835 Validator.init(isDispIconElement); 836 if (!Validator.check(isDispIconElement, "input")) { 837 isError = true; 838 } 839 } 840 } 841 842 } 843 return isError; 844 }, 845 846 checkGoodsActionGroupInput: function(form, required, indexSymbol) { 847 if (form == null || form == undefined) { 848 return false; 849 } 850 var isError = false; 851 if (isNullorUndefined(indexSymbol)) { 852 indexSymbol = ""; 853 } 854 var addCountElementId = "addCount" + indexSymbol; 855 var addCountElement = getFirstElement(addCountElementId); 856 if (addCountElement != undefined) { 857 if ((isNullorUndefined(required) || required) && addCountElement.className.indexOf("REQUIRED_COMBO") >= 0) { 858 Validator.init(addCountElement); 859 if (!Validator.check(addCountElement, "input")) { 860 isError = true; 861 } 862 } 863 } 864 865 return isError; 866 }, 867 868 checkSkuListInput: function(form, required, indexSymbol) { 869 if (form == null || form == undefined) { 870 return false;
871 } 872 var isError = false; 873 if (isNullorUndefined(indexSymbol)) { 874 indexSymbol = ""; 875 } 876 var skuListDataSize = 0; 877 var skuListDataSizeElement = document.getElementById("skuListDataSize" + indexSymbol); 878 if (skuListDataSizeElement != null && skuListDataSizeElement != undefined) { 879 var skuListDataSizeValue = parseInt(skuListDataSizeElement.value) 880 if (skuListDataSizeValue != NaN) { 881 skuListDataSize = skuListDataSizeValue; 882 } 883 } 884 for (var i = 0; i < skuListDataSize; i++) { 885 isError = this.checkSkuGoodsActionGroupInput(form, required, indexSymbol + "_" + i) || isError; 886 } 887 return isError; 888 }, 889 890 checkSkuGoodsActionGroupInput: function(form, required, indexSymbol) { 891 if (form == null || form == undefined) { 892 return false; 893 } 894 var isError = false; 895 if (isNullorUndefined(indexSymbol)) { 896 indexSymbol = ""; 897 } 898 var addCountElementId = "addCount" + indexSymbol; 899 var addCountElement = getFirstElement(addCountElementId); 900 if (addCountElement != undefined) { 901 if ((isNullorUndefined(required) || required) && addCountElement.className.indexOf("REQUIRED_COMBO") >= 0) { 902 Validator.init(addCountElement); 903 if (!Validator.check(addCountElement, "input")) { 904 isError = true; 905 } 906 } 907 } 908 909 return isError; 910 }, 911 912 checkSelectGoodsAreaInput: function(form, required, indexSymbol) { 913 if (form == null || form == undefined) { 914 return false; 915 } 916 var isError = false; 917 if (isNullorUndefined(indexSymbol)) { 918 indexSymbol = ""; 919 } 920 isError = this.checkItemSelectionGoodsListInput(form, required, indexSymbol) || isError; 921 return isError; 922 }, 923 924 checkItemSelectionGoodsListInput: function(form, required, indexSymbol) { 925 if (form == null || form == undefined) { 926 return false; 927 } 928 var isError = false; 929 if (isNullorUndefined(indexSymbol)) { 930 indexSymbol = ""; 931 } 932 var itemSelectionGoodsListDataSize = 0; 933 var itemSelectionGoodsListDataSizeElement = document.getElementById("itemSelectionGoodsListDataSize" + indexSymbol); 934 if (itemSelectionGoodsListDataSizeElement != null && itemSelectionGoodsListDataSizeElement != undefined) { 935 var itemSelectionGoodsListDataSizeValue = parseInt(itemSelectionGoodsListDataSizeElement.value) 936 if (itemSelectionGoodsListDataSizeValue != NaN) { 937 itemSelectionGoodsListDataSize = itemSelectionGoodsListDataSizeValue; 938 } 939 } 940 for (var i = 0; i < itemSelectionGoodsListDataSize; i++) { 941 var goodsCountElementId = "goodsCount" + indexSymbol + "_" + i; 942 var goodsCountElement = getFirstElement(goodsCountElementId); 943 if (goodsCountElement != undefined) { 944 if ((isNullorUndefined(required) || required) && goodsCountElement.className.indexOf("REQUIRED_COMBO") >= 0) { 945 Validator.init(goodsCountElement); 946 if (!Validator.check(goodsCountElement, "input")) { 947 isError = true; 948 } 949 } 950 } 951 952 } 953 return isError; 954 }, 955 956 checkSearchKeyInput: function(form, required, indexSymbol) { 957 if (form == null || form == undefined) { 958 return false; 959 } 960 var isError = false; 961 var thumbnailListDataSize = 0; 962 var thumbnailListDataSizeElement = document.getElementById("thumbnailListDataSize" + indexSymbol); 963 if (thumbnailListDataSizeElement != null && thumbnailListDataSizeElement != undefined) { 964 var thumbnailListDataSizeValue = parseInt(thumbnailListDataSizeElement.value) 965 if (thumbnailListDataSizeValue != NaN) { 966 thumbnailListDataSize = thumbnailListDataSizeValue; 967 } 968 } 969 for (var i = 0; i < thumbnailListDataSize; i++) { 970 } 971 var goodsIconListDataSize = 0; 972 var goodsIconListDataSizeElement = document.getElementById("goodsIconListDataSize" + indexSymbol); 973 if (goodsIconListDataSizeElement != null && goodsIconListDataSizeElement != undefined) { 974 var goodsIconListDataSizeValue = parseInt(goodsIconListDataSizeElement.value) 975 if (goodsIconListDataSizeValue != NaN) { 976 goodsIconListDataSize = goodsIconListDataSizeValue; 977 } 978 } 979 for (var i = 0; i < goodsIconListDataSize; i++) { 980 } 981 var skuListDataSize = 0; 982 var skuListDataSizeElement = document.getElementById("skuListDataSize" + indexSymbol); 983 if (skuListDataSizeElement != null && skuListDataSizeElement != undefined) { 984 var skuListDataSizeValue = parseInt(skuListDataSizeElement.value) 985 if (skuListDataSizeValue != NaN) { 986 skuListDataSize = skuListDataSizeValue; 987 } 988 } 989 for (var i = 0; i < skuListDataSize; i++) { 990 } 991 var itemSelectionGoodsListDataSize = 0; 992 var itemSelectionGoodsListDataSizeElement = document.getElementById("itemSelectionGoodsListDataSize" + indexSymbol); 993 if (itemSelectionGoodsListDataSizeElement != null && itemSelectionGoodsListDataSizeElement != undefined) { 994 var itemSelectionGoodsListDataSizeValue = parseInt(itemSelectionGoodsListDataSizeElement.value) 995 if (itemSelectionGoodsListDataSizeValue != NaN) { 996 itemSelectionGoodsListDataSize = itemSelectionGoodsListDataSizeValue; 997 } 998 } 999 for (var i = 0; i < itemSelectionGoodsListDataSize; i++) { 1000 } 1001 var reviewListDataSize = 0; 1002 var reviewListDataSizeElement = document.getElementById("reviewListDataSize" + indexSymbol); 1003 if (reviewListDataSizeElement != null && reviewListDataSizeElement != undefined) { 1004 var reviewListDataSizeValue = parseInt(reviewListDataSizeElement.value) 1005 if (reviewListDataSizeValue != NaN) { 1006 reviewListDataSize = reviewListDataSizeValue; 1007 } 1008 } 1009 for (var i = 0; i < reviewListDataSize; i++) { 1010 } 1011 return isError; 1012 }, 1013 1014 onclickPlusButtonAction : function(sender, e) { 1015 return true; 1016 }, 1017 1018 onclickMinusButtonAction : function(sender, e) { 1019 return true; 1020 }, 1021 1022 onclickAddRapidOrderCartAction : function(sender, e) { 1023 submit("rapidOrder"); 1024 return true; 1025 }, 1026 1027 onclickAddCartAction : function(sender, e) { 1028 submit("addCart"); 1029 return true; 1030 }, 1031 1032 onclickAddStockRequestAction : function(sender, e) { 1033 this.addStockRequestOnclickAjax(sender, e); 1034 return true; 1035 }, 1036 1037 onclickToPrePurchaseGoodsAction : function(sender, e) { 1038 submit("toPrePurchaseGoods"); 1039 return true; 1040 }, 1041 1042 onclickToBrandConsentRequestAction : function(sender, e) { 1043 submit("toBrandConsentRequest"); 1044 return true; 1045 }, 1046 1047 onclickAddArrivalAction : function(sender, e) { 1048 submit("addArrival"); 1049 return true; 1050 }, 1051 1052 onclickAddFavoriteAction : function(sender, e) { 1053 submit("addFavorite"); 1054 return true; 1055 }, 1056 1057 onclickAddFavoriteLinkAction : function(sender, e) { 1058 this.addFavoriteLinkOnclickAjax(sender, e); 1059 return true; 1060 }, 1061 1062 onclickRemoveFavoriteLinkAction : function(sender, e) { 1063 this.removeFavoriteLinkOnclickAjax(sender, e); 1064 return true; 1065 }, 1066 1067 onclickPlusButtonAction : function(sender, e, rowIndex, indexSymbol) { 1068 onclickSkuListRow(sender, e, rowIndex, indexSymbol); 1069 return true; 1070 }, 1071 1072 onclickMinusButtonAction : function(sender, e, rowIndex, indexSymbol) { 1073 onclickSkuListRow(sender, e, rowIndex, indexSymbol); 1074 return true; 1075 }, 1076 1077 onclickRapidOrderAddCartSkuAction : function(sender, e, rowIndex, indexSymbol) { 1078 onclickSkuListRow(sender, e, rowIndex, indexSymbol); 1079 submit("addCartRapidOrderSku"); 1080 return true; 1081 }, 1082 1083 onclickAddCartSkuAction : function(sender, e, rowIndex, indexSymbol) { 1084 onclickSkuListRow(sender, e, rowIndex, indexSymbol); 1085 submit("addCartSku"); 1086 return true; 1087 }, 1088 1089 onclickAddStockRequestSkuAction : function(sender, e, rowIndex, indexSymbol) { 1090 onclickSkuListRow(sender, e, rowIndex, indexSymbol); 1091 this.skuListAddstockrequestskuOnclickAjax(sender, e, rowIndex, indexSymbol); 1092 return true; 1093 }, 1094 1095 onclickToPrePurchaseGoodsSkuAction : function(sender, e, rowIndex, indexSymbol) { 1096 onclickSkuListRow(sender, e, rowIndex, indexSymbol); 1097 submit("toPrePurchaseGoodsSku"); 1098 return true; 1099 }, 1100 1101 onclickToBrandConsentRequestSkuAction : function(sender, e, rowIndex, indexSymbol) { 1102 onclickSkuListRow(sender, e, rowIndex, indexSymbol); 1103 submit("toBrandConsentRequestSku"); 1104 return true; 1105 }, 1106 1107 onclickAddArrivalSkuAction : function(sender, e, rowIndex, indexSymbol) { 1108 onclickSkuListRow(sender, e, rowIndex, indexSymbol); 1109 submit("addArrivalSku"); 1110 return true; 1111 }, 1112 1113 onclickAddFavoriteSkuAction : function(sender, e, rowIndex, indexSymbol) { 1114 onclickSkuListRow(sender, e, rowIndex, indexSymbol); 1115 submit("addFavoriteSku"); 1116 return true; 1117 }, 1118 1119 onclickAddFavoriteLinkSkuAction : function(sender, e, rowIndex, indexSymbol) { 1120 onclickSkuListRow(sender, e, rowIndex, indexSymbol); 1121 this.skuListAddfavoritelinkskuOnclickAjax(sender, e, rowIndex, indexSymbol); 1122 return true; 1123 }, 1124 1125 onclickRemoveFavoriteLinkSkuAction : function(sender, e, rowIndex, indexSymbol) { 1126 onclickSkuListRow(sender, e, rowIndex, indexSymbol); 1127 this.skuListRemovefavoritelinkskuOnclickAjax(sender, e, rowIndex, indexSymbol); 1128 return true; 1129 }, 1130 1131 onclickAddSelectedRapidOrderCartAction : function(sender, e) { 1132 submit("rapidOrderSelectedGoods"); 1133 return true; 1134 }, 1135 1136 onclickOrderSelectedGoodsAction : function(sender, e) { 1137 submit("orderSelectedGoods"); 1138 return true; 1139 }, 1140 1141 onchangeGoodsCountAction : function(sender, e, rowIndex, indexSymbol) { 1142 onclickItemSelectionGoodsListRow(sender, e, rowIndex, indexSymbol); 1143 return true; 1144 }, 1145 1146 onclickSelectGoodsPlusButtonAction : function(sender, e, rowIndex, indexSymbol) { 1147 onclickItemSelectionGoodsListRow(sender, e, rowIndex, indexSymbol); 1148 return true; 1149 }, 1150 1151 onclickSelectGoodsMinusButtonAction : function(sender, e, rowIndex, indexSymbol) { 1152 onclickItemSelectionGoodsListRow(sender, e, rowIndex, indexSymbol); 1153 return true; 1154 }, 1155 1156 onclickReviewButtonAction : function(sender, e) { 1157 submit("transit"); 1158 return true; 1159 }, 1160 1161 initialize: function(form) { 1162 var thumbnailListName = "thumbnailList"; 1163 var thumbnailListDepth = 0; 1164 this.thumbnailList = initStandardList(form, thumbnailListName, thumbnailListDepth); 1165 1166 var goodsIconListName = "goodsIconList"; 1167 var goodsIconListDepth = 0; 1168 this.goodsIconList = initStandardList(form, goodsIconListName, goodsIconListDepth); 1169 1170 var skuListName = "skuList"; 1171 var skuListDepth = 0; 1172 this.skuList = initStandardList(form, skuListName, skuListDepth); 1173 1174 var itemSelectionGoodsListName = "itemSelectionGoodsList"; 1175 var itemSelectionGoodsListDepth = 0; 1176 this.itemSelectionGoodsList = initStandardList(form, itemSelectionGoodsListName, itemSelectionGoodsListDepth); 1177 1178 var reviewListName = "reviewList"; 1179 var reviewListDepth = 0; 1180 this.reviewList = initStandardList(form, reviewListName, reviewListDepth); 1181 1182 1183 } 1184 1185} 1186 1187var screenItem; 1188$(document).ready(function() { 1189 initDomReady(); 1190 initGoodsDetail(); 1191}); 1192 1193function initGoodsDetail() { 1194 var form = document.forms["formMain"]; 1195 screenItem = new GoodsDetail(form); 1196 initializeScreen(form, screenItem); 1197 var isErrorElementFocus = Validator.focusToFirstErrorElement(); 1198 if (!isErrorElementFocus) { 1199 initFocus(); 1200 } 1201} 1202 1203/** 1204 * åæåå¦çã§ãã追å ã®åæåå¦çãè¡ãå ´åã¯ããã®ã¡ã½ããããªã¼ãã¼ã©ã¤ããã¦ãã ããã 1205 * @param form ãã©ã¼ã 1206 * @param screenItem ç»é¢ã¢ã¤ãã æ å ± 1207 */ 1208function initializeScreen(form, screenItem) { 1209 1210} 1211 1212$(window).on("unload", function() { 1213 unloadPage(); 1214 unloadGoodsDetail(); 1215}); 1216 1217function unloadGoodsDetail() { 1218 var form = document.forms["formMain"]; 1219 unloadScreen(form, screenItem); 1220} 1221 1222/** 1223 * ãã¼ã¸ã¢ã³ãã¼ãæã®å¦çã§ãã追å ã®ã¢ã³ãã¼ãæå¦çãè¡ãå ´åã¯ããã®ã¡ã½ããããªã¼ãã¼ã©ã¤ããã¦ãã ããã 1224 * @param form ãã©ã¼ã 1225 * @param screenItem ç»é¢ã¢ã¤ãã æ å ± 1226 */ 1227function unloadScreen(form, screenItem) { 1228 1229} 1230 1231function thumbnailListSelectByIndex(index, indexSymbol, isFocusToListSequence) { 1232 if (isAlreadySelected("thumbnailList", index, indexSymbol)) { 1233 return 1234 } 1235 var form = document.forms["formMain"]; 1236 selectListByIndex(form, screenItem.thumbnailList, index, indexSymbol); 1237} 1238 1239function goodsIconListSelectByIndex(index, indexSymbol, isFocusToListSequence) { 1240 if (isAlreadySelected("goodsIconList", index, indexSymbol)) { 1241 return 1242 } 1243 var form = document.forms["formMain"]; 1244 selectListByIndex(form, screenItem.goodsIconList, index, indexSymbol); 1245} 1246 1247function skuListSelectByIndex(index, indexSymbol, isFocusToListSequence) { 1248 if (isAlreadySelected("skuList", index, indexSymbol)) { 1249 return 1250 } 1251 var form = document.forms["formMain"]; 1252 selectListByIndex(form, screenItem.skuList, index, indexSymbol); 1253} 1254 1255function itemSelectionGoodsListSelectByIndex(index, indexSymbol, isFocusToListSequence) { 1256 if (isAlreadySelected("itemSelectionGoodsList", index, indexSymbol)) { 1257 return 1258 } 1259 var form = document.forms["formMain"]; 1260 selectListByIndex(form, screenItem.itemSelectionGoodsList, index, indexSymbol); 1261} 1262 1263function reviewListSelectByIndex(index, indexSymbol, isFocusToListSequence) { 1264 if (isAlreadySelected("reviewList", index, indexSymbol)) { 1265 return 1266 } 1267 var form = document.forms["formMain"]; 1268 selectListByIndex(form, screenItem.reviewList, index, indexSymbol); 1269} 1270 1271function onkeydownThumbnailList(sender, e, indexSymbol) { 1272 return onkeydownList(e, "thumbnailListSelectedIndex", indexSymbol, thumbnailListSelectedRowReturned, thumbnailListSelectByIndex); 1273} 1274 1275function thumbnailListSelectedRowReturned(index) { 1276} 1277 1278function onmouseoverThumbnailListRow(sender, e, rowIndex, indexSymbol) { 1279 if (screenItem != null && screenItem != undefined) { 1280 if (screenItem.thumbnailList != null && screenItem.thumbnailList != undefined) { 1281 screenItem.thumbnailList.setRowMoveColor(sender); 1282 } 1283 } 1284} 1285 1286function onmouseoutThumbnailListRow(sender, e, rowIndex, indexSymbol) { 1287 if (screenItem != null && screenItem != undefined) { 1288 if (screenItem.thumbnailList != null && screenItem.thumbnailList != undefined) { 1289 screenItem.thumbnailList.resetRowMoveColor(sender); 1290 } 1291 } 1292} 1293 1294function onclickThumbnailListRow(sender, e, rowIndex, indexSymbol) { 1295 thumbnailListSelectByIndex(rowIndex, indexSymbol, true); 1296} 1297 1298function ondblclickThumbnailListRow(sender, e, rowIndex, indexSymbol) { 1299 thumbnailListSelectByIndex(rowIndex, indexSymbol, true); 1300} 1301 1302function onkeydownGoodsIconList(sender, e, indexSymbol) { 1303 return onkeydownList(e, "goodsIconListSelectedIndex", indexSymbol, goodsIconListSelectedRowReturned, goodsIconListSelectByIndex); 1304} 1305 1306function goodsIconListSelectedRowReturned(index) { 1307} 1308 1309function onmouseoverGoodsIconListRow(sender, e, rowIndex, indexSymbol) { 1310 if (screenItem != null && screenItem != undefined) { 1311 if (screenItem.goodsIconList != null && screenItem.goodsIconList != undefined) { 1312 screenItem.goodsIconList.setRowMoveColor(sender); 1313 } 1314 } 1315} 1316 1317function onmouseoutGoodsIconListRow(sender, e, rowIndex, indexSymbol) { 1318 if (screenItem != null && screenItem != undefined) { 1319 if (screenItem.goodsIconList != null && screenItem.goodsIconList != undefined) { 1320
1320 screenItem.goodsIconList.resetRowMoveColor(sender); 1321 } 1322 } 1323} 1324 1325function onclickGoodsIconListRow(sender, e, rowIndex, indexSymbol) { 1326 goodsIconListSelectByIndex(rowIndex, indexSymbol, true); 1327} 1328 1329function ondblclickGoodsIconListRow(sender, e, rowIndex, indexSymbol) { 1330 goodsIconListSelectByIndex(rowIndex, indexSymbol, true); 1331} 1332 1333function onkeydownSkuList(sender, e, indexSymbol) { 1334 return onkeydownList(e, "skuListSelectedIndex", indexSymbol, skuListSelectedRowReturned, skuListSelectByIndex); 1335} 1336 1337function skuListSelectedRowReturned(index) { 1338} 1339 1340function onmouseoverSkuListRow(sender, e, rowIndex, indexSymbol) { 1341 if (screenItem != null && screenItem != undefined) { 1342 if (screenItem.skuList != null && screenItem.skuList != undefined) { 1343 screenItem.skuList.setRowMoveColor(sender); 1344 } 1345 } 1346} 1347 1348function onmouseoutSkuListRow(sender, e, rowIndex, indexSymbol) { 1349 if (screenItem != null && screenItem != undefined) { 1350 if (screenItem.skuList != null && screenItem.skuList != undefined) { 1351 screenItem.skuList.resetRowMoveColor(sender); 1352 } 1353 } 1354} 1355 1356function onclickSkuListRow(sender, e, rowIndex, indexSymbol) { 1357 skuListSelectByIndex(rowIndex, indexSymbol, true); 1358} 1359 1360function ondblclickSkuListRow(sender, e, rowIndex, indexSymbol) { 1361 skuListSelectByIndex(rowIndex, indexSymbol, true); 1362} 1363 1364function onkeydownItemSelectionGoodsList(sender, e, indexSymbol) { 1365 return onkeydownList(e, "itemSelectionGoodsListSelectedIndex", indexSymbol, itemSelectionGoodsListSelectedRowReturned, itemSelectionGoodsListSelectByIndex); 1366} 1367 1368function itemSelectionGoodsListSelectedRowReturned(index) { 1369} 1370 1371function onmouseoverItemSelectionGoodsListRow(sender, e, rowIndex, indexSymbol) { 1372 if (screenItem != null && screenItem != undefined) { 1373 if (screenItem.itemSelectionGoodsList != null && screenItem.itemSelectionGoodsList != undefined) { 1374 screenItem.itemSelectionGoodsList.setRowMoveColor(sender); 1375 } 1376 } 1377} 1378 1379function onmouseoutItemSelectionGoodsListRow(sender, e, rowIndex, indexSymbol) { 1380 if (screenItem != null && screenItem != undefined) { 1381 if (screenItem.itemSelectionGoodsList != null && screenItem.itemSelectionGoodsList != undefined) { 1382 screenItem.itemSelectionGoodsList.resetRowMoveColor(sender); 1383 } 1384 } 1385} 1386 1387function onclickItemSelectionGoodsListRow(sender, e, rowIndex, indexSymbol) { 1388 itemSelectionGoodsListSelectByIndex(rowIndex, indexSymbol, true); 1389} 1390 1391function ondblclickItemSelectionGoodsListRow(sender, e, rowIndex, indexSymbol) { 1392 itemSelectionGoodsListSelectByIndex(rowIndex, indexSymbol, true); 1393} 1394 1395function onkeydownReviewList(sender, e, indexSymbol) { 1396 return onkeydownList(e, "reviewListSelectedIndex", indexSymbol, reviewListSelectedRowReturned, reviewListSelectByIndex); 1397} 1398 1399function reviewListSelectedRowReturned(index) { 1400} 1401 1402function onmouseoverReviewListRow(sender, e, rowIndex, indexSymbol) { 1403 if (screenItem != null && screenItem != undefined) { 1404 if (screenItem.reviewList != null && screenItem.reviewList != undefined) { 1405 screenItem.reviewList.setRowMoveColor(sender); 1406 } 1407 } 1408} 1409 1410function onmouseoutReviewListRow(sender, e, rowIndex, indexSymbol) { 1411 if (screenItem != null && screenItem != undefined) { 1412 if (screenItem.reviewList != null && screenItem.reviewList != undefined) { 1413 screenItem.reviewList.resetRowMoveColor(sender); 1414 } 1415 } 1416} 1417 1418function onclickReviewListRow(sender, e, rowIndex, indexSymbol) { 1419 reviewListSelectByIndex(rowIndex, indexSymbol, true); 1420} 1421 1422function ondblclickReviewListRow(sender, e, rowIndex, indexSymbol) { 1423 reviewListSelectByIndex(rowIndex, indexSymbol, true); 1424} 1425 1426function sortReviewList(sortColumn, defaultSortType) { 1427 var form = document.forms["formMain"]; 1428 var action = sortReviewListActionName(); 1429 sort(sortColumn, defaultSortType, form, screenItem.reviewList, action); 1430} 1431 1432function sortReviewListActionName() { 1433 return null; 1434} 1435 1436function onchangeSortSelectReviewList(sortSelector) { 1437 sortValue = sortSelector.options[sortSelector.selectedIndex].value; 1438 if (sortValue != "") { 1439 var form = document.forms["formMain"]; 1440 var action = onchangeSortSelectReviewListActionName(); 1441 sortColumn = sortSelector.options[sortSelector.selectedIndex].value.split("_")[0]; 1442 sortType = sortSelector.options[sortSelector.selectedIndex].value.split('_')[1]; 1443 sort(sortColumn, sortType, form, screenItem.reviewList, action); 1444 } 1445} 1446 1447function onchangeSortSelectReviewListActionName() { 1448 return null; 1449} 1450
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.