📄 report2.aspx
字号:
<%@ page language="C#" autoeventwireup="true" inherits="BaseInfo_Report2, App_Web_eihb9n8s" %>
<html>
<head runat="server">
<title>报表</title>
<link rel="stylesheet" type="text/css" media="all" href="themes/system.css" title="Calendar Theme - system.css">
<link href="doc/css/zpcal.css" rel="stylesheet" type="text/css" />
<link href="doc/css/template.css" rel="stylesheet" type="text/css" />
<!-- import the calendar script -->
<script type="text/javascript" src="src/utils.js"></script>
<script type="text/javascript" src="src/calendar.js"></script>
<!-- import the language module -->
<script type="text/javascript" src="lang/calendar-zh.js"></script>
<script type="text/javascript" src="src/calendar-setup.js"></script>
<link rel="stylesheet" href="../css/master.css" type="text/css" />
<script language=javascript src="JScript.js"></script>
<script language=javascript src="../script/city.js"></script>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<form id="form1" name="form1" method="get" action="<%=actionPage %>">
<input type=hidden id=hidden1 name=hidden1/>
<input type=hidden id=hidden2 name=hidden2/>
<div style="overflow-x:auto;width:830; overflow-y:auto;height:50;background-color:#f6f6f6;border-top:#000000 1px solid;border-left:#000000 1px solid;border-bottom:#000000 1px solid;border-right:#000000 1px solid;">
<table cellpadding="0" cellspacing="0" width="100%" style="cursor:default" border=0 style="padding:2px 1px 1px 1px">
<tr>
<td>
<table >
<tr>
<td colspan="5"></td>
</tr>
<tr>
<td><input class="textBox2" id="date1" name="date1" style="width:72" readonly/><input type="reset" value="" id='Reset3' style="border:0;width:19;height:20;background-image:url('themes/icons/calendar1.gif');"/> -
<input class="textBox2" id="date2" name="date2" style="width:72" readonly/><input type="reset" value="" id='Reset4' style="border:0;width:19;height:20;background-image:url('themes/icons/calendar1.gif');"/>
</td>
<td>物料大类:</td>
<td>
<div class=outside>
<div class=inset>
<select hidefocus id="Select1" name="Select1" onchange="javascript:ChangeCategory();">
<option selected value=""></option>
<option value="料">原料</option>
<option value="半成品">半成品</option>
</select>
</div>
</div>
</td>
<td>物料类别:</td>
<td>
<div class=outside>
<div class=inset>
<select hidefocus id="sltCategory" name="sltCategory">
<option selected value=""></option>
</select>
</div>
</div>
</td>
<td>
<input type=button class="btn" value="查 询" id="btnQuery" onclick="javascript:query();" onmouseover="javascript:this.style.backgroundColor='#ffffff';" onmouseout="javascript:this.style.backgroundColor='#e6e6e6'"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
<script language="javascript">
Type_Bind();
function Type_Bind()
{
var str="<%=output %>";
var ary=str.split("|");
for(var i=0;i<ary.length;i++)
{
var ary2=ary[i].split("*");
var option=document.createElement("OPTION");
option.value=ary2[0];
option.innerText=ary2[1];
document.all("sltCategory").appendChild(option);
}
}
//Bind_Year();
function Bind_Year()
{
var date=new Date();
var thisYear=date.getFullYear();
for(var i=thisYear;i>thisYear-20;i--)
{
var option=document.createElement("OPTION");
option.value=i;
option.innerText=i;
document.all("sltYear").appendChild(option);
}
}
//Bind_Month();
function Bind_Month()
{
document.all("sltMonth").innerText="";
var option=document.createElement("OPTION");
option.value="";
option.innerText="";
document.all("sltMonth").appendChild(option);
for(var i=1;i<13;i++)
{
var option=document.createElement("OPTION");
option.value=i;
option.innerText=i;
document.all("sltMonth").appendChild(option);
}
}
//Bind_Day();
function Bind_Day()
{
document.all("sltDay").innerText="";
var option=document.createElement("OPTION");
option.value="";
option.innerText="";
document.all("sltDay").appendChild(option);
for(var i=1;i<32;i++)
{
var option=document.createElement("OPTION");
option.value=i;
option.innerText=i;
document.all("sltDay").appendChild(option);
}
}
function query()
{
// if(document.all("sltYear").value.length==0)
// {
// alert("请输入盘存报表的年份");
// return;
// }
// if(document.all("sltMonth").value.length==0)
// {
// alert("请输入盘存报表的月份");
// return;
// }
// if(document.all("sltDay").value.length==0)
// {
// alert("请输入盘存报表的日期");
// return;
// }
document.all("hidden1").value=document.all("Select1").options[document.all("Select1").selectedIndex].outerText;
document.all("hidden2").value=document.all("sltCategory").options[document.all("sltCategory").selectedIndex].outerText;
//alert(document.all("Select1").options[document.all("Select1").selectedIndex].outerText);
//alert(document.all("sltCategory").options[document.all("sltCategory").selectedIndex].outerText);
form1.submit();
}
var a="<%=pf %>",b="<%=stuff %>";
function monthChange()
{
//alert(document.all("sltMonth").value);
}
function ChangeCategory()
{
if(document.all("Select1").value=="半成品")
{
Bind(a);
}
else
{
Bind(b);
}
}
function Bind(str)
{
var ary=str.split("|");
document.all("sltCategory").innerText="";
var option=document.createElement("OPTION");
option.value="";
option.innerText="";
document.all("sltCategory").appendChild(option);
for(var i=0;i<ary.length;i++)
{
var ary2=ary[i].split("*");
var option=document.createElement("OPTION");
option.value=ary2[0];
option.innerText=ary2[1];
document.all("sltCategory").appendChild(option);
}
}
</script>
<script language=javascript type="text/javascript">
<!-- to hide script contents from old browsers
var startDate;
var endDate;
var callbacks = 0;
function resetDates() {
startDate = endDate = null;
}
/*
* Given two dates (in seconds) find out if date1 is bigger, date2 is bigger or
* they're the same, taking only the dates, not the time into account.
* In other words, different times on the same date returns equal.
* returns -1 for date1 bigger, 1 for date2 is bigger 0 for equal
*/
function compareDatesOnly(date1, date2) {
var year1 = date1.getYear();
var year2 = date2.getYear();
var month1 = date1.getMonth();
var month2 = date2.getMonth();
var day1 = date1.getDate();
var day2 = date2.getDate();
if (year1 > year2) {
return -1;
}
if (year2 > year1) {
return 1;
}
//years are equal
if (month1 > month2) {
return -1;
}
if (month2 > month1) {
return 1;
}
//years and months are equal
if (day1 > day2) {
return -1;
}
if (day2 > day1) {
return 1;
}
//days are equal
return 0;
/* Can't do this because of timezone issues
var days1 = Math.floor(date1.getTime()/Date.DAY);
var days2 = Math.floor(date2.getTime()/Date.DAY);
return (days1 - days2);
*/
}
function filterDates1(cal) {
startDate = cal.date;
/* If they haven't chosen an
end date before we'll set it to the same date as the start date This
way if the user scrolls in the start date 5 months forward, they don't
need to do it again for the end date.
*/
if (endDate == null) {
}
}
function filterDates2(cal) {
endDate = cal.date;
}
/*
* Both functions disable and hilight dates.
*/
/*
* Can't choose days after the
* end date if it is choosen, hilights start and end dates with one style and dates between them with another
*/
function dateInRange1(date) {
if (endDate != null) {
// Disable dates after end date
var compareEnd = compareDatesOnly(date, endDate);
//if (compareEnd < 0) {
// return (true);
//}
// Hilight end date with "edges" style
if (compareEnd == 0) {
{return "edges";}
}
// Hilight inner dates with "between" style
if (startDate != null){
var compareStart = compareDatesOnly(date, startDate);
if (compareStart < 0) {
return "between";
}
}
}
//disable days prior to today
var today = new Date();
var compareToday = compareDatesOnly(date, today);
//if (compareToday > 0) {
//return(true);
//}
//all other days are enabled
return false;
//alert(ret + " " + today + ":" + date + ":" + compareToday + ":" + days1 + ":" + days2);
return(ret);
}
/*
* Can't choose days before the
* start date if it is choosen, hilights start and end dates with one style and dates between them with another
*/
function dateInRange2(date) {
if (startDate != null) {
// Disable dates before start date
var compareDays = compareDatesOnly(startDate, date);
//if (compareDays < 0) {
// return (true);
//}
// Hilight end date with "edges" style
if (compareDays == 0) {
{return "edges";}
}
// Hilight inner dates with "between" style
if ((endDate != null) && (date > startDate) && (date < endDate)) {
return "between";
}
}
var now = new Date();
return false;
if (compareDatesOnly(now, date) < 0) {
return (true);
}
//all other days are enabled
return false;
}
// end hiding contents from old browsers -->
</script>
<script type="text/javascript" language=javascript>
var cal = new Zapatec.Calendar.setup({
inputField : "date1", // id of the input field
button : "Reset3", // What will trigger the popup of the calendar
ifFormat : "%Y-%m-%d ", // of the input field
timeFormat : "24",
showsTime : false, //no time
electric : false,
dateStatusFunc : dateInRange1, //the function to call
onUpdate : filterDates1
});
var cal = new Zapatec.Calendar.setup({
inputField : "date2", // id of the input field
button : "Reset4", // What will trigger the popup of the calendar
ifFormat : "%Y-%m-%d ", // of the input field
timeFormat : "24",
showsTime : false, //no time
electric : false,
dateStatusFunc : dateInRange1, //the function to call
onUpdate : filterDates1
});
</script>
<script language=vbscript defer>
initialDate
sub initialDate
document.all("date1").value=dateadd("m",-1,date())
document.all("date2").value=date()
end sub
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -