커밋
This commit is contained in:
@@ -1022,6 +1022,7 @@
|
||||
)
|
||||
</if>
|
||||
<if test="shippingStatus != null and shippingStatus != ''">
|
||||
AND SR.project_no IS NOT NULL
|
||||
AND SR.shipping_order_status = #{shippingStatus}
|
||||
</if>
|
||||
<if test="shippingDateFrom != null and shippingDateFrom != ''">
|
||||
@@ -1033,13 +1034,15 @@
|
||||
AND TO_DATE(TO_CHAR(SR.shipping_date, 'YYYY-MM-DD'), 'YYYY-MM-DD') <![CDATA[<=]]> TO_DATE(#{shippingDateTo}, 'YYYY-MM-DD')
|
||||
</if>
|
||||
<if test="shippingMethod != null and shippingMethod != ''">
|
||||
/* SHIPPING_METHOD 필드 없음 - 검색 조건 무시 */
|
||||
AND SR.project_no IS NOT NULL
|
||||
AND SR.shipping_method = #{shippingMethod}
|
||||
</if>
|
||||
<if test="manager != null and manager != ''">
|
||||
AND T.PM_USER_ID = #{manager}
|
||||
AND (T.PM_USER_ID = #{manager} OR SR.manager_user_id = #{manager})
|
||||
</if>
|
||||
<if test="incoterms != null and incoterms != ''">
|
||||
/* INCOTERMS 필드 없음 - 검색 조건 무시 */
|
||||
AND SR.project_no IS NOT NULL
|
||||
AND SR.incoterms = #{incoterms}
|
||||
</if>
|
||||
<if test="salesStatus != null and salesStatus != ''">
|
||||
<choose>
|
||||
@@ -1188,13 +1191,25 @@ ORDER BY T.REGDATE DESC, T.PROJECT_NO DESC
|
||||
)
|
||||
</if>
|
||||
<if test="shippingMethod != null and shippingMethod != ''">
|
||||
/* SHIPPING_METHOD 필드 없음 - 검색 조건 무시 */
|
||||
AND EXISTS (
|
||||
SELECT 1 FROM sales_registration SR
|
||||
WHERE T.PROJECT_NO = SR.project_no
|
||||
AND SR.shipping_method = #{shippingMethod}
|
||||
)
|
||||
</if>
|
||||
<if test="manager != null and manager != ''">
|
||||
AND T.PM_USER_ID = #{manager}
|
||||
AND (T.PM_USER_ID = #{manager} OR EXISTS (
|
||||
SELECT 1 FROM sales_registration SR
|
||||
WHERE T.PROJECT_NO = SR.project_no
|
||||
AND SR.manager_user_id = #{manager}
|
||||
))
|
||||
</if>
|
||||
<if test="incoterms != null and incoterms != ''">
|
||||
/* INCOTERMS 필드 없음 - 검색 조건 무시 */
|
||||
AND EXISTS (
|
||||
SELECT 1 FROM sales_registration SR
|
||||
WHERE T.PROJECT_NO = SR.project_no
|
||||
AND SR.incoterms = #{incoterms}
|
||||
)
|
||||
</if>
|
||||
<if test="salesStatus != null and salesStatus != ''">
|
||||
<choose>
|
||||
|
||||
@@ -280,13 +280,11 @@ var columns = [
|
||||
{headerHozAlign : 'center', hozAlign : 'center', width : '80', title : '수주상태', field : 'ORDER_STATUS'},
|
||||
{headerHozAlign : 'center', hozAlign : 'center', width : '100', title : '발주번호', field : 'PO_NO'},
|
||||
{headerHozAlign : 'center', hozAlign : 'center', width : '90', title : '발주일', field : 'ORDER_DATE'},
|
||||
{headerHozAlign : 'center', hozAlign : 'center', width : '70', title : '주문서', field : 'ORDER_ATTACH',
|
||||
{headerHozAlign : 'center', hozAlign : 'center', width : '80', title : '주문서첨부', field : 'CU01_CNT',
|
||||
formatter: fnc_subInfoValueFormatter,
|
||||
cellClick: function(e, cell){
|
||||
var objid = cell.getData().CONTRACT_OBJID || cell.getData().SALE_NO;
|
||||
if(objid){
|
||||
fn_FileRegist(objid, "ORDER_DOC", "주문서");
|
||||
}
|
||||
var objid = fnc_checkNull(cell.getData().CONTRACT_OBJID);
|
||||
fn_FileRegist(objid, "ORDER_DOC", "ORDER_DOC");
|
||||
}
|
||||
},
|
||||
{headerHozAlign : 'center', hozAlign : 'center', width : '80', title : '생산상태', field : 'PRODUCTION_STATUS'},
|
||||
|
||||
@@ -124,9 +124,12 @@ public class SalesNcollectMgmtController {
|
||||
codeMap.put("orderStatusList", commonService.bizMakeOptionList("0000963", "", "common.getCodeselect"));
|
||||
//codeMap.put("orderStatusList",
|
||||
// commonService.bizMakeOptionList("0000932", "", "common.getCodeselect"));
|
||||
// 출하대기 상태
|
||||
codeMap.put("shippingStatusList",
|
||||
salesMgmtCommonService.bizMakeOptionList("SH", "", "salesMgmtCommon.getCodeList"));
|
||||
// 출하대기 상태 (생산상태) - 하드코딩
|
||||
StringBuilder shippingStatusOptions = new StringBuilder();
|
||||
shippingStatusOptions.append("<option value='생산대기'>생산대기</option>");
|
||||
shippingStatusOptions.append("<option value='생산중'>생산중</option>");
|
||||
shippingStatusOptions.append("<option value='생산완료'>생산완료</option>");
|
||||
codeMap.put("shippingStatusList", shippingStatusOptions.toString());
|
||||
/*
|
||||
// 출고방법
|
||||
codeMap.put("shippingMethodList",
|
||||
@@ -177,22 +180,12 @@ public class SalesNcollectMgmtController {
|
||||
// 수주상태
|
||||
codeMap.put("orderStatusList",
|
||||
commonService.bizMakeOptionList("0000963", "", "common.getCodeselect"));
|
||||
// 출하지시상태 - COMM_CODE 테이블에서 조회 (PARENT_CODE_ID를 찾아서 사용)
|
||||
// 임시로 여러 코드를 시도해보거나, 직접 쿼리로 조회
|
||||
String shippingStatusList = commonService.bizMakeOptionList("SHIPPING_STATUS", "", "common.getCodeselect");
|
||||
if (shippingStatusList == null || shippingStatusList.trim().isEmpty()) {
|
||||
// SHIPPING_STATUS 코드가 없으면 다른 코드 시도
|
||||
shippingStatusList = commonService.bizMakeOptionList("0001300", "", "common.getCodeselect");
|
||||
}
|
||||
if (shippingStatusList == null || shippingStatusList.trim().isEmpty()) {
|
||||
// 그래도 없으면 하드코딩
|
||||
StringBuilder shippingStatusOptions = new StringBuilder();
|
||||
shippingStatusOptions.append("<option value='출하지시'>출하지시</option>");
|
||||
shippingStatusOptions.append("<option value='출하완료'>출하완료</option>");
|
||||
shippingStatusOptions.append("<option value='출하대기'>출하대기</option>");
|
||||
shippingStatusList = shippingStatusOptions.toString();
|
||||
}
|
||||
codeMap.put("shippingStatusList", shippingStatusList);
|
||||
// 출하대기상태 (생산상태) - 하드코딩
|
||||
StringBuilder shippingStatusOptions = new StringBuilder();
|
||||
shippingStatusOptions.append("<option value='생산대기'>생산대기</option>");
|
||||
shippingStatusOptions.append("<option value='생산중'>생산중</option>");
|
||||
shippingStatusOptions.append("<option value='생산완료'>생산완료</option>");
|
||||
codeMap.put("shippingStatusList", shippingStatusOptions.toString());
|
||||
// 담당자
|
||||
codeMap.put("managerList", commonService.bizMakeOptionList("", "", "common.getUserselect"));
|
||||
|
||||
|
||||
@@ -1022,6 +1022,7 @@
|
||||
)
|
||||
</if>
|
||||
<if test="shippingStatus != null and shippingStatus != ''">
|
||||
AND SR.project_no IS NOT NULL
|
||||
AND SR.shipping_order_status = #{shippingStatus}
|
||||
</if>
|
||||
<if test="shippingDateFrom != null and shippingDateFrom != ''">
|
||||
@@ -1033,13 +1034,15 @@
|
||||
AND TO_DATE(TO_CHAR(SR.shipping_date, 'YYYY-MM-DD'), 'YYYY-MM-DD') <![CDATA[<=]]> TO_DATE(#{shippingDateTo}, 'YYYY-MM-DD')
|
||||
</if>
|
||||
<if test="shippingMethod != null and shippingMethod != ''">
|
||||
/* SHIPPING_METHOD 필드 없음 - 검색 조건 무시 */
|
||||
AND SR.project_no IS NOT NULL
|
||||
AND SR.shipping_method = #{shippingMethod}
|
||||
</if>
|
||||
<if test="manager != null and manager != ''">
|
||||
AND T.PM_USER_ID = #{manager}
|
||||
AND (T.PM_USER_ID = #{manager} OR SR.manager_user_id = #{manager})
|
||||
</if>
|
||||
<if test="incoterms != null and incoterms != ''">
|
||||
/* INCOTERMS 필드 없음 - 검색 조건 무시 */
|
||||
AND SR.project_no IS NOT NULL
|
||||
AND SR.incoterms = #{incoterms}
|
||||
</if>
|
||||
<if test="salesStatus != null and salesStatus != ''">
|
||||
<choose>
|
||||
@@ -1188,13 +1191,25 @@ ORDER BY T.REGDATE DESC, T.PROJECT_NO DESC
|
||||
)
|
||||
</if>
|
||||
<if test="shippingMethod != null and shippingMethod != ''">
|
||||
/* SHIPPING_METHOD 필드 없음 - 검색 조건 무시 */
|
||||
AND EXISTS (
|
||||
SELECT 1 FROM sales_registration SR
|
||||
WHERE T.PROJECT_NO = SR.project_no
|
||||
AND SR.shipping_method = #{shippingMethod}
|
||||
)
|
||||
</if>
|
||||
<if test="manager != null and manager != ''">
|
||||
AND T.PM_USER_ID = #{manager}
|
||||
AND (T.PM_USER_ID = #{manager} OR EXISTS (
|
||||
SELECT 1 FROM sales_registration SR
|
||||
WHERE T.PROJECT_NO = SR.project_no
|
||||
AND SR.manager_user_id = #{manager}
|
||||
))
|
||||
</if>
|
||||
<if test="incoterms != null and incoterms != ''">
|
||||
/* INCOTERMS 필드 없음 - 검색 조건 무시 */
|
||||
AND EXISTS (
|
||||
SELECT 1 FROM sales_registration SR
|
||||
WHERE T.PROJECT_NO = SR.project_no
|
||||
AND SR.incoterms = #{incoterms}
|
||||
)
|
||||
</if>
|
||||
<if test="salesStatus != null and salesStatus != ''">
|
||||
<choose>
|
||||
|
||||
Reference in New Issue
Block a user