jsshin 5 лет назад
Родитель
Сommit
cfabeee1fa

+ 61 - 0
src/main/webapp/WEB-INF/views/envset/BasicEnvsetForm.html

@@ -413,6 +413,44 @@
 					</tr>
 				</tbody>
 			</table>
+
+			<h4>[M10] 모바일앱</h4>
+			<button type="button" class="btn btn-success btn-ssm" onclick="fnSave('M10');">저장</button>
+			<button type="button" class="btn btn-info btn-ssm" onclick="fnOpenEnvsetPopup('M10', '모바일앱');">이력보기</button>
+			<table class="frmStyle" aria-describedby="모바일앱">
+				<colgroup>
+					<col style="width: 15%;"/>
+					<col style="width: 85%;"/>
+				</colgroup>
+				<tbody>
+					<tr>
+						<th>AOS앱버전</th>
+						<td>
+							<input name="m10StrSetVal1" type="text" class="w100" maxlength="20" data-valid-name="AOS앱버전"/>
+						</td>
+					</tr>
+					<tr>
+						<th>IOS앱버전</th>
+						<td>
+							<input name="m10StrSetVal2" type="text" class="w100" maxlength="20" data-valid-name="IOS앱버전"/>
+						</td>
+					</tr>
+					<tr>
+						<th>스플래시이미지</th>
+						<td>
+							<div class="uFile w500">
+								<input type="file" id="m10StrSetVal3" name="m10StrSetVal3" class="uFileInput"/>
+								<label for="m10StrSetVal3" class="uFileLabel">스플래시 이미지 선택</label>
+								<input type="hidden" name="m10StrSetVal3OrgFileNm"/>
+								<input type="hidden" name="m10StrSetVal3SysFileNm"/>
+							</div>
+							<a id="m10StrSetVal3FileDownload" href="#" style="display: none;" onclick="fnDownloadFile('m10StrSetVal3');"></a>
+							<span class="infoTxt cBlue marL20"><i class="fa fa-info-circle" aria-hidden="true"></i>스플래시 이미지입니다</span>
+						</td>
+					</tr>
+				</tbody>
+			</table>
+
 		</div>
 	</div>
 
@@ -575,11 +613,29 @@
 						}
 					}
 				});
+
+		// 모바일앱
+		$.getJSON(actionUrl + '/M10'
+				, function(result, status) {
+					if (status === 'success') {
+						if (!gagajf.isNull(result)) {
+							$('input[name=m10StrSetVal1]').val(result.strSetVal1);
+							$('input[name=m10StrSetVal2]').val(result.strSetVal2);
+						}
+
+						if (!gagajf.isNull(result.strSetVal3)) {
+							$('input[name=m10StrSetVal3SysFileNm]').val(result.strSetVal3);
+							$('#m10StrSetVal3FileDownload').html(result.strSetVal3);
+							$('#m10StrSetVal3FileDownload').show();
+						}
+					}
+				});
 	}
 
 	// 파일첨부 선택 시
 	$('#b10StrSetVal4').on('change', function() { fnChooseFile(this); });
 	$('#b10StrSetVal6').on('change', function() { fnChooseFile(this); });
+	$('#m10StrSetVal3').on('change', function() { fnChooseFile(this); });
 
 	var fnChooseFile = function(obj) {
 		// multiple 속성이 있으면 files에는 다수의 객체가 할당됨
@@ -665,6 +721,11 @@
 			params.strSetVal1 = $('input[name=g14StrSetVal1]').val();
 			params.strSetVal2 = $('input[name=g14StrSetVal2]').val();
 			params.strSetVal3 = $('input[name=g14StrSetVal3]').val();
+		} else if (envsetType == 'M10') { // 모바일앱
+			params.envsetNm = '모바일앱';
+			params.strSetVal1 = $('input[name=m10StrSetVal1]').val();
+			params.strSetVal2 = $('input[name=m10StrSetVal2]').val();
+			params.strSetVal3 = $('input[name=m10StrSetVal3SysFileNm]').val();
 		}
 
 		var jsonData = JSON.stringify(params);

+ 9 - 8
src/main/webapp/WEB-INF/views/envset/EnvsetHistoryForm.html

@@ -212,14 +212,15 @@
 		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
 	];
 
-// 	// 모바일앱
-// 	var columnDefsM10 = [
-// 		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
-// 		{headerName: "AOS버전", field: "strSetVal1", width: 100, cellClass: 'text-center'},
-// 		{headerName: "IOS버전", field: "strSetVal2", width: 100, cellClass: 'text-center'},
-// 		{headerName: "등록자", field: "regNm", width: 100, cellClass: 'text-center'},
-// 		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
-// 	];
+	// 모바일앱
+	var columnDefsM10 = [
+		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},
+		{headerName: "AOS버전", field: "strSetVal1", width: 100, cellClass: 'text-center'},
+		{headerName: "IOS버전", field: "strSetVal2", width: 100, cellClass: 'text-center'},
+		{headerName: "스플레시이미지", field: "strSetVal3", width: 200},
+		{headerName: "등록자", field: "regNm", width: 100, cellClass: 'text-center'},
+		{headerName: "등록일시", field: "regDt", width: 150, cellClass: 'text-center', cellRenderer: function (params) { return gagaAgGrid.toDateTimeFormat(params.value); }}
+	];
 
 	var columnDefsG12 = [
 		{headerName: 'No', width: 60, cellClass: 'text-center', valueGetter: function(params) { return params.node.rowIndex + 1 }},