You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
347 lines
13 KiB
Plaintext
347 lines
13 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DD_ApiAPIForTM.aspx.cs" Inherits="TradeManage.DingDan.DD_ApiAPIForTM" %>
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head runat="server">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title></title>
|
|
<link rel="stylesheet" type="text/css" href="../themes/default/easyui.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/icon.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/New.css" />
|
|
<link rel="stylesheet" type="text/css" href="../themes/DataGrid.css" />
|
|
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox/jquery.fancybox-1.3.4.css" />
|
|
<script src="../Scripts/MicrosoftAjax.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DataGrid.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DataPager.js" type="text/javascript"></script>
|
|
<script src="../Scripts/jquery.bgiframe.min.js" type="text/javascript"></script>
|
|
<script src="../Scripts/Global.js" type="text/javascript"></script>
|
|
<script src="../Scripts/WindowLoad.js" type="text/javascript"></script>
|
|
<script src="../Scripts/CheckBoxList.js" type="text/javascript"></script>
|
|
<script src="../Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
|
|
|
|
<script type="text/javascript">
|
|
var CheckBoxList1 = new nblf.ui.CheckBoxList("divShop");
|
|
var WindowLoadModel = new WindowLoad();
|
|
|
|
|
|
$(document).ready(function () {
|
|
WindowLoadModel.ApplicationPath = "../";
|
|
WindowLoadModel.ControlID = "WindowLoad";
|
|
WindowLoadModel.Isbgiframe = true;
|
|
WindowLoadModel.Load();
|
|
ajaxInit(WindowLoadModel);
|
|
//GetDefaultTime();
|
|
//var CurrentDate = new Date();
|
|
//$("#txtStartDate").val(CurrentDate.localeFormat("yyyy-MM-dd"));
|
|
//$("#txtStopDate").val(CurrentDate.localeFormat("yyyy-MM-dd"));
|
|
|
|
BindPlatType();
|
|
BindShop();
|
|
|
|
$("#cmdImport").click(function () {
|
|
Import();
|
|
});
|
|
$("#cmdIssue").click(function () {
|
|
Issue();
|
|
});
|
|
$("#cmdCuikuan").click(function () {
|
|
cuikuai();
|
|
});
|
|
$("#cmdYanchang").click(function () {
|
|
ycshsh();
|
|
});
|
|
|
|
$("#chk_Selectall").click(function () {
|
|
if ($(this)[0].checked == true) {
|
|
CheckBoxList1.SelectAll();
|
|
} else {
|
|
CheckBoxList1.UnSelectAll();
|
|
}
|
|
});
|
|
|
|
$('#listPlatType').change(function () {
|
|
//var PlatType = $(this).val();
|
|
//if (PlatType == "4") { $("tr1").hide(); }
|
|
//else { $("tr1").show(); }
|
|
BindShop();
|
|
});
|
|
|
|
|
|
});
|
|
//function GetDefaultTime() {
|
|
// var param = new Object();
|
|
// param.Days =-7;
|
|
// //param.KeyName = "ptlx";
|
|
// $.ajax({
|
|
// url: "SysManageService.asmx/GetDefaultTime",
|
|
// data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
// async: false,
|
|
// success: function (data) {
|
|
|
|
// $('#txt_SDate').val(data.d);
|
|
// }
|
|
// });
|
|
//}
|
|
//#region 读取平台
|
|
function BindPlatType() {
|
|
var param = new Object();
|
|
param.CompanyID = 0;
|
|
param.KeyName = "ptlx";
|
|
$.ajax({
|
|
url: "../UserService.asmx/GetPlatBaseCode",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
async: false,
|
|
success: function (data) {
|
|
var html = new Sys.StringBuilder();
|
|
//html.append("<option value='0'>全部</option>");
|
|
$(data.d).each(function () {
|
|
html.append("<option value='" + this.SortNo + "'>" + this.Name + "</option>");
|
|
});
|
|
$('#listPlatType').html(html.toString());
|
|
}
|
|
});
|
|
}
|
|
//#endregion
|
|
//#region 读取店铺
|
|
function BindShop() {
|
|
var param = new Object();
|
|
param.PlatType = 1;
|
|
$.ajax({
|
|
url: "../BaseData.asmx/GetShopListForTM",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
async: false,
|
|
success: function (data) {
|
|
CheckBoxList1.DataTextField = "ShopName"; //显示字段
|
|
CheckBoxList1.DataValueField = "ShopId"; //隐藏字段
|
|
CheckBoxList1.RepeatColumns = 10; //每行显示几项
|
|
CheckBoxList1.DataSource = data.d; //绑定数据源
|
|
CheckBoxList1.DataBind(); //绑定
|
|
chk_Selectall.checked=false;
|
|
//CheckBoxList1.SelectAll();
|
|
}
|
|
});
|
|
}
|
|
//#endregion
|
|
|
|
//#region 评价
|
|
function Import() {
|
|
var param = new Object();
|
|
//param.PlatType = $('#listPlatType').val();
|
|
//param.StartDate = null;
|
|
//if ($("#txt_SDate").val()!="")
|
|
// param.StartDate = $("#txt_SDate").val();
|
|
//param.StopDate = null;
|
|
//if ($("#txt_EDate").val() != "")
|
|
//param.StopDate = $("#txt_EDate").val();
|
|
if ($("#txtcontent").val() == "") { alert("请输入内容"); return; }
|
|
param.content = $("#txtcontent").val();
|
|
|
|
param.ListModel = new Array();
|
|
$(CheckBoxList1.GetSelectItems()).each(function () {
|
|
var id = $(this).val();
|
|
Array.add(param.ListModel, id);
|
|
});
|
|
if (param.ListModel.length == 0) { alert("请选择一个店铺"); return; }
|
|
//if (param.ListModel.length > 1) { alert("请选择一个店铺"); return; }
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderServiceForTM.asmx/Evaluation",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d == "") { $("#txtlog").val("成功"); }
|
|
else {
|
|
$("#txtlog").val(data.d);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
//#endregion
|
|
function Issue() {
|
|
var param = new Object();
|
|
|
|
param.ShopId = 0;
|
|
$(CheckBoxList1.GetSelectItems()).each(function () {
|
|
var id = $(this).val();
|
|
param.ShopId = id;
|
|
});
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderServiceForTM.asmx/queryIssueList",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d == "") { $("#txtlog").val("成功"); }
|
|
else {
|
|
$("#txtlog").val(data.d);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
//#region 催款
|
|
function cuikuai() {
|
|
var param = new Object();
|
|
|
|
if ($("#txtCuiKuan").val() == "") { alert("请输入内容"); return; }
|
|
param.content = $("#txtCuiKuan").val();
|
|
|
|
if ($("#txt_Pagenum").val() == "") { alert("请输入页数"); return; }
|
|
param.pagenum = $("#txt_Pagenum").val();
|
|
|
|
if ($("#txt_Stime").val() == "") { alert("请输入下单时间超过"); return; }
|
|
param.Timetemp = $("#txt_Stime").val();
|
|
|
|
param.ListModel = new Array();
|
|
$(CheckBoxList1.GetSelectItems()).each(function () {
|
|
var id = $(this).val();
|
|
Array.add(param.ListModel, id);
|
|
});
|
|
if (param.ListModel.length == 0) { alert("请选择一个店铺"); return; }
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderServiceForTM.asmx/DeptOrder",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d == "") { $("#txtlog").val("成功"); }
|
|
else {
|
|
$("#txtlog").val(data.d);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
//#endregion
|
|
|
|
//#region 延长订单收货时间
|
|
function ycshsh() {
|
|
var param = new Object();
|
|
|
|
if ($("#txt_PageBegin").val() == "") { alert("请输入页数"); return; }
|
|
param.begin = $("#txt_PageBegin").val();
|
|
|
|
if ($("#txt_PageEnd").val() == "") { alert("请输入页数"); return; }
|
|
param.end = $("#txt_PageEnd").val();
|
|
|
|
if ($("#txt_time").val() == "") { alert("请输入延长时间"); return; }
|
|
param.day = $("#txt_time").val();
|
|
|
|
param.ListModel = new Array();
|
|
$(CheckBoxList1.GetSelectItems()).each(function () {
|
|
var id = $(this).val();
|
|
Array.add(param.ListModel, id);
|
|
});
|
|
if (param.ListModel.length == 0) { alert("请选择一个店铺"); return; }
|
|
|
|
WindowLoadModel.Show();
|
|
$.ajax({
|
|
url: "DD_OrderServiceForTM.asmx/ExtentTime",
|
|
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
|
|
success: function (data) {
|
|
WindowLoadModel.Hide();
|
|
if (data.d == "") { $("#txtlog").val("成功"); }
|
|
else {
|
|
$("#txtlog").val(data.d);
|
|
}
|
|
}
|
|
});
|
|
}
|
|
//#endregion
|
|
|
|
</script>
|
|
<style type="text/css">
|
|
#txtcontent {
|
|
height: 117px;
|
|
width: 308px;
|
|
}
|
|
#txtcontent0 {
|
|
height: 68px;
|
|
width: 308px;
|
|
}
|
|
#txtCuiKuan {
|
|
height: 71px;
|
|
width: 332px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body class="headbody">
|
|
<div class="title_ico">
|
|
订单评价,催款,延长收货时间
|
|
</div>
|
|
<table id="tb1" class="tableAll" style="width: 100%;">
|
|
<colgroup>
|
|
<col style="width:100px;" />
|
|
<col />
|
|
</colgroup>
|
|
<tr>
|
|
|
|
<td colspan="2">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="f1">店铺
|
|
<input id="chk_Selectall" type="checkbox" />
|
|
</td>
|
|
<td id="divShop">
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="f1">留评
|
|
</td>
|
|
<td>
|
|
<%--<select id="listPlatType" class="selectClass" style="width: 150px;"></select>--%>
|
|
<textarea id="txtcontent">Thanks for your shopping.we hope this shopping provide you a wonderful experience,and hope you can give us a 5 stars feedback.
|
|
looking forward to your next visit
|
|
Have a nice day!
|
|
Joy</textarea>
|
|
<input id="cmdImport" type="button" class="btnClass btnClassAdd" value="评价" />
|
|
|
|
<input id="cmdIssue" type="button" class="btnClass btnClassAdd" value="评价" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="f1">催款:</td>
|
|
<td>
|
|
页数:
|
|
<input id="txt_Pagenum" class="editTextbox" style="width: 120px;" type="text" />
|
|
下单时间超过:
|
|
<input id="txt_Stime" class="editTextbox" style="width: 120px;" type="text" />分钟 采集间隔时间:
|
|
<input id="txt_Bytime" class="editTextbox" style="width: 120px;" type="text" />分钟<br />
|
|
<textarea id="txtCuiKuan" name="S1">dear friend, we have the items in stock, you can pay for the order, we will send it as soon as possible after payment, thanks!</textarea>
|
|
<input id="cmdCuikuan" type="button" class="btnClass btnClassAdd" value="催款" />
|
|
<%--<input id="cmdCuikuanByTime" type="button" class="btnClass btnClassAdd" value="定时催款设置" />--%>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="f1">延长收货时间:</td>
|
|
<td>
|
|
页数 从
|
|
<input id="txt_PageBegin" class="editTextbox" style="width: 120px;" type="text" />
|
|
到
|
|
<input id="txt_PageEnd" class="editTextbox" style="width: 120px;" type="text" /> 延长时间:
|
|
<input id="txt_time" class="editTextbox" style="width: 120px;" type="text" />天
|
|
<input id="cmdYanchang" type="button" class="btnClass btnClassAdd" value="延长" />
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td valign="top" colspan="2" >
|
|
<textarea id="txtlog" cols="20" rows="2" style="width: 100%; height: 400px"></textarea>
|
|
<%--<textarea id="txtErrorlog" cols="20" rows="2" style="width: 49%; height: 400px"></textarea>--%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</body>
|
|
</html>
|
|
|
|
|