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.
131 lines
5.6 KiB
131 lines
5.6 KiB
@{
|
|
ViewBag.Title = "Form";
|
|
Layout = "~/Views/Shared/_Form.cshtml";
|
|
}
|
|
<script>
|
|
var keyValue = $.request("keyValue");
|
|
$(function () {
|
|
initControl();
|
|
$.ajax({
|
|
url: "/SystemManage/User/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', '');
|
|
$("#F_UserPassword").val("******");
|
|
}
|
|
});
|
|
});
|
|
function initControl() {
|
|
$("#F_Gender").bindSelect()
|
|
$("#F_IsAdministrator").bindSelect()
|
|
$("#F_EnabledMark").bindSelect()
|
|
//$("#F_OrganizeId").bindSelect({
|
|
// url: "/SystemManage/Organize/GetTreeSelectJson"
|
|
//});
|
|
//$("#F_DepartmentId").bindSelect({
|
|
// url: "/SystemManage/Organize/GetTreeSelectJson",
|
|
//});
|
|
$("#F_RoleId").bindSelect({
|
|
url: "/SystemManage/Role/GetGridJson",
|
|
id: "F_Id",
|
|
text: "F_FullName"
|
|
});
|
|
//$("#F_DutyId").bindSelect({
|
|
// url: "/SystemManage/Duty/GetGridJson",
|
|
// id: "F_Id",
|
|
// text: "F_FullName"
|
|
//});
|
|
}
|
|
</script>
|
|
<form id="form1">
|
|
<div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
|
|
<div style="padding-top: 20px; margin-right: 30px;">
|
|
<table class="form">
|
|
<tr>
|
|
<th class="formTitle">账户</th>
|
|
<td class="formValue">
|
|
<input id="F_Account" name="F_Account" type="text" class="form-control" />
|
|
</td>
|
|
<th class="formTitle">密码</th>
|
|
<td class="formValue">
|
|
<input id="F_UserPassword" name="F_UserPassword" type="password" class="form-control" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">姓名</th>
|
|
<td class="formValue">
|
|
<input id="F_RealName" name="F_RealName" type="text" class="form-control" />
|
|
</td>
|
|
<th class="formTitle">角色</th>
|
|
<td class="formValue">
|
|
<select id="F_RoleId" name="F_RoleId" class="form-control">
|
|
<option value="">==请选择==</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">手机</th>
|
|
<td class="formValue">
|
|
<input id="F_MobilePhone" name="F_MobilePhone" type="text" class="form-control" />
|
|
</td>
|
|
<th class="formTitle">邮箱</th>
|
|
<td class="formValue">
|
|
<input id="F_Email" name="F_Email" type="text" class="form-control" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">类型</th>
|
|
<td class="formValue">
|
|
<select id="F_IsAdministrator" name="F_IsAdministrator" class="form-control">
|
|
<option value="false">普通用户</option>
|
|
<option value="true">系统管理员</option>
|
|
</select>
|
|
</td>
|
|
<th class="formTitle">允许登录</th>
|
|
<td class="formValue">
|
|
<select id="F_EnabledMark" name="F_EnabledMark" class="form-control">
|
|
<option value="true">是</option>
|
|
<option value="false">否</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle" valign="top" style="padding-top: 5px;">
|
|
备注
|
|
</th>
|
|
<td class="formValue">
|
|
<textarea id="F_Description" name="F_Description" class="form-control" style="height: 60px;"></textarea>
|
|
</td>
|
|
<th class="formTitle">供应商编码</th>
|
|
<td class="formValue">
|
|
<input id="F_VenCode" name="F_VenCode" type="text" class="form-control" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">创建人员</th>
|
|
<td class="formValue">
|
|
<input id="F_CreatorUserId" name="F_CreatorUserId" type="text" class="form-control" />
|
|
</td>
|
|
<th class="formTitle">创建时间</th>
|
|
<td class="formValue">
|
|
<input id="F_CreatorTime" name="F_CreatorTime" type="text" class="form-control" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">修改人员</th>
|
|
<td class="formValue">
|
|
<input id="F_LastModifyUserId" name="F_LastModifyUserId" type="text" class="form-control" />
|
|
</td>
|
|
<th class="formTitle">修改时间</th>
|
|
<td class="formValue">
|
|
<input id="F_LastModifyTime" name="F_LastModifyTime" type="text" class="form-control" />
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</form>
|