| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262 |
- <%@ 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 type="text/javascript">
- <c:set var="actual" value="${empty param.actual?entity.actual:param.actual }"/>
- var actual='${actual}';
- $(function(){
- if(actual==1) {
- $("#officeId").removeAttr("datatype");
- $("#officeRed").hide();
- $("#finalGroupId").removeAttr("datatype");
- $("#finalGroupRed").hide();
- }
- })
- //编写自定义JS代码
- </script>
- </head>
- <body>
- <c:set var="type">${empty param.type?entity.type:param.type }</c:set>
- <t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="budgetTempSheetController.do?doAdd" >
- <input id="id" name="id" type="hidden" value="${entity.id }"/>
- <input id="actual" name="actual" type="hidden" value="${actual}"/>
- <input id="type" name="type" type="hidden" value="${type}"/>
- <table style="width: 600px;" cellpadding="0" cellspacing="1" class="formtable">
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 预算年份:
- </label>
- </td>
- <td class="value">
- <input id="periodYear" name="periodYear" type="text" style="width: 150px" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy'})" datatype="*"
- value="${entity.periodYear}"/>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">预算年份</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 样表名称:
- </label>
- </td>
- <td class="value">
- <input id="name" name="name" type="text" style="width: 150px" class="inputxt" datatype="*" value="${entity.name}" />
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">样表名称</label>
- </td>
- </tr>
- <c:if test="${actual==1}">
- <c:if test="${type=='normal_special'}">
- <tr>
- <td align="right">
- <label class="Validform_label">
- 专项预算类型:
- </label>
- </td>
- <td class="value">
- <t:dictSelect field="budgetSpecialType" type="list" typeGroupCode="budget_special_type" defaultVal="${entity.budgetSpecialType}" hasLabel="false" title="预算专项类型" ></t:dictSelect>
- </td>
- </tr>
- </c:if>
- </c:if>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- ${actual==1?'能否回写':'预算调整回写'}:
- </label>
- </td>
- <td class="value">
- <t:dictSelect field="writeBack" type="list"
- typeGroupCode="shifou_01" defaultVal="${entity.writeBack}" hasLabel="false" title="能否回写" datatype="*"></t:dictSelect>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">能否回写</label>
- </td>
- </tr>
- <c:if test="${actual==1}">
- <c:if test="${type=='actual_sta'}">
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 执行表统计类型:
- </label>
- </td>
- <td class="value">
- <t:dictSelect field="actualStaKind" type="list" readonly="${empty entity.id?'':'readonly'}"
- typeGroupCode="budget_actual_sta_kind" defaultVal="${entity.actualStaKind}" hasLabel="false" title="执行表统计类型" datatype="*"></t:dictSelect>
- </td>
- </tr>
- </c:if>
- </c:if>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 是否总表
- </label>
- </td>
- <td class="value">
- <t:dictSelect field="isTotal" type="list"
- typeGroupCode="shifou_01" defaultVal="${entity.isTotal}" hasLabel="false" title="能否回写" datatype="*"></t:dictSelect>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">是否总表</label>
- </td>
- </tr>
- <c:if test="${actual==0}"><%--实际表没有--%>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 编制方向:
- </label>
- </td>
- <td class="value">
- <t:dictSelect field="direction" type="list"
- typeGroupCode="budget_tempsheet_direction" defaultVal="${entity.direction}" hasLabel="false" title="编制方向" datatype="*"></t:dictSelect>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">编制方向</label>
- </td>
- </tr>
- </c:if>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <font color="red" id="officeRed" class="requiredIcon">*</font>
- 归口部门:
- </label>
- </td>
- <td class="value">
- <input id="officeId" name="officeId" type="hidden" style="width: 150px" class="inputxt" datatype="*" nullmsg="请选择归口部门" value="${entity.officeId}" />
- <input id="officeName" name="officeName" type="text" style="width: 150px" class="inputxt" readonly="readonly" value="${entity.officeName}" />
- <c:if test="${(empty param.load && !in_process)|| (in_process&& param.flag==1)}">
- <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openOffice()">选择</a>
- </c:if>
- <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">
- <input id="jointGroupId" name="jointGroupId" type="hidden" style="width: 150px" class="inputxt" nullmsg="请选择会审组" value="${entity.jointGroupId}" />
- <input id="jointGroupName" name="jointGroupName" type="text" style="width: 150px" class="inputxt" readonly="readonly" value="${entity.jointGroupName}" />
- <c:if test="${(empty param.load && !in_process)|| (in_process&& param.flag==1)}">
- <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openJointGroup()">选择</a>
- <a href="javascript:void(0);" class="easyui-linkbutton" plain="true" icon="icon-clean" id="departRedo" onclick="clearJointGroup()">清空</a>
- </c:if>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">会审组</label>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <font color="red" id="finalGroupRed" class="requiredIcon">*</font>
- 终审组:
- </label>
- </td>
- <td class="value">
- <input id="finalGroupId" name="finalGroupId" type="hidden" style="width: 150px" class="inputxt" datatype="*" nullmsg="请选择终审组" value="${entity.finalGroupId}" />
- <input id="finalGroupName" name="finalGroupName" type="text" style="width: 150px" class="inputxt" readonly="readonly" value="${entity.finalGroupName}" />
- <c:if test="${(empty param.load && !in_process)|| (in_process&& param.flag==1)}">
- <a href="javascript:void(0)" class="easyui-linkbutton" plain="true" icon="icon-select" onclick="openFinalGroup()">选择</a>
- </c:if>
- <span class="Validform_checktip"></span>
- <label class="Validform_label" style="display: none;">终审组</label>
- </td>
- </tr>
- <c:if test="${param.type=='orders' || entity.type=='orders'}">
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 物料类别:
- </label>
- </td>
- <td class="value">
- <t:dictSelect field="ordersKind" type="list"
- typeGroupCode="budget_orders_kind" defaultVal="${entity.ordersKind}" hasLabel="false" title="物料类别" datatype="*"></t:dictSelect>
- </td>
- </tr>
- <tr>
- <td align="right">
- <label class="Validform_label">
- <span color="red" class="requiredIcon">*</span>
- 参考年份:
- </label>
- </td>
- <td class="value">
- <input id="refYear" name="refYear" type="text" style="width: 150px" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy'})" datatype="*"
- value="${entity.refYear}"/>
- </td>
- </tr>
- </c:if>
- </table>
- </t:formvalid>
- </body>
- <script src = "webpage/cn/com/lzt/budget/tempsheet/budgetTempSheet.js"></script>
- <script src="webpage/cn/com/lzt/useractiviti/select_user_tools.js"></script>
- <script>
- function openOffice(){
- var url ='budgetOfficeController.do?select';
- _openDialog(url,'归口部门',function(iframe){
- var selectedRows = iframe.getSelectedRow();
- if(selectedRows.length==0){
- iframe.tip('请选择归口部门');
- return false;
- }
- var one = selectedRows[0];
- var id = one.id;
- var name = one.name;
- $('#officeId').val(id);
- $('#officeName').val(name);
- },'800px','600px');
- }
- function openJointGroup(){
- openVerifyGroup('joint');
- }
- function openFinalGroup() {
- openVerifyGroup('final');
- }
- function openVerifyGroup(groupType){
- var title ='请选择'+(groupType=='joint'?'会审组':'终审组');
- var url ='budgetVerifyGroupController.do?select&groupType='+groupType;
- _openDialog(url,title,function(iframe){
- var selectedRows = iframe.getSelectedRow();
- if(selectedRows.length==0){
- iframe.tip(title);
- return false;
- }
- var one = selectedRows[0];
- var id = one.id;
- var name = one.name;
- if(groupType=='joint'){
- $('#jointGroupId').val(id);
- $('#jointGroupName').val(name);
- }else{
- $('#finalGroupId').val(id);
- $('#finalGroupName').val(name);
- }
- },'800px','600px');
- }
-
- function clearJointGroup() {
- $('#jointGroupId').val('');
- $('#jointGroupName').val('');
- }
- </script>
|