diff --git a/WebContent/WEB-INF/view/contractMgmt/estimateList_new.jsp b/WebContent/WEB-INF/view/contractMgmt/estimateList_new.jsp
index 8911cf4..ee7854f 100644
--- a/WebContent/WEB-INF/view/contractMgmt/estimateList_new.jsp
+++ b/WebContent/WEB-INF/view/contractMgmt/estimateList_new.jsp
@@ -63,11 +63,26 @@ $(document).ready(function(){
//영업활동 등록 팝업
$(".btnRegist").click(function(){
+ var selectedData = _tabulGrid.getSelectedData();
var popup_width = 1400;
- var popup_height = 560;
- var params = "?actionType=regist"
- var url = "/contractMgmt/estimateRegistFormPopup.do"+params;
- //window.open("/ordermgmt/ordermgmtUpdateFormPopup.do"+params, "", "width=650, height=750","menubars=no, scrollbars=yes, resizable=yes");
+ var popup_height = 560;
+ var url = "";
+
+ // 선택된 행이 없으면 신규 등록
+ if(selectedData.length === 0){
+ url = "/contractMgmt/estimateRegistFormPopup.do?actionType=regist";
+ }
+ // 한 줄 선택된 경우 상세 팝업 (영업번호 클릭과 동일)
+ else if(selectedData.length === 1){
+ var objid = fnc_checkNull(selectedData[0].OBJID);
+ url = "/contractMgmt/estimateRegistFormPopup.do?objId=" + objid;
+ }
+ // 여러 줄 선택된 경우 경고
+ else {
+ Swal.fire("한 개의 행만 선택해주세요.");
+ return false;
+ }
+
fn_centerPopup(popup_width, popup_height, url);
});
@@ -502,11 +517,11 @@ function fn_FileRegist(objId, docType, docTypeName){
fn_centerPopup(popup_width, popup_height, url);
}
-//영업활동등록 상세
+//영업활동등록 상세 (뷰 전용 팝업)
function fn_projectConceptDetail(objId){
- var popup_width = 1400;
- var popup_height = 560;
- var url = "/contractMgmt/estimateRegistFormPopup.do?objId="+objId;
+ var popup_width = 900;
+ var popup_height = 700;
+ var url = "/contractMgmt/estimateViewPopup.do?objId="+objId;
fn_centerPopup(popup_width, popup_height, url);
}
diff --git a/WebContent/WEB-INF/view/contractMgmt/estimateMailFormPopup.jsp b/WebContent/WEB-INF/view/contractMgmt/estimateMailFormPopup.jsp
index ba83123..2941d8d 100644
--- a/WebContent/WEB-INF/view/contractMgmt/estimateMailFormPopup.jsp
+++ b/WebContent/WEB-INF/view/contractMgmt/estimateMailFormPopup.jsp
@@ -15,34 +15,35 @@ String contractObjId = request.getParameter("contractObjId");
견적서 메일 발송
+
+
+
+
+
+