CSO12.jsp 6.09 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
<!DOCTYPE html>
<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@ 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.*"  %>
<%@ include file="../CHECKPROFILE.jsp" %>
<% request.setCharacterEncoding("UTF-8"); %>
<jsp:useBean id="EMV" class="com.csc.library.system.Task" scope="page"/>
<jsp:setProperty name="EMV" property="appname" value="empview" />
<%
	EMV.setChannel(request, response);
	UIManager screen = (UIManager) EMV.process("SingleEntry","CSO12");
%>
<html xmlns="http://www.w3.org/1999/xhtml" ng-app="myHR">
	<head>

		<title>Employee View</title>

		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<style>
			textarea{
					width:286px !important;
				}
			@media screen and (max-width: 700px){
				textarea{
					width:100px !important;
				}
			}
		</style>
	</head>
	<body>
		<div class="bg-com"></div>
		<jsp:include page="EMV_HEADMENU.jsp" flush="true" />
		
		<script type="text/javascript">
			setLang("<%=screen.getUProfile().get("lang")%>");
			var swap = new swaplang();
            var titlename = swap.swap2String("SW012334");
			setPageTitle(titlename);
			
			$(document).ready(function(){
				$("input").addClass("form-control");
				$("textarea").attr("rows","1");
			});
		
			function GoSave() {
			  confirmSave();
			}
			function confirmSave(){
				//saveRecord();
				if(nullCheck()){
				with(document.cscform){		    	
					aCon=confirm(MyCode[1]);// จะบันทึกหรือไม่
					if (aCon==true)	{
						save();
					}
				}
			}
			}
			function GoDelete(){ edelete(); }
			function GoSearch(){ search(); }
			function GoUpdate(){
			  update();
			 }
				function goHelp(helpName,inputName){
					var helpReturn;
					var helpReturn2;
					var fixCon = "";
					document.cscform.__fixCon.value=""; 
					if(inputName=="__provinceid" ){
						helpReturn="__provinceid:PROVINCEID";
					}
					else if(inputName="__cus_companyid"){
						helpReturn="__cus_companyid:cus_companyid";
					}
					else {
						return;
					}
					linkHelp_Return(helpName, helpReturn, fixCon);
			}

			function linkHelp(help,input){
				with(document.cscform){
					obj = eval("document.cscform."+input);
					if(obj.value==""){
							var param="PRU084.jsp?__helpName="+help+"&__fieldSearch="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value;
					}else{
							var param="PRU084.jsp?__helpName="+help+"&__fieldSearch="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value+"&__valueSearch="+obj.value;
					}
					//var param="PRU084.jsp?__helpName="+help+"&__fieldSearch="+input+"&__pageCall="+__screen.value+"&__fixCon="+__fixCon.value;
					win = window.open(param,"Help","left=150,top=150,width=600,height=400,resizable=yes,scrollbars=yes,toolbar=no,status=yes");
					if(window.focus){win.focus();}
				}
			}
		</script>
		
		<section>
			<div class="container csc-content">
				<div id="toolTipLayer" style="position:absolute; visibility: hidden"></div>
				<form name="cscform" class="form-horizontal" method="post" onload="goAdd();">
					<%=screen.InitialVariable()%>
					<input type="hidden" name="__calendar">
					<script language="javascript">getInputFormatDate();</script>
					<input type="hidden" name="__language" value="<%=screen.getUProfile().get("lang")%>">
					<input type="hidden" name="__cmd">
					<input name="__notNull" type="hidden" value="<%=screen.getRequire()%>">
					<input type="hidden" name="__screen" value="CS013">
					<input type="hidden" name="__fixCon" value="">
					<input type="hidden" name="__help" value="">
					
					<div class="csc-block">
						<div class="center">
							<h2 class="csc-block-head" swlang code='SW012334'>purpose of contact</h2>
						</div>
						
						<div class="form-horizontal"> 
							<div class="row">
								<div class="form-group">
									<div class="col-md-2 col-sm-2 col-xs-2">
										<label class="control-label label-right"><%=screen.getLabel("TARGETID")%></label>
									</div>
									<div class="col-md-3 col-sm-3 col-xs-3">   
										<div class="input-group">
											<input class="form-control" type="Text" name="__targetid" maxlength="5" value="<%=screen.getDataLabel("targetid")%>" onkeypress="chkSpecialKey(event);" onkeyup="sysIsEdit();" onblur="trimValue(this);" onfocus="this.select();" alt="TARGET ID" >
											<a class="input-group-addon" href="javascript:linkHelp('MTARGETHELP','__targetid');">
												<i class="fa fa-search"></i>
											</a>
										</div>
									</div>
									<div class="col-md-2 col-sm-2 col-xs-2">
										<label class="control-label label-right"><%=screen.getLabel("tdesc")%></label>
									</div>
									<div class="col-md-3 col-sm-3 col-xs-3">
										<%=screen.getInput("tdesc")%>
									</div>
								</div>
							</div>
							
							<div class="row">
								<div class="form-group">
									<div class="col-md-2 col-sm-2 col-xs-2">
										<label class="control-label label-right"><%=screen.getLabel("edesc")%></label>
									</div>
									<div class="col-md-3 col-sm-3 col-xs-3">
										<%=screen.getInput("edesc")%>
									</div>
									<div class="col-md-2 col-sm-2 col-xs-2">
										<label class="control-label label-right"><%=screen.getLabel("message")%></label>
									</div>
									<div class="col-md-2 col-sm-2 col-xs-2">
										<%=screen.getInput("message")%>
									</div>
								</div>
							</div>
							
							
							<div class="center" id="child-data"> 
								<input type="hidden" name="__subdata" value ="<%=screen.getRecord().getString("subdata")%>"> 
								<a class="btn btn-primary" href="javascript:GoSave();" swlang code='SW000117'>Save</a>
								<a class="btn btn-primary" href="javascript:GoDelete();" swlang code='SW000123'>Delete</a>
							</div>
							<%=screen.endJSP()%>
						</div>
					</div>
				</form>
			</div>
			<a href="#top" id="top-button">
				<i class="fa fa-angle-up"></i>
				<div class="top-word">Back to top</div>
			</a>
		</section>
		<jsp:include page="FOOTER.jsp" flush="true" />
	</body>
</html>
<% screen.referLangOff(); %>