최초커밋
This commit is contained in:
794
nk/input_time_2014.asp
Normal file
794
nk/input_time_2014.asp
Normal file
@@ -0,0 +1,794 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<!-- #include virtual = "include/holiday_count.asp" -->
|
||||
<!-- #include virtual = "lib/logger_nk.asp" -->
|
||||
<%
|
||||
dim neakeun_name, neakeun_jumin, neakeun_id
|
||||
dim Query
|
||||
dim condate
|
||||
dim in_time_chk '0:<3A><><EFBFBD>Ͼ<EFBFBD><CFBE><EFBFBD>, 1:<3A><><EFBFBD>ٽð<D9BD><C3B0>̹<EFBFBD> <20><><EFBFBD><EFBFBD>, 2:<3A><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD> <20>ð<EFBFBD><C3B0>̹̱<CCB9><CCB1><EFBFBD>
|
||||
dim yoil, yoilvalue
|
||||
dim Moon_Date
|
||||
dim permanent_position
|
||||
|
||||
If request("condate") = "" Or request("condate") = null Then
|
||||
condate = year(date) & "-" & zeroformat(month(date),2) & "-"
|
||||
|
||||
if clng(hour(time)) < 7 then
|
||||
condate = condate & zeroformat(day(date-1) ,2)
|
||||
else
|
||||
condate = condate & zeroformat(day(date) ,2)
|
||||
end If
|
||||
Else
|
||||
condate = request("condate")
|
||||
End If
|
||||
|
||||
dim work_start_time, work_end_time ' <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD>, <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD>
|
||||
'<27><>) work_stat_time<6D><65> 1000, work_end_time 1800 <20≯<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 0900 ~ 2000 <20><><EFBFBD><EFBFBD> <20>ٹ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD><C3B0><EFBFBD> 1000 ~ 1800 <20>ȿ<EFBFBD><C8BF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ѵ<EFBFBD>.
|
||||
'2025_04_14 : <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ð<EFBFBD><C3B0><EFBFBD> "<22><><EFBFBD><EFBFBD> 10<31><30> <20><> <20><><EFBFBD><EFBFBD> 9<><39> 45<34><35>" <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
If condate < "2025-04-26" Then
|
||||
work_start_time = "1000"
|
||||
Else
|
||||
work_start_time = "0945"
|
||||
End If
|
||||
|
||||
work_end_time = "2400"
|
||||
|
||||
dim lunch_time_st, lunch_time_end ' lunch_time_st <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ~ lunch_time_end <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD>ɽĴ<C9BD> <20><><EFBFBD><EFBFBD>
|
||||
dim dinner_time_st, dinner_time_end ' dinner_time_st <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ~ dinner_time_end <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
lunch_time_st = "1100"
|
||||
lunch_time_end = "1500"
|
||||
dinner_time_st = "1800"
|
||||
dinner_time_end = "2100"
|
||||
|
||||
If UCase(request("permanent_position")) = "TRUE" Then
|
||||
permanent_position = request("permanent_position")
|
||||
Else
|
||||
permanent_position = false
|
||||
End if
|
||||
|
||||
yoil = weekday(condate)
|
||||
yoilvalue = yoil
|
||||
select case yoil
|
||||
case 1 yoil = "<22>Ͽ<EFBFBD><CFBF><EFBFBD>"
|
||||
case 2 yoil = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
case 3 yoil = "ȭ<><C8AD><EFBFBD><EFBFBD>"
|
||||
case 4 yoil = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
case 5 yoil = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
case 6 yoil = "<22>ݿ<EFBFBD><DDBF><EFBFBD>"
|
||||
case 7 yoil = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
end select
|
||||
|
||||
call day_off_chk(Mid(condate, 1, 4), Mid(condate, 6, 2), Mid(condate, 9, 2))
|
||||
if day_off = "true" then
|
||||
yoil="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
end if
|
||||
neakeun_name = unescape(Request("neakeun_name"))
|
||||
neakeun_jumin = Request("neakeun_jumin")
|
||||
neakeun_id = Request("neakeun_id")
|
||||
|
||||
query = " select in_time, out_time from neakeun_in_out_time "
|
||||
query = query & " where neakeun_name = '" & neakeun_name & "' "
|
||||
query = query & " and left(neakeun_jumin, 6) = left('" & neakeun_jumin & "', 6) "
|
||||
query = query & " and [date] = '" & condate & "'"
|
||||
adoRs.Open query, adoconn, adopenstatic, adlockreadonly
|
||||
if adoRs.recordcount = 0 then
|
||||
in_time_chk= 0 '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
else
|
||||
if trim(adors("in_time")) <> "" then
|
||||
in_time_chk= 1 '<27><><EFBFBD><EFBFBD>
|
||||
end if
|
||||
if trim(adors("out_time")) <> "" then
|
||||
in_time_chk= 2 '<27><><EFBFBD><EFBFBD>
|
||||
end if
|
||||
end if
|
||||
adoRs.close
|
||||
|
||||
|
||||
now_time = zeroformat(hour(time),2) & zeroformat(minute(time),2)
|
||||
if cint(now_time) >= 1200 and cint(now_time) < 1300 then
|
||||
now_time = "1300"
|
||||
end if
|
||||
|
||||
'response.write "<br> time = "& time
|
||||
'response.write "<br> now_time = "& now_time
|
||||
'response.write "<br> cint(now_time) = "& cint(now_time)
|
||||
'response.write "<br> yoil = "& yoil
|
||||
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
|
||||
<link rel="stylesheet" type="text/css" href="/css/jquery-ui.min.css">
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
<script src="/js/jquery-ajax-call.js"></script>
|
||||
<script src="/js/jquery.form.min.js"></script>
|
||||
<script src="/js/jquery-ui.min.js"></script>
|
||||
<script language="javascript">
|
||||
$(document).ready(function () {
|
||||
$.datepicker.setDefaults({
|
||||
dateFormat: 'yy-mm-dd',
|
||||
prevText: '<27><><EFBFBD><EFBFBD> <20><>',
|
||||
nextText: '<27><><EFBFBD><EFBFBD> <20><>',
|
||||
monthNames: ['1<><31>', '2<><32>', '3<><33>', '4<><34>', '5<><35>', '6<><36>', '7<><37>', '8<><38>', '9<><39>', '10<31><30>', '11<31><31>', '12<31><32>'],
|
||||
monthNamesShort: ['1<><31>', '2<><32>', '3<><33>', '4<><34>', '5<><35>', '6<><36>', '7<><37>', '8<><38>', '9<><39>', '10<31><30>', '11<31><31>', '12<31><32>'],
|
||||
dayNames: ['<27><>', '<27><>', 'ȭ', '<27><>', '<27><>', '<27><>', '<27><>'],
|
||||
dayNamesShort: ['<27><>', '<27><>', 'ȭ', '<27><>', '<27><>', '<27><>', '<27><>'],
|
||||
dayNamesMin: ['<27><>', '<27><>', 'ȭ', '<27><>', '<27><>', '<27><>', '<27><>'],
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: '<27><>'
|
||||
});
|
||||
$(".selectDate").datepicker();
|
||||
var login_out_flag = '<%=in_time_chk%>';
|
||||
if (login_out_flag == "2") {
|
||||
setAvailableTime();
|
||||
} else if (login_out_flag == "0") {
|
||||
var permanent_position = document.frm_work.permanent_position.value;
|
||||
if (permanent_position != "True") {
|
||||
go_time_write('1');
|
||||
}
|
||||
}
|
||||
});
|
||||
function svChange(sv, index) {
|
||||
ajaxCallJson("sv_change_ajax.asp", { "sv": sv , "div": "1"}, null, "post", "LoadProjectList(" + index + ")");
|
||||
ajaxCallJson("sv_change_ajax.asp", { "sv": sv , "div": "2"}, null, "post", "LoadSebuList(" + index + ")");
|
||||
}
|
||||
function LoadProjectList(index) {
|
||||
if (ajaxResponse != "NONE") {
|
||||
$("select[name=prj_code]:eq(" + (index * 1 - 1) + ") option").remove();
|
||||
$("select[name=prj_code]:eq(" + (index * 1 - 1) + ")").html(ajaxResponse);
|
||||
} else {
|
||||
alert("<22>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
}
|
||||
}
|
||||
function LoadSebuList(index) {
|
||||
if (ajaxResponse != "NONE") {
|
||||
$("select[name=prj_sebu]:eq(" + (index * 1 - 1) + ") option").remove();
|
||||
$("select[name=prj_sebu]:eq(" + (index * 1 - 1) + ")").html(ajaxResponse);
|
||||
} else {
|
||||
alert("<22><><EFBFBD>αٹ<CEB1><D9B9><EFBFBD> <20>ҷ<EFBFBD><D2B7><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
}
|
||||
}
|
||||
function setAvailableTime() {
|
||||
var actualStartTime = "0"
|
||||
var actualEndTime = "0"
|
||||
|
||||
var actualInTime = "0"
|
||||
var actualOutTime = "0"
|
||||
var actualInputTime = "0"
|
||||
var actualOutputTime = "0"
|
||||
|
||||
var LogInTime = $("input[name=InTime]").val();
|
||||
var LogOutTime = $("input[name=OutTime]").val();
|
||||
|
||||
var StartTime = $("input[name=txtStartTime]").val();
|
||||
var EndTime = $("input[name=txtEndTime]").val();
|
||||
var workEndTime = "";
|
||||
|
||||
var lunch_time_st = <%=lunch_time_st %>;
|
||||
var lunch_time_end = <%=lunch_time_end %>;
|
||||
var dinner_time_st = <%=dinner_time_st %>;
|
||||
var dinner_time_end = <%=dinner_time_end %>;
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> <20>ð<EFBFBD><C3B0><EFBFBD> <20>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD>۽ð<DBBD>, <20><><EFBFBD>ٽð<D9BD><C3B0><EFBFBD> <20>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD><C3B0><EFBFBD> üũ <20>Ͽ<EFBFBD> <20>Ϸ<EFBFBD><CFB7><EFBFBD> <20>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD>~!
|
||||
if (Number(LogInTime) < Number(StartTime)) {
|
||||
actualStartTime = StartTime;
|
||||
} else {
|
||||
actualStartTime = LogInTime;
|
||||
}
|
||||
|
||||
if (Number(LogOutTime) < Number(EndTime)) {
|
||||
if(Number(LogOutTime) < Number(StartTime)){
|
||||
actualEndTime = StartTime;
|
||||
}else{
|
||||
actualEndTime = LogOutTime;
|
||||
}
|
||||
} else {
|
||||
actualEndTime = EndTime;
|
||||
}
|
||||
|
||||
if (actualStartTime != "0" && actualEndTime != "0") {
|
||||
|
||||
actualInTime = Number(actualStartTime.substr(0, 2)) * 60 + Number(actualStartTime.substr(2, 2));
|
||||
actualOutTime = Number(actualEndTime.substr(0, 2)) * 60 + Number(actualEndTime.substr(2, 2));
|
||||
|
||||
var tempActualInTime = (18 * 60 > actualOutTime ? actualOutTime : 18 * 60) - eval(actualInTime);
|
||||
var tempActualOutTime = eval(actualOutTime) - 18 * 60;
|
||||
//<2F><><EFBFBD><EFBFBD> actualTime<6D><65><EFBFBD><EFBFBD> <20><><EFBFBD>ɽð<C9BD><C3B0><EFBFBD> 1<>ð<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD><C3B0><EFBFBD> 30<33><30><EFBFBD><EFBFBD> üũ<C3BC>Ͽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD>, 15<31>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>~!!!
|
||||
|
||||
//<2F><><EFBFBD>ɽĴ<C9BD> üũ~!
|
||||
if (Number(actualStartTime) <= lunch_time_st && Number(actualEndTime) >= lunch_time_end) {
|
||||
//$("input[name=lunch]").attr("checked", true);
|
||||
$("input[name=lunch]").val("1");
|
||||
//$("input[name=lunch_flag]").val("1");
|
||||
tempActualInTime = tempActualInTime - 60; //<2F><><EFBFBD>ɽĴ밡 <20><><EFBFBD>ȴٸ<C8B4> 1<>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD>~!
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD> üũ~!
|
||||
if (Number(actualStartTime) <= dinner_time_st && Number(actualEndTime) >= dinner_time_end) {
|
||||
//$("input[name=dinner]").attr("checked", true);
|
||||
$("input[name=dinner]").val("1");
|
||||
//$("input[name=dinner_flag]").val("1");
|
||||
tempActualOutTime = tempActualOutTime - 30;
|
||||
}
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 15<31><35> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ϴ<EFBFBD> <20>κ<EFBFBD>~!
|
||||
var temp_MinusInTime = tempActualInTime % 15;
|
||||
tempActualInTime = tempActualInTime - temp_MinusInTime;
|
||||
actualInputTime = (tempActualInTime / 60).toFixed(2);
|
||||
|
||||
var temp_MinusOutTime = tempActualOutTime % 15;
|
||||
tempActualOutTime = tempActualOutTime - temp_MinusOutTime;
|
||||
actualOutputTime = (tempActualOutTime / 60).toFixed(2);
|
||||
|
||||
$("input[name=txtInputTime]").val(actualInputTime);
|
||||
$("input[name=txtOutputTime]").val(actualOutputTime > 0 ? actualOutputTime : 0);
|
||||
var workTimeSum = parseFloat(document.frm_neakeun_job.txtInTimeSum.value) + parseFloat(document.frm_neakeun_job.txtOutTimeSum.value);
|
||||
if(workTimeSum >= 4){
|
||||
$("input[name=lunch]").attr("checked", true);
|
||||
$("input[name=lunch_flag]").val("1");
|
||||
}
|
||||
if(workTimeSum >= 8){
|
||||
$("input[name=dinner]").attr("checked", true);
|
||||
$("input[name=dinner_flag]").val("1");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function go_time_write(txt) {
|
||||
var neakeun_name = document.frm_work.neakeun_name.value;
|
||||
var neakeun_jumin = document.frm_work.neakeun_jumin.value;
|
||||
var permanent_position = document.frm_work.permanent_position.value;
|
||||
|
||||
if (neakeun_name != "" && neakeun_jumin != "") {
|
||||
var condate = document.frm_work.condate.value; //<2F><>¥
|
||||
var url = "input_time_write.asp?time_chk=" + txt;
|
||||
url = url + "&neakeun_name=" + neakeun_name;
|
||||
url = url + "&neakeun_jumin=" + neakeun_jumin;
|
||||
url = url + "&permanent_position=" + permanent_position;
|
||||
url = url + "&condate=" + condate;
|
||||
|
||||
document.frm_work.action = url;
|
||||
document.frm_work.submit();
|
||||
} else {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
}
|
||||
}
|
||||
function go_delete(neakeun_name, del_date) {
|
||||
//<2F>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
var confirm_flag = false;
|
||||
var temp_confirm = "";
|
||||
for (var i = 0; i < 10; i++) {
|
||||
temp_confirm = document.frm_neakeun_job.job_confirm_yn[i].value;
|
||||
if (temp_confirm == "Y") {
|
||||
confirm_flag = true;
|
||||
}
|
||||
}
|
||||
if (confirm_flag) {
|
||||
alert("SV<53><56> <20><><EFBFBD><EFBFBD>Ȯ<EFBFBD><C8AE><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>մϴ<D5B4>.\n<><6E><EFBFBD><EFBFBD> <20><> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
} else {
|
||||
if (confirm(neakeun_name + "<22><><EFBFBD><EFBFBD> " + del_date + "<22><><EFBFBD><EFBFBD>\n\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>θ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ұ<EFBFBD><D2B1><EFBFBD>...\n\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ͻø<CFBD> Ȯ<><C8AE><EFBFBD><EFBFBD> Ŭ<><C5AC><EFBFBD>Ͻð<CFBD>\n\n<>ƴϸ<C6B4> <20><><EFBFBD>Ҹ<EFBFBD> Ŭ<><C5AC><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>")) {
|
||||
var neakeun_jumin = document.frm_neakeun_job.neakeun_jumin.value;
|
||||
var url = "work_delete.asp?neakeun_name=" + neakeun_name + "&del_date=" + del_date + "&neakeun_jumin=" + neakeun_jumin;
|
||||
window.open(url, "", "left=50, top=50, menubar=no, location=no, status=no ,toolbar=no, width=850, height=600, scrollbars=yes ,resizable=no");
|
||||
} else {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ҹ<EFBFBD> <20>Ͽ<EFBFBD><CFBF><EFBFBD><EFBFBD>ϴ<EFBFBD>...");
|
||||
}
|
||||
}
|
||||
}
|
||||
function Sendit(txt) {
|
||||
var yoil = document.frm_neakeun_job.txtyoilvalue.value;
|
||||
var availableInTime = document.frm_neakeun_job.txtInputTime.value; // '<27>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD>
|
||||
var availableOutTime = document.frm_neakeun_job.txtOutputTime.value; // '<27>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD>
|
||||
var txtInTime = 0
|
||||
var txtInTimeSum = 0
|
||||
var txtOutTime = 0
|
||||
var txtOutTimeSum = 0
|
||||
|
||||
for (var i = 0; i < 10; i++) {
|
||||
prj_code = document.frm_neakeun_job.prj_code[i].value;
|
||||
prj_sebu = document.frm_neakeun_job.prj_sebu[i].value;
|
||||
txtInTime = 0;
|
||||
if(document.frm_neakeun_job.txtInTime[i].value == ""){
|
||||
document.frm_neakeun_job.txtInTime[i].value = "0";
|
||||
}
|
||||
if(document.frm_neakeun_job.txtOutTime[i].value == ""){
|
||||
document.frm_neakeun_job.txtOutTime[i].value = "0";
|
||||
}
|
||||
txtInTime = document.frm_neakeun_job.txtInTime[i].value;
|
||||
txtInTimeSum = txtInTimeSum + txtInTime * 1;
|
||||
txtOutTime = document.frm_neakeun_job.txtOutTime[i].value;
|
||||
txtOutTimeSum = txtOutTimeSum + txtOutTime * 1;
|
||||
|
||||
if (eval(txtInTime) > 0 || eval(txtOutTime) > 0) {
|
||||
if (prj_code == "") {
|
||||
alert((eval(i) + 1) + "<22><>° <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
if (prj_sebu == "") {
|
||||
alert((eval(i) + 1) + "<22><>° <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (eval(availableInTime) < eval(txtInTimeSum)) {
|
||||
alert("<22>ְ<EFBFBD> <20>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD><C3B0><EFBFBD> <20>ʰ<EFBFBD><CAB0>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
if (eval(availableOutTime) < eval(txtOutTimeSum)) {
|
||||
alert("<22>߰<EFBFBD> <20>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD><C3B0><EFBFBD> <20>ʰ<EFBFBD><CAB0>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
document.frm_neakeun_job.txtInTimeSum.value = txtInTimeSum;
|
||||
document.frm_neakeun_job.txtOutTimeSum.value = txtOutTimeSum;
|
||||
|
||||
if (eval(txtInTimeSum) == 0 && eval(txtOutTimeSum) == 0) {
|
||||
alert("<22>ٹ<EFBFBD> <20>ð<EFBFBD><C3B0><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
var workTimeSum = parseFloat(document.frm_neakeun_job.txtInTimeSum.value) + parseFloat(document.frm_neakeun_job.txtOutTimeSum.value);
|
||||
if(workTimeSum >= 4){
|
||||
$("input[name=lunch]").attr("checked", true);
|
||||
$("input[name=lunch_flag]").val("1");
|
||||
}
|
||||
if(workTimeSum >= 8){
|
||||
$("input[name=dinner]").attr("checked", true);
|
||||
$("input[name=dinner_flag]").val("1");
|
||||
}
|
||||
document.frm_neakeun_job.action = "work_submit_save_2014.asp";
|
||||
document.frm_neakeun_job.submit();
|
||||
}
|
||||
function Search_Name() {
|
||||
var m_name = document.frm_work.neakeun_name.value;
|
||||
if (m_name == "") {
|
||||
alert("ã<><C3A3><EFBFBD><EFBFBD> <20>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20>Է<EFBFBD><D4B7><EFBFBD> <20><> ã<><C3A3> <20><>ư<EFBFBD><C6B0> <20>̿<EFBFBD><CCBF>Ͽ<EFBFBD> <20>ش<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
var url = "/project_list/myun_search.asp?cutmenu=1&part=naekeun_search&m_name=" + m_name;
|
||||
window.open(url, "", "left=0, top=5, width=500, height=500, scrollbars=yes, statbar=no");
|
||||
}
|
||||
function work_date_change() {
|
||||
var neakeun_name = document.frm_work.neakeun_name.value;
|
||||
var neakeun_jumin = document.frm_work.neakeun_jumin.value;
|
||||
if (neakeun_name != "" && neakeun_jumin != "") {
|
||||
var condate = document.frm_work.condate.value;
|
||||
var dateArray = condate.split("-");
|
||||
var sel_date = new Date(dateArray[0], Number(dateArray[1]) - 1, dateArray[2]);
|
||||
var now_date_full = new Date();
|
||||
var now_date = new Date(now_date_full.getFullYear(), now_date_full.getMonth(), now_date_full.getDate());
|
||||
|
||||
if (document.frm_work.permanent_position.value.toUpperCase() != "TRUE") { // SV<53><56> <20>ƴϸ<C6B4>
|
||||
if ((now_date.getTime() - sel_date.getTime()) / 24 / 60 / 60 / 1000 > 5) {
|
||||
alert("5<><35> <20>ʰ<EFBFBD><CAB0><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
//return false;
|
||||
}
|
||||
}
|
||||
document.frm_work.action = "input_time_2014.asp";
|
||||
document.frm_work.submit();
|
||||
} else {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.");
|
||||
}
|
||||
}
|
||||
function work_time_change() {
|
||||
frm = document.frm_neakeun_job;
|
||||
if (frm.in_time.value.replace(/ /gi, "") == "" || frm.out_time.value.replace(/ /gi, "") == ""){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD>ٽð<D9BD> <20><> <20><> <20><><EFBFBD><EFBFBD> <20>ԷµǾ<C2B5><C7BE>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.\nȮ<6E><C8AE> <20><> <20>ٽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
if (isNaN(frm.in_time.value) || isNaN(frm.out_time.value)){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD>ٽð<D9BD> <20><> <20>߸<EFBFBD><DFB8><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ԷµǾ<C2B5><C7BE>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.\nȮ<6E><C8AE> <20><> <20>ٽ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (frm.in_time.value > frm.out_time.value) {
|
||||
alert("<22><><EFBFBD>ٽð<D9BD><C3B0><EFBFBD> <20><><EFBFBD>ٽð<D9BD><C3B0><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
if (confirm("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ð<EFBFBD><C3B0><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")) {
|
||||
frm.action = "work_time_change_2014.asp";
|
||||
frm.submit();
|
||||
}
|
||||
}
|
||||
function resetJumin() {
|
||||
document.frm_work.neakeun_jumin.value = "";
|
||||
}
|
||||
function onlyNum() {
|
||||
if (event.keyCode == 46) {
|
||||
return true;
|
||||
} else if ((event.keyCode < 48) || (event.keyCode > 57)) {
|
||||
event.returnValue = false;
|
||||
}
|
||||
}
|
||||
function logout() {
|
||||
document.frm_work.action = "./neakeun_Logout.asp";
|
||||
document.frm_work.submit();
|
||||
}
|
||||
|
||||
</script>
|
||||
<TITLE><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></TITLE>
|
||||
</head>
|
||||
<body leftmargin=0 topmargin=0>
|
||||
<form method='post' name='frm_work'>
|
||||
<div align='left'>
|
||||
<table border=1 bordercolor="#CD1039" bordercolorlight="#CD1039" cellspacing="0" bordercolordark="#FFFFFF" cellpadding=0 width=1000>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#32A4FF"><FONT color=#ffffff size=2>
|
||||
<% If permanent_position = "True" then %>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD> : <input type=text name='neakeun_name' size=10 value = '<%=neakeun_name%>' onkeydown="resetJumin()">
|
||||
<input type="button" value="ã<><C3A3>" onclick="Search_Name()"/>
|
||||
<% else %>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD≯<EFBFBD> : <input type=text name='neakeun_name' readonly size=10 value = '<%=neakeun_name%>'>
|
||||
<% End If %>
|
||||
</td>
|
||||
<td align="center" bgcolor="#32A4FF"><FONT color=#ffffff size=2>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <input type="text" class="selectDate" style="width:150;text-align:right;" name="condate" value="<%=condate%>" readonly>
|
||||
<input type="button" value="<22><>ȸ" onclick="work_date_change()"/>
|
||||
</td>
|
||||
<td align="center" bgcolor="#32A4FF"><FONT color=#ffffff size=2>
|
||||
<09><> <20><> : <input type=text name='yoil' readonly size=10 value = '<%=yoil%>'>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
sql = " select date, in_time, out_time From neakeun_in_out_time where left(neakeun_jumin, 6) = left('" & neakeun_jumin & "', 6) and date = '" & condate & "'"
|
||||
sql = sql & " and neakeun_name = '" & neakeun_name & "'"
|
||||
'response.write sql
|
||||
AdoRs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
|
||||
Dim InTime, OutTime
|
||||
Dim convert_InTime_minute, convert_OutTime_minute
|
||||
Dim innerInTime, OverInTime
|
||||
|
||||
InTime = 0
|
||||
OutTime = 0
|
||||
if AdoRs.recordcount > 0 Then
|
||||
If AdoRs("in_time") <> "" Then
|
||||
InTime = AdoRs("in_time")
|
||||
End If
|
||||
|
||||
If AdoRs("out_time") <> "" Then
|
||||
OutTime = AdoRs("out_time")
|
||||
End If
|
||||
|
||||
If AdoRs("in_time") <> "" And AdoRs("out_time") <> "" Then
|
||||
convert_InTime_minute = eval(left(InTime,2)) * 60 + eval(right(InTime,2))
|
||||
convert_OutTime_minute = eval(left(OutTime,2)) * 60 + eval(right(OutTime,2))
|
||||
end If
|
||||
%>
|
||||
<tr height=30>
|
||||
<td align="center" bgcolor="#32A4FF" colspan=3>
|
||||
<FONT color=#ffffff size=2><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <%=AdoRs("date")%> // <3B><><EFBFBD><EFBFBD> <20>ð<EFBFBD> : <%=InTime%> // <3B><><EFBFBD><EFBFBD> <20>ð<EFBFBD> : <%=OutTime%> </font>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
End if
|
||||
adoRs.close
|
||||
%>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#32A4FF" colspan=3>
|
||||
<%if condate = left(now(), 10) OR permanent_position = "True" then %>
|
||||
<% if in_time_chk=0 then %>
|
||||
<img src = '/images/nk/<2F><><EFBFBD><EFBFBD>.gif' title = "<22><><EFBFBD>ٽð<D9BD><C3B0>Է<EFBFBD>" onclick="go_time_write('1');" align=absmiddle style='cursor:pointer'>
|
||||
<% else %>
|
||||
<img src = '/images/nk/<2F><><EFBFBD><EFBFBD>.gif' title = "<22><><EFBFBD>ٽð<D9BD><C3B0>Է<EFBFBD>" onclick="go_time_write('2');" align=absmiddle style='cursor:pointer'>
|
||||
<% end if %>
|
||||
<%end if %>
|
||||
<img src = '/images/nk/<2F>αƿ<D7BE>.gif' title = "<22>αƿ<D7BE>" onclick="logout();" align='absmiddle' style='cursor:pointer' />
|
||||
<input type='hidden' name='neakeun_jumin' value = '<%=neakeun_jumin%>' />
|
||||
<input type='hidden' name='permanent_position' value = '<%=permanent_position%>' />
|
||||
<input type="hidden" name="neakeun_id" id="neakeun_id" value="<%=neakeun_id %>" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<%
|
||||
If in_time_chk = 2 Then
|
||||
dim sv_list()
|
||||
dim in_time, out_time
|
||||
dim Categori_Cnt : Categori_Cnt = 10
|
||||
dim gap()
|
||||
reDim gap(Categori_Cnt, 13)
|
||||
|
||||
'##### <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
cost_sql = " select p_name,p_no from dbo.person "&VbCrlf
|
||||
cost_sql = cost_sql & " where p_depart in ('12','17') and p_job_part in ('03','04','05','06','12','15') and "&VbCrlf '-- <20>ǻ<EFBFBD>,QC,DP(<28>ڵ<EFBFBD>)
|
||||
cost_sql = cost_sql & " ( "&VbCrlf
|
||||
cost_sql = cost_sql & " krc_out_date = '' or "&VbCrlf
|
||||
cost_sql = cost_sql & " convert(int,replace(krc_out_date,'-',''))>=convert(int,replace('" & condate & "','-','')) "&VbCrlf
|
||||
cost_sql = cost_sql & " ) "&VbCrlf
|
||||
cost_sql = cost_sql & " order by p_name asc "&VbCrlf
|
||||
'Response.Write cost_sql
|
||||
Rs.open cost_sql, adoconn, adopenstatic, adlockreadonly
|
||||
redim sv_list(Rs.recordCount, 2)
|
||||
for i=1 To Rs.recordCount
|
||||
sv_list(i, 1) = Rs("p_name")
|
||||
sv_list(i, 2) = cstr(Rs("p_no"))
|
||||
Rs.MoveNext
|
||||
Next
|
||||
Rs.Close
|
||||
|
||||
Dim job_confirm_yn
|
||||
job_confirm_yn = "N"
|
||||
'<27><><EFBFBD>忩<EFBFBD><E5BFA9> Ȯ<><C8AE>
|
||||
sql = " SELECT nw.p_sn, nw.p_sv_no, isnull((select TOP 1 p_name from person where p_no = nw.p_sv_no), ' ') as p_sv_name, p_sv_main, nw.p_child_sn, TPM.p_subject, nw.p_sebu, nw.p_sebu_code, nw.job_in_time, nw.job_out_time, nw.job_jumal_time, niot.in_time, niot.out_time, job_total_time, "&VbCrlf
|
||||
sql = sql & " job_lunch_yn, job_dinner_yn, job_start_time, job_end_time, isnull(job_confirm_yn,'N') as job_confirm_yn, isnull((select TOP 1 p_name from person where p_no = TNP.insert_user), ' ') as insert_user "&VbCrlf
|
||||
sql = sql & " FROM neakeun_work nw LEFT OUTER JOIN "&VbCrlf
|
||||
sql = sql & " ( "&VbCrlf
|
||||
sql = sql & " select neakeun_name, neakeun_jumin, date, min(in_time) as in_time, max(out_time) as out_time "&VbCrlf
|
||||
sql = sql & " from neakeun_in_out_time "&VbCrlf
|
||||
sql = sql & " group by neakeun_name, neakeun_jumin, date "&VbCrlf
|
||||
sql = sql & " ) niot "&VbCrlf
|
||||
sql = sql & " on left(nw.neakeun_jumin, 6) = left(niot.neakeun_jumin, 6) and nw.neakeun_name = niot.neakeun_name AND NW.date = NIOT.date "&VbCrlf
|
||||
sql = sql & " left outer join T_NEAKEUN_PAY TNP ON convert(varchar(15), nw.id) = TNP.attribute01 and nw.p_sebu = TNP.s_gubun "&VbCrlf
|
||||
sql = sql & " left outer join T_PROJECT_METHOD TPM ON nw.p_child_sn = TPM.p_child_sn "&VbCrlf
|
||||
sql = sql & " WHERE left(nw.neakeun_jumin, 6) = left('" & neakeun_jumin & "', 6) "&VbCrlf
|
||||
sql = sql & " AND nw.[date] = '" & condate & "' "&VbCrlf
|
||||
sql = sql & " AND nw.in_time + nw.out_time <> '00000000' "&VbCrlf
|
||||
sql = sql & " and nw.neakeun_name = '" & neakeun_name & "' "&VbCrlf
|
||||
'Response.write sql
|
||||
AdoRs.open sql, adoconn, adopenstatic, adlockreadonly
|
||||
if AdoRs.recordcount > 0 then
|
||||
i=0
|
||||
in_time = AdoRs("in_time")
|
||||
out_time = AdoRs("out_time")
|
||||
|
||||
job_total_time = AdoRs("job_total_time")
|
||||
lunch_flag = AdoRs("job_lunch_yn")
|
||||
dinner_flag = AdoRs("job_dinner_yn")
|
||||
|
||||
do until AdoRs.eof
|
||||
i = i + 1
|
||||
gap(i,0) = adors("p_subject")
|
||||
gap(i,1) = adors("p_child_sn")
|
||||
gap(i,2) = adors("p_sebu")
|
||||
gap(i,3) = formatnumber(cDbl(adors("job_in_time")) - cDbl(adors("job_out_time")),2)
|
||||
gap(i,4) = adors("job_start_time")
|
||||
gap(i,5) = adors("job_end_time")
|
||||
gap(i,6) = adors("job_out_time")
|
||||
gap(0,3) = formatnumber(cdbl(gap(0,3)) + cdbl(gap(i,3)),2)
|
||||
gap(0,6) = formatnumber(cdbl(gap(0,6)) + cdbl(gap(i,6)),2)
|
||||
gap(i,7) = adors("job_confirm_yn")
|
||||
If gap(i,7) = "Y" Then
|
||||
job_confirm_yn = "Y"
|
||||
End if
|
||||
gap(i,8) = adors("insert_user")
|
||||
gap(i,9) = adors("p_sv_name")
|
||||
gap(i,10) = adors("p_sv_no")
|
||||
gap(i,11) = adors("p_sv_main")
|
||||
gap(i,12) = adors("p_sebu_code")
|
||||
AdoRs.movenext
|
||||
loop
|
||||
else
|
||||
AdoRs.close
|
||||
query = "select in_time, out_time from neakeun_in_out_time "&VbCrlf
|
||||
query = query & " where "&VbCrlf
|
||||
query = query & " left(neakeun_jumin, 6) = left('" & neakeun_jumin & "', 6) "&VbCrlf
|
||||
query = query & " and [date] = '" & condate & "'"&VbCrlf
|
||||
query = query & " and neakeun_name = '" & neakeun_name & "'"&VbCrlf
|
||||
'Response.Write query
|
||||
AdoRs.open query, adoconn, adopenstatic, adlockreadonly
|
||||
in_time = AdoRs("in_time")
|
||||
out_time = AdoRs("out_time")
|
||||
end if
|
||||
AdoRs.close
|
||||
%>
|
||||
|
||||
<form name='frm_neakeun_job' method='post' style='TEXT-ALIGN: left' >
|
||||
<input type=hidden name='InTime' value = '<%=InTime%>'>
|
||||
<input type=hidden name='OutTime' value = '<%=OutTime%>'>
|
||||
<div align='left' >
|
||||
<table border=1 cellpadding='0' cellspacing='0' width='1000' bordercolor='white' bordercolorlight='black'>
|
||||
<tr height='50' >
|
||||
<td colspan="7" align="center" bgcolor="#32A4FF">
|
||||
<FONT color=#ffffff size=3>
|
||||
<20><><EFBFBD>ó<EFBFBD>¥(<%=condate%>) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD> <20>ִ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>մϴ<D5B4>.<br>
|
||||
(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD>۽ð<DBBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD><C3B0><EFBFBD> SV<53><56> <20>Է<EFBFBD><D4B7><EFBFBD> <20>߾<EFBFBD><DFBE>߸<EFBFBD> <20><>Ÿ<EFBFBD><C5B8><EFBFBD>ϴ<EFBFBD>.<br>
|
||||
<20>ٹ<EFBFBD><D9B9>ð<EFBFBD><C3B0><EFBFBD> <20>Է<EFBFBD> <20>Ҷ<EFBFBD> 0.25<EFBFBD><EFBFBD> 15<31><35><EFBFBD>̰<EFBFBD>, 0.5<EFBFBD><EFBFBD> 30<33><30>, 0.75<EFBFBD><EFBFBD> 45<34><35><EFBFBD><EFBFBD> <20>ǹ<EFBFBD> <20>մϴ<D5B4>.<br>
|
||||
<20><>) 2.25<EFBFBD><EFBFBD> 2<>ð<EFBFBD> 15<31><35> <20>̰<EFBFBD>, 5.5<EFBFBD><EFBFBD> 5<>ð<EFBFBD> 30<33><30><EFBFBD>̰<EFBFBD>, 4.75<EFBFBD><EFBFBD> 4<>ð<EFBFBD> 45<34><35> <20>Դϴ<D4B4>.
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height='35' >
|
||||
<td align="center" bgcolor="#32A4FF" style="width: 5%;"><FONT color=#ffffff size=2><3E><>ǥSV<br />(<28><><EFBFBD><EFBFBD>X)</font></td>
|
||||
<td align="center" bgcolor="#32A4FF" style="width: 15%;"><FONT color=#ffffff size=2>SV</font></td>
|
||||
<td align="center" bgcolor="#32A4FF" style="width: 30%;"><FONT color=#ffffff size=2><3E><> <3B><> <3B><> Ʈ <3B><></font></td>
|
||||
<td align="center" bgcolor="#32A4FF" style="width: 15%;"><FONT color=#ffffff size=2><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></font></td>
|
||||
<td align="center" bgcolor="#32A4FF" style="width: 17%;"><FONT color=#ffffff size=2><3E>ٹ<EFBFBD><D9B9>ð<EFBFBD></font></td>
|
||||
<td align="center" bgcolor="#32A4FF" style="width: 9%;"><FONT color=#ffffff size=2><3E><><EFBFBD><EFBFBD>Ȯ<EFBFBD><C8AE><br><3E><><EFBFBD><EFBFBD></font></td>
|
||||
<td align="center" bgcolor="#32A4FF" style="width: 9%;"><FONT color=#ffffff size=2><3E><><EFBFBD><EFBFBD>Ȯ<EFBFBD><C8AE><br>SV</font></td>
|
||||
</tr>
|
||||
<%For i = 1 To Categori_Cnt%>
|
||||
<tr height='25' >
|
||||
<td align="center">
|
||||
<input type="radio" value="<%=i %>" name="main_sv" <%if gap(i,11) <> "" and gap(i,11) = gap(i,10) then %> checked <%end if %> disabled="disabled"/>
|
||||
</td>
|
||||
<td align="center">
|
||||
<select name="sv_list" style="font-size:10pt; width: 98%;height:23px;" onchange="svChange(this.value, '<%= i %>');">
|
||||
<% if gap(i,7) = "Y" then %>
|
||||
<option value="<%=gap(i,10) %>" selected><%=gap(i,9) %></option>
|
||||
<% else %>
|
||||
<option value=''>= <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> =</option>
|
||||
<%for j=1 to ubound(sv_list) %>
|
||||
<option value='<%=sv_list(j,2)%>' <%if gap(i,10) = sv_list(j,2) then %> selected <% end if %>><%=sv_list(j,1)%></option>
|
||||
<% next %>
|
||||
<% end if %>
|
||||
</select>
|
||||
<td align="center">
|
||||
<select name="prj_code" style="font-size:10pt; width: 98%;height:23px;">
|
||||
<% if gap(i,7) = "Y" then %>
|
||||
<option value='<%=gap(i,1) %>' selected>[<%=gap(i,1) %>]<%=gap(i,0) %></option>
|
||||
<% else %>
|
||||
<option value=''>= <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> =</option>
|
||||
<%
|
||||
if gap(i,10) <> "" then
|
||||
'##### <20>ǻ<EFBFBD> <20>̿Ϸ<CCBF> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
|
||||
Query = " select p_child_sn, p_subject from dbo.T_PROJECT_METHOD "&VbCrlf
|
||||
Query = Query & " where convert(int,left(p_child_sn,2))>=16 "&VbCrlf
|
||||
Query = Query & " and (p_field_complete is null or p_dp_complete is null) and p_progress_status >= '006' "&VbCrlf '-- <20>ǻ<EFBFBD><C7BB>Ϸ<EFBFBD>(1), <20>̿Ϸ<CCBF>(null)
|
||||
Query = Query & " and "&VbCrlf
|
||||
Query = Query & " ':'+isnull(p_sv_1, '')+':'+isnull(p_sv_2, '')+':'+isnull(p_sv_3, '')+':'+isnull(p_sv_4, '')+"&VbCrlf
|
||||
Query = Query & " ':'+isnull(p_punch_1, '')+':'+isnull(p_punch_2, '')+':'+isnull(p_punch_3, '')+':'+isnull(p_punch_4, '')+"&VbCrlf
|
||||
Query = Query & " ':'+isnull(p_verify_1, '')+':'+isnull(p_verify_2, '')+':'+isnull(p_verify_3, '')+':'+isnull(p_verify_4, '')+"&VbCrlf
|
||||
Query = Query & " ':'+isnull(p_code_1, '')+':'+isnull(p_code_2, '')+':'+isnull(p_code_3, '')+':'+isnull(p_code_4, '')+':' "&VbCrlf
|
||||
Query = Query & " like ('%:" & gap(i,10) & ":%') "&VbCrlf
|
||||
Query = Query & " order by p_child_sn asc, p_subject asc "&VbCrlf
|
||||
'Response.write Query
|
||||
AdoRs.open Query, adoconn, adopenstatic, adlockreadonly
|
||||
tmp_chk = 0
|
||||
If AdoRs.recordcount > 0 Then
|
||||
Do while Not AdoRs.Eof
|
||||
response.Write "<option value=""" & AdoRs("p_child_sn") & """ "
|
||||
if gap(i,1) = AdoRs("p_child_sn") then
|
||||
response.Write " selected "
|
||||
tmp_chk = 1
|
||||
end if
|
||||
response.Write ">[" & AdoRs("p_child_sn") & "]" & AdoRs("p_subject") & "</option>"
|
||||
AdoRs.movenext
|
||||
Loop
|
||||
End if
|
||||
AdoRs.close
|
||||
if tmp_chk = 0 then
|
||||
%>
|
||||
<option value="<%=gap(i,1) %>" selected>[<%=gap(i,1) %>]<%=gap(i,0) %></option>
|
||||
<%
|
||||
end if
|
||||
end if
|
||||
%>
|
||||
<% end if %>
|
||||
</select>
|
||||
</td>
|
||||
<td align="center">
|
||||
<select name="prj_sebu" style="font-size:10pt; width:98%;height:23px;">
|
||||
<%
|
||||
if gap(i,7) = "Y" then
|
||||
%>
|
||||
<option value='<%=gap(i,12)%>@<%=gap(i,2)%>' selected><%=gap(i,2)%></option>
|
||||
<%
|
||||
else
|
||||
%>
|
||||
<option value=''>= <20><><EFBFBD>αٹ<CEB1> <20><><EFBFBD><EFBFBD> =</option>
|
||||
<%
|
||||
if gap(i,10) <> "" Then
|
||||
If fnc_user_level("0", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1", gap(i,10)) = "1" Then ' AS, <20><><EFBFBD><EFBFBD>, <20>ص<EFBFBD><D8B5><EFBFBD>, <20><><EFBFBD>ຸ<EFBFBD><E0BAB8> (1,3,8,9) + <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20>ڵ<EFBFBD>, <20><>ġ (2,4,7) --> S.V ##### 2018-02-23 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'subQuery = " AND d_cost_code IN (1, 3/*, 8, 9*/) "
|
||||
subQuery = " AND d_cost_code IN ('1', '2', '3', '7', '8', '9') "
|
||||
ElseIf fnc_user_level("0", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2", gap(i,10)) = "1" Then ' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><>ġ (2,4,7) --> S.V ##### 2018-02-23 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
subQuery = " AND d_cost_code IN ('2', '7') "
|
||||
ElseIf fnc_user_level("0", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>3", gap(i,10)) = "1" Then ' <20><><EFBFBD><EFBFBD>, <20><>û (5,6) --><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>3(<28><><EFBFBD><EFBFBD>, <20><>û) ##### 2018-02-23 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
subQuery = " AND d_cost_code IN ('5', '6') "
|
||||
' gap(i,10) => (p_sv_no) <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>̺<EFBFBD>
|
||||
ElseIf fnc_user_level("0", "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>4", gap(i,10)) = "1" Then ' <20>ڵ<EFBFBD> --> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(DP), <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>4(<28>ڵ<EFBFBD>) ##### 2018-02-23 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
subQuery = " AND d_cost_code IN ('4') "
|
||||
End if
|
||||
'##### IF<49><46> <20>Ⱦ<C8BE><EEB3BB>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> 2018-02-23 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
Query = " SELECT d_cost_code, d_cost_name FROM direct_costcode "&VbCrlf
|
||||
Query = Query & " WHERE d_cost_kind in ('field','dp') AND d_cost_useyn = 'Y' AND d_cost_parents = '2' "
|
||||
Query = Query & " " & subQuery&VbCrlf
|
||||
Query = Query & " ORDER BY attribute01 "&VbCrlf
|
||||
'Response.Write Query
|
||||
AdoRs.open Query, adoconn, adopenstatic, adlockreadonly
|
||||
tmp_chk = 0
|
||||
Do while Not AdoRs.Eof
|
||||
if Cint(gap(i,12)) = Cint(AdoRs("d_cost_code")) then
|
||||
response.Write "<option value=""" & AdoRs("d_cost_code") & "@" & AdoRs("d_cost_name") & """ "
|
||||
response.Write " selected "
|
||||
response.Write ">" & AdoRs("d_cost_name") & "</option>"
|
||||
tmp_chk = 1
|
||||
Else
|
||||
response.Write "<option value=""" & AdoRs("d_cost_code") & "@" & AdoRs("d_cost_name") & """ "
|
||||
response.Write ">" & AdoRs("d_cost_name") & "</option>"
|
||||
end if
|
||||
AdoRs.MoveNext
|
||||
Loop
|
||||
AdoRs.Close
|
||||
End if
|
||||
end if
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td align='center' style="letter-spacing:-2px;font-size:12px;">
|
||||
<font color="blue"><3E>ְ<EFBFBD></font> : <input size=4 maxlength=4 value='<%=gap(i,3)%>' <% if gap(i,7) = "Y" then %> readonly <% end if %> style='width:50px;' OnKeyPress='onlyNum();' name='txtInTime'/> ,
|
||||
<font color="red"><3E>߰<EFBFBD></font> : <input size=4 maxlength=4 value='<%=gap(i,6)%>' <% if gap(i,7) = "Y" then %> readonly <% end if %> style='width:50px;' OnKeyPress='onlyNum();' name='txtOutTime'/>
|
||||
<!--<input type="hidden" value='<%=gap(i,6)%>' name='txtOutTime'/>-->
|
||||
<input type="hidden" value='<%=gap(i,7)%>' name='job_confirm_yn'/>
|
||||
</td>
|
||||
<td align='center'><font size="2"><%=gap(i,7)%></font></td>
|
||||
<td align='center'><font size="2"><%=gap(i,8)%></font></td>
|
||||
</tr>
|
||||
<% next %>
|
||||
<tr height=30>
|
||||
<td colspan=3 rowspan=2 align="center" bgcolor="#32A4FF"><FONT color=#ffffff size=2><3E><> <3B><></font></td>
|
||||
<td colspan=4 align="center" bgcolor="#32A4FF"><3E>ٹ<EFBFBD><D9B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ð<EFBFBD> - <font color="blue"><b><3E>ְ<EFBFBD></b></font> : <input type="text" name="txtInputTime" size= "2" value='' readonly> ,
|
||||
<font color="red"><b><3E>߰<EFBFBD></b></font> : <input type="text" name="txtOutputTime" size= "2" value='' readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr height=30>
|
||||
<td align="center" bgcolor="#32A4FF"><input type="checkbox" name="lunch" value="" disabled><3E>߽<EFBFBD><input type="hidden" name="lunch_flag" value='' /></td>
|
||||
<td align="center" bgcolor="#32A4FF"><input type="checkbox" name="dinner" value="" disabled><3E><><EFBFBD><EFBFBD><input type="hidden" name="dinner_flag" value='' /></td>
|
||||
<td colspan=2 align="center" bgcolor="#32A4FF">
|
||||
<input type="text" name="txtInTimeSum" size= "2" style="color:blue;" value = '<%=gap(0,3)%>' readonly />
|
||||
<input type="text" name="txtOutTimeSum" size= "2" style="color:red;" value = '<%=gap(0,6)%>' readonly />
|
||||
<input type="hidden" name="txtStartTime" value = '<%=work_start_time %>' />
|
||||
<input type="hidden" name="txtEndTime" value = '<%=work_end_time %>' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellpadding='0' cellspacing='0' width='1000' bordercolor='white' bordercolorlight='black'>
|
||||
<tr height="30px">
|
||||
<td width=150 align="center" bgcolor="#32A4FF">
|
||||
<font color=blue><b><3E><><EFBFBD><EFBFBD></b></font><input size=8 maxlength=4 name=Condate readonly value ="<%=Condate%>">
|
||||
</td>
|
||||
<td width=150 align="center" bgcolor="#32A4FF">
|
||||
<font color=blue><b><3E><><EFBFBD>ٽð<D9BD></b></font><input size=4 maxlength=4 name=in_time <% if permanent_position <> "True" then %> readonly <% end if %> value ="<%=In_Time%>">
|
||||
</td>
|
||||
<td width=150 align="center" bgcolor="#32A4FF">
|
||||
<font color=blue><b><3E><><EFBFBD>ٽð<D9BD></b></font><input size=4 maxlength=4 name=out_time <% if permanent_position <> "True" then %>readonly <% end if %> value ="<%=Out_Time%>">
|
||||
</td>
|
||||
<td align="center" bgcolor="#32A4FF" <% If job_confirm_yn = "Y" Then %> style="display:none;" <% End If %>>
|
||||
<% if permanent_position = "True" then %>
|
||||
<input type="button" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ð<EFBFBD> <20><><EFBFBD><EFBFBD>" onclick="work_time_change()" style="width: 120px; cursor:pointer;vertical-align:middle;" />
|
||||
<% end if %>
|
||||
</td>
|
||||
<td align="center" bgcolor="#32A4FF" <% If job_confirm_yn = "Y" Then %> style="display:none;" <% End If %>>
|
||||
<INPUT type="button" value="<%=neakeun_name%><3E><><EFBFBD><EFBFBD> <%=Condate%><3E><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" onclick='go_delete("<%=neakeun_name%>","<%=Condate%>");' style="width:260px;cursor:pointer;vertical-align:middle;">
|
||||
|
||||
</td>
|
||||
<td width=150 align="center" bgcolor="#32A4FF">
|
||||
<img src='/images/nk/<2F><><EFBFBD><EFBFBD>.gif' title = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>' onclick="javascript:Sendit()" style="cursor:pointer;vertical-align:middle;">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type='hidden' name='permanent_position' value='<%=permanent_position%>' />
|
||||
<input type='hidden' name='txtyoilvalue' value='<%=yoilvalue%>' />
|
||||
<input type='hidden' name='txtyoil' value='<%=yoil%>' />
|
||||
<input type='hidden' name='txtDate' value='<%=condate%>' />
|
||||
<input type='hidden' name='neakeun_jumin' value='<%=neakeun_jumin%>' />
|
||||
<input type='hidden' name='neakeun_name' value='<%=neakeun_name%>' />
|
||||
<input type="hidden" name="neakeun_id" id="neakeun_id" value="<%=neakeun_id %>" />
|
||||
</div>
|
||||
</form>
|
||||
<% End if %>
|
||||
<%If permanent_position = "True" then %>
|
||||
<div style='margin-top:1%;'>
|
||||
<button type="button" name="sv_input" id="sv_input" onclick="javascript:sv_insert();"><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD> <20>Է<EFBFBD>(S/V<><56>)</button>
|
||||
</div>
|
||||
<%End If %>
|
||||
</body>
|
||||
</html>
|
||||
<% %>
|
||||
<script type="text/javascript">
|
||||
function sv_insert()
|
||||
{
|
||||
var n_name = $("input[name=neakeun_name]").val();
|
||||
var n_jumin = $("input[name=neakeun_jumin]").val();
|
||||
var n_date = $("input[name=condate]").val();
|
||||
var n_yoil = $("input[name=yoil]").val();
|
||||
var n_intime = "<%=InTime %>";
|
||||
var n_outtime = "<%=OutTime %>";
|
||||
var url = "sv_work_insert.asp?neakeun_name=" + n_name + "&neakeun_jumin=" + n_jumin + "&txtDate=" + n_date + "&txtyoil=" + n_yoil + "&in_time=" + n_intime + "&out_time=" + n_outtime;
|
||||
|
||||
if(n_name == "")
|
||||
{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20>켱 <20><>ȸ<EFBFBD>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
window.open(url,"", "left=0, top=5, width=500, height=300, scrollbars=yes, statbar=no");
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user