CeramicProject/newyt/Common/cgrk_dy.aspx

168 lines
6.2 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="cgrk_dy.aspx.cs" Inherits="Common_cgrk" %>
<!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 runat="server">
<title>快捷送货单打印</title>
<script src="../Jquery-ui/js/jquery-1.10.2.js" type="text/javascript"></script>
<script type="text/javascript"></script>
<link href="../Css/index.css" rel="stylesheet" type="text/css" />
<script src="../Jquery-ui/js/jquery-ui-1.10.4.custom.js" type="text/javascript"></script>
<script src="../Js/Calendar3.js" type="text/javascript"></script>
<script type="text/javascript">
Request = {
QueryString: function (item) {
var svalue = location.search.match(new RegExp("[\?\&]" + item + "=([^\&]*)(\&?)", "i"));
return svalue ? svalue[1] : svalue;
}
}
$(document).ready(function () {
var winheight = $(window).height();
$("#dybw").css("height", winheight);
var ls = Common_cgrk.getls().value;
$("#td_ls").text(ls);
var ids = "";
window.opener.$(".xz:checked").each(function () {
ids += $(this).parent().parent().attr("tag") + ',';
})
ids = ids.substr(0, ids.length - 1);
$("#shids").val(ids);
var code = Common_cgrk.getms(ids).value;
$("#shdxx").html(code);
var isview = false;
$("#je_view").click(function () {
if (!isview) {
$(".je").css("display", "none");
$(this).val('显示金额');
isview = true;
} else {
$(".je").css("display", "");
$(this).val('隐藏金额');
isview = false;
}
})
});
//打印
function dy() {
window.print();
}
//设置联数
function setlianshu() {
var ls = Common_cgrk.getls().value;
$("#txt_ls").text(ls);
$("#dialog-lianshu").dialog({
resizable: false,
height: 250,
width: 360,
modal: true,
buttons: {
确定: function () {
Common_cgrk.savels($("#txt_ls").val());
$('#dialog-lianshu').dialog('close')
window.location = window.location.href;
}
},
close: function () {
$(".ui-widget-overlay").css("display", "none");
}
});
}
//设置送货条款
function settk() {
var tk = Common_cgrk.gettk().value;
$("#txt_tk").text(tk);
$("#dialog-tk").dialog({
resizable: false,
height: 250,
width: 360,
modal: true,
buttons: {
确定: function () {
Common_cgrk.savetk($("#txt_tk").val());
$('#dialog-tk').dialog('close')
window.location = window.location.href;
}
},
close: function () {
$(".ui-widget-overlay").css("display", "none");
}
});
}
</script>
<style type="text/css" media="print">
.noprint { display:none;}
</style>
</head>
<body>
<form id="form1" runat="server">
<div >
<table class="kongdy" style="border-width:0px;margin:0 auto;margin-bottom:10px" >
<tr height="20"><td ></td><td align="right"><br />
<input type=button value="打印" onclick="dy()" class="noprint ui-btn" id='btn_dy'/>&nbsp<input type=button value="联数" onclick="setlianshu()" class="noprint ui-btn"/>&nbsp <input type=button value="隐藏金额 " style=" width:88px;" id="je_view" class="noprint ui-btn"/></tr>
<tr><td align="left" width="22%"><img runat=server id='img_logo' src="" style="height: 50px;width: 230px" /> </td><td class="btzy" align="center">采购入库单</td> </tr>
</table>
<table width="1100" class="buledy" style="margin:0 auto;border-width:0px;border:none" >
<tr><td>
<div class="nrdiv" id="jbxx" style="display: block">
<table width="100%" style="border-width:0px;" class="buledy">
<tr>
<td class="zitidywk" align="left" width="55%">供应商名称:<asp:Label id="gysmc" runat="server" CssClass="text_content2" ></asp:Label></td>
</tr>
</table>
</div>
</td>
<td id="td_ls" rowspan="3" style="word-break:break-all;width:15px; font-size:15px;">
</td>
</tr>
<tr><td>
<div class="nrdiv" id="shdxx" style="display: block">
</div>
</td></tr>
<tr><td>
<div class="nrdiv" id="qtxx" style="display: block">
<table class="kongdy" style=" border-width:0px;margin:0 auto" >
<tr>
<td class="zitidywk" align="left">经手人:<asp:Label id="jsr" runat="server" CssClass="text_content"></asp:Label></td>
<td class="zitidywk" align="left">确认签字:</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<div id="dialog-lianshu" title="送货单联数设置" style="overflow:hidden; display:none;" >
<textarea id="txt_ls" style="width:100%;height:100%;resize: none">
</textarea>
</div>
<div id="dialog-tk" title="送货条款设置" style="overflow:hidden; display:none;" >
<textarea id="txt_tk" style="width:100%;height:100%;resize: none">
</textarea>
</div>
<asp:HiddenField ID="shids" runat="server" Value="" />
<asp:HiddenField ID="id" runat="server" Value="" />
</form>
</body>
</html>