<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="com.csc.library.entry.HelpEntry,com.csc.library.system.*,com.csc.library.utilities.*"%>
<%@ page import="com.csc.library.entry.*,com.csc.library.database.*,com.csc.library.session.*,com.csc.library.report.ReportUDF"  %>
<jsp:useBean id="WEL335" class="com.csc.library.system.Task" scope="page"/>
<%
	WEL335.setChannel(request ,response);
   	ProcessEntry screen=(ProcessEntry)WEL335.process("ProcessEntry","Process");
   	screen.process();
	CscCalendar cs= new CscCalendar();
%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="../CSS/TISCO.css" rel="stylesheet" type="text/css">
<link href="../CSS/bootstrap.css" rel="stylesheet"  type="text/css">
<link href="../CSS/bootstrap_csc_backend.css" rel="stylesheet"  type="text/css">
<script type="text/javascript" src="../JS/jquery-2.1.3.min.js"></script>
<script type='text/javascript' src="../JS/bootstrap.js"></script>
<script type='text/javascript' src='../JS/SCREEN.js'></script>
<script language="javascript" src='../JS/DATEINPUT.js'></script>
<script language="javascript" src='../JS/VIEWCALENDAR.js'></script>
<script language="javascript">setLang('<%=screen.getUProfile().get("lang")%>');</script>
<script language="JavaScript" type="text/JavaScript">
<!--
function goHelp1(helpName,inputName){
	var helpReturn;
		  if(inputName=="__condition$employeeid1" )
		 	helpReturn="__condition$employeeid1:employeeid";
			else  if(inputName=="__condition$employeeid2" )
		 	helpReturn="__condition$employeeid2:employeeid";
			
			else  if(inputName=="__condition$bu11" )
		 	helpReturn="__condition$bu11:bu1id";	
			else  if(inputName=="__condition$bu21" )
		 	helpReturn="__condition$bu21:bu2id";
			else  if(inputName=="__condition$bu31" )
		 	helpReturn="__condition$bu31:bu3id";	
			else  if(inputName=="__condition$bu41" )
		 	helpReturn="__condition$bu41:bu4id";	
			else  if(inputName=="__condition$bu51" )
		 	helpReturn="__condition$bu51:bu5id";	
			
			else  if(inputName=="__condition$bu12" )
		 	helpReturn="__condition$bu12:bu1id";	
			else  if(inputName=="__condition$bu22" )
		 	helpReturn="__condition$bu22:bu2id";
			else  if(inputName=="__condition$bu32" )
		 	helpReturn="__condition$bu32:bu3id";	
			else  if(inputName=="__condition$bu42" )
		 	helpReturn="__condition$bu42:bu4id";	
			else  if(inputName=="__condition$bu52" )
		 	helpReturn="__condition$bu52:bu5id";	
				
			else  if(inputName=="__condition$group1" )
		 	helpReturn="__condition$group1:groupid";	
			else  if(inputName=="__condition$group2" )
		 	helpReturn="__condition$group3:groupid";	
				
	     linkHelp_Return(helpName,helpReturn);
}

function process(pValue) {
	with(document.cscform){
		if (pValue=='WelBudgetUniformProcess') {
			__prclass.value="WelBudgetUniformProcess";
		}

		bCon=confirm("Process of Uniform for welfare");
		if (bCon==true)	{			
			__cmd .value = "save";							
			submit();
		}
	}
}

//-->
</script>
</head>
<body  leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<form name="cscform" method="post" action="WEL335.jsp">


<!----------BEGIN CSC INITIAL ZONE ------------------------>

<%=screen.InitialVariable()%>

<!----------END CSC INITIAL ZONE -------------------------->

<input type="hidden" name="__screen"  value="WEL335">
	<input type="hidden" name="__fixCon"  value="">
	<input type="hidden" name="__cmd"  value="">
	<input type="hidden" name="__help"  value="">
	<input type="hidden" name="__user" value="<%=screen.getUProfile().getUserId()%>">
	<input type="hidden" name="__companyid" value='<%=screen.getUProfile().get("companyid")%>'>
	<input type="hidden" name="__tname" value="ประมวลผลสวัสดิการชุดเครื่องแบบ">
	<input type="hidden" name="__ename" value="Process of Uniform for welfare">
	<input type="hidden" name="__ptype" value="">
	<input type="hidden" name="__prclass" value="WelBudgetUniformProcess">
	<input type="hidden" name="__calendar" value="">
	<script language="javascript">getInputFormatDate();</script>
	<input type="hidden" name="__language" value ="<%=screen.getUProfile().get("lang")%>">		
	<div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>
  	<script language="javascript">initToolTips();</script>
	<input type="hidden" name="__condition$employeeProcess" value='<%=screen.getUProfile().get("employeeid")%>'>
	<input type="hidden" name="__condition$employeeSelect" value="">
	<input type="hidden" name="__condition$positionSelect" value="">
	<input type="hidden" name="__condition$bu1Select" value="">
	<input type="hidden" name="__condition$bu2Select" value="">
	<input type="hidden" name="__condition$bu3Select" value="">
	<input type="hidden" name="__condition$bu4Select" value="">
	<input type="hidden" name="__condition$bu5Select" value="">
	<input type="hidden" name="__condition$prstatus" value="">
	<input type="hidden" name="__condition$branchSelect" value="">
	<input type="hidden" name="__condition$complainSelect" value="">
	<input type="hidden" name="__condition$welfareSelect" value="">
	<input type="hidden" name="__condition$budyearSelect" value="">
	<input type="hidden" name="__condition$cmdValue" value="">
	<input type="hidden" name="__condition$bu41" value="">
	<input type="hidden" name="__condition$bu42" value="">
	<input type="hidden" name="__condition$bu51" value="">
	<input type="hidden" name="__condition$bu52" value="">
	<input type="hidden" name="__condition$uniformgid1" value="">
	<input type="hidden" name="__condition$uniformgid2" value="">
	<input type="hidden" name="bu5List">
 	<br>
  	<div align="center">
    <table  cellpadding="0"  cellspacing="0" >
    <tr >
    	<td class="header"> WEL335,&nbsp;<script language="javascript">swapLang("Process of Uniform for welfare");</script>&nbsp;</td>
   	</tr>
	<tr>
    	<td class="blankspace"  ></td>
    </tr>	
    <tr >
    	<td colspan="3">
			<table width="100%" border="0" class="inframe">
			  <tr>
			    <td width="100%">			      <table  class="inframe"  border="0">
                    <tr>
                      <td align="right"><script language="javascript">swapLang("Year");</script></td>
                      <td>
