WELEXP007.jsp 5.95 KB
Newer Older
Thitichaipun Wutthisak committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151
<%@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="WELEXP007" class="com.csc.library.system.Task" scope="page"/>
<%
	WELEXP007.setChannel(request ,response);
   	ProcessEntry screen=(ProcessEntry)WELEXP007.process("ProcessEntry","Process");
   	screen.process();
	ReportUDF rp=new ReportUDF();
%>
<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">
<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 goHelp(helpName,inputName){
	var helpReturn,fixc;
			fixc=document.cscform.__fixCon.value;	
		  if(inputName=="__condition$employeeid1" )
		 	helpReturn="__condition$employeeid1:employeeid";
		else   if(inputName=="__condition$employeeid2" )
		 	helpReturn="__condition$employeeid2:employeeid";
		else   if(inputName=="__condition$expendid1" ){
		 	helpReturn="__condition$expendid1:expendid";
		}else   if(inputName=="__condition$expendid2" ){
		 	helpReturn="__condition$expendid2:expendid";
		}
	     linkHelp_Return(helpName,helpReturn);
}

function checkValid(){
		with(document.cscform){
				if(__condition$expendid1.value==""){
							alert(MyCode[0]);
							__condition$expendid1.select();
							return false;
				}

				if(__condition$employeeid1.value=="" && __condition$employeeid2.value!=""){
							alert(MyCode[0]);
							__condition$employeeid1.select();
							return false;
				}
				
				
				return true;
		}
}


function process() {
	with(document.cscform){
	  if(checkValid()){
				bCon=confirm("Confirm Process Move to History");
				if (bCon==true)	{			
					__cmd .value = "save";							
					submit();
				}
		}
	}
}


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


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

<%=screen.InitialVariable()%>

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

<input type="hidden" name="__screen"  value="WELEXP007">
	<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="ประมวลผล expense to sap">
	<input type="hidden" name="__ename" value="Process expense to sap">
	<input type="hidden" name="__ptype" value="">
	<input type="hidden" name="__prclass" value="ExportExpense">
	<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>
 	<br>
  	<div align="center">
    <table  cellpadding="0"  cellspacing="0" class="largest">
    <tr >
    	<td width="570"  class="header"> WELEXP007,&nbsp;<script language="javascript">swapLang("Process expense to sap");</script>&nbsp;</td>
   	</tr>
	<tr>
    	<td class="blankspace"  ></td>
    </tr>	
    <tr >
    	<td colspan="3"><table  class="inframe"  border="0">
              <tr>
                <td width="187"  align="right">
                    <script language="javascript">swapLang("Employeeid");</script>
                </td>
                <td width="757"><input type="text" name="__condition$employeeid1" size="20">
                  &nbsp;<a href="javascript:goHelp('MEMPLOYEEHELP','__condition$employeeid1')"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a>&nbsp;&nbsp;- &nbsp;&nbsp;
                  <input type="text" name="__condition$employeeid2" size="20">
                  &nbsp;<a href="javascript:goHelp('MEMPLOYEEHELP','__condition$employeeid2')"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a></td>
              </tr>
              <tr>
                <td align="right">
                    <script language="javascript">swapLang("Docno");</script>
                </td>
                <td><input type="text" name="__condition$expendid1" size="20">
                  &nbsp;<a href="javascript:goHelp('TEXPENDHELP','__condition$expendid1')"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a>&nbsp;&nbsp;- &nbsp;&nbsp;
                  <input type="text" name="__condition$expendid2" size="20">
                  &nbsp;<a href="javascript:goHelp('TEXPENDHELP','__condition$expendid2')"><img src="../IMAGES/BUTTON/MAIN/SEARCH20.gif" border="0"></a></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td><input type="radio" name="__condition$isall" value="0" checked>
                  <span class="columnlabel">
                  <script language="javascript">swapLang("Process borrowed");</script>
                  </span>
                <input type="radio" name="__condition$isall" value="1">
                <span class="columnlabel">
                <script language="javascript">swapLang("Process all");</script>
                </span> </td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td><a href="javascript:process();"><img src="../IMAGES/BUTTON/PROCESS.gif" border="0"></a></td>
              </tr>
            </table></td>
    </tr>
  	<tr>
		<td  class="bottom"></td>
    </tr>
	</table>
  </div>
</form>
</body>
</html>