116 lines
3.3 KiB
Plaintext
116 lines
3.3 KiB
Plaintext
@using WX.CRM.WebHelper;
|
||
@{
|
||
ViewBag.Title = "导入";
|
||
//Layout = "~/Views/Shared/_Index_Layout2.cshtml";
|
||
Layout = "~/Views/Shared/_Index_LayoutEdit.cshtml";
|
||
}
|
||
<div class="mvctool bgb">
|
||
@Html.ToolButtonPlain("btnSave", "icon-check", "保存", false, "")
|
||
</div>
|
||
|
||
<!--遮罩层-->
|
||
<style type="text/css">
|
||
#bg {
|
||
display: none;
|
||
position: absolute;
|
||
top: 0%;
|
||
left: 0%;
|
||
width: 100%;
|
||
height: 100%;
|
||
background-color: black;
|
||
z-index: 1001;
|
||
-moz-opacity: 0.7;
|
||
opacity: .70;
|
||
filter: alpha(opacity=70);
|
||
}
|
||
|
||
#show {
|
||
display: none;
|
||
position: absolute;
|
||
top: 45%;
|
||
left: 40%;
|
||
width: 20%;
|
||
height: 10%;
|
||
padding: 8px;
|
||
border: 8px solid #E8E9F7;
|
||
background-color: white;
|
||
z-index: 1002;
|
||
overflow: auto;
|
||
}
|
||
|
||
textarea{
|
||
line-height:20px;
|
||
}
|
||
</style>
|
||
<div id="bg"></div>
|
||
<div id="show"><br /> 提示:数据正在处理中……</div>
|
||
|
||
<form id="frmUpload" method="post" action="/Res/CustomerLabel/Import" enctype="multipart/form-data">
|
||
<input id="FileType" name="FileType" type="hidden" value="" />
|
||
<div class="easyui-tabs" style="height: auto; padding: 0px; margin: 0px;" id="batchMible">
|
||
@*<div title="文本" style="padding: 15px;">
|
||
<table>
|
||
<tr>
|
||
<td>号码:</td>
|
||
<td>
|
||
<textarea id='txtMobiles' cols="90" rows="7" name="txtMobiles" style="width:300px;height:300px;"></textarea>
|
||
<span style="color:red">注意:一个资源一行</span>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<div title="文件" style="padding: 15px;">
|
||
<table>
|
||
<tr>
|
||
<td>文件:</td>
|
||
<td>
|
||
<input id="FileMobile" name="FileMobile" type="file" />
|
||
<span style="color:red">注意:一个资源一行</span>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>*@
|
||
<div title="Excel" style="padding: 15px;">
|
||
<table>
|
||
<tr>
|
||
<td>Excel:</td>
|
||
<td>
|
||
<input id="FileMobile2" name="FileMobile2" type="file" />
|
||
<span style="color:red">注意:excel文件第一行必须要加上列头信息</span>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
<script type="text/javascript">
|
||
$(document).ready(function () {
|
||
$('#frmUpload').ajaxForm({
|
||
dataType: 'text',
|
||
beforeSend: ForEverajaxLoading,
|
||
complete: ForEverajaxLoadEnd,
|
||
success: function (data) {
|
||
if (data == "ok") {
|
||
$.messageBox5s('提示', "提交成功!");
|
||
$("#frmUpload").resetForm();
|
||
} else {
|
||
$.messageBox5s('提示', data);
|
||
}
|
||
}
|
||
});
|
||
|
||
$("#btnSave").click(function () {
|
||
var title = $("#batchMible .tabs-selected").text();
|
||
$("#FileType").val(title);
|
||
|
||
$('#frmUpload').submit();
|
||
})
|
||
});
|
||
|
||
|
||
|
||
</script>
|
||
|
||
|
||
|