185 lines
5.2 KiB
Plaintext
185 lines
5.2 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<%
|
|
v = request("v")
|
|
|
|
'Client 형태
|
|
dim tmp_cliform(99)
|
|
|
|
query = "SELECT * "
|
|
query = query & "FROM Client_Type "
|
|
query = query & "ORDER BY sort_key "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
for i = 1 to rsc.RecordCount
|
|
|
|
tmp_cliform(int(rsc("c_type_code"))) = rsc("c_type_name")
|
|
|
|
rsc.MoveNext
|
|
next
|
|
end if
|
|
rsc.Close
|
|
|
|
query = "SELECT * "
|
|
query = query & "FROM Client "
|
|
if request("cli_name") <> "" then
|
|
query = query & "WHERE c_name like '%" & request("cli_name") & "%' "
|
|
end if
|
|
query = query & "ORDER BY c_name "
|
|
|
|
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>
|
|
클라이언트 찾기
|
|
</title>
|
|
<script language=javascript>
|
|
|
|
|
|
function sltit(z,y,x,w,v) {
|
|
//z:Client code, y:Client name, x:Client type code, w:Client type name, v:page(1=modi, 2.3.4=search)
|
|
if (v == 1) {
|
|
opener.document.pms.p_cli_code.value = z;
|
|
opener.document.pms.p_cli_company.value = y;
|
|
opener.document.pms.p_cli_type.value = x;
|
|
opener.document.pms.p_cli_type2.value = x;
|
|
opener.document.pms.p_cli_name.value = "";
|
|
opener.document.pms.p_cli_depart.value = "";
|
|
} else if (v == 2) {
|
|
opener.document.pms.p_cli_code.value = z;
|
|
opener.document.pms.p_cli_company.value = y;
|
|
} else if (v == 3) {
|
|
opener.document.pms.p_cli_code2.value = z;
|
|
opener.document.pms.p_client_2.value = y;
|
|
} else if (v == 4) {
|
|
opener.document.pms.p_cli_code3.value = z;
|
|
opener.document.pms.p_client_3.value = y;
|
|
} else if (v == 5) {
|
|
opener.document.pms.p_cli_code1.value = z;
|
|
opener.document.pms.p_client_1.value = y;
|
|
}
|
|
|
|
self.close();
|
|
}
|
|
|
|
function search_cli() {
|
|
//if (document.pms.cli_name.value.trim() == '') {
|
|
// alert('클라이언트명을 작성해 주세요');
|
|
// document.pms.cli_name.value = '';
|
|
// document.pms.cli_name.focus();
|
|
// return false;
|
|
//}
|
|
|
|
document.pms.cli_name.value = document.pms.cli_name.value.trim();
|
|
//document.pms.action = 'search_cli.asp';
|
|
document.pms.submit();
|
|
}
|
|
|
|
function modit(z) {
|
|
var tmp_ok = 0;
|
|
|
|
if (z > 1)
|
|
{
|
|
for (i = 1; i <= z; i++) {
|
|
if (document.pms.mod_cli[i-1].checked == true) {
|
|
tmp_ok = 1;
|
|
}
|
|
}
|
|
|
|
if (tmp_ok != 1) {
|
|
alert('Client를 선택해 주세요');
|
|
document.pms.mod_cli[0].focus();
|
|
return false;
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (document.pms.mod_cli.checked == true) {
|
|
tmp_ok = 1;
|
|
}
|
|
|
|
if (tmp_ok != 1) {
|
|
alert('Client를 선택해 주세요');
|
|
document.pms.mod_cli.focus();
|
|
return false;
|
|
}
|
|
|
|
}
|
|
|
|
document.pms.action = 'cli_modi.asp';
|
|
document.pms.submit();
|
|
}
|
|
|
|
function newit() {
|
|
document.pms.action = 'cli_new.asp';
|
|
document.pms.submit();
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body onLoad="javascript:document.pms.cli_name.focus();">
|
|
<form name="pms" method="post">
|
|
|
|
<div style="position: absolute; left: 10px; top: 4px; z-index: 10;">
|
|
<table border="0" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
|
|
<tr align="center">
|
|
<td>
|
|
<img src="/images/common/btn_add.gif" onClick="newit()" style="CURSOR:pointer;">
|
|
|
|
<img src="/images/common/btn_reply_modify.jpg" onclick="modit('<%=rsc.RecordCount%>')" style="CURSOR:pointer;">
|
|
|
|
|
|
<input class="input" type="text" name="cli_name" value="<%=request("cli_name")%>" size="15" style="IME-MODE: active;background:#FFFFFF">
|
|
<img src="/images/common/btn_topsrch.gif" title="찾기" onClick="search_cli()" style="CURSOR:pointer;">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div style="position: absolute; left: 10px; top: 34px; z-index: 10;">
|
|
<table border="1" cellspacing="0" cellpadding="0" width="335" bgcolor="white">
|
|
<tr align="center" height="20">
|
|
<td width="20"></td>
|
|
<td width="40"><font color="blue"><b>코드</b></font></td>
|
|
<td><font color="blue"><b>Client명</b></font></td>
|
|
<td width="80"><font color="blue"><b>TYPE</b></font></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<br>
|
|
<div style="width: 335px; height: 250px; overflow-y: auto;">
|
|
<table border="1" cellspacing="0" cellpadding="0" width="335">
|
|
<tr align="center" height="20">
|
|
<td width="20"></td>
|
|
<td width="40"><font color="blue"><b>코드</b></font></td>
|
|
<td><font color="blue"><b>Client명</b></font></td>
|
|
<td width="80"><font color="blue"><b>TYPE</b></font></td>
|
|
</tr>
|
|
<%
|
|
for i = 1 to rsc.RecordCount
|
|
%>
|
|
<tr>
|
|
<td><input type="radio" name="mod_cli" value="<%=rsc("c_code")%>"></td>
|
|
<td align="center"><%=rsc("c_code")%></td>
|
|
<td> <a href="javascript:sltit('<%=rsc("c_code")%>','<%=rsc("c_name")%>','<%=rsc("c_type")%>','<%=tmp_cliform(rsc("c_type"))%>','<%=v%>')"><font color="blue"><%=rsc("c_name")%></font></a></td>
|
|
<td align="center"><%=tmp_cliform(rsc("c_type"))%></td>
|
|
</tr>
|
|
<%
|
|
rsc.MoveNext
|
|
next
|
|
%>
|
|
</table>
|
|
</div>
|
|
<br>
|
|
<font color="red">*</font> Client TYPE중 <font color="blue">국내기업</font>, <font color="blue">해외기업</font>, <font color="blue">합자회사</font>는 <font color="red"><b>구버전</b></font>입니다.
|
|
<br>
|
|
<font color="red">*</font> TYPE을 <font color="red">수정</font>하려면 Client 코드앞의 라디오버튼을 선택하고 <br> 수정 버튼을 눌러 주세요.
|
|
<%
|
|
rsc.Close
|
|
set rsc = nothing
|
|
%> |