|
@@ -44,6 +44,58 @@
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ $("#${id}Button, #${id}Name").click(function(){
|
|
|
+ // 是否限制选择,如果限制,设置为disabled
|
|
|
+ if ($("#${id}Button").hasClass("disabled")){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ // 正常打开
|
|
|
+
|
|
|
+/* jp.openUserSelectDialog(${isMultiSelected? true:false},function(ids, names){
|
|
|
+ $("#${id}Id").val(ids.replace(/u_/ig,""));
|
|
|
+ $("#${id}Name").val(names);
|
|
|
+ $("#${id}Name").focus();
|
|
|
+ })*/
|
|
|
+ top.layer.open({
|
|
|
+ type: 2,
|
|
|
+ area: ['900px', '560px'],
|
|
|
+ title:"选择用户",
|
|
|
+ auto:true,
|
|
|
+ maxmin: true, //开启最大化最小化按钮
|
|
|
+ content: ctx+"/sys/user/userSelect?office=e223b1c8472843bbbbc94c9b72c29737",
|
|
|
+ btn: ['确定', '关闭'],
|
|
|
+ yes: function(index, layero){
|
|
|
+ var ids = layero.find("iframe")[0].contentWindow.getIdSelections();
|
|
|
+ var names = layero.find("iframe")[0].contentWindow.getNameSelections();
|
|
|
+ var loginNames = layero.find("iframe")[0].contentWindow.getLoginNameSelections();
|
|
|
+ if(ids.length ==0){
|
|
|
+ jp.warning("请选择至少一个用户!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ // 执行保存
|
|
|
+ yesFuc(ids.join(","), names.join(","), loginNames.join(","));
|
|
|
+
|
|
|
+ top.layer.close(index);
|
|
|
+ },
|
|
|
+ cancel: function(index){
|
|
|
+ //取消默认为空,如需要请自行扩展。
|
|
|
+ top.layer.close(index);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ $("#${id}DelButton").click(function(){
|
|
|
+ // 是否限制选择,如果限制,设置为disabled
|
|
|
+ if ($("#${id}Button").hasClass("disabled")){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ // 清除
|
|
|
+ $("#${id}Id").val("");
|
|
|
+ $("#${id}Name").val("");
|
|
|
+ $("#${id}Name").focus();
|
|
|
+
|
|
|
+ });
|
|
|
});
|
|
|
</script>
|
|
|
</head>
|
|
@@ -80,14 +132,26 @@
|
|
|
<td class="width-35">
|
|
|
<sys:userselect id="tuser" name="tuser.id" value="${construction.tuser.id}" labelName="tuser.name" labelValue="${construction.tuser.name}"
|
|
|
cssClass="form-control required"/>
|
|
|
+ <%--<input id="${id}Id" name="${name}" class="${cssClass} form-control" type="hidden" value="${value}"/>
|
|
|
+ <div class="input-group" style="width:100%">
|
|
|
+ <input id="${id}Name" name="${labelName}" ${allowInput?'':'readonly="readonly"'} type="text" value="${labelValue}" data-msg-required="${dataMsgRequired}"
|
|
|
+ class="${cssClass}" style="${cssStyle}"/>
|
|
|
+ <span class="input-group-btn">
|
|
|
+ <button type="button" id="${id}Button" class="btn <c:if test="${fn:contains(cssClass, 'input-sm')}"> btn-sm </c:if><c:if test="${fn:contains(cssClass, 'input-lg')}"> btn-lg </c:if> btn-primary ${disabled} ${hideBtn ? 'hide' : ''}"><i class="fa fa-search"></i>
|
|
|
+ </button>
|
|
|
+ <button type="button" id="${id}DelButton" class="close" data-dismiss="alert" style="position: absolute; top: 5px; right: 53px; z-index: 999; display: block;">×</button>
|
|
|
+ </span>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <label id="${id}Name-error" class="error" for="${id}Name" style="display:none"></label>--%>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
- <td class="width-15 active"><label class="pull-right">项目号:</label></td>
|
|
|
+ <td class="width-15 active"><label class="pull-right"><font color="red">*</font>项目号:</label></td>
|
|
|
<td class="width-35">
|
|
|
<input type='text' name="projectId" class="form-control required" value="${construction.projectId}"/>
|
|
|
</td>
|
|
|
- <td class="width-15 active"><label class="pull-right">项目名称:</label></td>
|
|
|
+ <td class="width-15 active"><label class="pull-right"><font color="red">*</font>项目名称:</label></td>
|
|
|
<td class="width-35">
|
|
|
<input type='text' name="projectName" class="form-control required" value="${construction.projectName}"/>
|
|
|
</td>
|
|
@@ -95,11 +159,16 @@
|
|
|
<tr>
|
|
|
<td class="width-15 active"><label class="pull-right">接收图纸时间:</label></td>
|
|
|
<td class="width-35">
|
|
|
- <input type='text' name="acceptDate" class="form-control required" value="<fmt:formatDate value="${construction.acceptDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
|
|
|
+ <div class='input-group form_datetime' id='acceptDate'>
|
|
|
+ <input type='text' name="acceptDate" class="form-control required" value="<fmt:formatDate value="${construction.acceptDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
|
|
|
+ <span class="input-group-addon">
|
|
|
+ <span class="glyphicon glyphicon-calendar"></span>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
</td>
|
|
|
- <td class="width-15 active"><label class="pull-right"><font color="red">*</font>备注说明:</label></td>
|
|
|
+ <td class="width-15 active"><label class="pull-right">备注说明:</label></td>
|
|
|
<td class="width-35">
|
|
|
- <textarea name="examineDate" style="height: 100px" class="form-control required">${construction.examineDate}</textarea>
|
|
|
+ <textarea name="examineDate" style="height: 100px" class="form-control">${construction.examineDate}</textarea>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|