first commit
This commit is contained in:
226
WebRoot/jsp/process/libraryProcessAdjustmentAdd.jsp
Normal file
226
WebRoot/jsp/process/libraryProcessAdjustmentAdd.jsp
Normal file
@ -0,0 +1,226 @@
|
||||
<%@ page language="java" pageEncoding="UTF-8"%>
|
||||
<%@page import="com.sipai.tools.CommString"%>
|
||||
<% request.setAttribute("Flag_Active", CommString.Flag_Active); %>
|
||||
<% request.setAttribute("Flag_Unactive", CommString.Flag_Unactive); %>
|
||||
<style type="text/css">
|
||||
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
|
||||
function dosave() {
|
||||
$("#subForm").bootstrapValidator('validate');//提交验证
|
||||
if ($("#subForm").data('bootstrapValidator').isValid()) {
|
||||
//获取验证结果,如果成功,执行下面代码
|
||||
$.post(ext.contextPath + "/process/libraryProcessAdjustment/dosave.do", $("#subForm").serialize(), function (data) {
|
||||
if (data.res == 1) {
|
||||
$("#tableAdjustment").bootstrapTable('refresh');
|
||||
closeModal("subModal");
|
||||
} else if (data.res == 0) {
|
||||
showAlert('d', '保存失败');
|
||||
} else {
|
||||
showAlert('d', data.res);
|
||||
}
|
||||
}, 'json');
|
||||
}
|
||||
}
|
||||
|
||||
$("#subForm").bootstrapValidator({
|
||||
live: 'disabled',//验证时机,enabled是内容有变化就验证(默认),disabled和submitted是提交再验证
|
||||
fields: {
|
||||
// typeName: {
|
||||
// validators: {
|
||||
// notEmpty: {
|
||||
// message: '工艺调整类型不能为空'
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
abnormalCode: {
|
||||
validators: {
|
||||
notEmpty: {
|
||||
message: '异常编号不能为空'
|
||||
}
|
||||
}
|
||||
},
|
||||
abnormalName: {
|
||||
validators: {
|
||||
notEmpty: {
|
||||
message: '异常名称不能为空'
|
||||
}
|
||||
}
|
||||
},
|
||||
abnormalName: {
|
||||
validators: {
|
||||
notEmpty: {
|
||||
message: '异常名称不能为空'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
proCode: {
|
||||
validators: {
|
||||
notEmpty: {
|
||||
message: '工艺调整代码不能为空'
|
||||
}
|
||||
}
|
||||
},
|
||||
proName: {
|
||||
validators: {
|
||||
notEmpty: {
|
||||
message: '工艺调整名称不能为空'
|
||||
}
|
||||
}
|
||||
},
|
||||
proMeasuresCode: {
|
||||
validators: {
|
||||
notEmpty: {
|
||||
message: '工艺调整措施代码不能为空'
|
||||
}
|
||||
}
|
||||
},
|
||||
receiveRatedTime: {
|
||||
validators: {
|
||||
notEmpty: {
|
||||
message: '接单额定工时不能为空'
|
||||
}
|
||||
}
|
||||
},
|
||||
proMeasures: {
|
||||
validators: {
|
||||
notEmpty: {
|
||||
message: '工艺调整措施'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
//项目类型下拉数据
|
||||
// var selectType = $("#typeName").select2({ minimumResultsForSearch: 10 });
|
||||
// $.post(ext.contextPath + "/process/processAdjustmentType/getSelectList.do", {}, function (data) {
|
||||
// $("#typeName").empty();
|
||||
// var selelct_ = $("#typeName").select2({
|
||||
// data: data,
|
||||
// placeholder: '请选择',//默认文字提示
|
||||
// allowClear: false,//允许清空
|
||||
// escapeMarkup: function (markup) { return markup; }, // 自定义格式化防止xss注入
|
||||
// language: "zh-CN",
|
||||
// minimumInputLength: 0,
|
||||
// minimumResultsForSearch: 10,//数据超过10个启用搜索框
|
||||
// formatResult: function formatRepo(repo) { return repo.text; }, // 函数用来渲染结果
|
||||
// formatSelection: function formatRepoSelection(repo) { return repo.text; } // 函数用于呈现当前的选择
|
||||
// });
|
||||
// selelct_.val('').trigger("change");
|
||||
// selelct_.on('change', function (e) {
|
||||
// $('#typeId').val(e.target.value);
|
||||
// })
|
||||
// }, 'json');
|
||||
|
||||
</script>
|
||||
<div class="modal fade" id="subModal">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span></button>
|
||||
<h4 class="modal-title">新增</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<!-- 新增界面formid强制为subForm -->
|
||||
<form class="form-horizontal" id="subForm" autocomplete="off">
|
||||
<!-- 界面提醒div强制id为alertDiv -->
|
||||
<div id="alertDiv"></div>
|
||||
<input type="hidden" name="id" id="id" value="${id}" />
|
||||
<input type="hidden" id="pid" name="pid" value="${param.abnormalId}" />
|
||||
<input type="hidden" id="unitId" name="unitId" value="${param.unitId}" />
|
||||
|
||||
<!-- <div class="form-group">
|
||||
<label class="col-sm-2 control-label">*工艺调整类型</label>
|
||||
<div class="col-sm-4">
|
||||
<select class="form-control select2" id="typeName" name="typeName" style="width: 170px;"></select>
|
||||
<input type="hidden" class="form-control" id="typeId" name="typeId" value="" />
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<%--<div class="form-group">
|
||||
<label class="col-sm-2 control-label">*异常编号</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" id="abnormalCode" name="abnormalCode" placeholder="异常编号"
|
||||
value="${libraryProcessAdjustment.abnormalCode}">
|
||||
</div>
|
||||
<label class="col-sm-2 control-label">*异常名称</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" id="abnormalName" name="abnormalName" placeholder="异常名称"
|
||||
value="${libraryProcessAdjustment.abnormalName}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">异常现象分析</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea class="form-control" id="abnormalAnalysis" name="abnormalAnalysis"
|
||||
placeholder="异常现象分析">${libraryProcessAdjustment.abnormalAnalysis}</textarea>
|
||||
</div>
|
||||
</div>--%>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">*工艺调整代码</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" id="proCode" name="proCode" placeholder="工艺调整代码"
|
||||
value="${libraryProcessAdjustment.proCode}">
|
||||
</div>
|
||||
<label class="col-sm-2 control-label">*工艺调整名称</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" id="proName" name="proName" placeholder="工艺调整名称"
|
||||
value="${libraryProcessAdjustment.proName}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%--<label class="col-sm-2 control-label">*工艺调整措施代码</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="text" class="form-control" id="proMeasuresCode" name="proMeasuresCode" placeholder="工艺调整措施代码"
|
||||
value="${libraryProcessAdjustment.proMeasuresCode}">
|
||||
</div>--%>
|
||||
<label class="col-sm-2 control-label">*接单额定工时</label>
|
||||
<div class="col-sm-4">
|
||||
<input type="number" class="form-control" id="receiveRatedTime" name="receiveRatedTime"
|
||||
placeholder="接单额定工时" value="${libraryProcessAdjustment.receiveRatedTime}" step="0.01">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">*工艺调整措施</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea class="form-control" id="proMeasures" name="proMeasures"
|
||||
placeholder="工艺调整措施">${libraryProcessAdjustment.proMeasures}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">工艺调整监控指标</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea class="form-control" id="monitorTarget" name="monitorTarget"
|
||||
placeholder="工艺调整监控指标">${libraryProcessAdjustment.monitorTarget}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-2 control-label">工艺调整验收标准</label>
|
||||
<div class="col-sm-10">
|
||||
<textarea class="form-control" id="checkStandard" name="checkStandard"
|
||||
placeholder="工艺调整验收标准">${libraryProcessAdjustment.checkStandard}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
|
||||
<button type="button" class="btn btn-primary" onclick="dosave()" id="btn_save">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.modal-content -->
|
||||
</div>
|
||||
<!-- /.modal-dialog -->
|
||||
</div>
|
||||
Reference in New Issue
Block a user