--- src/main/webapp/WEB-INF/jsp/web/msgdata/include/msgDataIncludeExcel.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgdata/include/msgDataIncludeExcel.jsp
... | ... | @@ -27,18 +27,17 @@ |
| 27 | 27 |
clipboardPasteAction:"insert", // insert, update, replace |
| 28 | 28 |
placeholder:"Excel 파일을 업로드 해주세요.", //fit columns to width of table (optional) |
| 29 | 29 |
columns:[ //Define Table Columns |
| 30 |
- {formatter:"rowSelection", titleFormatter:"rowSelection",clipboard:false, hozAlign:"center", headerSort:false, cellClick:function(e, cell){
|
|
| 30 |
+ {formatter:"rowSelection", titleFormatter:"rowSelection",clipboard:false, headerHozAlign:"center", hozAlign:"center", headerSort:false, cellClick:function(e, cell){
|
|
| 31 | 31 |
cell.getRow().toggleSelect(); |
| 32 | 32 |
} |
| 33 | 33 |
}, |
| 34 |
- {formatter:"rownum", align:"center" ,title:"No", hozAlign:"center", headerHozAlign:"center", width:40},
|
|
| 35 |
- {title:"A", field:"A", hozAlign:"center", headerHozAlign: "center", width:125, validator:["maxLength:100", "string"]},
|
|
| 36 |
- {title:"B", field:"B", hozAlign:"center", headerHozAlign: "center", width:125, validator:["maxLength:100", "string"]},
|
|
| 37 |
- {title:"C", field:"C", hozAlign:"center", headerHozAlign: "center", width:125, validator:["maxLength:100", "string"]},
|
|
| 38 |
- {title:"D", field:"D", hozAlign:"center", headerHozAlign: "center", width:125, validator:["maxLength:100", "string"]},
|
|
| 39 |
- {title:"E", field:"E", hozAlign:"center", headerHozAlign: "center", width:125, validator:["maxLength:100", "string"]},
|
|
| 40 |
- {title:"F", field:"F", hozAlign:"center", headerHozAlign: "center", width:125, validator:["maxLength:100", "string"]},
|
|
| 41 |
- {title:"G", field:"G", hozAlign:"center", headerHozAlign: "center", width:125, validator:["maxLength:100", "string"]}
|
|
| 34 |
+ {formatter:"rownum", align:"center" ,title:"No", hozAlign:"center", headerHozAlign:"center", width:60},
|
|
| 35 |
+ {title:"A", field:"A", hozAlign:"center", headerHozAlign: "center", width:140, validator:["maxLength:100", "string"]},
|
|
| 36 |
+ {title:"B", field:"B", hozAlign:"center", headerHozAlign: "center", width:140, validator:["maxLength:100", "string"]},
|
|
| 37 |
+ {title:"C", field:"C", hozAlign:"center", headerHozAlign: "center", width:140, validator:["maxLength:100", "string"]},
|
|
| 38 |
+ {title:"D", field:"D", hozAlign:"center", headerHozAlign: "center", width:140, validator:["maxLength:100", "string"]},
|
|
| 39 |
+ {title:"E", field:"E", hozAlign:"center", headerHozAlign: "center", width:140, validator:["maxLength:100", "string"]},
|
|
| 40 |
+ {title:"F", field:"F", hozAlign:"center", headerHozAlign: "center", width:140, validator:["maxLength:100", "string"]}
|
|
| 42 | 41 |
], |
| 43 | 42 |
validationFailed:function(cell, value, parameters){ // 유효성 체크 함수
|
| 44 | 43 |
var valid = cell.isValid(); |
... | ... | @@ -235,7 +234,6 @@ |
| 235 | 234 |
|
| 236 | 235 |
} |
| 237 | 236 |
|
| 238 |
- console.log('$tableExcel : ' ,$tableExcel);
|
|
| 239 | 237 |
var addrData = $tableExcel.getData().map((row, index) => ({
|
| 240 | 238 |
name: row.addrNm, |
| 241 | 239 |
phone: removeDash(row.addrPhoneNo), |
... | ... | @@ -378,19 +376,19 @@ |
| 378 | 376 |
|
| 379 | 377 |
//공통 테이블 업데이트 함수 |
| 380 | 378 |
function updateTable(tableData) {
|
| 381 |
- $tableExcel.setColumns([ // 열 정의를 다시 설정 |
|
| 382 |
- {formatter: "rowSelection", titleFormatter: "rowSelection", clipboard: false, hozAlign: "center", headerHozAlign: "center", headerSort: false, cellClick: function(e, cell) {
|
|
| 383 |
- cell.getRow().toggleSelect(); |
|
| 384 |
- }}, |
|
| 385 |
- {formatter:"rownum", align:"center" ,title:"No", hozAlign:"center", headerHozAlign:"center", width:40},
|
|
| 386 |
- {title: "A", field: "A", hozAlign: "center", headerHozAlign: "center", width: 125, validator: ["maxLength:100", "string"]},
|
|
| 387 |
- {title: "B", field: "B", hozAlign: "center", headerHozAlign: "center", width: 125, validator: ["maxLength:100", "string"]},
|
|
| 388 |
- {title: "C", field: "C", hozAlign: "center", headerHozAlign: "center", width: 125, validator: ["maxLength:100", "string"]},
|
|
| 389 |
- {title: "D", field: "D", hozAlign: "center", headerHozAlign: "center", width: 125, validator: ["maxLength:100", "string"]},
|
|
| 390 |
- {title: "E", field: "E", hozAlign: "center", headerHozAlign: "center", width: 125, validator: ["maxLength:100", "string"]},
|
|
| 391 |
- {title: "F", field: "F", hozAlign: "center", headerHozAlign: "center", width: 125, validator: ["maxLength:100", "string"]},
|
|
| 392 |
- {title: "G", field: "G", hozAlign: "center", headerHozAlign: "center", width: 125, validator: ["maxLength:100", "string"]}
|
|
| 393 |
- ]); |
|
| 379 |
+ $tableExcel.setColumns([ //Define Table Columns |
|
| 380 |
+ {formatter:"rowSelection", titleFormatter:"rowSelection",clipboard:false, headerHozAlign:"center", hozAlign:"center", headerSort:false, cellClick:function(e, cell){
|
|
| 381 |
+ cell.getRow().toggleSelect(); |
|
| 382 |
+ } |
|
| 383 |
+ }, |
|
| 384 |
+ {formatter:"rownum", align:"center" ,title:"No", hozAlign:"center", headerHozAlign:"center", width:60},
|
|
| 385 |
+ {title:"A", field:"A", hozAlign:"center", headerHozAlign: "center", width:140, validator:["maxLength:100", "string"]},
|
|
| 386 |
+ {title:"B", field:"B", hozAlign:"center", headerHozAlign: "center", width:140, validator:["maxLength:100", "string"]},
|
|
| 387 |
+ {title:"C", field:"C", hozAlign:"center", headerHozAlign: "center", width:140, validator:["maxLength:100", "string"]},
|
|
| 388 |
+ {title:"D", field:"D", hozAlign:"center", headerHozAlign: "center", width:140, validator:["maxLength:100", "string"]},
|
|
| 389 |
+ {title:"E", field:"E", hozAlign:"center", headerHozAlign: "center", width:140, validator:["maxLength:100", "string"]},
|
|
| 390 |
+ {title:"F", field:"F", hozAlign:"center", headerHozAlign: "center", width:140, validator:["maxLength:100", "string"]}
|
|
| 391 |
+ ]); |
|
| 394 | 392 |
|
| 395 | 393 |
$tableExcel.setData(tableData).then(() => {
|
| 396 | 394 |
// excelRowTotCnt 업데이트 |
... | ... | @@ -412,7 +410,7 @@ |
| 412 | 410 |
{formatter: "rowSelection", titleFormatter: "rowSelection", clipboard: false, hozAlign: "center", headerHozAlign: "center", headerSort: false, cellClick: function(e, cell) {
|
| 413 | 411 |
cell.getRow().toggleSelect(); |
| 414 | 412 |
}} |
| 415 |
- ,{formatter:"rownum", align:"center", title:"No", hozAlign:"center", headerHozAlign:"center", width:40}
|
|
| 413 |
+ ,{formatter:"rownum", align:"center", title:"No", hozAlign:"center", headerHozAlign:"center", width:60}
|
|
| 416 | 414 |
]; |
| 417 | 415 |
|
| 418 | 416 |
var fieldMapping = []; |
... | ... | @@ -428,7 +426,7 @@ |
| 428 | 426 |
, headerHozAlign: "center" |
| 429 | 427 |
// , editor: "input" |
| 430 | 428 |
, editor: false |
| 431 |
- , width: 125 |
|
| 429 |
+ , width: 140 |
|
| 432 | 430 |
, validator: ["maxLength:100", "string"] |
| 433 | 431 |
}); |
| 434 | 432 |
fieldMapping.push(selectedField); |
... | ... | @@ -440,7 +438,7 @@ |
| 440 | 438 |
, headerHozAlign: "center" |
| 441 | 439 |
, editor: false |
| 442 | 440 |
// , editor: "input" |
| 443 |
- , width: 125 |
|
| 441 |
+ , width: 140 |
|
| 444 | 442 |
, validator: ["maxLength:100", "string"] |
| 445 | 443 |
}); |
| 446 | 444 |
fieldMapping.push(field); |
... | ... | @@ -678,8 +676,8 @@ |
| 678 | 676 |
<div class="adr_excel" style="margin-top: 13px;"> |
| 679 | 677 |
<!-- thead --> |
| 680 | 678 |
<div class="adr_hd select_adr_hd" data-group="tableExcel"> |
| 681 |
- <div style="width: 80px;"></div> |
|
| 682 |
- <div style="width: 125px;"> |
|
| 679 |
+ <div style="width: 100px;"></div> |
|
| 680 |
+ <div style="width: 140px;"> |
|
| 683 | 681 |
<label for="" class="label"></label> |
| 684 | 682 |
<select class="field-selector"> |
| 685 | 683 |
<option value="">선택하기</option> |
... | ... | @@ -689,10 +687,75 @@ |
| 689 | 687 |
<option value="addrInfo2">[*2*]</option> |
| 690 | 688 |
<option value="addrInfo3">[*3*]</option> |
| 691 | 689 |
<option value="addrInfo4">[*4*]</option> |
| 692 |
- <option value="addrComment">메모</option> |
|
| 690 |
+<!-- <option value="addrComment">메모</option> --> |
|
| 693 | 691 |
</select> |
| 694 | 692 |
</div> |
| 695 |
- <div style="width: 125px;"> |
|
| 693 |
+ <div style="width: 140px;"> |
|
| 694 |
+ <label for="" class="label"></label> |
|
| 695 |
+ <select class="field-selector"> |
|
| 696 |
+ <option value="">선택하기</option> |
|
| 697 |
+ <option value="addrNm">이름</option> |
|
| 698 |
+ <option value="addrPhoneNo">휴대폰</option> |
|
| 699 |
+ <option value="addrInfo1">[*1*]</option> |
|
| 700 |
+ <option value="addrInfo2">[*2*]</option> |
|
| 701 |
+ <option value="addrInfo3">[*3*]</option> |
|
| 702 |
+ <option value="addrInfo4">[*4*]</option> |
|
| 703 |
+<!-- <option value="addrComment">메모</option> --> |
|
| 704 |
+ </select> |
|
| 705 |
+ </div> |
|
| 706 |
+ <div style="width: 140px;"> |
|
| 707 |
+ <label for="" class="label"></label> |
|
| 708 |
+ <select class="field-selector"> |
|
| 709 |
+ <option value="">선택하기</option> |
|
| 710 |
+ <option value="addrNm">이름</option> |
|
| 711 |
+ <option value="addrPhoneNo">휴대폰</option> |
|
| 712 |
+ <option value="addrInfo1">[*1*]</option> |
|
| 713 |
+ <option value="addrInfo2">[*2*]</option> |
|
| 714 |
+ <option value="addrInfo3">[*3*]</option> |
|
| 715 |
+ <option value="addrInfo4">[*4*]</option> |
|
| 716 |
+<!-- <option value="addrComment">메모</option> --> |
|
| 717 |
+ </select> |
|
| 718 |
+ </div> |
|
| 719 |
+ <div style="width: 140px;"> |
|
| 720 |
+ <label for="" class="label"></label> |
|
| 721 |
+ <select class="field-selector"> |
|
| 722 |
+ <option value="">선택하기</option> |
|
| 723 |
+ <option value="addrNm">이름</option> |
|
| 724 |
+ <option value="addrPhoneNo">휴대폰</option> |
|
| 725 |
+ <option value="addrInfo1">[*1*]</option> |
|
| 726 |
+ <option value="addrInfo2">[*2*]</option> |
|
| 727 |
+ <option value="addrInfo3">[*3*]</option> |
|
| 728 |
+ <option value="addrInfo4">[*4*]</option> |
|
| 729 |
+<!-- <option value="addrComment">메모</option> --> |
|
| 730 |
+ </select> |
|
| 731 |
+ </div> |
|
| 732 |
+ <div style="width: 140px;"> |
|
| 733 |
+ <label for="" class="label"></label> |
|
| 734 |
+ <select class="field-selector"> |
|
| 735 |
+ <option value="">선택하기</option> |
|
| 736 |
+ <option value="addrNm">이름</option> |
|
| 737 |
+ <option value="addrPhoneNo">휴대폰</option> |
|
| 738 |
+ <option value="addrInfo1">[*1*]</option> |
|
| 739 |
+ <option value="addrInfo2">[*2*]</option> |
|
| 740 |
+ <option value="addrInfo3">[*3*]</option> |
|
| 741 |
+ <option value="addrInfo4">[*4*]</option> |
|
| 742 |
+<!-- <option value="addrComment">메모</option> --> |
|
| 743 |
+ </select> |
|
| 744 |
+ </div> |
|
| 745 |
+ <div style="width: 140px;"> |
|
| 746 |
+ <label for="" class="label"></label> |
|
| 747 |
+ <select class="field-selector"> |
|
| 748 |
+ <option value="">선택하기</option> |
|
| 749 |
+ <option value="addrNm">이름</option> |
|
| 750 |
+ <option value="addrPhoneNo">휴대폰</option> |
|
| 751 |
+ <option value="addrInfo1">[*1*]</option> |
|
| 752 |
+ <option value="addrInfo2">[*2*]</option> |
|
| 753 |
+ <option value="addrInfo3">[*3*]</option> |
|
| 754 |
+ <option value="addrInfo4">[*4*]</option> |
|
| 755 |
+<!-- <option value="addrComment">메모</option> --> |
|
| 756 |
+ </select> |
|
| 757 |
+ </div> |
|
| 758 |
+ <!-- <div style="width: 125px;"> |
|
| 696 | 759 |
<label for="" class="label"></label> |
| 697 | 760 |
<select class="field-selector"> |
| 698 | 761 |
<option value="">선택하기</option> |
... | ... | @@ -704,72 +767,7 @@ |
| 704 | 767 |
<option value="addrInfo4">[*4*]</option> |
| 705 | 768 |
<option value="addrComment">메모</option> |
| 706 | 769 |
</select> |
| 707 |
- </div> |
|
| 708 |
- <div style="width: 125px;"> |
|
| 709 |
- <label for="" class="label"></label> |
|
| 710 |
- <select class="field-selector"> |
|
| 711 |
- <option value="">선택하기</option> |
|
| 712 |
- <option value="addrNm">이름</option> |
|
| 713 |
- <option value="addrPhoneNo">휴대폰</option> |
|
| 714 |
- <option value="addrInfo1">[*1*]</option> |
|
| 715 |
- <option value="addrInfo2">[*2*]</option> |
|
| 716 |
- <option value="addrInfo3">[*3*]</option> |
|
| 717 |
- <option value="addrInfo4">[*4*]</option> |
|
| 718 |
- <option value="addrComment">메모</option> |
|
| 719 |
- </select> |
|
| 720 |
- </div> |
|
| 721 |
- <div style="width: 125px;"> |
|
| 722 |
- <label for="" class="label"></label> |
|
| 723 |
- <select class="field-selector"> |
|
| 724 |
- <option value="">선택하기</option> |
|
| 725 |
- <option value="addrNm">이름</option> |
|
| 726 |
- <option value="addrPhoneNo">휴대폰</option> |
|
| 727 |
- <option value="addrInfo1">[*1*]</option> |
|
| 728 |
- <option value="addrInfo2">[*2*]</option> |
|
| 729 |
- <option value="addrInfo3">[*3*]</option> |
|
| 730 |
- <option value="addrInfo4">[*4*]</option> |
|
| 731 |
- <option value="addrComment">메모</option> |
|
| 732 |
- </select> |
|
| 733 |
- </div> |
|
| 734 |
- <div style="width: 125px;"> |
|
| 735 |
- <label for="" class="label"></label> |
|
| 736 |
- <select class="field-selector"> |
|
| 737 |
- <option value="">선택하기</option> |
|
| 738 |
- <option value="addrNm">이름</option> |
|
| 739 |
- <option value="addrPhoneNo">휴대폰</option> |
|
| 740 |
- <option value="addrInfo1">[*1*]</option> |
|
| 741 |
- <option value="addrInfo2">[*2*]</option> |
|
| 742 |
- <option value="addrInfo3">[*3*]</option> |
|
| 743 |
- <option value="addrInfo4">[*4*]</option> |
|
| 744 |
- <option value="addrComment">메모</option> |
|
| 745 |
- </select> |
|
| 746 |
- </div> |
|
| 747 |
- <div style="width: 125px;"> |
|
| 748 |
- <label for="" class="label"></label> |
|
| 749 |
- <select class="field-selector"> |
|
| 750 |
- <option value="">선택하기</option> |
|
| 751 |
- <option value="addrNm">이름</option> |
|
| 752 |
- <option value="addrPhoneNo">휴대폰</option> |
|
| 753 |
- <option value="addrInfo1">[*1*]</option> |
|
| 754 |
- <option value="addrInfo2">[*2*]</option> |
|
| 755 |
- <option value="addrInfo3">[*3*]</option> |
|
| 756 |
- <option value="addrInfo4">[*4*]</option> |
|
| 757 |
- <option value="addrComment">메모</option> |
|
| 758 |
- </select> |
|
| 759 |
- </div> |
|
| 760 |
- <div style="width: 125px;"> |
|
| 761 |
- <label for="" class="label"></label> |
|
| 762 |
- <select class="field-selector"> |
|
| 763 |
- <option value="">선택하기</option> |
|
| 764 |
- <option value="addrNm">이름</option> |
|
| 765 |
- <option value="addrPhoneNo">휴대폰</option> |
|
| 766 |
- <option value="addrInfo1">[*1*]</option> |
|
| 767 |
- <option value="addrInfo2">[*2*]</option> |
|
| 768 |
- <option value="addrInfo3">[*3*]</option> |
|
| 769 |
- <option value="addrInfo4">[*4*]</option> |
|
| 770 |
- <option value="addrComment">메모</option> |
|
| 771 |
- </select> |
|
| 772 |
- </div> |
|
| 770 |
+ </div> --> |
|
| 773 | 771 |
</div> |
| 774 | 772 |
</div> |
| 775 | 773 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?