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

170 lines
5.3 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master"
Inherits="System.Web.Mvc.ViewPage<QMAPP.MESReport.Web.Models.LineQTY.LineDWQTYModel>" %>
<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.WORKCENTER_CODE)%>
</th>
<td>
<%=Html.QC(p => p.WORKCENTER_CODE)%>
</td>
<th align="right">
<%=Html.QV(p => p.ROUTE_CODE)%>
</th>
<td>
<%=Html.QC(p => p.ROUTE_CODE)%>
</td>
<th align="right">
<%=Html.QV(p => p.WORKCELL_CODE)%>
</th>
<td>
<%=Html.QC(p => p.WORKCELL_CODE)%>
</td>
<th align="right">
<%=Html.QV(p => p.EQUIPMENT_NAME)%>
</th>
<td>
<%=Html.QC(p => p.EQUIPMENT_NAME)%>
</td>
<th align="right">
日期
</th>
<td>
<%=Html.QC(p => p.START_DATE)%>
</td>
<th align="right">
</th>
<td>
<%=Html.QC(p => p.END_DATE)%>
</td>
</tr>
</table>
<%=Html.QPEnd()%>
<%=Html.QPList() %>
<%=Html.QDateGrid<QMAPP.MESReport.Web.Models.LineQTY.LineDWQTYModel>(Model)%>
<%=Html.QPEnd() %>
<%=Html.Hidden("selectKey")%>
<%=Html.Hidden("PID")%>
<script language="javascript" type="text/javascript">
$(function () {
//工艺路线
$('#ROUTE_CODE').combobox({
onSelect: function () {
var routecode = $('#ROUTE_CODE').combobox('getValue');
if (routecode != "") {
//获取工序下拉数据源
$('#WORKCELL_CODE').combobox({
url: "/Dict/GetWorkCellSeqComboxSource?routecode=" + routecode,
editable: 'false',
valueField: 'WORKCELL_CODE',
textField: 'WORKCELL_NAME'
});
$('#WORKCELL_CODE').combobox("setValue", "");
}
else {
//清空工序下拉框
var plantData = [{ 'WORKCELL_CODE': "", 'WORKCELL_NAME': ""}];
$('#WORKCELL_CODE').combobox("loadData", plantData);
$('#WORKCELL_CODE').combobox("select", "");
}
}
});
});
function Search()
{
var endtime = document.getElementById("END_DATE").value;
if (parseDate($("#START_DATE").val()) > parseDate($("#END_DATE").val()) && endtime != "") {
alert("开始时间不能大于结束时间!");
return;
}
List(1);
}
//添加
function Add() {
openAppWindow1('信息添加', 'Edit', '450', '240');
}
//修改
function Update() {
var ids = getSelectKey();
if (ids == "") {
MSI("提示", "请选择修改记录。");
return;
}
if (ids.indexOf(":") > 0) {
MSI("提示", "每次只能修改一条记录。");
return;
}
document.getElementById("selectKey").value = ids;
openAppWindow1('修改', 'Edit?PID=' + ids, '450', '240');
}
//删除
function Delete() {
var ids = getSelectKey();
if (ids == "") {
MSI("错误", "至少选择一条记录");
}
else {
document.getElementById("selectKey").value = ids;
MSQ("提示", "确定要删除选中的记录吗?", function () {
submitByButton("Delete");
})
}
}
//导出
function Export() {
var dg = $('#QDateGrid').datagrid();
// document.getElementById("selectKey").value = getSelectKey();
submitByButton("ExportExcel");
}
$(function () {
$('#WORKCENTER_CODE').combobox({
panelWidth: '150'
});
});
$(function () {
$('#ROUTE_CODE').combobox({
panelWidth: '180'
});
});
$(function () {
$('#EQUIPMENT_NAME').combobox({
panelWidth: '250'
});
});
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<%=Html.QTButtonSearch("LineDWQTYCount", "GetList", "Search()", QMAPP.Common.Web.SystemLimit.isLimt)%>
<%=Html.QTButton("export", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "Export()", QMAPP.Common.Web.SystemLimit.isLimt)%>
</td>
</tr>
</table>
</asp:Content>