You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

197 lines
12 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

@using BookingWeb.DB.Model
@model SysClient
@{
}
</style>
<div class="top-navigation">
<div id="wrapper">
<div class="gray-bg">
<div class="row border-bottom white-bg nav-fixed">
<nav class="navbar navbar-static-top" role="navigation">
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav confirm-nav">
<li>
<a aria-expanded="false" role="button" href="#" id="btnSave"><i class="fa fa-save"></i>保存</a>
</li>
</ul>
</div>
</nav>
</div>
<div class="wrapper wrapper-content">
<form action="" id="formEdit">
@Html.HiddenFor(m => m.GID)
<div class="row">
<div class="col-sm-12">
<div class="ibox float-e-margins fixed-top">
<div class="ibox-content">
<div class="form-horizontal clearfix">
<div class="form-group col-md-3 col-sm-12">
<label class="col-lg-3 col-md-4 col-sm-2 control-label">名称</label>
<div class="col-lg-9 col-md-8 col-sm-10">
@Html.TextBoxFor(m => m.NAME, new { @class = "form-control" })
</div>
</div>
<div class="form-group col-md-3 col-sm-12">
<label class="col-lg-3 col-md-4 col-sm-2 control-label">东胜7URL</label>
<div class="col-lg-9 col-md-8 col-sm-10">
@Html.TextBoxFor(m => m.URL, new { @class = "form-control" })
</div>
</div>
<div class="form-group col-md-3 col-sm-12">
<label class="col-lg-3 col-md-4 col-sm-2 control-label">单号前缀</label>
<div class="col-lg-9 col-md-8 col-sm-10">
@Html.TextBoxFor(m => m.CODE, new { @class = "form-control" })
</div>
</div>
<div class="both"></div>
<div class="form-group col-md-3 col-sm-12">
<label class="col-lg-3 col-md-4 col-sm-2 control-label">人民币银行</label>
<div class="col-lg-9 col-md-8 col-sm-10">
@Html.TextBoxFor(m => m.BANK_NAME_RMB, new { @class = "form-control" })
</div>
</div>
<div class="form-group col-md-3 col-sm-12">
<label class="col-lg-3 col-md-4 col-sm-2 control-label">人民币账户</label>
<div class="col-lg-9 col-md-8 col-sm-10">
@Html.TextBoxFor(m => m.BANK_ACCOUNT_RMB, new { @class = "form-control" })
</div>
</div>
<div class="form-group col-md-3 col-sm-12">
<label class="col-lg-3 col-md-4 col-sm-2 control-label">美元银行</label>
<div class="col-lg-9 col-md-8 col-sm-10">
@Html.TextBoxFor(m => m.BANK_NAME_USD, new { @class = "form-control" })
</div>
</div>
<div class="form-group col-md-3 col-sm-12">
<label class="col-lg-3 col-md-4 col-sm-2 control-label">美元账户</label>
<div class="col-lg-9 col-md-8 col-sm-10">
@Html.TextBoxFor(m => m.BANK_ACCOUNT_USD, new { @class = "form-control" })
</div>
</div>
<div class="both"></div>
<div class="form-group col-md-3 col-sm-12">
<label class="col-lg-3 col-md-4 col-sm-2 control-label">地址</label>
<div class="col-lg-9 col-md-8 col-sm-10">
@Html.TextBoxFor(m => m.ADDRESS, new { @class = "form-control" })
</div>
</div>
<div class="form-group col-md-3 col-sm-12">
<label class="col-lg-3 col-md-4 col-sm-2 control-label">电话</label>
<div class="col-lg-9 col-md-8 col-sm-10">
@Html.TextBoxFor(m => m.TEL, new { @class = "form-control" })
</div>
</div>
<div class="form-group col-md-3 col-sm-12">
<label class="col-lg-3 col-md-4 col-sm-2 control-label">邮箱</label>
<div class="col-lg-9 col-md-8 col-sm-10">
@Html.TextBoxFor(m => m.EMAIL, new { @class = "form-control" })
</div>
</div>
<div class="form-group col-md-3 col-sm-12">
<label class="col-lg-3 col-md-4 col-sm-2 control-label">备注</label>
<div class="col-lg-9 col-md-8 col-sm-10">
@Html.TextBoxFor(m => m.REMARK, new { @class = "form-control" })
</div>
</div>
<div class="both"></div>
<div class="form-group col-md-3 col-sm-12">
<label class="col-lg-3 col-md-4 col-sm-2 control-label">SMTP服务器</label>
<div class="col-lg-9 col-md-8 col-sm-10">
@Html.TextBoxFor(m => m.SMTP_SERVER, new { @class = "form-control" })
</div>
</div>
<div class="form-group col-md-3 col-sm-12">
<label class="col-lg-3 col-md-4 col-sm-2 control-label">SSL</label>
<div class="col-lg-9 col-md-8 col-sm-10">
@*@Html.TextBoxFor(m => m.SMTP_SSL, new { @class = "form-control" })*@
<select class="form-control" name="SMTP_SSL">
<option value="True" @(Model.SMTP_SSL?"selected":"")>是</option>
<option value="False" @(Model.SMTP_SSL?"":"selected")>否</option>
</select>
</div>
</div>
<div class="form-group col-md-3 col-sm-12">
<label class="col-lg-3 col-md-4 col-sm-2 control-label">SMTP端口</label>
<div class="col-lg-9 col-md-8 col-sm-10">
@Html.TextBoxFor(m => m.SMTP_PORT, new { @class = "form-control",title="大多数邮箱的非SSL为25SSL端口为465" })
</div>
</div>
<div class="form-group col-md-3 col-sm-12">
<label class="col-lg-3 col-md-4 col-sm-2 control-label">邮箱账号</label>
<div class="col-lg-9 col-md-8 col-sm-10">
@Html.TextBoxFor(m => m.MAIL_ACCOUNT, new { @class = "form-control" })
</div>
</div>
<div class="both"></div>
<div class="form-group col-md-3 col-sm-12">
<label class="col-lg-3 col-md-4 col-sm-2 control-label">邮箱密码</label>
<div class="col-lg-9 col-md-8 col-sm-10">
@Html.TextBoxFor(m => m.MAIL_PASSWORD, new { @class = "form-control" })
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
@section styles
{
<link type="text/css" rel="stylesheet" href="~/Content/hplus/css/plugins/datapicker/datepicker3.css" />
<link type="text/css" rel="stylesheet" href="~/Content/css/order.css" />
}
@section scripts{
<script src="~/Content/hplus/js/plugins/validate/jquery.validate.min.js"></script>
<script src="~/Content/hplus/js/plugins/suggest/bootstrap-suggest.min.js"></script>
<script src="~/Content/hplus/js/plugins/datapicker/bootstrap-datepicker.js"></script>
<script src="~/Content/js/validatorConfig.js"></script>
<script src="~/Content/js/jquery.form.js"></script>
<script src="~/Content/js/common.js"></script>
<script>
$(function () {
//保存
$("#btnSave").click(function () {
var obj = getEditJson();
$.ajax({
method: 'POST',
url: '@Url.Action("ClientSave")',
dataType: 'json',
data: JSON.stringify(obj),
contentType: "application/json",
success: function (data) {
if (data.Success) {
layer.alert(data.Message, function () {
location.reload();
})
} else {
layer.alert(data.Message)
}
}
})
});
});
function getEditJson() {
var obj = $("#formEdit").toJson();
//obj.ISCONTAINERSOC = $("#ISCONTAINERSOC").prop('checked');
//obj.CtrnList = ctrnData;
return obj;
}
</script>
}