최초커밋

This commit is contained in:
2025-09-29 17:55:08 +09:00
parent 90af30c0d0
commit e39813395a
3334 changed files with 338522 additions and 0 deletions

View File

@@ -0,0 +1,391 @@
<!-- #include virtual = "include/header.asp" -->
<!-- #include virtual = "include/left.asp" -->
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<div class="content-header">
<h1><3E><><EFBFBD><EFBFBD> <20>ۼ<EFBFBD></h1>
</div>
<!-- /.content-header -->
<!-- Main content -->
<div class="content-body">
<div class="content">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<%
dim tmpstr
dim Query
dim i
dim user_name(4) '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,0:<3A><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD>, 1:<3A≯<EFBFBD>,2:<3A><><EFBFBD><EFBFBD>,3:<3A><>ȭ<EFBFBD><C8AD>ȣ, 4:<3A>μ<EFBFBD><CEBC>ڵ<EFBFBD>(<28><>)
dim Max_Width
dim title
dim Company(6)
dim krc_no
dim Gap(22)
' 1:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, 2:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 3:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 4:<3A><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD>, 5:<3A>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD>, 6:<3A>Ѿ<EFBFBD>,
' 7:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, 8:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>, 9:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>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pay_type(4)
dim db_table_name
dim limit_b
limit_b = 0
db_table_name = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
title="<22><><EFBFBD><EFBFBD><EFBFBD>񺸰<EFBFBD><F1BAB8B0><EFBFBD>"
Max_Width =650
if Session("Depart_Code") = 0 then
depart = "headDepart"
else
depart = "depart"
end if
pay_type(1) = "<22><><EFBFBD><EFBFBD>ī<EFBFBD><C4AB>/<2F><><EFBFBD><EFBFBD>"
pay_type(2) = "(<28><><EFBFBD><EFBFBD>)<29><><EFBFBD><EFBFBD>ī<EFBFBD><C4AB>"
'pay_type(1) = "<22><><EFBFBD><EFBFBD>ī<EFBFBD><C4AB>"
'pay_type(2) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ü"
'pay_type(3) = "<22><><EFBFBD><EFBFBD>ī<EFBFBD><C4AB>"
'pay_type(4) = "<22><><EFBFBD><EFBFBD>"
''//=================
''//=================
'''''<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
krc_no=request("krc_no")
if krc_no <> "" then
query = "select * from " & db_table_name
query = query & " where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & krc_no & "'"
adors.open query, adoconn, adopenstatic, adlockreadonly
gap(1) = adors("target1")
gap(2) = ViewWord(adors("target2"))
gap(3) = adors("target3")
gap(4) = adors("target4")
gap(5) = adors("target5")
gap(6) = adors("target6")
gap(7) = adors("target7")
gap(8) = adors("target8")
gap(9) = adors("target9")
gap(10) = adors("target10")
gap(11) = adors("target11")
gap(12) = adors("target12")
gap(13) = adors("target13")
gap(14) = adors("target14")
gap(15) = adors("target15")
gap(16) = adors("p_sn")
adoRs.close
end if
''//===============
''ȸ<><C8B8> ȸ<><C8B8><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>Ϲ<EFBFBD>ȣ, <20><>ǥ<EFBFBD>ڸ<EFBFBD>, <20>ּ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
Query = "select * from company"
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
Company(1) = adors("com_name")
Company(2) = adors("<22><><EFBFBD><EFBFBD><EFBFBD>ڵ<EFBFBD><DAB5>Ϲ<EFBFBD>ȣ")
Company(3) = adors("<22><>ǥ<EFBFBD>ڸ<EFBFBD>")
Company(4) = adors("<22>ּ<EFBFBD>")
Company(5) = adors("<22><><EFBFBD>ε<EFBFBD><CEB5>Ϲ<EFBFBD>ȣ")
Company(6) = adors("ȸ<><C8B8><EFBFBD><EFBFBD>ǥ<EFBFBD><C7A5>ȭ<EFBFBD><C8AD>ȣ")
adoRs.close
''///===============
''<27>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
user_name(0) = Session("User_Number")
Query = "SELECT p_name, p_team_name, p_rank_name, p_tel3 FROM project2.dbo.V_Person WHERE p_no = '" & user_name(0) & "'"
adoRs.open Query, adoconn,adopenstatic, adlockreadonly
user_name(1) = adoRs("p_name") '<27≯<EFBFBD>
user_name(2) = adoRs("p_rank_name") '<27><><EFBFBD><EFBFBD> <20>ڵ<EFBFBD>
user_name(3) = adoRs("p_tel3") '<27><><EFBFBD><EFBFBD> <20><>ȭ
user_name(4) = adoRs("p_team_name") '<27>μ<EFBFBD><CEBC>ڵ<EFBFBD>
adoRs.close
%>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.12.1/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script language="javascript">
function goPrint()
{//<2F><><EFBFBD><EFBFBD>Ʈ <20>ϱ<EFBFBD>
var txt_prj_name = document.frm_money.txt_prj_name.value.replace(/\&/g,'<27><>');
var txt_pay_target = document.frm_money.txt_pay_target.value.replace(/\&/g,'<27><>');
var txt_date_1 = document.frm_money.txt_date_1.value;
var txt_pay = document.frm_money.txt_pay.value;
var txt_pay_vat = document.frm_money.txt_pay_vat.value;
var txt_pay_tot = document.frm_money.txt_pay_tot.value;
var txt_client_1 = document.frm_money.txt_client_1.value;
var txt_client_2 = document.frm_money.txt_client_2.value;
var txt_client_3 = document.frm_money.txt_client_3.value.replace(/\&/g,'<27><>');
var txt_client_4 = document.frm_money.txt_client_4.value;
var txt_client_5 = document.frm_money.txt_client_5.value;
//var txt_client_6 = document.frm_money.txt_client_6.value;
//var txt_client_7 = document.frm_money.txt_client_7.value;
var sel_pay_type = document.frm_money.sel_pay_type.value;
var txt_p_sn = document.frm_money.txt_p_sn.value;
var depart = "<%=depart %>"
var departCode = document.frm_money.departCode.value;
var url = "doc_entertainment_print.asp";
url = url + "?txt_prj_name=" + txt_prj_name;
url = url + "&txt_pay_target=" + txt_pay_target;
url = url + "&txt_date_1=" + txt_date_1;
url = url + "&txt_pay=" + txt_pay;
url = url + "&txt_pay_vat=" + txt_pay_vat;
url = url + "&txt_pay_tot=" + txt_pay_tot;
url = url + "&txt_client_1=" + txt_client_1;
url = url + "&txt_client_2=" + txt_client_2;
url = url + "&txt_client_3=" + txt_client_3;
url = url + "&txt_client_4=" + txt_client_4;
url = url + "&txt_client_5=" + txt_client_5;
//url = url + "&txt_client_6=" + txt_client_6;
//url = url + "&txt_client_7=" + txt_client_7;
url = url + "&sel_pay_type=" + sel_pay_type;
url = url + "&depart=" + depart;
url = url + "&departCode=" + departCode;
url = url + "&print_type=1";
url = url + "&txt_p_sn=" + txt_p_sn;
var validatioinCheck = true;
if(txt_p_sn == ""){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.");
return;
}
if(txt_pay_target == ""){
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
return;
}
if(txt_pay == ""){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
return;
}
if(txt_client_3 == ""){
alert("<22><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
return;
}
if(txt_date_1 == ""){
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)<29><> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
return;
}
if(txt_client_4 == ""){
alert("<22><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ҽ<EFBFBD><D2BC><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
return;
}if(txt_client_5 == ""){
alert("<22><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
return;
}
//if(txt_client_6 == ""){
//alert("<22><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ȭ<EFBFBD><C8AD>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>.");
//return;
//}
if(validatioinCheck == true){
window.open(url,"","left=50 ,top=0, menubar=no, location=no ,status=no ,toolbar=no ,width=850, height=800 ,scrollbars=yes ,resizable=yes");
}
}
function check_comma(txt,txt2)
{
txt=allTrim(txt);
for(var i=0;i<txt.length;i++){
txt = txt.replace(',','')
txt = txt.replace(' ','')
}
if(eval(txt2)==1){
document.frm_money.txt_pay.value = allTrim(commify(txt));
}else{
document.frm_money.txt_pay_vat.value = allTrim(commify(txt));
}
var txt_pay = document.frm_money.txt_pay.value;
var txt_pay_vat = document.frm_money.txt_pay_vat.value;
for(var i=0;i<txt_pay.length;i++){
txt_pay = txt_pay.replace(',','')
txt_pay = txt_pay.replace(' ','')
}
for(var i=0;i<txt_pay_vat.length;i++){
txt_pay_vat = txt_pay_vat.replace(',','')
txt_pay_vat = txt_pay_vat.replace(' ','')
}
if (txt_pay == ""){
txt = txt_pay_vat;
}else if(txt_pay_vat == ""){
txt = txt_pay;
}else{
txt = eval(txt_pay) + eval(txt_pay_vat);
}
document.frm_money.txt_pay_tot.value = allTrim(commify(txt));
}
$.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><>'
});
function winnewopen(actval1, actval2) {// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD>ϱ<EFBFBD>
var url = "/project_list/project_list.asp?actval=" + actval1 + "&actval2=" + actval2 + "&part=job_project";
window.open(url, "business_wins", "left=50 ,top=50, menubar=no ,location=no ,status=no ,toolbar=no, width=810 ,height=600 ,scrollbars=yes, resizable=no");
}
$(function(){
$("input[name='txt_date_1']").datepicker();
});
</script>
<form method='post' name='frm_money'>
<%
if depart = "headDepart" then
if Session("User_Number") = "20000201" then
departCode = "41"
elseif Session("User_Number") = "20140702" then
departCode = "42"
elseif Session("User_Number") = "20160603" then
departCode = "43"
elseif Session("User_Number") = "20191201" then
departCode = "44"
end if
else
if session("User_Number") = "20160603" then
departCode = "30"
else
departCode = Session("Depart_Code")
end if
end if
%>
<input type="hidden" name="departCode" value="<%=departCode %>" />
<td width="100%" valign="top">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<!-- Ȯ<><C8AE> -->
</tr>
<tr>
<td colspan="2" style="padding:20;">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td style="padding:0 0 5 0;">
<font class="brown"><3E><><EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.</font>
</td>
</tr>
<tr>
<td><img src="/images/approval/docbg_top.jpg"></td>
</tr>
<tr>
<td width="710" align="center" style="padding:10;border-left:1px solid #dedede;border-right:1px solid #dedede;">
<table width="98%" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
<tr>
<td colspan="4" style="padding:0 0 10 0"><span style="color:#636B7E;font-family:batang;font-weight:bold;font-size:30px;letter-spacing:-6;line-height:30px;"><3E><><EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD></span></td>
</tr>
<tr>
<td width="15%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></td>
<td width="85%" colspan="3">
<input type="text" class="gray" style="width:99%;cursor:pointer;" onclick="winnewopen(this.name, 'txt_p_sn')" name="txt_prj_name" value="<%=gap(1)%>" readonly>
<input type="hidden" name="txt_p_sn" value="<%=gap(16)%>">
</td>
</tr>
<tr>
<td width="15%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br /><3E><> <20><>Ÿ<EFBFBD><C5B8><EFBFBD><EFBFBD></td>
<td width="85%" colspan="3">
<textarea style="width:100%;height:60;" name="txt_pay_target"><%=replace(ViewWord(gap(2)),"<br>",chr(13))%></textarea>
</td>
</tr>
<tr>
<td width="15%" align="center" ><3E><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD></td>
<td width="35%" >
<input type="text" class="gray" style="width:150;text-align:right;" OnKeyup="OnlyNumber(this);check_comma(this.value,'1');" name="txt_pay" value="<%=gap(4)%>"> <20><>
<input type="hidden" name="txt_pay_vat" value="<%=gap(5)%>">
<input type="hidden" name="txt_pay_tot" value="<%=gap(6)%>">
</td>
<td width="15%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="35%" >
<select name="sel_pay_type" tabindex="4"><!--== <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ==-->
<%for i=1 to 2%>
<option value="<%=pay_type(i)%>"
<%if trim(pay_type(i)) = trim(gap(15)) then%>
selected
<%end if%>
><%=pay_type(i)%></option>
<%next%>
</select>
</td>
</tr>
<tr height="24">
<td align="center" colspan="4" style="font-size:12px;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></td>
</tr>
<tr>
<td width="15%" align="center" ><3E><> <20><></td>
<td width="35%" >
<input type="text" class="gray" style="width:100;" name="txt_client_1" value="<%=gap(7)%>"> <20><>
<input type="text" class="gray" style="width:40;" name="txt_client_2" OnKeyup="OnlyNumber(this);" value="<%=gap(8)%>"> <20><>
</td>
<td width="15%" align="center" >ȸ<><C8B8><EFBFBD><EFBFBD></td>
<td width="35%" >
<input type="text" class="gray" style="width:200;" name="txt_client_3" value="<%=gap(9)%>">
</td>
</tr>
<tr>
<td width="15%" align="center" ><3E>Ҽ<EFBFBD></td>
<td width="35%" >
<input type="text" class="gray" style="width:200;" name="txt_client_4" value="<%=gap(10)%>">
</td>
<td width="15%" align="center" ><3E><><EFBFBD><EFBFBD></td>
<td width="35%" >
<input type="text" class="gray" style="width:200;" name="txt_client_5" value="<%=gap(11)%>">
</td>
</tr>
<!--
<tr>
<td width="15%" align="center" ><3E><>ȭ<EFBFBD><C8AD>ȣ</td>
<td width="35%" >
<input type="text" class="gray" style="width:200;" name="txt_client_6" value="<%=gap(12)%>">
</td>
<td width="15%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD>ڹ<EFBFBD>ȣ</td>
<td width="35%" >
<input type="text" class="gray" style="width:200;" name="txt_client_7" value="<%=gap(13)%>">
</td>
</tr>
-->
<tr>
<td width="15%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="35%" >
<input type="text" class="gray" value="<%=gap(3)%>" name="txt_date_1" style="text-align:right;width:200px;cursor:pointer;" readonly>
</td>
<td width="15%" align="center" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td width="35%" align="center">
<%=user_name(1)%>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="/images/approval/docbg_btm.jpg"></td>
</tr>
<tr>
<td style="padding:15 0 0 0;" align="center">
<button type="button" class="btn btn-primary" onclick="goPrint();"><3E>Է<EFBFBD><D4B7>ϱ<EFBFBD></button>
<img src="/images/common/btn_cancel2.jpg" onClick="window.close();" style="CURSOR:pointer;">
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</td>
</div>
</div>
</div>
</div>
</div>
<!-- /.content -->
<!-- REQUIRED SCRIPTS -->
<script>
</script>
</div>
<!-- /.content-wrapper -->
<!-- #include virtual = "include/footer.asp" -->