天津投入产出系统后端
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.
 
 
 
 
 
 

135 lines
5.0 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.ExampleUserInfoModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
单表列表页面
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script language="javascript" src="../../Scripts/datagrid-detailview.js" type="text/javascript"></script>
<%=Html.QPSeach(80,true) %>
<table id="condiTable">
<tr>
<th align=right nowrap=nowrap>
<%=Html.QV(p => p.UserName, QMAPP.Common.Web.SystemLimit.IsDisplay)%>
</th>
<td>
<%=Html.QC(p => p.UserName, QMAPP.Common.Web.SystemLimit.IsDisplay)%>
</td>
<th align=right><%=Html.QV(p=>p.UserDes) %></th><td><%=Html.QC(p=>p.UserDes) %>
</td>
<th align=right><%=Html.QV(p=>p.Sex) %></th><td><%=Html.QC(p=>p.Sex) %></td>
</tr>
</table>
<div><iframe id="FrmPrint" style="display:none" src="" width="200px" height="200px"></iframe></div>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%-- <%=Html.QDateGrid<QMAPP.FJC.Web.Models.ExampleUserInfoModel>(Model)%>--%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<%=Html.Hidden("fileName")%>
<script language="javascript" type="text/javascript">
//添加
function add() {
openAppWindow1(AddWindowTitle, 'SingleTableEdit', '600', '400');
}
//修改
function Update() {
var ids = getSelectKey();
if (ids == "") {
MSI(MsgNormalTitle, NothingSelectTitle);
return;
}
if (ids.indexOf(":") > 0) {
MSI(MsgNormalTitle, OnlyOneTitle);
return;
}
document.getElementById("selectKey").value = ids;
openAppWindow1(UpdateWindowTitle, 'SingleTableEdit?userID=' + ids, '600', '400');
}
//删除
function Delete() {
var ids = getSelectKey();
if (ids == "") {
MSI(MsgNormalTitle, AtLeastOneTitle);
}
else {
document.getElementById("selectKey").value = ids;
MSQ(MsgNormalTitle, FixDeleteTitle, function () {
submitByButton("SingleTableDelete");
})
}
}
//导入
function Import() {
var fileName = window.showModalDialog("/File/UploadFile", "", "dialogHeight: 120px; dialogWidth: 360px; center: Yes; help: Yes;status: Yes;");
if (fileName == null)
return;
document.getElementById("fileName").value = fileName;
submitByButton("ImportExcel");
}
//导出
function Export() {
submitByButton("ExportExcel");
}
function showDetail(rowIndex, rowData) {
return '<table><tr>' +
'<td style="border:0">' +
'<p>用户名: ' + rowData.UserName + '</p>' +
'<p>用户姓名: ' + rowData.UserDes + '</p>' +
'</td>' +
'<td><iframe name="ifm'+rowIndex+'" id="ifm'+rowIndex+'" src="" ></iframe></td>'+
'</tr></table>';
}
function openDetailView(rowIndex, rowData) {
//$('#ifm').src = "http://192.168.3.133";
document.getElementById("ifm"+rowIndex).src = "http://192.168.3.133?=id"+rowIndex;
}
//打印列表
function PrintList() {
document.getElementById("FrmPrint").src = "/Examples/PrintList";
}
//应用查询模板
function ApplyTemplate(templateID) {
submitByButton("/Examples/SingleTableList?templateID=" + templateID);
}
//取消应用查询模板
function RemoveTemplate() {
submitByButton("/Examples/SingleTableList");
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding=0 cellspacing=0>
<tr>
<td align="center">
<%=Html.QTButtonSearch("Examples", "SingleTableList", "List()")%>
<%=Html.QTButtonAdd("Examples", "SingleTableAdd", "add()")%>
<%=Html.QTButtonUpdate("Examples", "SingleTableList", "Update()")%>
<%=Html.QTButtonDelete("Examples", "SingleTableDelete", "Delete()")%>
<%=Html.QTButton("import", "ImportExcel", QMFrameWork.WebUI.IconCls.undo, "Import()", (s, f) => { return true; })%>
<%=Html.QTButton("export", "ExportExcel",QMFrameWork.WebUI.IconCls.redo, "Export()", (s, f) => { return true; })%>
<%=Html.QTButton("print", "PrintList",QMFrameWork.WebUI.IconCls.print, "PrintList()", (s, f) => { return true; })%>
<%=Html.QTButton("queryTL", "ListQueryTL", "ListQueryTL('SingleTableList');", (s, f) => { return true; })%>
</td>
</tr>
</table>
</asp:Content>