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.
119 lines
3.9 KiB
119 lines
3.9 KiB
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.MD.Web.Models.UserWithMachineModel>" %>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
用户设备
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
|
<%=Html.QPSeach(80, true)%>
|
|
<table id="condiTable">
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.USERNAME)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.USERNAME)%>
|
|
</td>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.USERCODE)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.USERCODE)%>
|
|
</td>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.MACHINEID)%>
|
|
</th>
|
|
<td>
|
|
<%=Html.QC(p => p.MACHINEID)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%=Html.QPEnd()%>
|
|
<%=Html.QPList() %>
|
|
<%=Html.QDateGrid<QMAPP.MD.Web.Models.UserWithMachineModel>(Model)%>
|
|
<%=Html.QPEnd() %>
|
|
<%=Html.Hidden("selectKey")%>
|
|
<%=Html.Hidden("fileName")%>
|
|
<%=Html.Hidden("USERID")%>
|
|
<script language="javascript" type="text/javascript">
|
|
$(function () {
|
|
//获取设备下拉数据源
|
|
$('#MACHINEID').combobox({
|
|
url: "/Dict/GetMachineComboxSource",
|
|
editable: 'false',
|
|
valueField: 'PID',
|
|
textField: 'MACHINENAME'
|
|
});
|
|
$('#MACHINEID').combobox("setValue", "");
|
|
List(1);
|
|
});
|
|
//添加
|
|
function Add() {
|
|
openAppWindow1('信息添加', 'Edit', '400', '380');
|
|
}
|
|
|
|
//修改
|
|
function Update() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI("提示", "请选择修改记录。");
|
|
return;
|
|
}
|
|
if (ids.indexOf(":") > 0) {
|
|
MSI("提示", "每次只能修改一条记录。");
|
|
return;
|
|
}
|
|
document.getElementById("selectKey").value = ids;
|
|
|
|
openAppWindow1('修改', 'Edit?USERID=' + ids, '400', '380');
|
|
}
|
|
//删除
|
|
function Delete() {
|
|
var ids = getSelectKey();
|
|
if (ids == "") {
|
|
MSI("错误", "选择一条记录删除");
|
|
}
|
|
else if (ids.indexOf(":") > 0) {
|
|
MSI("提示", "每次只能删除一条记录。");
|
|
}
|
|
else {
|
|
document.getElementById("selectKey").value = ids;
|
|
MSQ("提示", "确定要删除选中的记录吗?", function () {
|
|
submitByButton("Delete");
|
|
})
|
|
}
|
|
}
|
|
//导出
|
|
function Export() {
|
|
document.getElementById("selectKey").value = getSelectKey();
|
|
submitByButton("ExportExcel");
|
|
}
|
|
//查询
|
|
function Search() {
|
|
List(1)
|
|
}
|
|
$(function () {
|
|
|
|
$('#MACHINEID').combobox({
|
|
panelWidth: '200'
|
|
|
|
});
|
|
|
|
});
|
|
</script>
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
|
<table cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td align="center">
|
|
<%=Html.QTButtonSearch("UserWithMachine", "List", "Search()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonAdd("UserWithMachine", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonUpdate("UserWithMachine", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButtonDelete("UserWithMachine", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</asp:Content>
|
|
|
|
|