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.
83 lines
3.0 KiB
83 lines
3.0 KiB
3 years ago
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
|
||
|
Inherits="System.Web.Mvc.ViewPage<QMAPP.FJC.Web.Models.Bucket.BucketMaterialClassModel>" %>
|
||
|
|
||
|
<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.MaterialCode)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.MaterialCode)%>
|
||
|
</td>
|
||
|
|
||
|
</tr>
|
||
|
</table>
|
||
|
<%=Html.QPEnd()%>
|
||
|
<%=Html.QPList() %>
|
||
|
<%=Html.QDateGrid<QMAPP.FJC.Web.Models.Bucket.BucketMaterialClassModel>(Model)%>
|
||
|
<%=Html.QPEnd() %>
|
||
|
<%=Html.Hidden("selectKey")%>
|
||
|
<%=Html.Hidden("PID")%>
|
||
|
<script language="javascript" type="text/javascript">
|
||
|
$(function () {
|
||
|
//获取物料下拉数据源
|
||
|
$('#MaterialCode').combotree({
|
||
|
panelHeight: '250',
|
||
|
panelWidth: '500',
|
||
|
url: "/Dict/GetMaterialTreeClass",
|
||
|
});
|
||
|
List(1);
|
||
|
});
|
||
|
//添加
|
||
|
function Add() {
|
||
|
openAppWindow1('信息添加', 'Edit', '350', '380');
|
||
|
}
|
||
|
//修改
|
||
|
function Update() {
|
||
|
var ids = getSelectKey();
|
||
|
if (ids == "") {
|
||
|
MSI("提示", "请选择修改记录。");
|
||
|
return;
|
||
|
}
|
||
|
if (ids.indexOf(":") > 0) {
|
||
|
MSI("提示", "每次只能修改一条记录。");
|
||
|
return;
|
||
|
}
|
||
|
document.getElementById("selectKey").value = ids;
|
||
|
openAppWindow1('修改', 'Edit?PID=' + ids, '350', '380');
|
||
|
}
|
||
|
//删除
|
||
|
function Delete() {
|
||
|
var ids = getSelectKey();
|
||
|
if (ids == "") {
|
||
|
MSI("错误", "至少选择一条记录");
|
||
|
}
|
||
|
else {
|
||
|
document.getElementById("selectKey").value = ids;
|
||
|
MSQ("提示", "确定要删除选中的记录吗?", function () {
|
||
|
submitByButton("Delete");
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
</asp:Content>
|
||
|
|
||
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
||
|
<table cellpadding="0" cellspacing="0">
|
||
|
<tr>
|
||
|
<td align="center">
|
||
|
<%=Html.QTButtonSearch("BucketMaterialClass", "List", "List(1)", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
||
|
<%=Html.QTButtonAdd("BucketMaterialClass", "Add", "Add()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
||
|
<%=Html.QTButtonUpdate("BucketMaterialClass", "Edit", "Update()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
||
|
<%=Html.QTButtonDelete("BucketMaterialClass", "Delete", "Delete()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
</asp:Content>
|