123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <%@page pageEncoding="UTF-8" import="com.hotent.platform.model.system.SysUser"%>
- <%@include file="/commons/include/html_doctype.html"%>
- <html>
- <head>
- <%@include file="/commons/include/form.jsp" %>
- <title>选择班次定义</title>
- <script type="text/javascript">
- /*KILLDIALOG*/
- var dialog = frameElement.dialog; //调用页面的dialog对象(ligerui对象)
- $(function(){
- //布局
- $("#listLayout").ligerLayout({
- topHeight :40,
- bottomHeight :40,
- height: '90%',
- allowBottomResize:false,
- minLeftWidth:200,
- allowLeftResize:false
- });
- });
-
- function selectData(){
- var params = dialog.get('params');
- var ids =[],
- names =[],
- codes = [],
- shiftTimes =[],
- chIds = $('#listFrame').contents().find(":input[name='data'][checked]");
-
- $.each(chIds,function(i,ch){
- var aryTmp=$(ch).val().split("#");
- ids.push(aryTmp[0]);
- names.push(aryTmp[1]);
- codes.push(aryTmp[2]);
- shiftTimes.push(aryTmp[3]);
- });
-
-
- var dateType = $(":input[name='dateType'][checked]").val(),
- shiftId = ids.join(","),
- title = names.join(","),holidayName ="";
- if(dateType == 1){
-
- if(shiftId== ""){
- alert("请选择班次!");
- return
- }
- }else if(dateType == 3){
- holidayName = $('#holidayName').val();
- }
-
-
- var obj={start:params.start,
- dateType:dateType,
- shiftId :shiftId,
- title:title,
- holidayName:holidayName
- };
- dialog.get('sucCall')(obj);
- dialog.close();
- }
-
- function clearData(){
- var obj={id:'',name:''};
- dialog.get('sucCall')(obj);
- dialog.close();
- }
- </script>
- <style type="text/css">
- div.bottom{text-align: center;padding-top: 10px;}
- html,body{width:100%;height:100%;margin: 0 0 0 0;padding: 0 0 0 0 ;overflow: hidden;}
- </style>
- </head>
- <body>
- <div position="top">
- 选择日期类型:
- <label><input type="radio" id="dateType1" name="dateType" value="1" checked="checked">工作日</label>
- <label><input type="radio" id="dateType2" name="dateType" value="2">休息日</label>
- <label><input type="radio" id="dateType3" name="dateType" value="3">法定假日</label>
- <select id="holidayName">
- <option value="">-请选择-</option>
- <c:forEach items="${holidayNameSet}" var="holidayName">
- <option value="${holidayName}">${holidayName}</option>
- </c:forEach>
- </select>
- </div>
- <div id="listLayout" style="height:100%;">
- <div position="center">
- <iframe id="listFrame" name="listFrame" height="95%" width="100%" frameborder="0"
- src="${ctx}/platform/ats/atsShiftInfo/selector.ht?isSingle=${isSingle}"
- ></iframe>
- </div>
- </div>
- <div position="bottom" class="bottom" style="margin-top:10px;">
- <a href="javascript:;" class="button" onclick="selectData()" style="margin-right:10px;" ><span class="icon ok"></span><span >选择</span></a>
-
- <a href="javascript:;" class="button" style="margin-left:10px;" onclick="dialog.close()"><span class="icon cancel"></span><span >取消</span></a>
- </div>
- </body>
- </html>
|