294 lines
8.0 KiB
Plaintext
294 lines
8.0 KiB
Plaintext
<!-- #include virtual = "lib/config.asp" -->
|
|
<!-- #include file = "../include/top_menu.asp" -->
|
|
<%
|
|
query = "SELECT * "
|
|
query = query & "FROM depart "
|
|
query = query & "WHERE d_code = '" & Session("Depart_Code") & "' "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
tmp_team = rsc("d_mcode")
|
|
else
|
|
tmp_team = 9
|
|
end if
|
|
rsc.Close
|
|
|
|
query = "SELECT * "
|
|
query = query & "FROM project2_pre "
|
|
query = query & "WHERE write_date >= '" & year(now()) & "-01-01' "
|
|
'query = query & " AND p_depart = '" & tmp_team & "' "
|
|
query = query & "ORDER BY CAST(p_sn_tmp AS INT) DESC "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
if rsc.RecordCount > 0 then
|
|
tmp_sn = int(rsc("p_sn_tmp")) + 1
|
|
else
|
|
tmp_sn = 1
|
|
end if
|
|
rsc.Close
|
|
%>
|
|
|
|
<script language=javascript>
|
|
|
|
|
|
function search(theURL,winName,features) {
|
|
if (features == 'x') {
|
|
var width_size = screen.width - 770;
|
|
var height_size= screen.height;
|
|
|
|
features = "left=" + width_size + " top=5 width=770 height=500 scrollbars=yes statbar=no";
|
|
}
|
|
window.open(theURL,winName,features);
|
|
}
|
|
|
|
function subit() {
|
|
var f = document.pms;
|
|
|
|
var m_Sp = /[$\\@\\\#%\^\&\*\[\]\+\{\}\`\~\=\|\:\/\,\;\"\']/;
|
|
var m_val = document.pms.p_subject_tmp.value;
|
|
var strLen = m_val.length;
|
|
var m_char
|
|
|
|
for (i = 0; i <= strLen; i++)
|
|
{
|
|
m_char = m_val.charAt(i);
|
|
if(m_char.search(m_Sp) != -1) {
|
|
alert("특수문자가 입력되었습니다.");
|
|
document.pms.p_subject_tmp.focus();
|
|
return;
|
|
}
|
|
}
|
|
|
|
if (f.p_subject_tmp.value == "")
|
|
{
|
|
alert("프로젝트명을 작성해 주세요");
|
|
f.p_subject_tmp.value = "";
|
|
f.p_subject_tmp.focus();
|
|
return false;
|
|
}
|
|
f.p_subject_tmp.value = f.p_subject_tmp.value.trim();
|
|
|
|
if (f.p_contactor.value == "")
|
|
{
|
|
alert("발생경로를 선택해 주세요");
|
|
f.p_contactor.focus();
|
|
return false;
|
|
}
|
|
|
|
if (f.p_contact_date.value == "")
|
|
{
|
|
alert("컨택일자을 선택해 주세요");
|
|
return false;
|
|
}
|
|
|
|
if (f.p_cli_class.value == "")
|
|
{
|
|
alert("클라이언트 구분을 선택해 주세요");
|
|
f.p_cli_class.focus();
|
|
return false;
|
|
}
|
|
|
|
if ((f.p_cli_company.value == "") || (f.p_cli_code.value == "") || (f.p_cli_type.value == ""))
|
|
{
|
|
alert("클라이언트명을 선택해 주세요");
|
|
return false;
|
|
}
|
|
|
|
if (f.p_cli_name.value.trim() == "")
|
|
{
|
|
alert("클라이언트 담당자를 작성해 주세요");
|
|
f.p_cli_name.value = "";
|
|
f.p_cli_name.focus();
|
|
return false;
|
|
}
|
|
|
|
if (f.p_cli_depart.value.trim() == "")
|
|
{
|
|
alert("클라이언트 부서를 작성해 주세요");
|
|
f.p_cli_depart.value = "";
|
|
f.p_cli_depart.focus();
|
|
return false;
|
|
}
|
|
|
|
/*
|
|
if (f.p_contact_place.value.trim() == "")
|
|
{
|
|
alert("회의 장소를 작성해 주세요");
|
|
f.p_contact_place.value = "";
|
|
f.p_contact_place.focus();
|
|
return false;
|
|
}
|
|
|
|
if (f.p_contact_content.value.trim() == "")
|
|
{
|
|
alert("회의 내용을 작성해 주세요");
|
|
f.p_contact_content.value = "";
|
|
f.p_contact_content.focus();
|
|
return false;
|
|
}
|
|
*/
|
|
|
|
f.action = 'project_contact_ok.asp';
|
|
//alert('ok');
|
|
f.submit();
|
|
}
|
|
|
|
function clsit() {
|
|
document.pms.action = 'project_contact.asp';
|
|
document.pms.submit();
|
|
}
|
|
</script>
|
|
|
|
<script src="/lib/function.js" type="text/javascript1.3"></script>
|
|
|
|
<form name="pms" method="post">
|
|
|
|
<td width="100%" valign="top">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<!-- 확인 -->
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" style="padding:20;">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td style="padding:5 0 0 0;">
|
|
<table width="850" cellpadding="3" cellspacing="0" border="0" style="border-collapse:collapse;">
|
|
<tr>
|
|
<td colspan="4" height="4" ></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="15%" align="center" >프로젝트 임시번호</td>
|
|
<td width="85%" >
|
|
<font class="tahoma_blue"><%=tmp_sn%></font>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" >프로젝트 명</td>
|
|
<td >
|
|
<input type="text" style="width:300;" name="p_subject_tmp">
|
|
<font class="k_darkorange">* 특수문자 사용불가<font color=black>(한글, 영문자, 괄호, 하이픈, 언더바만 사용하시기 바랍니다)</font> </font>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" >발생경로</td>
|
|
<td >
|
|
<select name="p_contactor">
|
|
<option value="">선택</option>
|
|
<%
|
|
query = "SELECT * "
|
|
query = query & "FROM person "
|
|
query = query & "WHERE (p_depart <= 10 or (p_depart >= 20 and p_depart <= 49)) and p_admin = 1 and p_resign = 0 "
|
|
query = query & "ORDER BY p_order "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
for i = 1 to rsc.RecordCount
|
|
%>
|
|
<option value="<%=rsc("p_no")%>"><%=rsc("p_name")%></option>
|
|
<%
|
|
rsc.MoveNext
|
|
next
|
|
rsc.Close
|
|
%>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" >컨택일자</td>
|
|
<td >
|
|
<input type="text" style="width:150;" name="p_contact_date" readonly style="text-align:right;">
|
|
<img src="/images/common/btn_calendar.jpg" align="absmiddle" onClick="winopn('/include/calendar.html?actval=p_contact_date')" style="cursor:pointer">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" >클라이언트 구분</td>
|
|
<td >
|
|
<select name="p_cli_class">
|
|
<option value="">선택</option>
|
|
<option value="신규">신규</option>
|
|
<option value="기존">기존</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" >클라이언트 명</td>
|
|
<td >
|
|
<input type="text" style="width:250;" name="p_cli_company" readonly onClick="search('./cli_search.asp?v=1','ClientSearch','width=390,height=381,left=100,top=50,scrollbars=yes')" style="cursor:pointer">
|
|
<input type="hidden" name="p_cli_code">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" >클라이언트 타입</td>
|
|
<td >
|
|
<select name="p_cli_type2" disabled>
|
|
<option value="">자동선택</option>
|
|
<%
|
|
query = "SELECT * "
|
|
query = query & "FROM Client_Type "
|
|
|
|
rsc.Open query, adoConn, 1
|
|
for i = 1 to rsc.RecordCount
|
|
%>
|
|
<option value="<%=rsc("c_type_code")%>"><%=rsc("c_type_name")%></option>
|
|
<%
|
|
rsc.MoveNext
|
|
next
|
|
rsc.Close
|
|
%>
|
|
</select>
|
|
<input type="hidden" name="p_cli_type">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" >클라이언트 담당자</td>
|
|
<td >
|
|
<input type="text" style="width:200;" name="p_cli_name" readonly onClick="search('cp_search.asp?p_cli_code='+document.pms.p_cli_code.value+'&v=1','ClientPeopleSearch','width=390,height=381,left=100,top=50,scrollbars=yes')" style="cursor:pointer">
|
|
<input type="hidden" name="cp_code">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" >클라이언트 부서</td>
|
|
<td >
|
|
<input type="text" style="width:200;" name="p_cli_depart" readonly>
|
|
</td>
|
|
</tr>
|
|
<!--tr>
|
|
<td align="center" >회의 장소</td>
|
|
<td >
|
|
<input type="text" style="width:200;" name="p_contact_place">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" >회의 내용</td>
|
|
<td >
|
|
<textarea style="width:99%;height:60;" name="p_contact_content"></textarea>
|
|
</td>
|
|
</tr-->
|
|
<tr>
|
|
<td align="center" >비고</td>
|
|
<td >
|
|
<textarea style="width:99%;height:60;" name="p_memo"></textarea>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td align="center" colspan="2" style="padding:10 0 0 0">
|
|
<img src="/images/common/btn_input.jpg" align="absmiddle" style="cursor:pointer" onClick="subit()">
|
|
<img src="/images/common/btn_cancel.jpg" align="absmiddle" style="cursor:pointer" onClick="clsit()">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
|
|