Commit de481bb5 by Ratchanok

[10344] PI พนักงานเข้าใหม่ - ชื่อกลาง

parent f996e71d
......@@ -7,6 +7,8 @@
<FIELD>efname</FIELD>
<FIELD>lname</FIELD>
<FIELD>elname</FIELD>
<FIELD>mname</FIELD>
<FIELD>emname</FIELD>
<FIELD>status</FIELD>
<FIELD>picture</FIELD>
<FIELD>id_people</FIELD>
......
......@@ -567,22 +567,12 @@
<td width="1%"><%=screen.getInput("efname")%></td>
<td nowrap>&nbsp;<%=screen.getLabel("emname")%>&nbsp;<%=screen.getInput("emname")%>
&nbsp;<%=screen.getLabel("elname")%>&nbsp;<%=screen.getInput("elname")%></td>
<td align="center" nowrap><span swlang code="SW000744">Insert Picture</span>&nbsp;</td>
</tr>
<%screen.referLangOn(); %>
<tr>
<td colspan="4" class="blankspace">&nbsp;</td>
</tr>
<tr>
<td class="blankspace">&nbsp;</td>
<td class="blankspace" ></td>
<td class="blankspace" >&nbsp;</td>
<td align="center" nowrap ><!-- <script language="javascript">swapLang("Insert Picture");</script> -->
<span swlang code="SW000744">Insert Picture</span>&nbsp;</td>
</tr>
<tr>
<td class="blankspace">&nbsp;</td>
<td colspan="2" class="blankspace" >&nbsp;</td>
<td colspan="3" class="blankspace" >&nbsp;</td>
<td align="center" nowrap class="blankspace" ><%=screen.getInput("picture") %></td>
</tr>
<tr>
......
......@@ -681,8 +681,12 @@ function updateRecord(){
function chkBlackListName(){
with(document.cscform){
var fname = __fname.value;
var mname = __mname.value;
var lname = __lname.value;
var filter = "fname = '"+fname+"' and lname = '"+lname+"'";
if( mname != ""){
filter += " and mname = '"+mname+"'";
}
blacklistdetail(filter);
}
}
......@@ -1192,7 +1196,7 @@ function updateRecord(){
<td>
<table cellpadding="0" cellspacing="0" class="inframe" >
<tr>
<td colspan="5" class="blankspace"></td>
<td colspan="4" class="blankspace"></td>
</tr>
<tr>
<td align="right" class="columnlabel"><%=screen.getLabel("employeeid")%>&nbsp;</td>
......@@ -1201,8 +1205,7 @@ function updateRecord(){
<!-- <input name="__employeeid" onblur="chkEmployeeID();" type="Text" size="15" maxlength="15" alt="Employee ID" value="<%=screen.getDataLabel("employeeid")%>" onmousemver="toolTip('Employee ID')"> -->
&nbsp;<%=screen.getLabel("status")%> &nbsp;<%=listboxStandard.process()%>
</td>
<td width="85" rowspan="3" align="center" valign="top" nowrap ><div>&nbsp;<a href="javascript:showpic(document.employeePic.src);"><img src="<%=screen.getRecord().getViewUrl("picture") %>" name="employeePic" width="85" height="85" border="1" id="employeePic" onload="resizeImg(this,85,85);"></a>&nbsp;</div></td>
<td width="120"></td>
<td width="115" rowspan="3" align="center" valign="top" nowrap ><div>&nbsp;<a href="javascript:showpic(document.employeePic.src);"><img src="<%=screen.getRecord().getViewUrl("picture") %>" name="employeePic" width="105" height="105" border="1" id="employeePic" onload="resizeImg(this,105,105);"></a>&nbsp;</div></td>
</tr>
<tr>
<!--<td align="right" class="columnlabel"><span swlang code="SW012078">Assign Employee ID</span>&nbsp;</td>
......@@ -1214,10 +1217,11 @@ function updateRecord(){
</td>-->
<td align="right" class="columnlabel"><%=screen.getLabel("sex")%>&nbsp;</td>
<td nowrap class="vertical-center"><%=screen.getInput("sex")%></td>
<td nowrap><div>&nbsp;&nbsp;</div></td>
</tr>
<%screen.referLangOff(); %>
<tr>
<td align="right" class="columnlabel"><%=screen.getLabel("fname")%>&nbsp;</td>
<td align="right" class="columnlabel"><%=screen.getLabel("mprefix","tdesc")%>&nbsp;</td>
<td width="1%"><%//=screen.getInput("emp_prefix")%>
<%
ListBox listboxemp_prefix = new ListBox();
......@@ -1229,47 +1233,59 @@ function updateRecord(){
//listboxemp_prefix.setDisable("false");
out.println(listboxemp_prefix.process());
%>
<input type="hidden" name="__emp_prefix" value="<%=screen.getDataLabel("emp_prefix")%>"></td>
<%
FieldManager fmlname = screen.getRecord().getField("lname");
PropertyField propertieslname = (PropertyField)fmlname.getProperty().clone();
String tmplname = (String)propertieslname.get("ONBLUR");
if(tmplname == null) {
propertieslname.put("ONBLUR", "chkBlackListName();");
} else if(tmplname.indexOf("chkBlackListName()")==-1) {
propertieslname.put("ONBLUR", tmplname +"chkBlackListName();");
}
fmlname.setProperty(propertieslname);
%>
<td nowrap><div>&nbsp;&nbsp;<%=screen.getInput("fname")%> <%=screen.getInput("lname")%></div></td>
<input type="hidden" name="__emp_prefix" value="<%=screen.getDataLabel("emp_prefix")%>"></td>
<%
FieldManager fmlname = screen.getRecord().getField("lname");
PropertyField propertieslname = (PropertyField)fmlname.getProperty().clone();
String tmplname = (String)propertieslname.get("ONBLUR");
if(tmplname == null) {
propertieslname.put("ONBLUR", "chkBlackListName();");
} else if(tmplname.indexOf("chkBlackListName()")==-1) {
propertieslname.put("ONBLUR", tmplname +"chkBlackListName();");
}
fmlname.setProperty(propertieslname);
%>
<td nowrap><div>&nbsp;&nbsp;</div></td>
</tr>
<tr>
<td align="right" class="columnlabel"><%=screen.getLabel("efname")%>&nbsp;</td>
<td align="right" class="columnlabel"><%=screen.getLabel("mprefix","edesc")%>&nbsp;</td>
<td width="1%">
<%if(mprefixedesc.equals("")){%>
<input name="MPREFIXEDESC" type="text" value="<%=firstprefix %>" size="5" readonly>
<%}else{%>
<input name="MPREFIXEDESC" type="text" value="<%=mprefixedesc%>" size="5" readonly>
<%}%>
</td>
<td nowrap><div>&nbsp;
<%=screen.getInput("efname")%> <%=screen.getInput("elname")%></div></td>
<%if(mprefixedesc.equals("")){%>
<input name="MPREFIXEDESC" type="text" value="<%=firstprefix %>" size="10" readonly>
<%}else{%>
<input name="MPREFIXEDESC" type="text" value="<%=mprefixedesc%>" size="10" readonly>
<%}%>
</td>
<td nowrap><div>&nbsp;</div></td>
<td align="center" nowrap ><span swlang code="SW000744">Insert Picture</span>&nbsp;</td>
<td class="blankspace">&nbsp;</td>
</tr>
<tr>
<td align="right" class="columnlabel"><%=screen.getLabel("fname")%>&nbsp;</td>
<td width="1%"><%=screen.getInput("fname")%></td>
<td nowrap>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=screen.getLabel("mname")%>&nbsp;<%=screen.getInput("mname")%>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=screen.getLabel("lname")%>&nbsp;<%=screen.getInput("lname")%></td>
<td align="center" nowrap class="blankspace" ><%=screen.getInput("picture") %></td>
</tr>
<tr>
<td align="right" class="columnlabel"><%=screen.getLabel("efname")%>&nbsp;</td>
<td width="1%"><%=screen.getInput("efname")%></td>
<td nowrap>&nbsp;<%=screen.getLabel("emname")%>&nbsp;<%=screen.getInput("emname")%>
&nbsp;<%=screen.getLabel("elname")%>&nbsp;<%=screen.getInput("elname")%></td>
</tr>
<%screen.referLangOn(); %>
<tr>
<td align="right" class="columnlabel <%if(!searchdata.equalsIgnoreCase("1")){%>hidden<%}%>">
<span swlang code="SW011725">Employee ID Type</span>&nbsp;*&nbsp;</td>
<td colspan = "2" class="<%if(!searchdata.equalsIgnoreCase("1")){%>hidden<%}%>">
&nbsp;<input type="radio" id="rdoO" name="empcon" value="Old" <%if(empcon.equalsIgnoreCase("Old")){%>checked<%}%> />&nbsp;
<span swlang code="SW011726">Old Employeeid</span>&nbsp;
<input type="radio" id="rdoN" name="empcon" value="New" <%if(empcon.equalsIgnoreCase("New") || !searchdata.equalsIgnoreCase("1")){%>checked<%}%> />&nbsp;
<span swlang code="SW011727">New Employeeid</span>
</td>
<%if(!searchdata.equalsIgnoreCase("1")){%><td colspan = "3">&nbsp;</td><%}%>
<td align="center" nowrap class="blankspace" ><%=screen.getInput("picture") %></td>
<td class="blankspace">&nbsp;</td>
<td align="right" class="columnlabel <%if(!searchdata.equalsIgnoreCase("1")){%>hidden<%}%>">
<span swlang code="SW011725">Employee ID Type</span>&nbsp;*&nbsp;</td>
<td colspan = "2" class="<%if(!searchdata.equalsIgnoreCase("1")){%>hidden<%}%>">
&nbsp;<input type="radio" id="rdoO" name="empcon" value="Old" <%if(empcon.equalsIgnoreCase("Old")){%>checked<%}%> />&nbsp;
<span swlang code="SW011726">Old Employeeid</span>&nbsp;
<input type="radio" id="rdoN" name="empcon" value="New" <%if(empcon.equalsIgnoreCase("New") || !searchdata.equalsIgnoreCase("1")){%>checked<%}%> />&nbsp;
<span swlang code="SW011727">New Employeeid</span>
</td>
<%if(!searchdata.equalsIgnoreCase("1")){%><td colspan = "3">&nbsp;</td><%}%>
<td class="blankspace">&nbsp;</td>
</tr>
<tr>
<td colspan="5" class="blankspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
......@@ -1298,7 +1314,7 @@ function updateRecord(){
&nbsp;<input name="MJOBCODE_LEVEL@TDESC" type="text" readonly size="33" value="<%=mjobcode_level_tdesc%>"></td>
</tr>
<tr>
<td class="columnlabel"><%=screen.getLabel("pl")%>&nbsp;</td>
<td class="columnlabel"><%=screen.getLabel("pl")%>&nbsp;</td>
<td><%=screen.getInput("pl")%>
<input name="MPERSONALLEVEL@TDESC" type="text" readonly size="30" value="<%=mpersonalleveldesc%>"></td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment