| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- <%@ 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="${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%');
- if($.Datatype) {
- $.Datatype.fix2 = function (val, obj, frm) {
- $(obj).val(parseFloat(val).toFixed(2));
- return true;
- }
- }
- $('input[name$="measureName"]').live('click',function () {
- var t=$(this);
- var index =getIndex(t.attr('name'));
- selectMeasure4finalcewriteback(function(selectedRows){
- var one = selectedRows[0];
- var id = one.id;
- var name = one.name;
- setValue(index,"measureId",id);
- setValue(index,"measureName",name);
- });
- });
- $('input[name$="money"]').live('change',function () {
- changeTotalMoney();
- });
- });
- function changeTotalMoney(){
- var totalMoney = 0;
- $('input[name$="money"]').each(function(){
- var money = $(this).val();
- if(money && !isNaN(money)) {
- totalMoney += parseFloat(money);
- }
- });
- totalMoney=totalMoney.toFixed(2);
- $('#totalMoney').val(totalMoney);
- }
- 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');
- }
- </script>
- </head>
- <body style="overflow-x: hidden;">
- <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" tiptype="1" tipSweep="true"
- action="budgetFinanceWriteBackController.do?doAdd" >
- <input id="id" name="id" type="hidden" value="${entity.id }"/>
- <t:tabs id="tt" iframe="false" tabPosition="top" fit="false">
- <t:tab href="budgetFinanceWriteBackController.do?budgetFinanceWriteBackDetailList&id=${entity.id}" icon="icon-search" title="财务回写详情" id="budgetFinanceWriteBackDetail"></t:tab>
- </t:tabs>
- <table cellpadding="0" cellspacing="1" class="formtable" style="width:928px;">
- <tr>
- <td align="right">
- <label class="Validform_label">计入月度:</label>
- </td>
- <td class="value">
- <input id="budgetMonth" name="budgetMonth" type="text" style="width: 150px" class="inputxt" datatype="*" value="${entity.budgetMonth}"
- readonly="readonly" onClick="WdatePicker({dateFmt:'yyyy-MM'})"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">计入月度</label>
- </td>
- <td align="right">
- <label class="Validform_label">总金额:</label>
- </td>
- <td class="value">
- <input id="totalMoney" name="totalMoney" type="text" style="width: 150px" class="inputxt" readonly="readonly" value="${entity.totalMoney}"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">总金额</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">附件:</label>
- </td>
- <td class="value">
- <t:webUploader auto="true" busiId="${entity.id}" readOnly="${param.load=='detail' || in_process}"
- busiTable="t_b_budget_finance_write_back"
- bizType="attachment"
- extensions="png,jpg,jpeg,bmp"
- name="attachment" duplicate="true"
- nullMsg="附件不可为空"></t:webUploader>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">附件</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">备注:</label>
- </td>
- <td class="value">
- <textarea id="remark" name="remark" style="width: 300px;height:100px;" class="inputxt">${entity.remark}</textarea>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">备注</label>
- </td>
- </tr>
-
- </table>
- </t:formvalid>
- <!-- 添加 附表明细 模版 -->
- <table style="display:none">
- <tbody id="add_budgetFinanceWriteBackDetail_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="budgetFinanceWriteBackDetailList[#index#].entityId" type="hidden" datatype="*"/>
- <input name="budgetFinanceWriteBackDetailList[#index#].entityName" type="text" class="inputxt" style="width:120px;" />
- <label class="Validform_label" style="display: none;">预算主体</label>
- </td>
- <td align="left">
- <input name="budgetFinanceWriteBackDetailList[#index#].measureId" type="hidden" />
- <input name="budgetFinanceWriteBackDetailList[#index#].measureName" type="text" class="inputxt" style="width:120px;" datatype="*"/>
- <label class="Validform_label" style="display: none;">预算指标</label>
- </td>
- <td align="left">
- <input name="budgetFinanceWriteBackDetailList[#index#].money" maxlength="16" type="text" class="inputxt" style="width:120px;" datatype="d,fix2" />
- <label class="Validform_label" style="display: none;">金额</label>
- </td>
- <td align="left">
- <input name="budgetFinanceWriteBackDetailList[#index#].remark" maxlength="500" type="text" class="inputxt" style="width:500px;" />
- <label class="Validform_label" style="display: none;">明细</label>
- </td>
- </tr>
- </tbody>
- </table>
- </body>
- <script src = "webpage/cn/com/lzt/budget/financewriteback/budgetFinanceWriteBack.js"></script>
-
|