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.

782 lines
32 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CG_ChaseTableForTM.aspx.cs" Inherits="TradeManage.CaiGou.CG_ChaseTableForTM" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<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" />
<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.url.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/MaskedTextBox.js" type="text/javascript"></script>
<script src="../Scripts/WindowLoad.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="../Scripts/fancybox/jquery.fancybox-1.3.4.css"
media="screen" />
<script type="text/javascript" src="../Scripts/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="../Scripts/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script src="../Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
var datagrid1 = new nblf.ui.DataGrid("DataGrid1");
var WindowLoadModel = new WindowLoad();
var checkstate = -1;
var ChaseId = 0;
var Target = "";
$(document).ready(function () {
WindowLoadModel.ApplicationPath = "../";
WindowLoadModel.ControlID = "WindowLoad";
WindowLoadModel.Isbgiframe = true;
WindowLoadModel.Load();
ajaxInit(WindowLoadModel);
checkstate = $.url.param("checkstate");
if (checkstate == undefined) {
checkstate = -1;
}
Target = $.url.param("Target");
if (Target == undefined) {
Target = "";
}
GetBuyUser();
CreateDataGrid();
if (checkstate == 0)
$("#select_state").val("0");
else
if (checkstate == 4) {
$("#select_state").val("2");
$("#select_hwstate").val("0");
}
ReadData();
$("#" + datagrid1.TableID + " [CommandName='cmdLook']").live("click", function () {
var RowIndex = $(this).parentsUntil("tr").parent().attr("index");
var model = datagrid1.Get_Model(RowIndex);
//window.location.href = "CG_ChaseLook.aspx?ChaseId=" + model.ChaseId;
// window.open("CG_ChaseLook.aspx?Title=采购单&ChaseId=" + model.ChaseId);
//if(model.State==3)
//window.open("CG_ChaseLookForTM.aspx?Title=采购单&ChaseId=" + model.ChaseId);
//else
window.open("CG_ChaseAddForTM.aspx?Title=采购单&ChaseId=" + model.ChaseId);
//window.parent.addTab("采购单", "CaiGou/CG_ChaseLook.aspx?Title=采购单&ChaseId=" + model.ChaseId, true);
});
$("#txt_backprice").MaskedTextBox();
$("#" + datagrid1.TableID + " [CommandName='cmdBack']").live("click", function () {
var RowIndex = $(this).parentsUntil("tr").parent().attr("index");
var model = datagrid1.Get_Model(RowIndex);
ChaseId = model.ChaseId;
GetBackMoneyModel();
fopen();
});
$("#" + datagrid1.TableID + " [CommandName='cmdBuy']").live("click", function () {
var RowIndex = $(this).parentsUntil("tr").parent().attr("index");
var model = datagrid1.Get_Model(RowIndex);
if (model.Account != null && model.Account.indexOf("阿里巴巴") >= 0) {
window.open("https://trade.1688.com/order/new_step_order_detail.htm?orderId=" + model.BuyCode);
}
else {
window.open("http://trade.taobao.com/trade/detail/trade_item_detail.htm?bizOrderId=" + model.BuyCode);
}
});
$("#" + datagrid1.TableID + " [CommandName='cmdWuLiu']").live("click", function () {
var RowIndex = $(this).parentsUntil("tr").parent().attr("index");
var model = datagrid1.Get_Model(RowIndex);
var param = new Object();
param.ChaseId = model.ChaseId;
$.ajax({
url: "CaiGouService.asmx/GetWuLiu",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
async: false,
success: function (data) {
if (data.d != null && data.d!="") {
//alert(data.d);
window.open("https://www.baidu.com/s?wd=快递 " + data.d);
//window.open(data.d);
}
}
});
});
$("#cmdAdd").bind("click", function () {
var SelectListModels = datagrid1.GetSelectListModel();
if (SelectListModels == null || $(SelectListModels).length == 0) {
alert("请选择要开启或者关闭的评价");
return;
}
});
//$("#div_img img").live("click", function () {
// $("#img_1").attr("src", $(this).attr("src"));
//});
$("#btn_sch,#chk_mx,#chk_dhyc,#chk_rksx,#chk_IsGJ").bind("click", function () {
ReadData();
});
$("#btn_add").bind("click", function () {
// window.location.href = "CG_ChaseAdd.aspx?ChaseId=0";
window.open("CG_ChaseAddForTM.aspx?Title=采购单&ChaseId=0");
//window.parent.addTab("新增采购", "CaiGou/CG_ChaseAddForTM.aspx?Title=采购单&ChaseId=0", true);
});
$("a[gid]").live("click", function () {
var gid = $(this).attr("gid");
if (Target == "")
window.parent.addTab("货物编辑", "HuoWu/HW_GoodsAddForTM.aspx?Title=采购批次&GoodsId=" + gid, true);
else
window.open("../HuoWu/HW_GoodsAddForTM.aspx?Title=采购批次&GoodsId=" + gid);
});
$("#chk_image").bind("click", function () {
ReadData();
});
$("#btn_excel").bind("click", function () {
var SelectListModels = datagrid1.GetSelectListModel();
if (SelectListModels == null || $(SelectListModels).length == 0) {
alert("请选择导出的批次");
return;
}
var ids = "";
$(SelectListModels).each(function () {
ids += this.ChaseId + ",";
});
//var chaseid = SelectListModels[0].ChaseId;
//if (Target == "")
// window.parent.addTab("导出批次", "TongJi/Report20.aspx?ChaseId=" + chaseid, true);
//else
// window.open("../TongJi/Report20.aspx?ChaseId=" + chaseid);
GetExcelData(ids);
});
});
function GetExcelData(ids) {
var param = new Object();
param.ids = ids;
var fname = "采购单导出.xls";
WindowLoadModel.Show();
$.ajax({
url: "../CaiGouServiceNew.asmx/GetListBuyExcel",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
async: false,
success: function (data) {
WindowLoadModel.Hide();
params = { FilePath: data.d, FileName: fname };
window.location = "../GlobalAshx/DownFile.ashx?" + jQuery.param(params);
}
});
}
function fopen() {
$.fancybox({
'width': '40%',
'height': '40%',
'autoScale': false,
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'href': '#test',
'onComplete': function () {
}
});
}
function GetBackMoneyModel() {
var param = new Object();
param.ChaseId = ChaseId;
$.ajax({
url: "CaiGouService.asmx/GetBackMoneyModel",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
async: false,
success: function (data) {
if (data.d != null) {
if (data.d.BackType != null) {
$("#select_backtype").val(data.d.BackType);
}
else
$("#select_backtype").val("1");
if (data.d.BackMoney != null)
{
$("#txt_backprice").val(data.d.BackMoney);
}
else
$("#txt_backprice").val("");
if (data.d.BackDate != null) {
$("#txt_backdate").val(data.d.BackDate.localeFormat("yyyy-MM-dd"));
}
else
$("#txt_backdate").val("");
if (data.d.BackRemark != null) {
$("#txtRemark").val(data.d.BackRemark);
}
else
$("#txtRemark").val("");
}
}
});
}
function GetBuyUser() {
$("#select_gmzh").append("<option value='0'>-全部-</option>");
var param = new Object();
param.CompanyID = 0;
param.KeyName = "cgzh";
$.ajax({
url: "../UserService.asmx/GetListBaseCode",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
async: false,
success: function (data) {
if (data.d != null) {
$(data.d).each(function () {
$("#select_gmzh").append("<option value='" + this.Name + "'>" + this.Name + "</option>");
});
}
}
});
}
function LinkGoods(GId) {
window.parent.addTab("货物编辑", "HuoWu/HW_GoodsAddForTM.aspx?Title=订单查询&GoodsId=" + GId, true);
}
function AddTr() {
$("#" + datagrid1.TableID + " tr").each(function (i) {
if (i > 0) {
var shtmls = "<tr><td width='30px'></td><td colspan='9'>";
var index = $(this).attr("index");
if (index>=0) {
var md = datagrid1.Get_Model(index);
if (md.GoodsList != null) {
$(md.GoodsList).each(function () {
var imgs = "";
if ($("#chk_image").is(":checked") == true && this.FirstImgUrl != null && this.FirstImgUrl != "")
imgs = "<img src='" + this.FirstImgUrl + "' alt='' width='50px' height='50px'/>";
if ($("#chk_rksx").is(":checked") == false ||this.InGoodsNum <this.GoodsNum)
shtmls += "<table width='100%' class='trTable'><tr><td>" + imgs + " <a gid='" + this.GoodsId + "' onclick='LinkGoods(" + this.GoodsId + ")' style='cursor: pointer; text-decoration: underline; color: blue;'>" + this.GoodsOldCode + "--" + this.GoodsName + this.GoodsCode + "</a><font color='blue'></font>" + this.TypeCode + "</span>[<span class='ms'>" + this.TypeDesc + "</span>] &nbsp; &nbsp;<font color='blue'>数量:</font><span>" + this.GoodsNum + "</span> &nbsp; &nbsp;<font color='blue'>到货:</font>" + this.InGoodsNum + "</td></tr></table>";
});
}
shtmls += "</td><tr>";
$(this).after(shtmls);
$(".ms").each(function () {
var cc = jQuery.trim($(this).html());
if ($(this).html() != "") {
var cl = cc.substr(cc.length - 1, 1);
if (cl == "一" || cl == "二" || cl == "三") {
$(this).css("color", "red");
}
}
});
}
}
});
}
function fopen() {
$.fancybox({
'width': '40%',
'height': '40%',
'autoScale': false,
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'href': '#test',
'onComplete': function () {
}
});
}
//#endregion
//#region 初始化DataGrid
function CreateDataGrid() {
//"CG_ChaseAddForTM.aspx?Title=采购单&ChaseId=" + model.ChaseId CommandName='cmdLook'
var col = new nblf.ui.DataGridColumn();
col.HeaderText = "采购单号";
col.CellTemplate = "<a href='CG_ChaseAddForTM.aspx?Title=采购单&ChaseId={Bind ChaseId}' target='_blank'>{Bind ChaseCode}</a>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "购买订单号";
col.CellTemplate = "<a href='{Bind SupplierName}' target='_blank'>{Bind BuyCode}</a>";//"<a CommandName='cmdBuy' >{Bind BuyCode}</a>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "流水号";
col.CellTemplate = "<a>{Bind CheckContent}</a>"; //"<a CommandName='cmdBuy' >{Bind BuyCode}</a>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "采购日期";
col.CreateFieldSpan("BuyDate", "yyyy-MM-dd HH:mm");
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "预计到货日期";
col.CreateFieldSpan("BackDate", "yyyy-MM-dd");
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "入库日期";
col.CreateFieldSpan("DoneDate", "yyyy-MM-dd HH:mm");
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "采购总数量";
col.CellTemplate = "<span>{Bind GoodsNum}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "到货总数量";
col.CellTemplate = "<span>{Bind InGoodsNum}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "采购总金额";
col.CellTemplate = "<span>{Bind GoodsMoney}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "购买账号";
col.CellTemplate = "<span>{Bind Account}</span>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "收货状态";
col.CellTemplate = "<a no='check'>{Bind ReveState}</a>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "物流状态";
col.CellTemplate = "<a CommandName='cmdWuLiu' class='linka'>{Bind PostStateName}</a>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "异常备注";
col.Align = "left";
col.Width = "150px";
col.CellTemplate = "<div style='width:150px;word-break:break-all;'>{Bind ErrorInfo}</div>";
Array.add(datagrid1.Columns, col);
col = new nblf.ui.DataGridColumn();
col.HeaderText = "操作";
col.Width = "200px";
col.CellTemplate = "<input CommandName='cmdLook' class='btnClass dgbtnView' type='button' value='查看' style='display:none'></input><input onclick='EditCol(this)' class='btnClass dgbtnEdit' type='button' value='编辑'></input>&nbsp;<input onclick='DelCol(this)' class='btnClass dgbtnDel' type='button' value='删除'></input>&nbsp;<input CommandName='cmdBack' class='btnClass dgbtnEdit' type='button' value='退款' style='display:none'></input>";
Array.add(datagrid1.Columns, col);
datagrid1.SetPageSize(30);
datagrid1.SetPageIndex(1);
datagrid1.IsFixHeader = false;
datagrid1.ShowIndexColumn = false;
datagrid1.AllowPaging = true;
datagrid1.Width = "100%";
datagrid1.SelectMode = nblf.ui.SelectMode.CheckBox;
datagrid1.Init();
datagrid1.add_PageIndexChanged(function () { ReadData(); });
}
//#endregion
//#region 读取数据
function ReadData() {
var param = new Object();
param.ChaseCodeType = $("#select_tj").val();
param.ChaseCode = $("#txt_cgdh").val();
param.BuyAccount = $("#select_gmzh").val();
param.Supplier = $("#txt_gys").val();
param.PostState = $("#select_wlstate").val();
param.DateType = $("#select_tj2").val();
param.SDate = null;
if ($("#txt_SDate").val() != "")
param.SDate = $("#txt_SDate").val();
param.State = $("#select_state").val();
param.DHState = $("#select_hwstate").val();
param.EDate = null;
if ($("#txt_EDate").val() != "")
param.EDate = $("#txt_EDate").val();
param.SNum = -1;
if ($("#txt_snum").val() != "")
param.SNum = $("#txt_snum").val();
param.ENum = -1;
if ($("#txt_enum").val() != "")
param.ENum = $("#txt_enum").val();
param.SPrice = -1;
if ($("#txt_sprice").val() != "")
param.SPrice = $("#txt_sprice").val();
param.EPrice = -1;
if ($("#txt_eprice").val() != "")
param.EPrice = $("#txt_eprice").val();
param.IsDetail = 0;
if ($("#chk_mx").is(':checked') == true)
param.IsDetail = 1;
param.IsGC = 0;
if ($("#chk_gc").is(':checked') == true)
param.IsGC = 1;
param.IsBH = 0;
if ($("#chk_bh").is(':checked') == true)
param.IsBH = 1;
param.YCCL = $("#select_yccl").val();
param.GHYC = 0;
if ($("#chk_dhyc").is(':checked') == true)
param.GHYC = 1;
param.WLYC = 0;
if ($("#chk_wlyc").is(':checked') == true)
param.WLYC = 1;
param.IsGJ = 0;
if ($("#chk_IsGJ").is(':checked') == true)
param.IsGJ = 1;
param.PageSize = datagrid1.Get_PageSize();
param.PageIndex = datagrid1.Get_PageIndex();
WindowLoadModel.Show();
$.ajax({
url: "../CaiGouServiceNew.asmx/GetListCG_PurchaseForTM",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
success: function (data) {
WindowLoadModel.Hide();
datagrid1.Set_RowCount(data.d.RowCount);
datagrid1.DataBind(data.d.DataSource);
if (param.IsDetail == 1)
AddTr();
$("a[no='check']").each(function () {
if ($(this).html() == "未审批") {
$(this).css("color", "Red");
}
});
}
});
}
function EditCol(obj) {
var rowindex = $(obj).parent().parent().attr("index");
var model = datagrid1.Get_Model(rowindex);
var ChaseId = model.ChaseId;
//if (model.State == 3) {
// alert("该采购单已经结束,不能编辑");
// return;
//}
//else
//if (model.State==3)
//{
// alert("该采购单已经结束,不能编辑");
// return;
//}
//else if (model.State == 1 && model.CheckUid > 0) {
// //window.location = "CG_ChaseLook.aspx?IsCheck=Edit&ChaseId=" + ChaseId;
// window.parent.addTab("采购单", "CaiGou/CG_ChaseLook.aspx?IsCheck=Edit&Title=采购单&ChaseId=" + ChaseId, true);
//}
//else {
window.open("CG_ChaseAddForTM.aspx?Title=采购单&ChaseId=" + ChaseId);
//window.location = "CG_ChaseAdd.aspx?ChaseId=" + ChaseId;
// window.parent.addTab("新增采购", "CaiGou/CG_ChaseAddForTM.aspx?Title=采购单&ChaseId=" + ChaseId, true);
// }
}
//#endregion
//#region 删除
function DelCol(obj) {
if (window.confirm('确定要删除吗?') == false) return;
var rowindex = $(obj).parent().parent().attr("index");
var param = new Object();
var model = datagrid1.Get_Model(rowindex);
if (model.State == 1 && model.GoodsState > 0) {
alert("该采购单已经有货物入库了,不能删除");
return;
}
else if (model.State == 3) {
alert("该采购单已经结束,不能删除");
return;
}
param.ChaseId = model.ChaseId;
WindowLoadModel.Show();
$.ajax({
url: "CaiGouService.asmx/DeletePurchaseForTM",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
dataType: "json",
success: function (data) {
WindowLoadModel.Hide();
alert("删除成功");
ReadData();
}
});
}
//#endregion
function SaveChaseBackMoney() {
if ($("#txt_backprice").val()=="") {
alert("请填写金额");
return;
}
if ($("#txt_backdate").val() == "") {
alert("请填写退款日期");
return;
}
var md = new Object();
var param = new Object();
md.ChaseId = ChaseId;
md.BackType = $("#select_backtype").val();
md.BackMoney = $("#txt_backprice").val();
md.BackDate = $("#txt_backdate").val();
md.BackRemark = $("#txtRemark").val();
param.Model = md;
$.ajax({
url: "CaiGouService.asmx/SaveChaseBackMoney",
data: Sys.Serialization.JavaScriptSerializer.serialize(param),
dataType: "json",
success: function (data) {
alert("保存成功");
$.fancybox.close();
}
});
}
</script>
</head>
<body class="headbody">
<form id="form1" runat="server">
<div class="title_ico">
采购批次
</div>
<div style="display: none">
<div id="test" title="采购退款" style="width: 500px; height: 250px;">
<table width="95%" class="tableAll" border="1" ellspacing="0" cellpadding="2">
<tr>
<td style="width: 80px;" class="f1"> <font color="red" style="font-weight:bolder">*</font> 类型:
</td>
<td align="left">
<select id="select_backtype" class="selectClass" style="width: 150px" name="D6">
<option value="1">供应商退款给我们</option>
<option value="2">增加费用付给供应商</option>
</select>
</td>
</tr>
<tr>
<td style="width: 80px;" class="f1"> <font color="red" style="font-weight:bolder">*</font>金额:
</td>
<td align="left">
<input id="txt_backprice" min='0' max='1000000' precision='1' class="editTextbox" style="width: 50px;" type="text" />元
</td>
</tr>
<tr>
<td style="width: 80px;" class="f1"> <font color="red" style="font-weight:bolder">*</font>退款日期:
</td>
<td align="left">
<input id="txt_backdate" class="editTextbox" onfocus="WdatePicker()" style="width: 100px;" type="text" />
</td>
</tr>
<tr>
<td style="width: 80px;" class="f1">原因备注:
</td>
<td align="left">
<textarea id="txtRemark" cols="60" rows="2" style="width:90%"></textarea>
</td>
</tr>
<tr>
<td align="center" colspan="2">
<input
id="btn_Back" type="button" class="btnClass btnClassSave" value="保存" onclick="SaveChaseBackMoney();"/>
</td>
</tr>
</table>
</div>
</div>
<table id="tb1" class="tableAll" style="width: 100%;">
<tr>
<td class="f1" width="13%">
<select id="select_tj" class="selectClass" style="width: 90px" name="D3">
<option value="1">购买订单号:</option>
<option value="2">批次编号:</option>
<option value="9">流水号:</option>
<option value="3">货物信息:</option>
<option value="5">供商编码:</option>
<option value="6">操作人:</option>
<option value="7">采购人:</option>
<option value="8">运单号:</option>
</select></td>
<td width="15%">
<input id="txt_cgdh" class="editTextbox" style="width: 120px;" type="text" /></td>
<td class="f1" width="13%">
采购单状态:</td>
<td width="15%">
<select id="select_state" class="selectClass" style="width: 120px" name="D1">
<option value="-1">全部</option>
<option value="0">未审批</option>
<option value="2">已审批</option>
<option value="3">已结束</option>
</select></td>
<td class="f1" style="width: 10%;">采购数量:</td>
<td width="15%">
<input id="txt_snum" class="editTextbox" max="1000000" min="0" precision="0" style="width: 50px;" type="text" />--<input id="txt_enum" class="editTextbox" max="1000000" min="1" precision="0" style="width: 50px;" type="text" />
</td>
<td>
<input id="btn_sch" class="btnClass btnClassFind" type="button" value="查询" /></td>
</tr>
<tr>
<td class="f1" width="13%">发货状态:</td>
<td>
<select id="select_hwstate" class="selectClass" style="width: 120px" name="D6">
<option value="-1">全部</option>
<option value="0">未到货</option>
<option value="1">部分到货</option>
<option value="2">全部到货</option>
</select></td>
<td class="f1" style="width: 10%; height: 15px;">物流状态:</td>
<td>
<select id="select_wlstate" class="selectClass" style="width: 120px" name="D7">
<option value="-1">全部</option>
<option value="1">在途</option>
<option value="2">签收</option>
<option value="3">停滞</option>
<option value="0">无物流</option>
</select></td>
<td class="f1">采购金额:</td>
<td>
<input id="txt_sprice" class="editTextbox" max="1000000" min="0" precision="2" style="width: 50px;" type="text" />--<input id="txt_eprice" class="editTextbox" max="1000000" min="1" precision="2" style="width: 50px;" type="text" /></td>
<td></td>
</tr>
<tr>
<td class="f1" width="13%">供应商:</td>
<td>
<input id="txt_gys" class="editTextbox" style="width: 120px;" type="text" autocomplete="on"/></td>
<td class="f1" style="width: 10%; height: 15px;">购买账号:</td>
<td>
<select id="select_gmzh" class="selectClass" style="width: 120px" name="D8">
</select></td><td class="f1" style="width: 10%; height: 15px;">异常处理:</td>
<td>
<select id="select_yccl" class="selectClass" style="width: 120px" name="D8">
<option value="-1">全部</option>
<option value="1">未处理</option>
<option value="0">已处理</option>
</select></td>
<td>
&nbsp;</td>
</tr>
<tr>
<td class="f1" width="13%">
<select id="select_tj2" class="selectClass" style="width: 90px" name="D5">
<option value="1">采购日期:</option>
<option value="2">入库日期:</option>
<option value="3">发货日期:</option>
<option value="4">预计到货日期:</option>
</select></td>
<td colspan="6">
<input id="txt_SDate" class="editTextbox" onfocus="WdatePicker()" style="width: 120px;" type="text" />-
<input id="txt_EDate" class="editTextbox" onfocus="WdatePicker()" style="width: 120px;" type="text" /><input id="chk_mx" type="checkbox" checked="checked" /><label for="chk_mx">列出采购货物明细<input id="chk_dhyc" type="checkbox" />质检异常<input id="chk_gc" type="checkbox" />工厂生产<input id="chk_bh" type="checkbox" />备货<input id="chk_wlyc" type="checkbox" />物流异常<input id="chk_IsGJ" type="checkbox" />是否改价</label></td>
</tr>
<tr>
<td colspan="7" >
<input id="btn_add" class="btnClass btnClassAdd" type="button" value="新增采购" />&nbsp;
<input id="btn_excel" class="btnClass btnClassExcelTemplate" type="button" value="导出批次" /><label for="chk_mx"><input id="chk_image" type="checkbox" />显示图片<input id="chk_rksx" type="checkbox" checked="checked"/>已入库的不显示</label></td>
</tr>
<tr>
<td valign="top" colspan="7">
<div id="DataGrid1" class="DataGridStyle"></div>
</td>
</tr>
</table>
</form>
</body>
</html>