|
|
@ -76,13 +76,13 @@
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
var openerPageName = "${openerPageName}";
|
|
|
|
var openerPageName = "${openerPageName}";
|
|
|
|
|
|
|
|
|
|
|
|
//FIXME: pw instance 변수명 변경시 paintweb.js의 imageSaveTo() 내의 2564 line if(pw.image.modified) 변경 필요
|
|
|
|
|
|
|
|
var pw;
|
|
|
|
|
|
|
|
var originalInfomation = {};
|
|
|
|
|
|
|
|
var editableImage = null;
|
|
|
|
|
|
|
|
var isNumberPlate = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const initEditor = () => {
|
|
|
|
var pw;
|
|
|
|
|
|
|
|
var originalInfomation = {};
|
|
|
|
|
|
|
|
var editableImage = null;
|
|
|
|
|
|
|
|
var isNumberPlate = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const initEditor = () => {
|
|
|
|
|
|
|
|
|
|
|
|
pw = new PaintWeb();
|
|
|
|
pw = new PaintWeb();
|
|
|
|
pw.config.imageLoad = editableImage;
|
|
|
|
pw.config.imageLoad = editableImage;
|
|
|
@ -91,9 +91,9 @@ var openerPageName = "${openerPageName}";
|
|
|
|
pw.config.afterImageSave = fnAfterImageSave;
|
|
|
|
pw.config.afterImageSave = fnAfterImageSave;
|
|
|
|
|
|
|
|
|
|
|
|
pw.init();
|
|
|
|
pw.init();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
function fnImageSaveTo(file, imgWidth, imgHeight, doc, _self){
|
|
|
|
function fnImageSaveTo(file, imgWidth, imgHeight, doc, _self){
|
|
|
|
|
|
|
|
|
|
|
|
console.log(doc);
|
|
|
|
console.log(doc);
|
|
|
|
console.log(_self);
|
|
|
|
console.log(_self);
|
|
|
@ -106,13 +106,13 @@ var openerPageName = "${openerPageName}";
|
|
|
|
|
|
|
|
|
|
|
|
window.opener.pageObject[openerPageName].editPhotoCallback(file, originalInfomation, isNumberPlate);
|
|
|
|
window.opener.pageObject[openerPageName].editPhotoCallback(file, originalInfomation, isNumberPlate);
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
function fnAfterImageSave(){
|
|
|
|
function fnAfterImageSave(){
|
|
|
|
window.close();
|
|
|
|
window.close();
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
var fileInfo = [${fileInfo}];
|
|
|
|
var fileInfo = [${fileInfo}];
|
|
|
|
|
|
|
|
|
|
|
@ -127,14 +127,37 @@ var openerPageName = "${openerPageName}";
|
|
|
|
editableImage.onload = function () {
|
|
|
|
editableImage.onload = function () {
|
|
|
|
initEditor();
|
|
|
|
initEditor();
|
|
|
|
editableImage.style.display = 'none';
|
|
|
|
editableImage.style.display = 'none';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var vhclInfo = window.opener.pageObject[openerPageName].carInfoFunc();
|
|
|
|
|
|
|
|
$("input[name='vhrno']").val(vhclInfo.vhrno);
|
|
|
|
|
|
|
|
$("input[name='vhclNm']").val(vhclInfo.vhclNm);
|
|
|
|
|
|
|
|
$("input[name='vhclColor']").val(vhclInfo.vhclColor);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$("input[name='vhrno']").on("keyup",function(e){
|
|
|
|
|
|
|
|
if(e.key == "Enter"){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
window.opener.pageObject[openerPageName].carLinkFunc(this.value).then(function(result){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(result.vhrno == null || result.vhrno == ""){
|
|
|
|
|
|
|
|
$("input[name='vhclNm']").val("");
|
|
|
|
|
|
|
|
$("input[name='vhclColor']").val("");
|
|
|
|
|
|
|
|
alert("차량조회 결과가 없습니다.");
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$("input[name='vhrno']").val(result.vhrno);
|
|
|
|
|
|
|
|
$("input[name='vhclNm']").val(result.vhclNm);
|
|
|
|
|
|
|
|
$("input[name='vhclColor']").val(result.vhclColor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
alert("사진 파일이 없습니다.");
|
|
|
|
alert("사진 파일이 없습니다.");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|