62 lines
3.1 KiB
Plaintext
62 lines
3.1 KiB
Plaintext
@model ServiceRepresentativeConfig
|
|
@{
|
|
ViewBag.Title = "服务商配置 | 编辑";
|
|
Layout = "~/Views/Shared/_InfoLayout.cshtml";
|
|
}
|
|
@section JS
|
|
{
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
SetAceDropDown(300);
|
|
});
|
|
|
|
function checkSubmitData() {
|
|
return $('#servicerepresentativeconfigEditForm').valid();
|
|
}
|
|
|
|
function saveservicerepresentativeconfig() {
|
|
if (!checkSubmitData()) return false;
|
|
|
|
var data = $("#servicerepresentativeconfigEditForm").serialize();
|
|
main.post("/servicerepresentativeconfig/servicerepresentativeconfigEditJson", data).done(function (res) {
|
|
window.location.href = "/servicerepresentativeconfig/servicerepresentativeconfigview?enid=" + res.obj.EncryptId;
|
|
try {
|
|
window.parent.reloadservicerepresentativeconfig();
|
|
} catch (e) {
|
|
}
|
|
});
|
|
}
|
|
</script>
|
|
}
|
|
|
|
@using (Html.BeginForm("servicerepresentativeconfigEdit", "servicerepresentativeconfig", FormMethod.Post, new { id = "servicerepresentativeconfigEditForm", autocomplete = "off" }))
|
|
{
|
|
<fieldset>
|
|
<legend>服务商配置修改</legend>
|
|
</fieldset>
|
|
<div class="well form-layout">
|
|
<input type="hidden" value="@Model.id" name="id" id="id" />
|
|
@Html.HiddenFor(model => model.EncryptId)
|
|
@Html.MyDropdownFor(model => model.ServiceId, ClientDataModel.GetAllSellclient(), "", false)
|
|
@Html.MyTextFor(model => model.Alias)
|
|
<div class="form-group col-md-6">
|
|
<label class="formlabel" for="PremiumRateVariation">加成费率</label>
|
|
<input id="PremiumRateVariation" class="text-box" onkeyup="this.value=this.value.replace(/[^0-9.-]/g,'')" onblur="this.value=(/^(-?[0-9]\d*)(\.\d*)?$/.test(this.value) ? this.value : '')" data-val-required="请输入数值" type="text" value="@(Model.PremiumRateVariation * 10000)" name="PremiumRateVariation" data-val="true"> (万分之) <span style="color:red">*</span>
|
|
<span class="field-validation-valid" data-valmsg-for="PremiumRateVariation" data-valmsg-replace="true"></span>
|
|
</div>
|
|
@Html.MyTextFor(model => model.DefaultTradeInstruction)
|
|
@Html.MyTextFor(model => model.StockBuyContractVersion)
|
|
@Html.MyTextFor(model => model.StockSellContractVersion)
|
|
@Html.MyTextFor(model => model.FutureBuyContractVersion)
|
|
@Html.MyTextFor(model => model.FutureSellContractVersion)
|
|
@Html.MyDropdownFor(model => model.SellerRightDeliveryDayType, servicerepresentativeconfigController.GetAllSellerRightDeliveryDayType(), new { }, "1", false, true, true)
|
|
@Html.MyDropdownFor(model => model.ExerciseRule, servicerepresentativeconfigController.GetAllExerciseRule(), "", false)
|
|
@Html.MyDecimalFor(model => model.ContractNoLength)
|
|
@Html.MyTextFor(model => model.ContractSubNoStyle)
|
|
@Html.MyDropdownFor(model => model.ValidState, ConsGlobal.ValidStates(), "", false)
|
|
</div>
|
|
<div class="form-buttons">
|
|
@MyControls.Btn("保存", "saveservicerepresentativeconfig()")
|
|
@MyControls.Btn("关闭", "layer.closeMe()")
|
|
</div>
|
|
} |