WOR013ADD.jsp 7.57 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 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204
<%@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.*"  %>
<jsp:useBean id="WOR013" class="com.csc.library.system.Task" scope="page" />
<jsp:useBean id="WOR004SING" class="com.csc.library.system.Task" scope="page" />
<%
	WOR004SING.setChannel(request, response);
	UIManager screensing = (UIManager) WOR004SING.process("SingleEntry","WOR004SING");
	WOR013.setChannel(request, response);
	HelpEntry screen = (HelpEntry) WOR013.process("HelpEntry","WOR013");
	screen.process();
%>
<html>
<head>
<title>Take Over Work</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script language="JavaScript" src="../JS/SCREEN.js"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function linkLegacy(jsppage,_wf_id,_wf_ver,_wf_seq_no,_step_id,_step_seq_no,helpc) {
	with(document.cscform) {
		action=jsppage;
		__help.value=helpc;
		wf_id.value=_wf_id;
		wf_ver.value=_wf_ver;
		wf_seq_no.value=_wf_seq_no;
		step_id.value=_step_id;
		step_seq_no.value=_step_seq_no;
		submit();
	}
}

function edelete(){
	with(document.cscform){
		bCon=confirm("เกินสิทธิ");
		if (bCon==true)	{
			__cmd.value="delete";
			submit();
		}
	}
}

function savetakeover() {
	with(document.cscform) {
		if (__confirm.value != "s") {
			__confirm.value="s";
			__cmd.value="save";
			wf_command.value="takeovers";
			__fixCon.value="<%=request.getParameter("__fixCon")%>";//"actor_id='<%=WOR013.getUProfile().get("employeeid").toString()%>' and status=1";
			//action = "WOR001.jsp";
			if (confirm("Do you want to takeover this Work?"))
				submit();
			else {
				__confirm.value="";
			}
		} else 
			alert("You just Takeover Work!!");
	}
}

/*function savetakeover() {
	with(document.cscform) {
		__confirm.value="s";
		__cmd.value="save";
		wf_command.value="takeovers";
		submit();
	}
}*/

function postnew(page){
    with(document.cscform){
	           open(page,"post","height=420,width=600");
	}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//-->
</script>
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
<link href="CSS/TISCO.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0">
<div class="centered">
<form name="cscform" method="post" action="">


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

<%=screen.InitialVariable()%>

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

<input type="hidden" name="__screen" value="WOR013">
	<input type="hidden"name="__screenpage"  value="<%=request.getServletPath()%>">
	<input name="__fixCon" type="hidden" value="<%=request.getParameter("__fixCon")%>">
	<input type="hidden" name="__notNull" value="">
	<input type="hidden" name="__companyid" value='<%=screen.getUProfile().get("companyid")%>'>
	<input name="__cmd" type="hidden" value="">
	<input type="hidden" name="__calendar">
	<input type="hidden" name="__employeeid" value="<%=screen.getUProfile().get("employeeid")%>">
	<input type="hidden" name="__dateformat" value="DD/MM/YYYY">
	<input type="hidden" name="__language" value="eng">
	<input type="hidden" name="__temp" value="">
	<!--input type="hidden" name="__help" value=""-->
	<input type="hidden" name="__hideObj" value="" />
	<input type="hidden" name="__confirm" value="" />
	<input type="hidden" name="wf_command" value="" />
  <input type="hidden" name="wf_id" value="">
  <input type="hidden" name="wf_ver" value="">
  <input type="hidden" name="wf_seq_no" value="">
  <input type="hidden" name="step_id" value="">
  <input type="hidden" name="step_seq_no" value="">
  <input type="hidden" name="orderBy" value="">

  <div align="center">
    <table class="largest" >
      <tr >
        <td colspan="2" class="header" > Take Over</td>
      </tr>
      <tr >
        <td ><table width="99%"  border="0" align="center" cellpadding="0" cellspacing="1" class="maxsize" >
            <tr>
              <td >  
                </div>
                <div align="center"><table cellpadding="0" cellspacing="0">
                  <tr> 
                    <td colspan="4"  class="blankspace" ></td>
                  </tr>
				  <tr>
					<td colspan="4"><div align="right"><a href="javascript:savetakeover();"><img src="../IMAGES/BUTTON/TAKEOVER.gif" alt="Takeover" border="0" ></a></td>
				  </tr>
                  <tr> 
                    <td width="152" align="center"><script language="javascript">swapLang('Order By');</script> 
                      &nbsp;</td>
                    <td width="100"><%=screen.getTagOrder()%></td>
                    <td width="92" align="center"><script language="javascript">swapLang('Search By');</script>&nbsp;</td>
                    <td width="294"><%=screen.getTagSearchBy()%></td>
                  </tr>
                  <tr> 
                    <td align="center"><script language="javascript">swapLang('Condition');</script> &nbsp;
                    </td>
                    <td><%=screen.getTagConSearch()%></td>
                    <td align="center"><script language="javascript">swapLang('Key Value');</script>&nbsp;</td>
                    <td><%=screen.getTagValueSearch()%> 
					<a href="javascript:search();"><img src="../IMAGES/BUTTON/SEARCH.gif" alt="Search" border="0"></a>
					<!--input type="submit" name="Submit" value="Search" onClick="javascript:search();"-->
					</td>
                  </tr>
                  <tr> 
                    <td colspan="4"  class="blankspace" ></td>
                  </tr>
                  <tr align="right"> 
                    <td colspan="4">&lt; <%=screen.getPageTag()%> &gt;</td>
                  </tr>
                </table></div>
<table width="638" border="0" align="center" cellpadding="0" cellspacing="1" class="inframe">
                </table>
                  
                <div align="right"><font size="2" face="MS Sans Serif, Tahoma, sans-serif"> 
                  </font>&nbsp; </div></td>
            </tr>
            <tr class="title1">
              <td nowrap >
				<div align="center"><%//=screen.printTableHTML()%>
				  <%
					String htmlcode = screen.printTableHTML();
					htmlcode = htmlcode.replaceFirst(">"," class=\"maxsize\">");
					out.print(htmlcode);
				  %>
				</div></td>
            </tr>
            <tr>
              <td class="blankspace"><table width="543"  border="0" align="center" cellpadding="1" cellspacing="1">
                <tr>
                  <td width="16%" height="20"><div align="right"></div></td>
                  <td width="3%" ><div align="right"><img src="../IMAGES/DUETODAYBOX.gif" width="14" height="13"></div></td>
                  <td width="29%"><!--a href="wor001.html" target="_self"-->Due Today<!--/a--></td>
                  <td width="3%" bgcolor="#FFFFFF" ><img src="../IMAGES/EXTENDBOX.gif" width="14" height="13"></td>
                  <td width="26%"><!--a href="wor001.html" target="_self"-->Extend Duration <!--/a--></td>
                  <td width="3%" ><div align="right"><img src="../IMAGES/LATEBOX.gif" width="14" height="13"></div></td>
                  <td width="20%"><!--a href="wor001.html" target="_self"-->Late<!--/a--></td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td class="bottom"></td>
            </tr>
        </table></td>
      </tr>
    </table>
  </div>
</form>
</body>
</html>