| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <title>加班预算</title>
- <t:base type="jquery,easyui,tools,DatePicker"></t:base>
- <script src="webpage/cn/com/lzt/useractiviti/select_user_tools.js"></script>
- <script type="text/javascript">
- //编写自定义JS代码
- </script>
- </head>
- <body>
- <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="tBOvertimeBudgetController.do?doAdd" tiptype="1" >
- <table cellpadding="0" cellspacing="1" class="formtable">
- <tr bgcolor="#E6E6E6">
- <td align="left" bgcolor="#EEEEEE">类型</td>
- <c:forEach begin="1" end="12" var="month">
- <td align="left" bgcolor="#EEEEEE" >${month}月预算(元)</td>
- </c:forEach>
- </tr>
- <c:forEach items="${typeList}" var="type" varStatus="typeStatus">
- <c:set var="entity" value="${yearDataMap[type.typecode]}"/>
- <tr>
- <td>
- <input type="hidden" name="entityList[${typeStatus.index}].id" value="${entity.id}"/>
- <input type="hidden" name="entityList[${typeStatus.index}].budgetType" value="${type.typecode}"/>
- ${type.typename}
- </td>
- <c:forEach begin="1" end="12" var="monthNum">
- <td class="value">
- <c:set var="column" value="month${monthNum}"/>
- <input name="entityList[${typeStatus.index}].month${monthNum}" type="text" style="width: 85px; " class="inputxt"
- datatype="d,fix2" value="${empty entity[column]?"0.00":entity[column]}" nullmsg="请填写${monthNum}月${type.typename}"/>
- </td>
- </c:forEach>
- </tr>
- </c:forEach>
- </table>
- <table cellpadding="0" cellspacing="1" class="formtable">
- <tr>
- <td align="right">
- <label class="Validform_label">
- 所属部门:
- </label>
- </td>
- <td class="value" style="width:300px;">
- <input id="depName" name="entityList[0].depName" type="text" readonly="readonly" class="inputxt"
- value="${firstEntity.depName}"/>
- <input id="departId" name="entityList[0].departId" type="hidden" value="${firstEntity.departId}" datatype="*" nullmsg="请选择所属部门"/>
- <c:if test="${empty param.load}">
- <a href="#" class="easyui-linkbutton" plain="true" icon="icon-select" id="departSearch"
- onclick="openDepartmentSelect()">选择</a>
- </c:if>
- </td>
- <td align="right">
- <label class="Validform_label">
- 加班年度:
- </label>
- </td>
- <td class="value">
- <input id="years" name="entityList[0].years" type="text" style="width: 150px" datatype="*" ignore="checked" readonly="readonly"
- value="${firstEntity == null? year:firstEntity.years}"
- <c:if test="${empty firstEntity.years}">onClick="WdatePicker({dateFmt:'yyyy'})" class="Wdate"</c:if>
- />
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">加班年度</label>
- </td>
- </tr>
- </table>
- </t:formvalid>
- </body>
- <script src = "webpage/cn/com/lzt/overtimebudget/tBOvertimeBudget.js"></script>
- <script>
- function openDepartmentSelect() {
- var departId = $("#departId").val();
- $.dialog({
- content: 'url:dialogDealController.do?projectDepartTableAll&ids='+departId ,
- zIndex: getzIndex(),
- title: '项目名称列表',
- lock: true,
- width: '600px',
- height: '400px',
- opacity: 0.4,
- button: [
- {
- name: '确定', callback: function () {
- var iframe = this.iframe.contentWindow;
- if (iframe.getReason().length > 0) {
- var strData = eval(iframe.getReason());
- for (var key in strData[0]) {
- if (key == "strPId") {
- $("#departId").val(strData[0][key]);
- } else if (key == "strDepartName") {
- $("#depName").val(strData[0][key]);
- }
- }
- }
- }, focus: true
- },
- {
- name: '取消', callback: function () {
- $('#depName').val('');
- $('#departId').val('');
- }
- }
- ]
- }).zindex();
- }
- function callbackClean() {
- $('#depName').val('');
- $('#departId').val('');
- }
- </script>
|