You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
117 lines
3.7 KiB
117 lines
3.7 KiB
|
|
|
|
@{
|
|
ViewBag.Title = "Index";
|
|
Layout = "~/Views/Shared/_Index.cshtml";
|
|
}
|
|
<style>
|
|
#ISO {
|
|
width: 10px;
|
|
}
|
|
</style>
|
|
<link href="~/Content/js/select2/select2.min.css" rel="stylesheet" />
|
|
<script src="~/Content/js/select2/select2.min.js"></script>
|
|
<script src="~/Content/js/datepicker/WdatePicker.js"></script>
|
|
<script>
|
|
var ID = $.request("ID");
|
|
var Team = $.request("Team");
|
|
var Date = $.request("Date");
|
|
var Metrics = $.request("Metrics");
|
|
var Picking = decodeURI($.request("Picking"));
|
|
|
|
$(function () {
|
|
if (ID != "") {
|
|
$("#Team").val(Team);
|
|
$("#Date").val(Date);
|
|
$("#Metrics").val(Metrics);
|
|
$("#Picking").val(Picking);
|
|
}
|
|
});
|
|
|
|
|
|
function submitForm() {
|
|
var Team = $("#Team").val();
|
|
var Date = $("#Date").val();
|
|
var Metrics = $("#Metrics").val();
|
|
var Picking = $("#Picking").val();
|
|
if (Team == "" || Team == undefined) {
|
|
$.modalAlert("请维护班组信息!");
|
|
return;
|
|
}
|
|
if (Date == "" || Date == undefined) {
|
|
$.modalAlert("请维护日期信息!!");
|
|
return;
|
|
}
|
|
if (Metrics == "" || Metrics == undefined) {
|
|
$.modalAlert("请维护产量指标信息!");
|
|
return;
|
|
}
|
|
if (Picking == "" || Picking == undefined) {
|
|
$.modalAlert("请维护研发领料信息!");
|
|
return;
|
|
}
|
|
var objArr = {
|
|
ID:ID,
|
|
Team: Team,
|
|
Date: Date,
|
|
Metrics: Metrics,
|
|
Picking: Picking,
|
|
}
|
|
debugger;
|
|
if (ID!="") {
|
|
$.submitForm({
|
|
url: "/OMAY/OMAYKPI/UpdateKPIMaintain" + "?" + Math.random(),
|
|
param: { keyValue: JSON.stringify(objArr) },
|
|
success: function () {
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
}
|
|
})
|
|
} else {
|
|
$.submitForm({
|
|
url: "/OMAY/OMAYKPI/CreateKPIMaintain" + "?" + Math.random(),
|
|
param: { keyValue: JSON.stringify(objArr) },
|
|
success: function () {
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
}
|
|
})
|
|
}
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
<form id="form1">
|
|
<div style="padding-top: 20px; margin-right: 20px;">
|
|
<table class="form">
|
|
<tr>
|
|
<th class="formTitle">班组:</th>
|
|
<td class="formValue">
|
|
<input id="Team" name="Team" type="text" class="form-control required" style="width: 300px;" maxlength="50" placeholder="班组" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">日期:</th>
|
|
<td class="formValue">
|
|
<input id="Date" name="Date" type="text" class="form-control required" style="width:300px;" maxlength="10" onclick="WdatePicker({ dateFmt: 'yyyy-MM' })" placeholder="日期" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">产量指标:</th>
|
|
<td class="formValue">
|
|
<input id="Metrics" name="Metrics" type="text" class="form-control required" style="width: 300px;" maxlength="20" placeholder="产量指标" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">研发领料:</th>
|
|
<td class="formValue">
|
|
<input id="Picking" name="Picking" type="text" class="form-control required" style="width: 300px;" maxlength="20" placeholder="研发领料" />
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
|
|
</table>
|
|
</div>
|
|
</form>
|
|
|
|
|