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.
180 lines
5.2 KiB
180 lines
5.2 KiB
4 years ago
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" Inherits="System.Web.Mvc.ViewPage<QMAPP.MD.Web.Models.DaiModel>" %>
|
||
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
||
|
信息编辑
|
||
|
</asp:Content>
|
||
|
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||
|
<%=Html.QPEdit("信息", string.IsNullOrEmpty(Model.PID) ? QMFrameWork.WebUI.panelType.Add : QMFrameWork.WebUI.panelType.Update)%>
|
||
|
<table class="editTable" >
|
||
|
<tr>
|
||
|
<th>
|
||
|
<%=Html.QV(p => p.WORKCELL_CODE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.WORKCELL_CODE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>
|
||
|
工位
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.ANALYZE_CODE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>
|
||
|
<%=Html.QV(p => p.EQUIPMENT_CODE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.EQUIPMENT_CODE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>
|
||
|
<%=Html.QV(p => p.DA_CODE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.DA_CODE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>
|
||
|
采集原始数据
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.REMARK)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>
|
||
|
<%=Html.QV(p => p.DA_NAME)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.DA_NAME)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>
|
||
|
<%=Html.QV(p => p.DA_STATUS)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.DA_STATUS)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>
|
||
|
<%=Html.QV(p => p.MATERIAL_CODE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.MATERIAL_CODE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<th>
|
||
|
<%=Html.QV(p => p.DATA_TYPE)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.DATA_TYPE)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>
|
||
|
<%=Html.QV(p => p.PIVOTAL)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.PIVOTAL)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th>
|
||
|
<%=Html.QV(p => p.DA_MODEL)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.DA_MODEL)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<th>
|
||
|
<%=Html.QV(p => p.FLGDEL)%>
|
||
|
</th>
|
||
|
<td>
|
||
|
<%=Html.QC(p => p.FLGDEL)%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan = 2>
|
||
|
<%= Html.QTButtonAdd("Dai", "Add", "Add()") %>
|
||
|
<%= Html.QTButtonDelete("Dai", "Delete", "Delete()") %>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan=2 height="200px" width="500px" >
|
||
|
<div class="easyui-layout" style="width:450px;height:300px;">
|
||
|
<%=Html.QPList() %>
|
||
|
<%=Html.QDataGridEditable<QMAPP.MD.Web.Models.DaiDataModel>("grid1", new QMAPP.MD.Web.Models.DaiDataModel())%>
|
||
|
<%=Html.QPEnd() %>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<%=Html.HiddenFor(p => p.PID)%>
|
||
|
<%=Html.HiddenFor(p => p.CREATEDATE)%>
|
||
|
<%=Html.HiddenFor(p => p.CREATEUSER)%>
|
||
|
<%=Html.HiddenFor(p => p.UPDATEDATE)%>
|
||
|
<%=Html.HiddenFor(p => p.UPDATEUSER)%>
|
||
|
<%= Html.HiddenFor(p => p.DetailValue) %>
|
||
|
<%=Html.QPEnd() %>
|
||
|
</asp:Content>
|
||
|
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
|
||
|
<table width="100%" cellpadding="0" cellspacing="0">
|
||
|
<tr>
|
||
|
<td>
|
||
|
<%=Html.QTButtonSave("Dai", "DaiSave", "return Save();")%>
|
||
|
<%=Html.QTButtonBack("close", "DaiList", "parent.closeAppWindow1();return false;")%>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<script type="text/javascript">
|
||
|
$(function () {
|
||
|
$("#WORKCELL_CODE").val("GX01");
|
||
|
$("#ANALYZE_CODE").val("AAAAAA");
|
||
|
$("#EQUIPMENT_CODE").val("AAA");
|
||
|
$("#DA_CODE").val("BNTEST");
|
||
|
});
|
||
|
//添加
|
||
|
function Add() {
|
||
|
$("#grid1").datagrideditable('appendRow', { });
|
||
|
}
|
||
|
//删除
|
||
|
function Delete() {
|
||
|
var rowIndexSelected = $("#grid1").datagrideditable("rowIndexSelected");
|
||
|
if (rowIndexSelected == "")
|
||
|
{
|
||
|
MSI(MsgNormalTitle, AtLeastOneTitle);
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
$("#grid1").datagrideditable("deleteRow", rowIndexSelected);
|
||
|
}
|
||
|
}
|
||
|
//保存
|
||
|
function Save() {
|
||
|
if (!isValidate())
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
if ($("#grid1").datagrideditable("isValid") == false)
|
||
|
return false;
|
||
|
var data = JSON.stringify($("#grid1").datagrid("getRows"));
|
||
|
$('#DetailValue').val(data);
|
||
|
submitByButton("DaiSave");
|
||
|
}
|
||
|
</script>
|
||
|
</asp:Content>
|
||
|
|
||
|
|
||
|
|
||
|
|