123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- <%--
- time:2019-04-17 13:26:47
- desc:edit the 接待管理
- --%>
- <%@page language="java" pageEncoding="UTF-8"%>
- <%@include file="/commons/include/html_doctype.html"%>
- <html>
- <head>
- <title>编辑 接待管理</title>
- <%@include file="/commons/include/form.jsp" %>
- <script type="text/javascript" src="${ctx}/js/hotent/CustomValid.js"></script>
- <script type="text/javascript" charset="utf-8" src="${ctx}/js/hotent/platform/system/SysDialog.js"></script>
- <script type="text/javascript" src="${ctx}/js/hotent/platform/system/SysPlanScript.js"></script>
- <script type="text/javascript">
- $(function() {
- $("a.save").click(function() {
- $("#receptionForm").attr("action","save.ht");
- $("#saveData").val(1);
- submitForm();
- });
- });
-
- //提交表单
- function submitForm(){
- var options={};
- if(showResponse){
- options.success=showResponse;
- }
- var frm=$('#receptionForm').form();
- frm.ajaxForm(options);
- if(frm.valid()){
- frm.submit();
- }
- }
-
- function showResponse(responseText) {
-
- var obj = new com.hotent.form.ResultMessage(responseText);
- if(!obj.isSuccess()){
- $.ligerDialog.err("提示信息"," 接待管理保存失败!",obj.getMessage());
- return;
- }
- $.ligerDialog.confirm(obj.getMessage()+",是否继续操作","提示信息", function(rtn) {
- if(rtn){
- window.location.href = window.location.href;
- }else{
- window.location.href = "${ctx}/platform/reception/reception/list.ht";
- }
- });
- }
- //选择用户
- function chooseUser() {
- UserDialog({isSingle:true,selectUsers:"",callback:function(userIds, fullnames){
- $('#FPerson').attr("value",fullnames);
- }});
- };
- // 弹出组织框
- function showOrgDialog(){
- OrgDialog({callback:dlgOrgCallBack,ids:$("#receiverOrgId").val(),names:$("#receiverOrgName").val(),isSingle:false});
- };
-
- // 组织框返回数据
- function dlgOrgCallBack(orgIds, orgNames)
- {
- $("#FDeptName").val(orgNames);
- $("#receiverOrgId").val(orgIds);
- }
-
- </script>
- </head>
- <body>
- <div class="panel">
- <div class="panel-top">
- <div class="tbar-title">
- <c:choose>
- <c:when test="${reception.id !=null}">
- <span class="tbar-label"><span></span>编辑接待管理</span>
- </c:when>
- <c:otherwise>
- <span class="tbar-label"><span></span>添加接待管理</span>
- </c:otherwise>
- </c:choose>
- </div>
- <div class="panel-toolbar">
- <div class="toolBar">
- <div class="group"><a class="link save" id="dataFormSave" href="javascript:;"><span></span>保存</a></div>
- <div class="l-bar-separator"></div>
- <div class="group"><a class="link back" href="list.ht"><span></span>返回</a></div>
- </div>
- </div>
- </div>
- <div class="panel-body">
- <form id="receptionForm" method="post" action="save.ht">
- <table class="table-detail" cellpadding="0" cellspacing="0" border="0" type="main">
- <tr>
- <th width="15%">接待名称: </th>
- <td><input type="text" id="FName" name="FName" value="${reception.FName}" class="inputText" style="width: 250px;" validate="{required:false,maxlength:50}" /></td>
- <th width="15%">接待事由: </th>
- <td>
- <select id="FCause" name="FCause" class="inputText" style="width: 250px;" validate="{required:true}">
- <option >---------------请选择------------------</option>
- <option value="0" <c:if test="${reception.FCause ==0}"> selected="selected"</c:if> >参观交流</option>
- <option value="1" <c:if test="${reception.FCause ==1}"> selected="selected"</c:if> >外宾接待</option>
- <option value="2" <c:if test="${reception.FCause ==2}"> selected="selected"</c:if> >领导视察</option>
- <option value="3" <c:if test="${reception.FCause ==3}"> selected="selected"</c:if> >其他</option>
- </select>
-
- </td>
- </tr>
- <tr>
- <th width="15%">接待对象: </th>
- <td><input type="text" id="FReceptionist" name="FReceptionist" value="${reception.FReceptionist}" class="inputText" style="width: 250px;" validate="{required:false,maxlength:100}" /></td>
- <th width="15%">接待日期: </th>
- <td><input type="text" id="FTime" name="FTime" value="<fmt:formatDate value='${reception.FTime}' pattern='yyyy-MM-dd'/>" class="inputText date" style="width: 246px;" validate="{date:true}" /></td>
- </tr>
- <tr>
- <th width="15%">接待部门: </th>
- <td>
- <input id="FDeptName" name="FDeptName" size="34" readonly="readonly" value="${reception.FDeptName}" />
- <a href="javascript:;" onclick="showOrgDialog()" class="link get">选择</a>
- <input type="hidden" id="receiverOrgId" name="receiverOrgId" value="" class="inputText" />
- </td>
- <th width="15%">负责人: </th>
- <td>
- <input readonly type="text" id="FPerson" name="FPerson" value="${reception.FPerson}" class="inputText" style="width: 250px;" validate="{required:true}" />
- <a class="link add" onclick="chooseUser(this);" ><span></span>选择</a>
- </td>
-
- </tr>
- <tr>
- <th width="15%">用车数量: </th>
- <td><input type="text" id="FCarNumber" name="FCarNumber" value="${reception.FCarNumber}" class="inputText" style="width: 250px;" validate="{required:false,number:true,maxlength:16}" /></td>
- <th width="15%">接待费用: </th>
- <td><input type="text" id="FCost" name="FCost" value="${reception.FCost}" class="inputText" style="width: 250px;" validate="{required:false,number:true,maxDecimalLen:3,maxIntLen:16}" /></td>
- </tr>
- <tr>
- <th width="15%">备注: </th>
- <td colspan="3"><textarea id="FRemarks" name="FRemarks" validate="{required:false}" style="width: 600px; height:100px;" >${reception.FRemarks}</textarea></td>
-
- </tr>
- </table>
- <input type="hidden" name="id" value="${reception.id}" />
- <input type="hidden" name="saveData" id="saveData" />
- <input type="hidden" name="executeType" value="start" />
- </form>
-
- </div>
- </div>
- </body>
- </html>
|