ComplianceServer/oldcode/WEB/Views/Csvr/CustomerRelation/Check.cshtml

145 lines
5.6 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@using WX.CRM.WebHelper;
@{
ViewBag.Title = "Check";
Layout = "~/Views/Shared/_Index_Layout2.cshtml";
}
<style>
.txt-expand {
width: 16px;
height: 16px;
display: inline-block;
cursor: pointer;
}
.expand-activity {
background: url("/Content/Images/tools.png") no-repeat scroll 0 0 rgba(0, 0, 0, 0);
}
.close-activity {
background: url("/Content/Images/icon/edit_remove.png") no-repeat;
}
</style>
<div class="mvctool">
@Html.ToolButton("btnQuery", "icon-search", "查询", true)
@Html.Action("ToolBar", "Control", ViewBag.ToolBar as ToolBar)
</div>
<div class="bas_datagrid">
<div id="tb" style="padding:5px;height:auto" class="grid_toolbar">
<ul class="toolBar_ul">
<li>客户ID<input type="text" name="txt_Resid" style="width:130px" />&nbsp;</li>
<li>
审核状态:
<select name="slt_checkStatus">
<option value="-1">全部</option>
<option value="0" selected>未审核</option>
<option value="1">已审核</option>
<option value="2">未通过</option>
</select>
</li>
<li>申请时间:@Html.WdatePickerText("txt_stime", DateTime.Now.ToString("yyy-MM-dd"))&nbsp;</li>
<li>~@Html.WdatePickerText("txt_etime", DateTime.Now.ToString("yyy-MM-dd"))&nbsp;</li>
<li>
@*@Html.ToolButtonPlain("btnQuery" , "icon-search", "查询", false, "")*@
</li>
</ul>
</div>
@Html.Raw(ViewBag.GroupList)
</div>
<div id="dlgReason" class="easyui-dialog" closed="true" style="padding: 0px">
<table width="100%">
<tr>
<td width="100%">
<a id="btnConfirm" style="float: left;" class="l-btn l-btn-plain"><span class="l-btn-left"><span class="l-btn-text icon-save" style="padding-left: 20px;">确定</span></span></a>
</td>
</tr>
<tr>
<td width="100%">
不通过原因:<textarea id="txt_Reason" name="txt_Reason"></textarea>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
$(function () {
$('#tablist').tablegrid({
url: '/Csvr/CustomerRelation/GetList',
height: $(window).height() - 110,
loadNow: true
});
$("#btnQuery").click(function () {//搜索按钮点击事件
$('#tablist').tablegrid("Search");
});
$(window).resize(function () {//自动适应大小
$('#tablist').tablegrid('resize', {
height: $(window).height() - 110
});
});
});
function frameReturnByClose() {
$("#modalwindow").window('close');
}
function frameReturnByReload(flag) {
$("#tablist").tablegrid("Load");
}
function frameReturnByMes(mes) {
$.messageBox5s('提示', mes);
}
</script>
@*ToolBar事件处理*@
<script type="text/javascript">
function GetIframeHtml(src) {
return "<iframe width='100%' height='98%' scrolling='no' frameborder='0'' src='" + src + "'></iframe>";
}
function Details_Click() {
var row = $('#tablist').tablegrid('getSelected');
if (row != null) {
$("#modalwindow").html(GetIframeHtml("/Csvr/CustomerRelation/Details?id=" + row.uniteId));
$("#modalwindow").window({ title: '详细', width: 500, height: 300, iconCls: 'icon-details' }).window('open');
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
}
function Pass_click() {
var row = $('#tablist').tablegrid('getSelected');
if (row != null) {
if (row.checkName == null || row.checkName == "") {
$(function (r) {
if (r) {
$.r_post("/Csvr/CustomerRelation/Check?result=Pass&id=" + row.uniteId + "&reason=null", function (data) {
if (data.type == 1) {
$("#tablist").tablegrid('Load');
}
$.messageBox5s('提示', data.message);
}, "json");
}
});
} else { $.messageBox5s('提示', '你选择的记录已经是已审核状态!'); }
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
}
function NotPass_click() {
var row = $('#tablist').tablegrid('getSelected');
if (row != null) {
if (row.checkName == null || row.checkName == "") {
$("#dlgReason").dialog({ title: '原因', closed: false, cache: false, modal: true, width: '350', height: '200' });
$("#btnConfirm").click(function (r) {
if ($('#txt_Reason').val() === "") {
alert("原因不能为空!");
}
else {
$.r_post("/Csvr/CustomerRelation/Check?result=NotPass&id=" + row.uniteId + "&reason=" + $("#txt_Reason").val(), function (data) {
if (data.type == 1) {
$("#tablist").tablegrid('Load');
}
$.messageBox5s('提示', data.message);
}, "json");
$("#dlgReason").dialog({ closed: true });
}
})
} else { $.messageBox5s('提示', '你选择的记录已经是已审核状态!'); }
} else { $.messageBox5s('提示', '@Suggestion.PlaseChooseToOperatingRecords'); }
}
</script>