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
4.7 KiB
135 lines
4.7 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">
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.PType)%>
|
|
</th>
|
|
<td colspan="3">
|
|
<%=Html.QC(p => p.PType)%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right" valign="top">
|
|
<%=Html.QV(p => p.PDesp)%>
|
|
</th>
|
|
<td colspan="3">
|
|
<%=Html.QC(p => p.PDesp)%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th align="right">
|
|
<%=Html.QV(p => p.AttachFile)%>
|
|
</th>
|
|
<td>
|
|
<input type="file" name="attfile" id="attfile" value="<%=Model.AttachFileName %>"/>
|
|
</td>
|
|
<th align="right">
|
|
<%-- <%=Html.QV(p => p.Shkey)%>--%>
|
|
</th>
|
|
<td>
|
|
<%-- <%=Html.QC(p => p.Shkey)%>--%>
|
|
</td>
|
|
</tr>
|
|
<tr><td colspan="4">
|
|
<label style=" color:Red" > ※允许上传文件格式:xls、xlsx、ppt、pptx、doc、docx、txt、bmp、jpg、jpeg、gif、png、rar、zip</label></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)%>
|
|
|
|
<!-- 原附件名称 -->
|
|
<input id="AttachFile" name="AttachFile" type="hidden" value="<%=Model.AttachFile %>" />
|
|
<%=Html.QPEnd() %>
|
|
|
|
</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()", QMAPP.Common.Web.SystemLimit.isLimt)%>
|
|
<%=Html.QTButton("close", "SupportInteractionList", "close", "parent.closeAppWindow1();return false;", (s, f) => { return true; })%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<script type="text/javascript">
|
|
$(function () {
|
|
$('#PType').combobox({
|
|
url: '/SupportInteraction/GetTypeList',
|
|
editable: 'false',
|
|
valueField: 'id',
|
|
textField: 'text'
|
|
});
|
|
});
|
|
//提交
|
|
function sumbit() {
|
|
|
|
//校验基本信息合法性
|
|
if (isValidate() == false) {
|
|
return false;
|
|
}
|
|
|
|
//判断文件类型是否符合要求
|
|
filePath = $("#attfile").val();
|
|
|
|
if (filePath != "") {
|
|
//判断文件格式
|
|
var fileText = filePath.substring(filePath.lastIndexOf(".", filePath.length)); //获取文件扩展名
|
|
fileText = fileText.toLowerCase();
|
|
if (fileText != ".xls" && fileText != ".ppt" && fileText != ".doc"
|
|
&& fileText != ".xlsx" && fileText != ".txt" && fileText != ".docx"
|
|
&& fileText != ".bmp" && fileText != ".jpg" && fileText != ".jpeg"
|
|
&& fileText != ".gif" && fileText != ".png" && fileText != ".rar"
|
|
&& fileText != ".zip" && fileText != ".pptx") {
|
|
MSI("错误", "上传文件格式错误");
|
|
return false;
|
|
}
|
|
}
|
|
var result = openAppWindow1('提交', 'SelectSupportUser', '300', '300');
|
|
}
|
|
|
|
//保存
|
|
function Save() {
|
|
//校验基本信息合法性
|
|
if (isValidate() == false) {
|
|
return false;
|
|
}
|
|
|
|
submitByButton("SupportInteractionSave?PTypeName=" + $("#PType").combobox('getText'));
|
|
}
|
|
|
|
//返回选择的部门和处理人员
|
|
function setReturnValue(sDept,sUser) {
|
|
$("#SDept").val(sDept);
|
|
$("#SUser").val(sUser);
|
|
if (sDept != "") {
|
|
Save();
|
|
} else {
|
|
parent.closeAppWindow1();
|
|
}
|
|
}
|
|
|
|
//返回选择的部门和处理人员
|
|
function getParentValue(flag) {
|
|
if (flag == "sDept") {
|
|
return $("#SDept").val();
|
|
}
|
|
if (flag == "sUser") {
|
|
return $("#SUser").val();
|
|
}
|
|
return "";
|
|
}
|
|
|
|
</script>
|
|
|
|
</asp:Content>
|
|
|