<div class="codetitle"> <span><a style="CURSOR: pointer" data="29641" class="copybut" id="copybut29641" onclick="doCopy('code29641')"><u>코드 복사</u></a></span> 코드는 다음과 같습니다.</div> <div class="codebody" id="code29641"> <br><%@ 페이지 언어="java" contentType="text/html; charset=UTF-8" <BR>pageEncoding="UTF-8"%> <br><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <br><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <br><html> <br><머리> <br><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <br><title>发货申请</title> <br><script type="text/javascript"> <br>function countTotalRealPrice(){ <br>var productNeedNum = $("#productNeedNum").val(); <br>var realPrice= $("#realPrice").val(); <br>var totalRealPrice=productNeedNum*realPrice; <br>$("#totalRealPrice").val(totalRealPrice); <br><br>} <br>function countTotalTicketPrice(){ <br>var productNeedNum = $("#productNeedNum").val(); <br>var ticketPrice = $("#ticketPrice").val() <br>var totalTicketPrice= productNeedNum*ticketPrice; <br>$("#totalTicketPrice").val(totalTicketPrice); <br>} <br><br>$(function(){ <br>$("#t1").css("display", "none"); <br>$("#t2").css ("디스플레이", "없음"); <br>$("#t3").css("디스플레이", "없음") <br>$("#t4").css("디스플레이", " 없음"); <br>$("#t5").css("표시", "없음"); <br><br>}); <br>/* 함수 sumNum(){ <br>$("input[name=productNeedNum]").each(function(){ <br>//alert($(this).attr("id")) ;//每一个의 id <br>var productNeedNum=$("#productNeedNum").attr("value") <br>alert(productNeedNum) <br>// var sum = productNeedNum; Alert("sum:" sum); <br>// $("#sum").val(sum) <br>}); <br><br>} */ <br><br>function addRow(){ <br>var x=document.getElementById('tb1').insertRow(3); <br>var a=x.insertCell(0) <br>var b=x.insertCell(1) <br>var c=x.insertCell(2) <br>var d=x.insertCell(3) <br>var e=x.insertCell(4) <br>var f=x.insertCell(5) <br>var g=x.insertCell(6) <br>var h=x.insertCell(7) <br>var a1 = "<select id='productId' name='productId' style='width: 140px;height: 22px; text-align: center;'><c:forEach items='${productIdNames}' var ='p'><옵션 값='${p.productId }'>${p.commName }</option></c:forEach></select>"; <br>var b1="<select id='typeName' name='typeName' style='width: 140px;height: 22px; text-align: center;'><c:forEach items='${ typeInfos }' var='ti'><옵션 값='${ti.typeId }'> ${ti.typeName }</option></c:forEach>"; <br>var c1 = "<select id='' name='' style='width: 70px;height: 22px; text-align: center;'><option value='0'> 盒< ;/option><옵션 값='1'>瓶</option></select>"; <br>var d1="<input onkeyup='sum(this.id)' name='productNeedNum' id='productNeedNum' type='text' style='width:89%;height: 18px' value=' 0' />"; <br>var e1='<input onkeyup="sum(this.id)" name="realPrice" id="realPrice" type="text" style=" width:89%;height: 18px;" 값="0"/>'; <br>var f1='<input onkeyup="sum(this.id)" name="ticketPrice" id="ticketPrice" type="text" style=" width:91%;height: 18px;" 값="0"/>'; <br>var g1='<input name="totalRealPrice" id="totalRealPrice" type="text" style=" width:92%;height: 18px;" 값="0" />'; <br>var h1="<input name='totalTicketPrice' id='totalTicketPrice' type='text' style=' width:92.5%;height: 18px;' 값='0' />"; <br>a.innerHTML=a1 <br>b.innerHTML=b1 <br>c.innerHTML=c1 <br>d.innerHTML=d1 <br>e.innerHTML=e1 <br>f.innerHTML=f1 <br>g.innerHTML=g1 <br>h.innerHTML=h1 <br>} <br>function deleteRow(){ <br>var tab = document.getElementById('tb1'); <br>if(tab.rows.length > 4) <br>{ <br>tab.deleteRow(tab.rows.length-2); <br>}else{ <br>alertMsg.confirm("已经剩下最后一行,不能删除!"); <br>} <br>} <br><br>함수 sum(x){ <br>var y=document.getElementById(x).value; <br>if(isNaN(y)){ <br>document.getElementById(x).value=0; <br>} <br>var num=document.getElementById("productNeedNum").value <br>var realPrice=document.getElementById("realPrice").value ; <br>var ticketPrice=document.getElementById("ticketPrice").value; <br>var total=0 <br>if(realPrice!=null){ <br>total=num*realPrice; .getElementById("totalRealPrice").value=total; <br>} <br>if(ticketPrice!=null){ <br>total=num*ticketPrice; <br>document.getElementById("totalTicketPrice").value= 총 <br>} <br><br>} <br></head> <br><form id="form1" method=" post" action="${basePath}/sale/deliverSaleApply" class="pageForm require-validate" onsubmit="return verifyCallback(this,navTabAjaxDone)"> <br><div class="pageFormContent nowrap"layoutH=" 56"> <br><div style="text-align:center; 상단: 90px;위치: 상대;"> <br><테이블 너비="752" border="1px;" align="center" 스타일="border-collapse:collapse;border:1px 단색 검정;여백: auto;"> <br><tr height="20px;"> <br><td style="width:180px; 높이:20px; 수직 정렬: 중간">申请人: <br><input name="fullName" id="fullName" type="text" value="${user.fullName }" 비활성화="true" /> <br></td> <br><td width="100" align="left">区域: <br><select id="areaId" name="areaId" > ;c:forEach items="${areaTypes}" var="a"> <br><option value="${a.areaId}">${a.areaName }</option> ></c:forEach> <br></select> <br></td> <br><td width="180" align="left">申请日期: <br>< input name="applyDate" id="applyDate" type="text" class="date textInput readonly " style="width: 40%" readonly="readonly"/> <br><a class="inputDateButton" href="javascript:;">选择</a> <br></td> <br><td style="width:288px; 높이:20px; 수직 정렬: 중간">业务类型: <br><input type="radio" name="serviceId" id="" value="0"checked="checked"/>即发 <br>< ;input type="radio" name="serviceId" id="" value="1"/>即发即开 <br><input type="radio" name="serviceId" id="" value= "2"/>其他 <br></td> <br></table> <br><table width="752" border="1px;" "center" style="border-collapse:collapse;border:1px solid black;margin:auto;"> <br><tr><br><td width="121" height="18px;"> ;收货单位전체称</td> <br><td width="615"><input name="fullName" id="fullName" type="text" style=" width:99%;height : 20px;"/></td> <br></tr> <br></table> <br><table width="752" border="1px;" align="center" style="border-collapse:collapse;border:1px solid black;margin:auto;" id="tb1"> <br><tr><td width="54" rowspan="80" >申请发货明细</td> <br><td width="82" rowspan="2" height="40px;">产productname称</td> <br><td width= "65" rowspan="2">规格</td> <br><td colspan="2">수량</td> <br><td colspan="2">单价</td> <br><td colspan="2">结算贷款</td> <br></tr> <br><tr> <br><td width="54">盒/瓶</td> <br><td width="53">件</td> <br><td width="56">实价(원)</td> <br><td width="63">开票价(원)</td> <br><td width="72" onclick="deleteRow()">实价합计(원)</td> <br><td width="85" onclick="addRow()">开票价합합(원)</td> <br></tr> <br><tr id="a1"> <br><td height="20px;"> <br><select id="productId" name="productId" style="width: 140px;height: 22px; text-align: center;"> <br><c:forEach items="${productIdNames}" var="p"> <br><option value="${p.productId }">${p.commName }</option> <br></c:forEach> <br></select> <br></td> <br><td> <br><select id="typeName" name="typeName" style="width: 140px;height: 22px; text-align: center;"> <br><c:forEach items="${typeInfos }" var="ti"> <br><옵션 값="${ti.typeId }"> ${ti.typeName }</option> <br></c:forEach> <br></select> <br></td> <br><td> <br><select id="" name="" style="width: 70px;height: 22px; text-align: center;"> <br><option value="0"> 盒</option> <br><option value="1"> 瓶</option> <br></select> <br></td> <br><td><input name="productNeedNum" id="productNeedNum" type="text" style=" width:89%;height: 18px;" value="0" onkeyup="sum(this.id)"/></td> <br><td><input name="realPrice" id="realPrice" type="text" style=" width:89%;height: 18px;" value="0" onkeyup="sum(this.id)"/></td> <br><td><input name="ticketPrice" id="ticketPrice" type="text" style=" width:91%;height: 18px;" value="0" onkeyup="sum(this.id)"/></td> <br><td><input name="totalRealPrice" id="totalRealPrice" type="text" style=" width:92%;height: 18px;" value="0" /></td> <br><td><input name="totalTicketPrice" id="totalTicketPrice" type="text" style=" width:92.5%;height: 18px;" value="0" /></td> <br></tr> <br><tr> <br><td >合计</td> <br><td height="18px;"> </td> <br><td> </td> <br><td> </td> <br><td> </td> <br><td> </td> <br><td> </td> <br><td> </td> <br></tr> <br></table> <br><table width="752" border="1px;" align="center" style="border-collapse:collapse;border:1px solid black;margin:auto;"> <br><tr> <br><td width="91" height="30px;">结算/付款方式</td> <br><td colspan="7"> <br><input type="radio" name="pay" id="" checked="checked" value="0"/>对公 <br><input type="radio" name="pay" id="" value="1"/>对私 <br><input type="radio" name="pay" id="" value="2"/>非现 <br></td> <br></tr> <br><tr> <br><td rowspan="3">发货资料</td> <br><td width="68" height="18px;">发货方式</td> <br><td width="36"> <br><select id="sendType" name="sendType" style="width: 70px;height: 25px;"> <br><option value="0">邮政</option> <br><option value="1">申通</option> <br><option value="2">其他</option> <br></select></td> <br><td width="73">发货始限</td> <br><td width="100"> <input name="accessionDate" id="accessionDate" type="text" class="date textInput readonly" style=" width:76%;height: 18px;" readonly="readonly"/> <br><a class="inputDateButton" href="javascript:;">选择</a></td> <br><td colspan="3"> <br><input type="radio" name="priorityFlag" id="common" checked="checked" value="0"/>普通件 <br> <input type="radio" name="priorityFlag" id="urgency" value="1"/>急件 <br></td> <br></tr> <br><tr> <br><td height="18px;">收货地址</td> <br><td colspan="6"><input name="recvAddr" id="recvAddr" type="text" style=" width:99%;height: 20px;"/></td> <br></tr> <br><tr> <br><td height="18px;">到站</td> <br><td><input name="arriveAddr" id="arriveAddr" type="text" style=" width:91%;height: 20px;"/></td> <br><td>收货人</td> <br><td><input name="recvPerson" id="recvPerson" type="text" style=" width:94%;height: 20px;"/></td> <br><td width="73">联系方式</td> <br><td colspan="2"><input name="contactPhone" id="contactPhone" type="text" style=" width:97.7%;height: 20px;"/></td> <br></tr> <br><tr> <br><td rowspan="2" >审批</td> <br><td colspan="2" height="18px;">总经理室</td> <br><td colspan="2">市场部</td> <br><td colspan="3">所在区域</td> <br></tr> <br><tr> <br><td colspan="2" height="20px;"> <br><input type="radio" id="" name="approvalTwo" checked="checked" value="0"/>불동의 <br><input type="radio" id="" name=" 승인2" value="1" 비활성화="true"/>동의 <br></td> <br><td colspan="2"> <br><input type="radio" id="" name="approvalOne" check="checked" value="0"/>불동의 <br><input type="radio" id="" name="approvalOne" value="1" 비활성화="true"/>동의 <br></td> <br><td colspan="3"> <br><input type="radio" id="" name="approvalThree" checked="checked" value="0"/>불동의 <br><input type="radio" id="" name="approvalThree" value="1" 비활성화="true"/>동의 <br></td> <br></tr> <br></테이블> <br><테이블 너비="752" border="1px;" align="center" style="border-collapse:collapse;border:1px solid black;margin:auto;" id="t1"> <br><tr> <br><td width="398" height="30px;">以下由시场부/财务부填写</td> <br></tr> <br></테이블> <br><테이블 너비="752" border="1px;" align="center" style="border-collapse:collapse;border:1px solid black;margin:auto;" id="t2"> <br><tr> <br><td width="96" rowspan="4">贷款给付情况</td> <br><td width="96" height="30px;">入账时间</td> <br><td width="179">入账银行 账号/卡号</td> <br><td width="85">入账金额</td> <br><td colspan="2">经办人</td> <br></tr> <br><tr> <br><td height="30px;"><input name="recvTime" id="recvTime" type="text" class="date textInput 읽기 전용 " style=" width:81%;height: 24px ;" 읽기 전용="읽기 전용"/> <br><a class="inputDateButton" href="javascript:;">选择</a></td> <br><td><input name="cardNo" id="cardNo" type="text" style=" width:97.2%;height: 24px;"/></td> <br><td><input name="balance" id="balance" type="text" style=" width:94.9%;height: 24px;"/></td> <br><td width="57"><input 비활성화="true" name="dealPerson" id="dealPerson" type="text" style=" width:93%;height: 24px;" value="${user.fullName}"/></td> <br></tr> <br></테이블> <br><테이블 너비="752" border="1px;" align="center" style="border-collapse:collapse;border:1px solid black;margin:auto;" id="t3"> <br><tr> <br><td width="76" rowspan="2">发运情况</td> <br><td width="80" height="30px;">发运时间</td> <br><td width="139"> <br><input name="sendTime" id="sendTime" type="text" class="date textInput 읽기 전용 " style=" width:83%;height: 24px;" 읽기 전용="읽기 전용"/> <br><a class="inputDateButton" href="javascript:;">选择</a> <br></td> <br><td width="119">经办人</td> <br><td width="128"><input name="dealPerson" id="dealPerson" 비활성화="true" type="text" style=" width:95.5%;height: 24px;" 값="${user.fullName}"/></td> <br><td width="170">《内部发货单》号码</td> <br></tr> <br><tr> <br><td height="30px;">承运单位</td> <br><td><input name="sendUnit" id="sendUnit" type="text" style=" width:96%;height: 24px;"/></td> <br><td>运单号码</td> <br><td><input name="postId" id="postId" type="text" style=" width:95.5%;height: 24px;"/></td> <br><td><input name="innerSendOrderNum" id="innerSendOrderNum" type="text" style=" width:96.5%;height: 24px;"/></td> <br></tr> <br></table> <br><table width="752" border="1px;" align="center" style="border-collapse:collapse;border:1px solid black;margin:auto;" id="t4"> <br><tr> <br><td width="219" rowspan="4">申请开票事项</td> <br><td width="70" height="30px;" >客户(收票)全称</td> <br><td colspan="4"><input name="custChecks" id="custChecks" type="text" style=" width:98.5%;height: 24px;"/></td> <br></tr> <br><tr> <br><td height="30px;">单位地址</td> <br><td colspan="4"><input name="companyAddr" id="companyAddr" type="text" style=" width:98.5%;height: 24px;"/></td> <br></tr> <br><tr> <br><td height="30px;">单位税号</td> <br><td width="53" colspan="2"><input name="cardNo" id="cardNo" type="text" style=" width:95.5%;height: 24px;"/></td> <br><td width="76">电话</td> <br><td width="152"><input name="phone" id="phone" type="text" style=" width:96.5%;height: 24px;"/></td> <br></tr> <br><tr> <br><td height="30px;">开户银行</td> <br><td colspan="2"><input name="acctBank" id="acctBank" type="text" style=" width:95.5%;height: 24px;"/></td> <br><td>账号</td> <br><td><input name="acctNum" id="acctNum" type="text" style=" width:96.5%;height: 24px;"/></td> <br></tr> <br><tr> <br><td rowspan="4">发票开具领用情况</td> <br><td height="30px;">开票时间</td> <br><td colspan="2"><input name="invoiceTime" id="invoiceTime" type="text" class="date textInput readonly " style=" width:83%;height: 24px;" readonly="readonly"/> <br><a class="inputDateButton" href="javascript:;">选择</a></td> <br><td>发票号码</td> <br><td><input name="invoiceNum" id="invoiceNum" type="text" style=" width:96.5%;height: 24px;"/></td> <br></tr> <br><tr> <br><td rowspan="3">开票款额</td> <br><td height="30px;" width="55px;">金额</td> <br><td width="75px;"><input name="invoiceMoney" id="invoiceMoney" type="text" style=" width:92%;height: 24px;"/></td> <br><td>领票人</td> <br><td><input name="invoiceTaker" id="invoiceTaker" type="text" style=" width:96.5%;height: 24px;"/></td> <br></tr> <br><tr> <br><td height="30px;">税额</td> <br><td><input name="invoiceTax" id="invoiceTax" type="text" style=" width:92%;height: 24px;"/></td> <br><td>领票时间</td> <br><td> <br><input name="invoiceTakeTime" id="invoiceTakeTime" type="text" class="date textInput readonly " style=" width:86%;height: 24px;" readonly="readonly"/> <br><a class="inputDateButton" href="javascript:;">选择</a> <br></td> <br></tr> <br><tr> <br><td height="30px;">价税合计</td> <br><td> </td> <br><td>承寄商/单号</td> <br><td><input name="invoiceOddNum" id="invoiceOddNum" type="text" style=" width:96.5%;height: 24px;"/></td> <br></tr> <br></table> <br><table width="752" border="1px;" align="center" style="border-collapse:collapse;border:1px solid black;margin:auto;" id="t5"> <br><tr> <br><td width="73" height="30px;">비고</td> <br><td width="663"><input name="desc" id="desc" type= " text" style=" width:99.1%;height: 24px;"/></td> <br></tr> <br></table><br/> <br>< ; p style="left: 660px;color: red">지침: ① '총 요금(위안)' 셀을 클릭하여 행을 추가하세요</p><br/><br/> ><p style="left: 292px;color: red">② 행을 삭제하려면 '실질 총액(위안)'을 클릭하세요. <br><br>< p></p> <br></p> ;/p> <br></div> <br><ul><li><div class="buttonActive"<div 클래스 ="buttonContent"><button type="submit">제출</ 버튼></div></div></li> <br><li><div class="button "><div class="buttonContent"><button type="button" class="close">취소</button></div></div></li> <br></ul> <br></div> <br></body> <br><br> </div>