<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShejiOrderList.aspx.cs" Inherits="CY.WebForm.Pages.business.ShejiOrderList" %>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head id="Head1" runat="server">
|
<title>订单列表</title>
|
<uc:cmshead id="CMSHead1" runat="server" />
|
<script src="../../js/business/Order.js?v=8" type="text/javascript"></script>
|
<script type="text/javascript">
|
//订单评价
|
function evaluationModel(orderid) {
|
dialog.open({ URL: "/Pages/business/EvaluationSeller.aspx?orderid=" + orderid, Title: "卖家评价", Width: 580, Height: 300 });
|
}
|
|
function OpenComplainan(orderId, orderCode, firmId) {
|
var url = "/Pages/business/ComplainanEdit.aspx?orderId=" + orderId;
|
url += "&orderCode=" + orderCode;
|
url += "&firmId=" + firmId;
|
url += "&type=1";
|
top.Dialog.open({ URL: url, Title: "新增投诉" });
|
}
|
|
function OpenVisit(orderId, orderCode, buyerName) {
|
var url = "/Pages/business/BackVisitNoteEdit.aspx?id=" + orderId;
|
url += "&orderId=" + orderCode;
|
url += "&buyerName=" + buyerName;
|
top.Dialog.open({ URL: url, Title: "订单回访", Height: 400 });
|
}
|
|
function toXiadan(orderId) {
|
window.dialog.confirm('是否确认当前操作?', function () {
|
{
|
|
var url = "/Pages/business/ShejiOrderxiadan.aspx?Keyid=" + orderId;
|
top.Dialog.open({ URL: url, Title: "下单", Height: 600, Width: 800 });
|
|
}
|
});
|
|
|
}
|
|
function ToBatchxiadan() {
|
|
var jsonObj = undefined;
|
var ids = '';
|
var cks = $("input[name='ckId']:checked");
|
|
if (cks.length == 0) { alertMsg('只有未下单的订单可下单,未选中!'); return; } else { }
|
|
cks.each(function (d) {
|
|
try {
|
jsonObj = eval('[' + this.value + ']')[0];
|
} catch (ex) {
|
global.DealDataException(ex); return;
|
}
|
|
|
ids += ',' + jsonObj.id;
|
|
|
|
});
|
|
window.dialog.confirm('是否确认当前操作?', function () {
|
{
|
|
var url = "/Pages/business/ShejiOrderxiadan.aspx?Keyid=" + ids;
|
top.Dialog.open({ URL: url, Title: "下单", Height: 600, Width: 800 });
|
|
}
|
});
|
|
|
|
}
|
|
function CompledWork(orderId) {
|
var url = "/Pages/business/CompledWork.aspx?ids=" + orderId;
|
top.Dialog.open({ URL: url, Title: "完工", Height: 300, Width: 680 });
|
}
|
|
function ShowOrderFengqian(orderId) {
|
top.Dialog.open({ URL: "/Pages/business/AgSealPrint.aspx?orderid=" + orderId, Title: "打印封签", Width: 1100, Height: 900 });
|
}
|
|
|
function ShowPlanOrder(orderId) {
|
top.Dialog.open({ URL: "/Pages/business/PlanShejiOrderList.aspx?orderkeyid=" + orderId, Title: "计划订单", Width: 1100, Height: 900 });
|
}
|
|
|
/*
|
显示订单
|
*/
|
function ShowOrderOrder(id) {
|
OpenSmallWindowByUrlUseSize("/Pages/business/ShejiOrderDeatil.aspx?orderId=" + id, 850, 800);
|
}
|
|
function DeliverWork(orderId, orderCode, orderState) {
|
var url = "/Pages/business/DeliverWork.aspx?ids=" + orderId;
|
url += "&OrderShowId=" + orderCode;
|
url += "&OrderState=" + orderState;
|
top.Dialog.open({ URL: url, Title: "送货", Height: 450, Width: 680 });
|
}
|
|
//查看客户资料
|
function View(personId) {
|
top.Dialog.open({ URL: "/Pages/business/CorporateClientsDetail.aspx?keyid=" + personId, Title: "查看客户", Width: 900, Height: 580 });
|
}
|
|
//下载文件
|
function onDownLoad(keyid) {
|
top.Dialog.confirm("确定要下载文件?", function () {
|
window.location = "/Pages/business/ShejiOrderList.aspx?downId=" + keyid;
|
});
|
}
|
|
$(function () {
|
$(".td_hide").find("span").hide();
|
$(".td_hide").find("span").each(
|
function () {
|
var value = $.trim($(this).text());
|
var classValue = $(this).attr("class");
|
if (value == '√') {
|
$(this).show();
|
}
|
if (classValue == "hand_yes") {
|
$(this).show();
|
}
|
if (classValue == "hand_no") {
|
$(this).removeAttr("onclick");
|
}
|
}
|
);
|
|
$(".td_hide").hover(function () {
|
$(this).find("span").each(
|
function () {
|
var value = $.trim($(this).text());
|
var classValue = $(this).attr("class");
|
if (value == '√') {
|
|
}
|
else {
|
if (classValue == "hand_no") {
|
}
|
else {
|
$(this).show();
|
}
|
}
|
}
|
);
|
}, function () {
|
$(this).find("span").each(
|
function () {
|
var value = $.trim($(this).text());
|
var classValue = $(this).attr("class");
|
if (value == '√') {
|
}
|
else {
|
if (classValue == "hand_yes") {
|
$(this).show();
|
}
|
else {
|
$(this).hide();
|
}
|
}
|
}
|
);
|
});
|
|
$(".edit").each(
|
function () {
|
var hideOrderState = $(this).next().val();
|
var hideOrderType = $(this).next().next().val();
|
var orderState = parseInt(hideOrderState);
|
var orderType = parseInt(hideOrderType);
|
if (orderState >= 4 || orderState <= 0 || orderType > 1) {
|
$(this).removeClass("a_under");
|
$(this).removeAttr("onclick");
|
}
|
}
|
);
|
});
|
|
|
|
|
/*
|
确认批量开票申请
|
*/
|
function ToWaixieFukuan() {
|
|
var ids = '';
|
var ordernos = '';
|
var cks = $("input[name='ckId']:checked");
|
if (cks.length == 0) {
|
alertMsg('没有选中任何项!');
|
return;
|
}
|
else {
|
}
|
|
|
|
|
cks.each(
|
function () {
|
var ckVal = $(this).val();
|
|
var ckValJson = eval('(' + ckVal + ')');
|
|
ids = ids + ',' + ckValJson.id;
|
ordernos = ordernos + ',' + ckValJson.orderId;
|
|
|
}
|
);
|
|
|
|
|
|
|
kaipiaoConfirm(ids, ordernos);
|
//var msg = ('确认开票申请吗?');
|
//top.Dialog.confirm(msg, function () {
|
// DoAcceptAll3(ids);
|
//});
|
|
}
|
function kaipiaoConfirm(orderId,orderno) {
|
var url = "/Pages/business/Waixiefukuanshenqing.aspx?id=" + orderId + "&&orderno=" + orderno;
|
top.Dialog.open({ URL: url, Title: "外协付款申请", Height: 600, Width: 580 });
|
}
|
|
|
|
|
function showProgress() {
|
document.getElementById('progressBar').style.display = 'block';
|
|
|
setTimeout(function () {
|
document.getElementById('progressBar').style.display = 'none';
|
}, 5000); // 10000毫秒等于10秒
|
|
}
|
|
|
/*
|
确认批量删除
|
*/
|
function ToBatchdelete(operateFn, validateFn) {
|
var canntDeleteobjs = new Array();
|
var jsonObj = undefined;
|
var ids = '';
|
var cks = $("input[name='ckId']:checked");
|
|
if (cks.length == 0) { alertMsg('只有未下单的订单可删除,未选中!'); return; } else { }
|
|
cks.each(function (d) {
|
|
try {
|
jsonObj = eval('[' + this.value + ']')[0];
|
} catch (ex) {
|
global.DealDataException(ex); return;
|
}
|
|
if (jsonObj.shejiStatus == "1") {
|
canntDeleteobjs[canntDeleteobjs.length] = this;
|
}
|
ids += ',' + jsonObj.id;
|
|
|
|
});
|
|
//有不可删除的数据
|
if (canntDeleteobjs.length > 0) {
|
alertMsg('只有未下单订单可删除!');
|
return;
|
//window.dialog.confirm('只有未下单订单可删除,请问是否排除不能删除的订单并继续操作?', function () {
|
// setTimeout(function () {
|
// clearSelected(canntDeleteobjs); //清除选中的不可删除数据
|
// ToBatch(operateFn, validateFn); //重新执行自己
|
// }, 0);
|
//});
|
}
|
else if (operateFn) {
|
window.dialog.confirm('是否确认当前操作?', function () {
|
{
|
|
operateFn(ids.substring(1));
|
|
}
|
});
|
}
|
else { alertMsg('调用错误!必须传入要进行的操作!'); }
|
}
|
|
</script>
|
<style type="text/css">
|
.tableStyleXS th { padding: 1px 0 1px 3px; background-image:none; border-bottom:1px solid #CCC; }
|
.tableStyleXS td { padding: 1px 0 1px 3px; }
|
.TableNewStyle select { width: 80px; }
|
.td_hide span { text-decoration: default; display: none; text-align: center; }
|
span.hand_no { cursor: default; display: block; font-size: 12px; }
|
span.hand_no:hover { text-decoration: none; }
|
span.hand_yes { cursor: pointer; display: block; font-size: 12px; }
|
.td_hide { cursor: pointer; }
|
</style>
|
</head>
|
<body>
|
<form id="form1" runat="server">
|
<div id="scrollContent" style="width: auto;">
|
<div class="box1">
|
<table class="TableNewStyle" style="width: 100%;">
|
<tr>
|
<td class="ali03">
|
下单时间:
|
</td>
|
<td style="width: 215px">
|
<input id="txtBeginData" type="text" runat="server" class='date w80px' maxlength='10' />-<input id="txtEndDate" type="text" runat="server" class='date w80px' maxlength='10' />
|
</td>
|
<td class="ali03">
|
订单编号:
|
</td>
|
<td>
|
<input id='txtOrderId' runat="server" maxlength='25' />
|
</td>
|
<td class="ali03">
|
订单类型:
|
</td>
|
<td>
|
<select keepdefaultstyle='true' class=' firstfocus' id='selPrintTypes' runat="server" datatextfield="PrintName" datavaluefield="Keyid">
|
</select>
|
</td>
|
<td class="ali03">
|
业务经理:
|
</td>
|
<td>
|
<select keepdefaultstyle='true' id='selBusinessManager' runat="server" datatextfield='Name' datavaluefield='Keyid'>
|
</select>
|
</td>
|
|
<td class="ali03">
|
设计人员:
|
</td>
|
<td>
|
<select keepdefaultstyle='true' id='selShejirenyuan' runat="server" datavaluefield="Keyid" datatextfield='Name'>
|
</select>
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="ali03">
|
客户名称:
|
</td>
|
<td>
|
<input id='txtBuyerName' runat="server" maxlength='50' />
|
</td>
|
|
|
<td class="ali03">
|
印件名称:
|
</td>
|
<td>
|
<input id='txtDocumentName' runat="server" maxlength='50' />
|
</td>
|
|
|
<td class="ali03">
|
是否下单:
|
</td>
|
<td>
|
<asp:dropdownlist keepdefaultstyle='true' id="selShejiStatus" runat="server">
|
<asp:listitem value="">全部</asp:listitem>
|
<asp:listitem value="1">是</asp:listitem>
|
<asp:listitem value="2">否</asp:listitem>
|
</asp:dropdownlist>
|
</td>
|
<td colspan="4">
|
<asp:button id="btn_Search" text="查询" runat="server" /> <input type="button" value='重置' onclick='document.body.innerHTML="";window.location=window.location;' />
|
|
<asp:Button ID="Button1" Text="导出" OnClientClick="showProgress();return true;" runat="server" OnClick="btn_Daochu_Click" />
|
<div id="progressBar" style="display:none; position:fixed; top:50%; left:50%; transform:translate(-50%, -50%);border:1px solid black;height:50px;background-color:azure;">
|
正在导出Excel文件,请稍候...
|
</div>
|
<input type="hidden" id='txtCommission' runat="server" />
|
</td>
|
</tr>
|
|
</table>
|
</div>
|
<div class="box_tool_min">
|
<div class="center" style=" margin-left:0px;">
|
<div class="left">
|
<div class="right">
|
<div class="padding_top5 padding_left10">
|
<a href="javascript:;" onclick="window.location='ShejiOrderEdit.aspx';" menu_member_case_id="case_addOrder" menu_member_case_name="新增订单" class='newadd' id='link_new'><span class="icon_add">新增订单</span></a>
|
<div class="box_tool_line">
|
</div>
|
<a href="javascript:;" class='delete' menu_member_case_id="case_deleteOrderList" menu_member_case_name="批量删除" onclick="ToBatchdelete(BatchDelete,IsObjCanntDelete);"><span class="icon_delete">批量删除</span></a>
|
<div class="box_tool_line">
|
</div>
|
<a href="javascript:;" menu_member_case_id="case_xiadanOrderList" menu_member_case_name="批量下单" onclick="ToBatchxiadan();"><span class="icon_edit">批量下单</span></a>
|
|
<div class="clear">
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="clear">
|
</div>
|
</div>
|
<div clear="fl">
|
<table class="tableStyle tableStyleXS" useclick="false" usecheckbox="true" sortmode="false">
|
<thead>
|
<tr>
|
<th width="25">
|
</th>
|
<th width="25">
|
编号
|
</th>
|
<th style="text-align: center;" width="70">
|
订单号
|
</th>
|
<th style="text-align: center;">
|
客户单位
|
</th>
|
<th width="55">
|
业务经理
|
</th>
|
<th width="55">
|
订单类型
|
</th>
|
|
<th style="text-align: center;">
|
印件名称
|
</th>
|
<th width="36">
|
内页页码
|
</th>
|
<th width="36">
|
印刷数量
|
</th>
|
<th width="60">
|
单价
|
</th>
|
|
<th width="60">
|
金额
|
</th>
|
<th width="240">
|
设计提成
|
</th>
|
<th width="26">
|
进度
|
</th>
|
<th width="26" menu_member_case_id="case_Dayang" menu_member_case_name="打样">
|
打样
|
</th>
|
|
|
<th width="26" menu_member_case_id="case_Xiadan" menu_member_case_name="下单">
|
下单
|
</th>
|
<th width="26" menu_member_case_id="case_PrintOrder" menu_member_case_name="打印">
|
打印
|
</th>
|
|
</tr>
|
</thead>
|
<tbody>
|
<asp:repeater id="rptData" runat="server">
|
<itemtemplate>
|
<tr>
|
<td>
|
<input type="checkbox" name='ckId' value_keyid="<%#Eval("Keyid")%>" value="{
|
id:<%#Eval("Keyid")%>,
|
buyerId:'<%#Eval("BuyerId")%>',
|
shejiStatus:'<%#Eval("ShejiStatus")%>'
|
}" id='ckBox<%#Container.ItemIndex%>' class='ckBox' />
|
</td>
|
<td>
|
<%#Container.ItemIndex + (UCPager1.PageSize *( UCPager1.PageIndex-1)+1)%>
|
</td>
|
<td style="text-align: center;">
|
<span class="edit a_under" <%#(Eval("ShejiStatus")!=null && Eval("ShejiStatus").ToString() == "1" )?"title=''":"title='点击修改订单'" %> onclick="window.location='ShejiOrderEdit.aspx?Target=ToUpSetData&orderId=<%#Eval("Keyid") %>';">
|
<%#Eval("SellerOrderId")%></span>
|
|
</td>
|
<td style="text-align: center;">
|
<div style="word-wrap: break-word; text-align:justify;">
|
<a href='javascript:void(0)' title='<%#Eval("BuyerName").ToString()%>' class='a_under' onclick='View("<%#Eval("BuyerId")%>")'><%#Eval("BuyerName").ToString().Length > 22 ? (Eval("BuyerName").ToString().Substring(0, 22) + "..") : Eval("BuyerName").ToString()%></a>
|
</div>
|
</td>
|
<td>
|
<%#Eval("BusinessManager")%>
|
</td>
|
<td style="text-align: center;">
|
<%#Eval("PrintType.PrintName")%>
|
</td>
|
|
<td style="text-align: center;">
|
<span title="<%#Eval("DocumentName")%>"><%#Eval("DocumentName").ToString().Length >22? (Eval("DocumentName").ToString().Substring(0,22)+".."):Eval("DocumentName").ToString() %></span>
|
</td>
|
|
<td>
|
<%#Eval("Shejicountneiyename") %>
|
</td>
|
|
<td>
|
<%#Eval("OrderExtend.PrintNum")%>
|
</td>
|
|
|
|
<td>
|
<%#Eval("UnitPrice","{0:F}")%>
|
</td>
|
<td>
|
<%#Eval("SumPrice", "{0:F}")%>
|
</td>
|
<td>
|
<%#Eval("Shejiticheng")%>
|
</td>
|
<td>
|
|
</td>
|
|
<td menu_member_case_id="case_Dayang" menu_member_case_name="打样" >
|
|
</td>
|
<td menu_member_case_id="case_Xiadan" menu_member_case_name="下单" >
|
|
<span class="edit a_under" <%#(Eval("ShejiStatus")!=null && Eval("ShejiStatus").ToString() == "1" )?"title=''":"title='点击下单' onclick=\"toXiadan( '"+ Eval("Keyid") +"')\"" %> >
|
<%#(Eval("ShejiStatus")!=null && Eval("ShejiStatus").ToString() == "1" )?"已下单":"下单" %> </span>
|
</td>
|
|
<td class="td_hide" menu_member_case_id="case_PrintOrder" menu_member_case_name="打印">
|
<%-- <span class="hand look" title="查看或打印" onclick='ShowOrder(<%#Eval("Keyid") %>)'>打印</span>--%>
|
<span class="hand_yes" <%#true.Equals(Eval("IsPrint"))? "title='已打印'" : "title='打印'"%> onclick='ShowOrderOrder(<%#Eval("Keyid") %>)'>
|
<%#true.Equals(Eval("IsPrint")) ? "√" : "打印"%></span>
|
</td>
|
|
</tr>
|
</itemtemplate>
|
</asp:repeater>
|
</tbody>
|
</table>
|
<uc:ucpager id="UCPager1" runat="server" />
|
</div>
|
</div>
|
</form>
|
</body>
|
</html>
|