Index: arms/html/analysisCost/content-container.html
===================================================================
diff -u -rf1fced8d434e7dd69d01e3d9c50de0fa432e678c -r29c54fb2316f75b1b1ae7910ba68cf5de0fb6c2c
--- arms/html/analysisCost/content-container.html (.../content-container.html) (revision f1fced8d434e7dd69d01e3d9c50de0fa432e678c)
+++ arms/html/analysisCost/content-container.html (.../content-container.html) (revision 29c54fb2316f75b1b1ae7910ba68cf5de0fb6c2c)
@@ -1272,6 +1272,290 @@
+
+ {
+ 전체담당자목록[key].인력별소모비용 = 0;
+ 전체담당자목록[key].완료성과 = 0;
+ });
+
+ const newData = Object.keys(전체담당자목록).map((key) => {
+ let data = {};
+ data.이름 = 전체담당자목록[key].이름;
+ data.키 = key;
+ data.연봉 = 전체담당자목록[key].연봉;
+ return data;
+ });
+
+ const dataTable = $('#manpower-annual-income').DataTable();
+ dataTable.clear();
+ dataTable.rows.add(newData);
+ dataTable.draw();
+ jSuccess($("#editview_assignee_name").val() + "의 연봉 정보가 변경되었습니다.");
+}
+
+////////////////////////////////////////////////////////////////////////////////////////
+// 연봉 정보 업데이트 버튼 클릭 이벤트 처리
+////////////////////////////////////////////////////////////////////////////////////////function handleData(apiResponse) {
+function click_btn_for_assignee_update() {
+ $("#edit_assignee_update, #footer_edit_assignee_update").click(function () {
+ updateSalary()
+ .done(data => {
+ console.log(data);
+ fetchUpdatedData()
+ .done(handleData)
+ .fail(() => jError("연봉 정보 변경에 실패했습니다."));
+ });
+ });
+}
+
function 버전별_요구사항별_인력정보가져오기(pdServiceLink, pdServiceVersionLinks) {
const url = new UrlBuilder()
.setBaseUrl('/auth-user/api/arms/analysis/cost/version-req-assignees')
@@ -373,7 +453,7 @@
// Uncomment the following to send cross-domain cookies:
//xhrFields: {withCredentials: true},
autoUpload: true,
- url: "/auth-user/api/arms/analysis/cost/excel-upload.do",
+ url: "/auth-user/api/arms/salaries/excel-upload.do",
dropZone: $("#dropzone"),
limitMultiFileUploads: 1,
paramName: 'excelFile',
@@ -421,7 +501,31 @@
file_upload_setting();
manpowerInput(전체담당자목록);
}
-
+$(document).on('click', '.btn.btn-success.btn-sm.mr-xs', function(e) {
+ let 이름 = $(this).data('이름');
+ let 키 = $(this).data('키');
+ let 연봉 = $(this).data('연봉');
+ // let 투입일 = $(this).data('투입일');
+ // let 투입종료일 = $(this).data('투입종료일');
+ // let assignmentPercent = $(this).data('assignment-percent');
+ $("#my_modal").modal("show");
+ // var datepickerOption = {
+ // timepicker: false,
+ // format: "Y/m/d",
+ // formatDate: "Y/m/d",
+ // scrollInput: false
+ // };
+ $("#editview_assignee_key").val(키);
+ $("#editview_assignee_name").val(이름);
+ $("#editview_assignee_salary").val(연봉);
+ // $("#editview_assignee_start_date").datetimepicker(
+ // $.extend({}, datepickerOption, { value: new Date(투입일) })
+ // );
+ // $("#editview_assignee_end_date").datetimepicker(
+ // $.extend({}, datepickerOption, { value: new Date(투입종료일) })
+ // );
+ // $("#editview_assignee_plan_resource").val(assignmentPercent);
+});
function manpowerInput(전체담당자목록) {
if ($.fn.dataTable.isDataTable('#manpower-annual-income')) {
@@ -440,6 +544,9 @@
data.이름 = 전체담당자목록[key].이름;
data.키 = key;
data.연봉 = 전체담당자목록[key].연봉;
+ // data.투입일 = new Date();
+ // data.투입종료일 = new Date();
+ // data.assignmentPercent = (Math.random() * 0.9 + 0.1).toFixed(1);
return data;
});
console.log(" [ analysisCost :: manpowerInput ] :: 인력별_연봉정보 => " + JSON.stringify(인력별_연봉정보));
@@ -480,12 +587,43 @@
title: "연봉 (입력)",
data: "연봉",
render: function(data, type, row) {
+ var updateBtn = "";
var formattedData = parseInt(data).toLocaleString();
- return ' 만원';
+ return ' 만원' + updateBtn;
},
className: "dt-center",
visible: true
}
+ // {
+ // name: "assignmentPercent",
+ // title: "제품(서비스) 업무 투입 비율 ( m/m )",
+ // data: "assignmentPercent",
+ // className: "dt-center",
+ // visible: true
+ // },
+ // {
+ // name: "assignmentStartDate",
+ // title: "투입일",
+ // data: "투입일",
+ // className: "dt-center",
+ // visible: true
+ // },
+ // {
+ // name: "assignmentEndDate",
+ // title: "투입종료일",
+ // data: "투입종료일",
+ // className: "dt-center",
+ // visible: true
+ // }
];
var rowsGroupList = [];
@@ -578,7 +716,7 @@
alert("다운로드할 인력 정보가 없습니다.");
} else {
$.ajax({
- url: "/auth-user/api/arms/analysis/cost/excel-download.do?excelFileName=" + fileName,
+ url: "/auth-user/api/arms/salaries/excel-download.do?excelFileName=" + fileName,
type: "POST",
data: JSON.stringify(인력별_연봉정보),
contentType: "application/json",