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

165 lines
5.5 KiB

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AppMaster.Master" Inherits="System.Web.Mvc.ViewPage<QMAPP.Web.Models.Sys.SupportInteractionModel>" %>
<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 id="editTable" width="400px">
<tr>
<th nowrap=nowrap>
<%=Html.QV(p => p.PSequ)%>
</th>
<td>
<%=Html.QReadOnlyTextboxFor(p => p.PSequ)%>
</td>
<th nowrap=nowrap align="right">
<%=Html.QV(p => p.PTypeName)%>
</th>
<td>
<%=Html.QReadOnlyTextboxFor(p => p.PTypeName)%>
</td>
</tr>
<tr>
<th nowrap=nowrap align="right" valign=top>
<%=Html.QV(p => p.PDesp)%>
</th>
<td nowrap=nowrap colspan=3>
<textarea class="validatebox-readonly" readonly="yes" cols="20" id="PDesp" name="PDesp" required="true" rows="2" style="width:480px;height:90px;" validType="length[0,50]"><%=Model.PDesp %>
</textarea>
</td>
</tr>
<tr>
<th nowrap=nowrap align="right" valign=top>
<%=Html.QV(p => p.Solve)%>
</th>
<td colspan=3>
<%=Html.QC(p => p.Solve)%>
</td>
</tr>
<tr>
<th nowrap=nowrap align="right" valign=top>
<%=Html.QV(p => p.Refer)%>
</th>
<td nowrap=nowrap colspan=3>
<%=Html.QC(p => p.Refer)%>
<a IconCls="icon-search" class="easyui-linkbutton" href="#" plain="true" onclick="searchList()" title="搜索问题处理方法"></a>
</td>
</tr>
<tr>
<th nowrap=nowrap align="right">
<%=Html.QV(p => p.AttachFile)%>
</th>
<td>
<%
string fileName = "无";
if(string.IsNullOrEmpty(Model.AttachFileName))
{
%>
<%=fileName %>
<% }else{
fileName = Model.AttachFileName;
%>
<a href="#" onclick="downAttach('<%=Model.AttachFile%>','<%=Model.AttachFileName%>')"><%=Model.AttachFileName%></a>
<%} %>
</td>
<th nowrap=nowrap align="right">
<%=Html.QV(p => p.Shkey)%>
</th>
<td>
<%=Html.QC(p => p.Shkey)%>
</td>
</tr>
<tr>
<th>
<%=Html.QV(p => p.CUserName)%>
</th>
<td>
<%=Html.QReadOnlyTextboxFor(p => p.CUserName)%>
</td>
<th>
<%=Html.QV(p=>p.CreateDate) %>
</th>
<td>
<input class="validatebox-readonly" id="CreateDate" name="CreateDate" readonly="yes" type="text" value="<%=Model.CreateDate.ToString("yyyy-MM-dd HH:mm:ss") %>" />
</td>
</tr>
</table>
<%=Html.HiddenFor(p=>p.PID) %>
<%=Html.HiddenFor(p=>p.CreateUser) %>
<%=Html.HiddenFor(p=>p.CreateDate) %>
<%=Html.HiddenFor(p => p.SDept)%>
<%=Html.HiddenFor(p => p.SUser)%>
<%=Html.HiddenFor(p => p.Solve)%>
<%=Html.QPEnd() %>
<script type="text/javascript">
//提交
function sumbit() {
openAppWindow1('提交', 'SelectSupportUser', '300', '300');
}
//搜索
function searchList() {
openAppWindow1('搜索', '/SupportInteraction/SelectProlemSolution', '700', '400');
}
//下载附件
function downAttach(fileName, oldFileName) {
// “ppt,txt,doc,xls,xlsx,”
submitByButton("/SupportInteraction/DownAttach?fileName=" + fileName + "&oldFileName=" + oldFileName);
}
//设置参照方法
function setSelectHandle(Solve) {
$("#Refer").val(Solve)
}
//返回选择的部门和处理人员
function setReturnValue(sDept, sUser) {
$("#SDept").val(sDept);
$("#SUser").val(sUser);
if (sDept != "") {
Save();
} else {
parent.closeAppWindow1();
}
}
//提交
function Save() {
submitByButton("SaveSupportInteraction");
}
function slove() {
//判断解决方案是否为空
if ($("#Solve").val() == "") {
alert("请添加解决方案!");
return false;
}
//判断关键字是否为空
if ($("#Shkey").val() == "") {
alert("请添加关键字!");
return false;
}
submitByButton("SloveSupportInteraction");
}
</script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ToolContent" runat="server">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<%=Html.QTButton("submit", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "sumbit()", (s, f) => { return true; })%>
<%=Html.QTButton("solveClose", "ExportExcel", QMFrameWork.WebUI.IconCls.redo, "slove()", (s, f) => { return true; })%>
<%=Html.QTButton("close", "SupportInteractionDeal", "close", "parent.closeAppWindow1();return false;", (s, f) => { return true; })%>
</td>
</tr>
</table>
</asp:Content>