| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- <%@ 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>
- <style>
- .ui-button {
- display: inline-block;
- padding: 2px 2px;
- margin-bottom: 0;
- font-size: 8px;
- font-weight: normal;
- line-height: 1.42857143;
- text-align: center;
- white-space: nowrap;
- vertical-align: middle;
- -ms-touch-action: manipulation;
- touch-action: manipulation;
- cursor: pointer;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- background-image: none;
- border: 1px solid transparent;
- border-radius: 4px;
- }
- </style>
- <t:base type="jquery,easyui,tools,DatePicker,autocomplete"></t:base>
- <script src="webpage/cn/com/lzt/useractiviti/select_user_tools.js"></script>
- <script src="${webBasePath}/webpage/cn/com/lzt/useractiviti/detail_tools.js"></script>
- <script src="webpage/cn/com/lzt/budget/data/js/budget_tools.js?v=1" type="text/javascript"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $('#tt').tabs({
- onSelect:function(title){
- changeTabHeight();
- }
- });
- $(".tabs-wrap").css('width','100%');
- $.Datatype.double=/^(-?\d*\.)?\d+$/;
- });
- function changeTabHeight(){
- var height =window.top.document.body.offsetHeight;
- height = height -181.3 - 36 - 100 -4;//去掉底部输入框table高度、title高度、弹出框小于后台页面高度、文本格式高度
- $('#tt .panel-body').css('width','auto').css('height',height+'px');
- }
- function openSelectPeriodDetail(){
- var now = new Date();
- selectPeriodDetail(now.getFullYear(),function(obj){
- $('#periodDetailId').val(obj.periodDetailId);
- $('#periodDetailName').val(obj.periodDetailName);
- });
- }
- function beforeSubmit(){
- var entityNameArray = new Array();
- var entityIdArray = new Array();
- $('#add_budgetAdjustDetail_table input[name$="entityName"]').each(function(){
- entityNameArray.push($(this).val());
- });
- $('#add_budgetAdjustDetail_table input[name$="entityId"]').each(function(){
- entityIdArray.push($(this).val());
- });
- $('#entityIds').val(entityIdArray.join(','));
- $('#entityNames').val(entityNameArray.join(','));
- var err = false;
- $('#add_budgetAdjustDetail_table input[name$="measureValue"]').each(function(){
- var t=$(this);
- if(!t.val()){
- alerLayerTip('无配置预算');
- err=true;
- }
- });
- if(err){
- return false;
- }
- return true;
- }
- </script>
- </head>
- <body style="overflow-x: hidden;">
- <%--处理回调--%>
- <c:set var="_callback">
- <c:choose>
- <c:when test="${in_process}">@Overridecallback</c:when>
- <c:otherwise>callback</c:otherwise>
- </c:choose>
- </c:set>
- <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" action="budgetAdjustController.do?doAdd"
- callback="${_callback}" tipSweep="true" beforeSubmit="beforeSubmit">
- <input id="id" name="id" type="hidden" value="${entity.id }"/>
- <input id="entityIds" name="entityIds" type="hidden" value="${entity.entityIds }"/>
- <input id="entityNames" name="entityNames" type="hidden" value="${entity.entityNames }"/>
- <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
- <t:tab href="budgetAdjustController.do?budgetAdjustDetailList&id=${entity.id}" icon="icon-search" title="预算调整详情" id="budgetAdjustDetail"></t:tab>
- </t:tabs>
- <table cellpadding="0" cellspacing="1" class="formtable">
- <input id="totalMoney" name="totalMoney" type="hidden" />
- <tr>
- <td align="right">
- <label class="Validform_label">预算周期:</label>
- </td>
- <td class="value">
- <input id="periodDetailId" name="periodDetailId" type="hidden" datatype="*" nullmsg="请选择预算周期" value="${empty entity.periodDetailId?currentYearPeriodDetail.id:entity.periodDetailId}"/>
- <input id="periodDetailName" name="periodDetailName" type="text" style="width: 150px" class="inputxt" readonly="readonly" onclick="openSelectPeriodDetail()"
- value="${empty entity.periodDetailName?currentYearPeriodDetail.name: entity.periodDetailName}"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">预算周期</label>
- </td>
- </tr>
-
- </table>
- <table style="width: 100%">
- <tr>
- <td style="text-align:center;">
- <%@include file="/webpage/cn/com/lzt/useractiviti/view_submit_buttons.jsp"%>
- </td>
- </tr>
- </table>
- </t:formvalid>
- <!-- 添加 附表明细 模版 -->
- <table style="display:none">
- <tbody id="add_budgetAdjustDetail_table_template">
- <tr>
- <td align="center"><div style="width: 25px;" name="xh"></div></td>
- <td align="center"><input style="width:20px;" type="checkbox" name="ck"/></td>
- <td align="left">
- <input name="budgetAdjustDetailList[#index#].entityId" type="hidden" datatype="*" />
- <input name="budgetAdjustDetailList[#index#].entityName" maxlength="255" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
- <label class="Validform_label" style="display: none;">预算主体</label>
- </td>
- <td align="left">
- <input name="budgetAdjustDetailList[#index#].measureId" type="hidden" datatype="*" />
- <input name="budgetAdjustDetailList[#index#].measureName" maxlength="255" type="text" class="inputxt" style="width:120px;" ignore="ignore" />
- <label class="Validform_label" style="display: none;">预算指标</label>
- </td>
- <td align="left">
- <input name="budgetAdjustDetailList[#index#].measureValue" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" readonly="readonly"/>
- <label class="Validform_label" style="display: none;">已配置预算</label>
- </td>
- <td align="left">
- <input name="budgetAdjustDetailList[#index#].suggestMoney" maxlength="32" type="text" class="inputxt" style="width:120px;" datatype="double" />
- <label class="Validform_label" style="display: none;">建议增加金额</label>
- </td>
- <td align="left">
- <input name="budgetAdjustDetailList[#index#].afterSuggestValue" maxlength="32" type="text" class="inputxt" style="width:120px;" ignore="ignore" readonly="readonly" />
- <label class="Validform_label" style="display: none;">调整后预算</label>
- </td>
- <td align="left">
- <input name="budgetAdjustDetailList[#index#].reason" maxlength="500" type="text" class="inputxt" style="width:500px;" datatype="*" />
- <label class="Validform_label" style="display: none;">调整理由</label>
- </td>
- </tr>
- </tbody>
- </table>
- </body>
- <script src = "webpage/cn/com/lzt/budget/adjust/budgetAdjust.js"></script>
-
|