최초커밋

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

280
project/client_search.asp Normal file
View File

@@ -0,0 +1,280 @@
<!-- #include virtual = "lib/config.asp" -->
<%
Dim nm_obj, cd_obj 'opener<65><72><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>ü
nm_obj = request("nm_obj")
cd_obj = request("cd_obj")
if nm_obj = "" or cd_obj = "" then
alert4 "<22>߸<EFBFBD><DFB8><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>."
else
query = " SELECT p_cli_company_cd, p_cli_company_nm FROM V_CLIENT_COMP "
query = query & " ORDER BY p_cli_company_nm "
rsc.Open query, adoConn, 1
%>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<LINK rel="stylesheet" type="text/css" href="/lib/text.css">
<title>
Client <20>ο<EFBFBD> <20><><EFBFBD><EFBFBD>
</title>
<script src="/js/jquery.min.js"></script>
<script src="/js/jquery-ajax-call.js"></script>
<script src="/js/jquery.form.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
//$('#cli_list').css('text-transform','uppercase');
});
function sel_p(cp_no, cp_name) {
var cp_no = $("#cp_list").val();
var cp_name = $("#cp_list option:selected").text();
var cli_name = $("#cli_list option:selected").text();
var f = document.cp_sel;
if (cp_name != ""){
if (f.cp_nm_list.value == "") {
f.cp_nm_list.value = cli_name+"_"+cp_name;
f.cp_cd_list.value = cp_no;
} else {
f.cp_nm_list.value = f.cp_nm_list.value + "," + cli_name+"_"+cp_name;
f.cp_cd_list.value = f.cp_cd_list.value + "," + cp_no;
}
$("#cp_list option:selected").remove();
}else{
alert("Client <20>ο<EFBFBD><CEBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
}
}
function complete_sel() {
if (document.cp_sel.cp_cd_list.value != "") {
opener.document.<%=nm_obj %>.value = document.cp_sel.cp_nm_list.value;
opener.document.<%=cd_obj %>.value = document.cp_sel.cp_cd_list.value;
self.close();
} else {
alert("<22>ο<EFBFBD><CEBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>");
}
}
function delete_sel() {
location.href = "./client_search.asp?nm_obj=<%= nm_obj%>&cd_obj=<%= cd_obj%>";
}
function clear_form() {
var f = document.cp_sel;
f.cp_nm_list.value = "";
f.cp_cd_list.value = "";
}
function cursor_cli(val) {
var tmp_index = -1;
var live_chk = false;
if (val.trim() != "") {
$("#cli_list option").each(function (o) {
if($(this).text().toUpperCase().indexOf(val.toUpperCase()) > -1){
live_chk = true;
if (tmp_index == -1) {
if ($("#cli_list option").index($("#cli_list option:selected")) < $(this).index("#cli_list option")) {
tmp_index = $(this).index("#cli_list option");
}
}
}
});
if (live_chk == true) {
if (tmp_index == -1) {
$("#cli_list option").eq(0).prop("selected", true);
$("#cli_list option").eq(0).prop("selected", false);
cursor_cli(val);
} else {
$("#cli_list option").eq(tmp_index).prop("selected", true);
}
sel_cli();
} else {
alert("<22>˻<EFBFBD><CBBB><EFBFBD> <20>ܾ <20><><EFBFBD>Ե<EFBFBD> Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
$("#cli_list option").prop("selected", false);
}
}
}
function sel_cli(){
if($("#cli_list").val() != null){
var param = { cli_com_cd : $("#cli_list").val(), cp_sel_list : $("#cp_cd_list").val() };
ajaxCallJson("client_search_ajax.asp", param, null, "post", "cp_list()", "", "null_list()");
}
}
function cp_list(){
$("#cp_list").html("");
$("#cp_list").append(ajaxResponse);
}
function null_list(){
$("#cp_list").html("");
}
function add_cp(){
if($("#cli_list").val() != null){
$("#info_popup").css("display", "block");
$("#info_popup_background").css("display", "block");
$("#add_mod_button").val("<22>߰<EFBFBD>");
}else{
alert("Client ȸ<>縦 <20><><EFBFBD><EFBFBD> <20><> <20>̿<EFBFBD><CCBF>ϼ<EFBFBD><CFBC><EFBFBD>");
}
}
function mod_cp(){
if($("#cp_list").val() != null){
$("#info_popup").css("display", "block");
$("#info_popup_background").css("display", "block");
$("#add_mod_button").val("<22><><EFBFBD><EFBFBD>");
var param = { cli_com_cd : $("#cli_list").val(),
cli_per_cd : $("#cp_list").val() };
ajaxCallJson("client_search_ajax.asp", param, null, "post", "mod_cp_load()");
}else{
alert("Client <20>ο<EFBFBD><CEBF><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>̿<EFBFBD><CCBF>ϼ<EFBFBD><CFBC><EFBFBD>");
}
}
function add_mod_cp_close(){
$("#info_popup").css("display", "none");
$("#info_popup_background").css("display", "none");
$("#p_cli_depart").val("");
$("#p_cli_per_nm").val("");
$("#p_cli_per_nm").prop("readonly", false);
$("#p_cli_per_com_tel").val("");
$("#p_cli_per_tel").val("");
$("#p_cli_per_email").val("");
$("#p_cli_per_cd").val("");
}
function mod_cp_load(){
var cp_array = ajaxResponse.split("||");
$("#p_cli_depart").val(cp_array[0]);
$("#p_cli_per_nm").val(cp_array[1]);
$("#p_cli_per_nm").prop("readonly", true);
$("#p_cli_per_com_tel").val(cp_array[2]);
$("#p_cli_per_tel").val(cp_array[3]);
$("#p_cli_per_email").val(cp_array[4]);
$("#p_cli_per_cd").val($("#cp_list").val());
}
function add_mod_cp_save(){
var param = {
cli_com_cd : $("#cli_list").val(),
p_cli_per_cd : $("#p_cli_per_cd").val(),
p_cli_depart : escape($("#p_cli_depart").val()),
p_cli_per_nm : escape($("#p_cli_per_nm").val()),
p_cli_per_com_tel : escape($("#p_cli_per_com_tel").val()),
p_cli_per_tel : escape($("#p_cli_per_tel").val()),
p_cli_per_email : escape($("#p_cli_per_email").val())
};
ajaxCallJson("client_per_add_mod_ajax.asp", param, null, "post", "cp_save_complete()");
}
function cp_save_complete(){
if(ajaxResponse * 1 > 0){
alert("<22><><EFBFBD><EFBFBD><EFBFBD>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>");
add_mod_cp_close();
sel_cli();
}
}
</script>
</head>
<body onload="clear_form();">
<table border="0" cellspacing="0" cellpadding="0" style="margin: 10 0 0 10;width:600px;">
<tr><td align="center" style="font-family:'malgun gothic'; font-size:14px;font-weight:bold;background-color:#F2F2F2;padding:10 10 10 10;">Client <20>ο<EFBFBD> <20><><EFBFBD><EFBFBD></td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" style="margin: 10 0 0 10;width:600px;">
<tr>
<td style="vertical-align:top;width:300px;" align="left">
<table border="0" cellspacing="1" cellpadding="0" style="width:95%;height:340px;">
<tr>
<td align="center" style="font-weight:bold;color:#08298A;">Client ȸ<><C8B8><br /><font color="red">(<28>߰<EFBFBD><DFB0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> IT<49><54> <20><><EFBFBD><EFBFBD>)</font></td>
</tr>
<tr>
<td align="center" style="font-weight:bold;border:1px solid gray;color:#08298A;width:80%;">
<select style='WIDTH: 220px; HEIGHT: 220px' size='2' name='cli_list' id='cli_list' onClick = "sel_cli();">
<%
Do While Not rsc.Eof
%>
<option value="<%=rsc("p_cli_company_cd")%>" title="<%=rsc("p_cli_company_nm")%>"><%=rsc("p_cli_company_nm")%></option>
<%
rsc.MoveNext
Loop
rsc.Close
set rsc = nothing
%>
</select>
<br />
<20><><EFBFBD>˻<EFBFBD><CBBB><EFBFBD> Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20>Է<EFBFBD> <20><><br /> Enter<65><72> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
<input type="text" value="" id="selPro" size="30" onkeypress="javascript:if(event.keyCode==13){cursor_cli(this.value); return false};" />
</td>
</tr>
</table>
</td>
<td style="vertical-align:top;width:300px;" align="right">
<table border="0" cellspacing="1" cellpadding="0" style="width:95%;height:340px;">
<tr>
<td align="center" style="font-weight:bold;color:#08298A;">Client <20>ο<EFBFBD><br />&nbsp;</td>
</tr>
<tr>
<td align="center" style="font-weight:bold;border:1px solid gray;color:#08298A;width:80%;">
<select style='WIDTH: 220px; HEIGHT: 220px' size='2' name='cp_list' id='cp_list' ondblClick = "sel_p();" onkeypress = "javascript:if(event.keyCode==13)sel_p();"></select>
<br />
<br />
<input type="button" value="<22>ű<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>߰<EFBFBD>" onclick="add_cp();" style="background-color:White;font-family:'malgun gothic';color:black;font-weight:bold;" /><br />
<input type="button" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" onclick="mod_cp();" style="background-color:White;font-family:'malgun gothic';color:black;font-weight:bold;" />
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<form name="cp_sel" method="post">
<table border="0" cellspacing="0" cellpadding="0" style="margin: 10 0 0 10;width:600px;">
<tr>
<td align="center">
<input type="text" value="" name="cp_nm_list" id="cp_nm_list" style="width:90%;" readonly />
<input type="hidden" value="" name="cp_cd_list" id="cp_cd_list" /><br />
</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td align="center">
<input type="button" value="<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>" onclick="complete_sel();" style="background-color:White;font-family:'malgun gothic';color:black;font-weight:bold;" />&nbsp; &nbsp; &nbsp; &nbsp;
<input type="button" value="<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>" onclick="delete_sel();" style="background-color:White;font-family:'malgun gothic';color:black;font-weight:bold;" />
</td>
</tr>
</table>
</form>
<div style="filter: alpha(opacity=70);position:absolute; display:none; left:0px; top:0px; z-index:499;width:630px;height:490px;background-color: rgb(255,255,255); opacity:0.7;" id="info_popup_background">&nbsp;</div>
<div style="position:absolute; display:none; left:170px; top:150px; width:300px; height:180px;z-index:500; background-color:#E6E6E6;" id="info_popup">
<table border="0" cellspacing="0" cellpadding="0" style="margin: 10 0 0 10;width:100%;">
<tr>
<td align="right" style="padding-right:15px;width:40%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>μ<EFBFBD> : </td>
<td align="left"><input type="text" value="" name="p_cli_depart" id="p_cli_depart" style="width:90%;font-size:12px;" /></td>
</tr>
<tr>
<td align="right" style="padding-right:15px;width:40%;"><font color="red">* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></font> : </td>
<td align="left"><input type="text" value="" name="p_cli_per_nm" id="p_cli_per_nm" style="width:90%;font-size:12px;" /></td>
</tr>
<tr>
<td align="right" style="padding-right:15px;width:40%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ȸ<><C8B8><EFBFBD><EFBFBD>ȭ : </td>
<td align="left"><input type="text" value="" name="p_cli_per_com_tel" id="p_cli_per_com_tel" style="width:90%;font-size:12px;" /></td>
</tr>
<tr>
<td align="right" style="padding-right:15px;width:40%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ڵ<EFBFBD><DAB5><EFBFBD> : </td>
<td align="left"><input type="text" value="" name="p_cli_per_tel" id="p_cli_per_tel" style="width:90%;font-size:12px;" /></td>
</tr>
<tr>
<td align="right" style="padding-right:15px;width:40%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> : </td>
<td align="left"><input type="text" value="" name="p_cli_per_email" id="p_cli_per_email" style="width:90%;font-size:12px;" /></td>
</tr>
<tr><td colspan="2"><input type="hidden" value="" name="p_cli_per_cd" id="p_cli_per_cd" />&nbsp;</td></tr>
<tr>
<td colspan="2" align="center">
<input type="button" value="" id="add_mod_button" onclick="add_mod_cp_save();" style="background-color:White;font-family:'malgun gothic';color:black;font-weight:bold;" />&nbsp; &nbsp;
<input type="button" value="<22><><EFBFBD><EFBFBD>" onclick="add_mod_cp_close();" style="background-color:White;font-family:'malgun gothic';color:black;font-weight:bold;" />&nbsp; &nbsp; &nbsp;
</td>
</tr>
</table>
</div>
</body>
</html>
<%
end if
%>