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.
175 lines
7.4 KiB
175 lines
7.4 KiB
@{
|
|
ViewBag.Title = "Form";
|
|
Layout = "~/Views/Shared/_Form.cshtml";
|
|
}
|
|
<script>
|
|
var keyValue = $.request("keyValue");
|
|
$(function () {
|
|
initControl();
|
|
if (!!keyValue) {
|
|
$.ajax({
|
|
url: "/ProductManage/Maintain/GetFormJson",
|
|
data: { keyValue: keyValue },
|
|
dataType: "json",
|
|
async: false,
|
|
success: function (data) {
|
|
$("#form1").formSerialize(data);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
function initControl() {
|
|
$("#F_Id").bindSelect({
|
|
url: "/ProductManage/Maintain/GetTreeSelectJson",
|
|
});
|
|
$("#Location").bindSelect({
|
|
//url: "/SystemManage/ItemsData/GetSelectJsonWH?keyValue=仓库类型",
|
|
url: "/SystemManage/ItemsData/GetSelectJsonWH?keyValue=1",
|
|
});
|
|
$("#Shape").bindSelect({
|
|
//url: "/SystemManage/ItemsData/GetSelectJsonWH?keyValue=形状",
|
|
url: "/SystemManage/ItemsData/GetSelectJsonWH?keyValue=2",
|
|
});
|
|
$("#Color").bindSelect({
|
|
//url: "/SystemManage/ItemsData/GetSelectJsonWH?keyValue=色度",
|
|
url: "/SystemManage/ItemsData/GetSelectJsonWH?keyValue=3",
|
|
});
|
|
$("#Clarity").bindSelect({
|
|
//url: "/SystemManage/ItemsData/GetSelectJsonWH?keyValue=净度",
|
|
url: "/SystemManage/ItemsData/GetSelectJsonWH?keyValue=4",
|
|
});
|
|
$("#Polish").bindSelect({
|
|
//url: "/SystemManage/ItemsData/GetSelectJsonWH?keyValue=抛光",
|
|
url: "/SystemManage/ItemsData/GetSelectJsonWH?keyValue=5",
|
|
});
|
|
$("#Symmetry").bindSelect({
|
|
//url: "/SystemManage/ItemsData/GetSelectJsonWH?keyValue=对称性",
|
|
url: "/SystemManage/ItemsData/GetSelectJsonWH?keyValue=6",
|
|
});
|
|
$("#Cut").bindSelect({
|
|
//url: "/SystemManage/ItemsData/GetSelectJsonWH?keyValue=切工",
|
|
url: "/SystemManage/ItemsData/GetSelectJsonWH?keyValue=7",
|
|
});
|
|
$("#Other").bindSelect({
|
|
//url: "/SystemManage/ItemsData/GetSelectJsonWH?keyValue=分类",
|
|
url: "/SystemManage/ItemsData/GetSelectJsonWH?keyValue=8",
|
|
});
|
|
}
|
|
function submitForm() {
|
|
if (!$('#form1').formValid()) {
|
|
return false;
|
|
}
|
|
$.submitForm({
|
|
url: "/ProductManage/Maintain/SubmitForm?keyValue=" + keyValue,
|
|
param: $("#form1").formSerialize(),
|
|
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">Product No</th>
|
|
<td class="formValue">
|
|
<input id="ProductSN" name="ProductSN" type="text" class="form-control required" placeholder="Please enter Product SN" />
|
|
</td>
|
|
<th class="formTitle">FinishedWeight</th>
|
|
<td class="formValue">
|
|
<input id="Weight" name="Weight" type="text" class="form-control required" placeholder="Please enter Weight" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">Measurement</th>
|
|
<td class="formValue">
|
|
<input id="Measurement" name="Measurement" type="text" class="form-control required" placeholder="Please enter Measurement" />
|
|
</td>
|
|
<th class="formTitle">RoughWeight</th>
|
|
<td class="formValue">
|
|
<input id="GrossWeight" name="GrossWeight" type="text" class="form-control required" placeholder="Please enter GrossWeight" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">Certificate No</th>
|
|
<td class="formValue">
|
|
<input id="CertificateNo" name="CertificateNo" type="text" class="form-control required" placeholder="Please enter Certificate No" />
|
|
</td>
|
|
<th class="formTitle">Shape</th>
|
|
<td class="formValue">
|
|
<select id="Shape" name="Shape" class="form-control required">
|
|
<option value="">==请选择==</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">Clarity</th>
|
|
<td class="formValue">
|
|
<select id="Clarity" name="Clarity" class="form-control required">
|
|
<option value="">==请选择==</option>
|
|
</select>
|
|
</td>
|
|
<th class="formTitle">Color</th>
|
|
<td class="formValue">
|
|
<select id="Color" name="Color" class="form-control required">
|
|
<option value="">==请选择==</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">Symmetry</th>
|
|
<td class="formValue">
|
|
<select id="Symmetry" name="Symmetry" class="form-control required">
|
|
<option value="">==请选择==</option>
|
|
</select>
|
|
</td>
|
|
<th class="formTitle">Polish</th>
|
|
<td class="formValue">
|
|
<select id="Polish" name="Polish" class="form-control required">
|
|
<option value="">==请选择==</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">Sort</th>
|
|
<td class="formValue">
|
|
<select id="Other" name="Other" class="form-control required">
|
|
<option value="">==请选择==</option>
|
|
</select>
|
|
</td>
|
|
<th class="formTitle">Cut</th>
|
|
<td class="formValue">
|
|
<select id="Cut" name="Cut" class="form-control required">
|
|
<option value="">==请选择==</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">Location</th>
|
|
<td class="formValue">
|
|
<select id="Location" name="Location" class="form-control required">
|
|
<option value="">==请选择==</option>
|
|
</select>
|
|
</td>
|
|
<th class="formTitle">Quantity</th>
|
|
<td class="formValue">
|
|
<input id="InvQty" name="InvQty" type="text" class="form-control required" value="1" placeholder="Please enter Quantity" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle" style="height: 35px;">Is Lock</th>
|
|
<td class="formValue" style="padding-top: 1px;" >
|
|
<div class="ckbox">
|
|
<input id="IsLock" name="IsLock" type="checkbox"><label for="IsLock">Lock</label>
|
|
</div>
|
|
</td>
|
|
<th class="formTitle" style="height: 35px;">Price</th>
|
|
<td class="formValue" style="padding-top: 1px;">
|
|
<input id="Price" name="Price" type="text" class="form-control required" placeholder="Please enter Price" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</form>
|