mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-04 12:13:24 +09:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -79,10 +79,8 @@ public class InController {
|
||||
|
||||
@PostMapping("/create_process")
|
||||
@ResponseBody
|
||||
public int createProcess(InDto dto) {
|
||||
boolean create = inService.chechAndUpdateOrCreateProcessForCreate(dto);
|
||||
|
||||
return 0;
|
||||
public boolean createProcess(InDto dto) {
|
||||
return inService.chechAndUpdateOrCreateProcessForCreate(dto);
|
||||
}
|
||||
|
||||
@PostMapping("/read")
|
||||
|
||||
@@ -52,12 +52,12 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach items="${list }" var="dto">
|
||||
<tr class="detailTr" data-kan_code="${dto.kan_code}" >
|
||||
<td>${dto.cls_nm_1 }</td>
|
||||
<td>${dto.cls_nm_2 }</td>
|
||||
<td>${dto.cls_nm_3 }</td>
|
||||
<td>${dto.cls_nm_4 }</td>
|
||||
<td>${dto.kan_code }</td>
|
||||
<tr class="detailTr col-5" data-kan_code="${dto.kan_code}" >
|
||||
<td class="col-1">${dto.cls_nm_1 }</td>
|
||||
<td class="col-1">${dto.cls_nm_2 }</td>
|
||||
<td class="col-1">${dto.cls_nm_3 }</td>
|
||||
<td class="col-1">${dto.cls_nm_4 }</td>
|
||||
<td class="col-1">${dto.kan_code }</td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<div class="col-12" style="text-align: center;">
|
||||
<!-- 제품명 -->
|
||||
<div class="input-group mb-3 w-40 col-centered">
|
||||
<span class="input-group-text" id="basic-addon1">제품명</span>
|
||||
<span class="input-group-text" id="product_name_span">제품명</span>
|
||||
<input type="text" name="productName" id="productName" class="form-control"
|
||||
placeholder="제품명을 검색하세요" aria-label="제품명" value="${dto.productDto.name }"
|
||||
aria-describedby="basic-addon1" readonly>
|
||||
@@ -63,7 +63,7 @@
|
||||
</div>
|
||||
<!-- 창고명 -->
|
||||
<div class="input-group mb-3 w-40 col-centered">
|
||||
<span class="input-group-text" id="basic-addon1">창고명</span>
|
||||
<span class="input-group-text" id="warehouse_name_span">창고명</span>
|
||||
<input type="text" name="warehouse_name" id="warehouse_name" class="form-control"
|
||||
placeholder="창고를 검색하세요" aria-label="창고명" value="${dto.warehouseDto.name }"
|
||||
aria-describedby="basic-addon1" readonly>
|
||||
@@ -94,7 +94,7 @@
|
||||
|
||||
<div class="input-group mb-3 w-40 col-centered">
|
||||
<span class="input-group-text" id="basic-addon3">입고날짜</span>
|
||||
<fmt:formatDate value="${dto.in_date}" pattern="yyyy-MM-dd HH:mm:ss" type="date" var="formattedDate" />
|
||||
<fmt:formatDate value="${dto.in_date}" pattern="yyyy-MM-dd'T'HH:mm" type="date" var="formattedDate" />
|
||||
<input type="datetime-local" id="in_date" name="in_date" class="form-control"
|
||||
placeholder="날짜을 입력하세요" aria-label="입고날짜" value="${formattedDate}"
|
||||
aria-describedby="basic-addon1">
|
||||
@@ -180,7 +180,7 @@
|
||||
warehouse_id : warehouse_id,
|
||||
note : note
|
||||
}
|
||||
|
||||
console.log(data);
|
||||
|
||||
$.ajax({
|
||||
url: "/in/create_process",
|
||||
|
||||
@@ -113,13 +113,13 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<c:forEach items="${list }" var="dto">
|
||||
<tr class="detailTr" data-kan_code="${dto.kan_code}" >
|
||||
<td>${dto.cls_nm_1 }</td>
|
||||
<td>${dto.cls_nm_2 }</td>
|
||||
<td>${dto.cls_nm_3 }</td>
|
||||
<td>${dto.cls_nm_4 }</td>
|
||||
<td>${dto.kan_code }</td>
|
||||
<td><button data-tid="${dto.kan_code}" data-tname="${dto.cls_nm_4}" class="btn btn-primary" onclick="onSelect(this)">선택</button></td>
|
||||
<tr class="detailTr col-6" data-kan_code="${dto.kan_code}" >
|
||||
<td class="col-1">${dto.cls_nm_1 }</td>
|
||||
<td class="col-1">${dto.cls_nm_2 }</td>
|
||||
<td class="col-1">${dto.cls_nm_3 }</td>
|
||||
<td class="col-1">${dto.cls_nm_4 }</td>
|
||||
<td class="col-1">${dto.kan_code }</td>
|
||||
<td class="col-1"><button data-tid="${dto.kan_code}" data-tname="${dto.cls_nm_4}" class="btn btn-primary" onclick="onSelect(this)">선택</button></td>
|
||||
</tr>
|
||||
</c:forEach>
|
||||
</tbody>
|
||||
|
||||
@@ -194,7 +194,7 @@
|
||||
});//submitBtn
|
||||
});//ready
|
||||
function _onSubmit(){
|
||||
if($("#file").val() == ""){
|
||||
if($("#file").val()){
|
||||
alert("이미지 파일을 업로드해주세요.");
|
||||
$("#file").focus();
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user