81 lines
3.2 KiB
Plaintext
81 lines
3.2 KiB
Plaintext
@model WX.CRM.Model.QueryMap.Ord_MemoDelete
|
||
@using WX.CRM.WebHelper;
|
||
@{
|
||
ViewBag.Title = "MemoDelete";
|
||
Layout = "~/Views/Shared/_Module_Layout.cshtml";
|
||
}
|
||
<script type="text/javascript">
|
||
function btnQuery_Click() {
|
||
var typeid = $("#slt_BusinessTypeList").val();
|
||
var memoid = $("#txt_MemoId").val();
|
||
if (memoid == null || memoid == "") {
|
||
$.messageBox5s('提示', '请先输入工单编号');
|
||
} else {
|
||
$.r_ajax({
|
||
url: "/Ord/MemoDelete/Details",
|
||
type: "POST",
|
||
data: { TypeId: typeid, MemoId: memoid },
|
||
dataType: "html",
|
||
loading: true,
|
||
success: function (data) {
|
||
$("#divHtml").html(data);
|
||
}
|
||
});
|
||
}
|
||
}
|
||
function btnDelete_Click() {
|
||
var typeid = $("#slt_BusinessTypeList").val();
|
||
var memoid = $("#txt_MemoId").val();
|
||
if (memoid == null || memoid == "") {
|
||
$.messageBox5s('提示', '请先输入工单编号');
|
||
} else {
|
||
$.messager.confirm('提示', '确认删除此工单记录?', function (r) {
|
||
if (r) {
|
||
$.r_ajax({
|
||
url: "/Ord/MemoDelete/DeleteMemoInfo",
|
||
type: "POST",
|
||
data: { TypeId: typeid, MemoId: memoid },
|
||
dataType: "json",
|
||
loading: true,
|
||
success: function (data) {
|
||
window.frameReturnByMes(data.message);
|
||
$("#slt_BusinessTypeList").val("0");
|
||
$("#txt_MemoId").val("");
|
||
$("#divHtml").empty();
|
||
}
|
||
});
|
||
}
|
||
});
|
||
}
|
||
}
|
||
</script>
|
||
<div class="group ">
|
||
<img src="~/Content/Images/communication.gif">
|
||
<span>删除工单</span>
|
||
</div>
|
||
<div class="formContent">
|
||
@using (Html.BeginForm("MemoDelete", "MemoDelete", null, FormMethod.Post, new { Id = "CreateForm" }))
|
||
{
|
||
@Html.ValidationSummary(true)
|
||
<table class="fromEditTable mainTable" style="border-top:1px dashed #ccc;">
|
||
<tbody>
|
||
<tr>
|
||
<td style="width:100px;">工单类型:</td>
|
||
<td style="width:310px" colspan="2">
|
||
@Html.DropDownList("slt_BusinessTypeList", (IEnumerable<SelectListItem>)ViewBag.BusinessTypeList, new { style = "width:200px" })
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td style="width:100px;">工单ID:</td>
|
||
<td style="width:310px">@Html.TextBox("txt_MemoId", "", new { style = "width:200px" })</td>
|
||
<td>
|
||
<input id="btnQuery" class="btn btn-primary" type="button" value="查询" onclick="btnQuery_Click()" />
|
||
<input id="btnDelete" class="btn btn-primary" type="button" value="删除" onclick="btnDelete_Click()" />
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
<div id="divHtml"></div>
|
||
}
|
||
</div>
|