增加 升级功能的 日志监控
This commit is contained in:
@@ -1086,6 +1086,11 @@ namespace WebSite.Controllers
|
||||
public ActionResult Save(string jsonData)
|
||||
{
|
||||
RoomType entity = Newtonsoft.Json.JsonConvert.DeserializeObject<RoomType>(jsonData);
|
||||
|
||||
if (Tools.ContainsSpecialChars(entity.Name) || Tools.ContainsSpecialChars(entity.HostName))
|
||||
{
|
||||
return Json(new { IsSuccess = false, Message = "房型名称不得包含特殊符号、空格,命名字数不得超过 N 个文字"});
|
||||
}
|
||||
RoomType existRoomType = RoomTypeManager.GetByCode(entity.Code, CurrentHotelID);
|
||||
if (existRoomType != null)
|
||||
{
|
||||
|
||||
@@ -104,6 +104,9 @@ function delProgramFile() {
|
||||
}
|
||||
//保存房型
|
||||
function save() {
|
||||
var a1= $("#txtHostName").val();
|
||||
var a2 = $("#txtName").val();
|
||||
console.log(a1+"#########"+a2);
|
||||
var form = $('#dialog').find('form');
|
||||
if (form.form('enableValidation').form('validate')) {
|
||||
var entry = form.serializeJson();
|
||||
|
||||
@@ -32,13 +32,13 @@
|
||||
<tr>
|
||||
<th><label for="txtName"><%: Html.Language("RoomHeight")%>:</label></th>
|
||||
<td>
|
||||
<input id="txtName" name="Name" class="easyui-validatebox textbox text" data-options="required:true,validType:'blwtext'" value="<%: Model.RoomHeight %>" />
|
||||
<input id="txtNameHeight" name="RoomHeight" class="easyui-validatebox textbox text" data-options="required:true,validType:'blwtext'" value="<%: Model.RoomHeight %>" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="txtName"><%: Html.Language("RoomHotLossRatio")%>:</label></th>
|
||||
<td>
|
||||
<input id="txtName" name="Name" class="easyui-validatebox textbox text" data-options="required:true,validType:'blwtext'" value="<%: Model.RoomHotLossRatio %>" />
|
||||
<input id="txtNameRoomHotLossRatio" name="RoomHotLossRatio" class="easyui-validatebox textbox text" data-options="required:true,validType:'blwtext'" value="<%: Model.RoomHotLossRatio %>" />
|
||||
</td>
|
||||
</tr>
|
||||
<%--<tr>
|
||||
|
||||
Reference in New Issue
Block a user