<select name="__condition$years">
					<%for(int i=(cs.getYear()-3);i<(cs.getYear()+3);i++){%>
								<option value="<%=i%>" <% if(cs.getYear()==i) out.println("selected");%> ><%=i%></option>
					<%}%>
					</select>						  
					  </td>
                    </tr>
                    <tr>
                      <td width="205" align="right">
                          <script language="javascript">swapLang("Employeeid");</script></td>
                      <td><input type="text" name="__condition$employeeid1" size="15">
                        &nbsp;<a href="javascript:goHelp1('MEMPLOYEEHELP','__condition$employeeid1')"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0" align="absmiddle"></a>&nbsp;- &nbsp;
                        <input type="text" name="__condition$employeeid2" size="15">
                        &nbsp;<a href="javascript:goHelp1('MEMPLOYEEHELP','__condition$employeeid2')"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0" align="absmiddle"></a></td>
                    </tr>
                    <tr>
                      <td  align="right"><script language="javascript">swapLang("Bu1");</script>                      </td>
                      <td><input type="text" name="__condition$bu11" size="15">
                        &nbsp;<a href="javascript:goHelp1('MBU1HELP','__condition$bu11')"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0" align="absmiddle"></a>&nbsp;- &nbsp;
                        <input type="text" name="__condition$bu12" size="15">
                        &nbsp;<a href="javascript:goHelp1('MBU1HELP','__condition$bu12')"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0" align="absmiddle"></a></td>
                    </tr>
                    <tr>
                      <td  align="right"><script language="javascript">swapLang("Bu2");</script>                      </td>
                      <td><input type="text" name="__condition$bu21" size="15">
                        &nbsp;<a href="javascript:goHelp1('MBU2HELP','__condition$bu21')"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0" align="absmiddle"></a>&nbsp;- &nbsp;
                        <input type="text" name="__condition$bu22" size="15">
                        &nbsp;<a href="javascript:goHelp1('MBU2HELP','__condition$bu22')"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0" align="absmiddle"></a></td>
                    </tr>
                    <tr>
                      <td  align="right"><script language="javascript">swapLang("Bu3");</script>                      </td>
                      <td><input type="text" name="__condition$bu31" size="15">
                        &nbsp;<a href="javascript:goHelp1('MBU3HELP','__condition$bu31')"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0" align="absmiddle"></a>&nbsp;- &nbsp;
                        <input type="text" name="__condition$bu32" size="15">
                        &nbsp;<a href="javascript:goHelp1('MBU3HELP','__condition$bu32')"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0" align="absmiddle"></a></td>
                    </tr>
                    <tr>
                      <td  align="right">
                          <script language="javascript">swapLang("Group");</script>                      </td>
                      <td width="733"><input type="text" name="__condition$group1" size="15">
                        &nbsp;<a href="javascript:goHelp1('MGROUPHELP','__condition$group1')"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0" align="absmiddle"></a>&nbsp;- &nbsp;
                        <input type="text" name="__condition$group2" size="15">
                        &nbsp;<a href="javascript:goHelp1('MGROUPHELP','__condition$group2')"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0" align="absmiddle"></a></td>
                    </tr>
                  </table></td>
		      </tr><tr>                          
            	<td class="blankspace"></td>
            </tr>   
			 <tr>
              	<td class="blankspace"  >
					<div align="center">
						<button type="button" class="btn btn-primary width100" swlang code="SW013173" onClick="process('WelBudgetUniformProcess');">PROCESS</button>
					<a href="javascript:Clearlist();"></a>                  </div>				</td>
            </tr>
			 <tr>
              	<td class="blankspace"  ></td>
            </tr>
          	</table> 
		</td>
    </tr>
  	<tr>
		<td  class="bottom"></td>
    </tr>
	</table>
  </div>
</form>
</body>
</html>