纽威
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.
 
 
 
 
 

109 lines
4.4 KiB

@{
ViewBag.Title = "Form";
Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
var keyValue = $.request("keyValue");
$(function () {
initControl();
$.ajax({
url: "/ProductManage/PreSell/GetFormJson",
data: { keyValue: keyValue },
dataType: "json",
async: false,
success: function (data) {
$("#form1").formSerialize(data);
$("#form1").find('.form-control,select,input').attr('readonly', 'readonly');
$("#form1").find('div.ckbox label').attr('for', '');
}
});
});
function initControl() {
$("#F_Id").bindSelect({
url: "/ProductManage/PreSell/GetTreeSelectJson",
});
}
</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" />
</td>
<th class="formTitle">FinishedWeight</th>
<td class="formValue">
<input id="Weight" name="Weight" type="text" class="form-control required" />
</td>
</tr>
<tr>
<th class="formTitle">Measurement</th>
<td class="formValue">
<input id="Measurement" name="Measurement" type="text" class="form-control required" />
</td>
<th class="formTitle">RoughWeight</th>
<td class="formValue">
<input id="GrossWeight" name="GrossWeight" type="text" class="form-control required" />
</td>
</tr>
<tr>
<th class="formTitle">Certificate No</th>
<td class="formValue">
<input id="CertificateNo" name="CertificateNo" type="text" class="form-control required" />
</td>
<th class="formTitle">Shape</th>
<td class="formValue">
<input id="Shape" name="Shape" type="text" class="form-control required" />
</td>
</tr>
<tr>
<th class="formTitle">Clarity</th>
<td class="formValue">
<input id="Clarity" name="Clarity" type="text" class="form-control required" />
</td>
<th class="formTitle">Color</th>
<td class="formValue">
<input id="Color" name="Color" type="text" class="form-control required" />
</td>
</tr>
<tr>
<th class="formTitle">Symmetry</th>
<td class="formValue">
<input id="Symmetry" name="Symmetry" type="text" class="form-control required" />
</td>
<th class="formTitle">Polish</th>
<td class="formValue">
<input id="Polish" name="Polish" type="text" class="form-control required" />
</td>
</tr>
<tr>
<th class="formTitle">Other</th>
<td class="formValue">
<input id="Other" name="Other" type="text" class="form-control required" />
</td>
<th class="formTitle">Cut</th>
<td class="formValue">
<input id="Cut" name="Cut" type="text" class="form-control required" />
</td>
</tr>
<tr>
<th class="formTitle">Location</th>
<td class="formValue">
<input id="Location" name="Location" type="text" class="form-control required" />
</td>
<th class="formTitle">InvQty</th>
<td class="formValue">
<input id="InvQty" name="InvQty" type="text" class="form-control required" />
</td>
</tr>
<tr>
<th class="formTitle" style="height: 35px;">Price</th>
<td class="formValue" style="padding-top: 1px;" colspan="3">
<input id="Price" name="Price" type="text" class="form-control required" />
</td>
</tr>
</table>
</div>
</form>