chore: 首次簽入 Thinkyu ASP.NET 專案

- 加入 Visual Studio / ASP.NET .gitignore
- 排除建置輸出、IDE 設定、NuGet packages、大型 MSI 安裝檔
This commit is contained in:
2026-09-10 09:42:37 +08:00
commit 577060bc78
2496 changed files with 501389 additions and 0 deletions
+342
View File
@@ -0,0 +1,342 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>日期挑選</TITLE>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 7.0">
<META http-equiv="Content-Type" content="text/html;charset=UTF-8">
<SCRIPT type="text/JavaScript" SRC="./CSJSRequestObject.js"></SCRIPT>
</HEAD>
<SCRIPT type="text/JavaScript">
//-- Script designed by Liming Weng (victorwon@netease.com)
//-- Download this script and many more at
//-- The Java Magician!! http://javamagic.hypermart.net
var gdCtrl = new Object();
var gcGray = "#808080";
var gcToggle = "#ffff00";
var gcBG = "#eeeeee";
var gdCurDate = new Date();
var giYear = gdCurDate.getFullYear();
var giMonth = gdCurDate.getMonth() + 1;
var giDay = gdCurDate.getDate();
var VicPopCal = new Object();
var separator = Request.QueryString("SEPARATOR");
function fPopCalendar(popCtrl, dateCtrl, popCal) {
parent.event.cancelBubble = true;
VicPopCal = popCal;
gdCtrl = dateCtrl;
fSetYearMon(giYear, giMonth);
var point = fGetXY(popCtrl);
with (VicPopCal.style) {
left = point.x;
top = point.y + popCtrl.offsetHeight + 1;
visibility = 'visible';
}
VicPopCal.focus();
}
function fSetDate(iYear, iMonth, iDay) {
gdCtrl.value = iYear + separator
+ (("0" + iMonth).length == 2 ? ("0" + iMonth) : iMonth) + separator
+ (("0" + iDay).length == 2 ? ("0" + iDay) : iDay);
if (window.showModalDialog) {
parent.document.getElementById(Request.QueryString("SENDER")).value = gdCtrl.value;
fCancel();
}
else {
window.returnValue = gdCtrl.value;
if (Request.QueryString("SENDER"))
if (window.opener) {
window.opener.document.getElementById(Request.QueryString("SENDER")).value = gdCtrl.value;
}
window.close();
}
}
function fSetSelected(aCell) {
var iOffset = 0;
var iYear = parseInt(document.getElementById("tbSelYear").value);
var iMonth = parseInt(document.getElementById("tbSelMonth").value);
aCell.bgColor = gcBG;
with (aCell.childNodes[0]) {
var iDay = parseInt(innerHTML);
if (color == gcGray)
return;
iMonth += iOffset;
if (iMonth < 1) {
iYear--;
iMonth = 12;
}
else if (iMonth > 12) {
iYear++;
iMonth = 1;
}
}
fSetDate(iYear, iMonth, iDay);
}
function Point(iX, iY) {
this.x = iX;
this.y = iY;
}
function fBuildCal(iYear, iMonth) {
var aMonth = new Array();
for (i = 1; i < 7; i++)
aMonth[i] = new Array(i);
var dCalDate = new Date(iYear, iMonth - 1, 1);
var iDayOfFirst = dCalDate.getDay();
var iDaysInMonth = new Date(iYear, iMonth, 0).getDate();
var iOffsetLast = new Date(iYear, iMonth - 1, 0).getDate() - iDayOfFirst + 1;
var iDate = 1;
var iNext = 1;
for (d = 0; d < 7; d++)
aMonth[1][d] = (d < iDayOfFirst) ? -(iOffsetLast + d) : iDate++;
for (w = 2; w < 7; w++)
for (d = 0; d < 7; d++)
aMonth[w][d] = (iDate <= iDaysInMonth) ? iDate++ : -(iNext++);
return aMonth;
}
function fDrawCal(iYear, iMonth, iCellWidth, iDateTextSize) {
var WeekDay = new Array("日", "一", "二", "三", "四", "五", "六");
//var WeekDay = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat");
var styleTD = " bgcolor='" + gcBG + "' width='" + iCellWidth
+ "' bordercolor='" + gcBG + "' "
+ "style='font:bold " + iDateTextSize + "pt Courier; text-align:center; vertical-align:middle; cursor:pointer;cursor:hand; color:#008800;'";
with (document) {
write("<tr>");
for (i = 0; i < 7; i++)
write("<td " + styleTD + ">" + WeekDay[i] + "</td>");
write("</tr>");
for (w = 1; w < 7; w++) {
write("<tr>");
for (d = 0; d < 7; d++) {
write("<td id=calCell " + styleTD + "' name='calCell' "
+ "onmouseover=\"this.bgColor=gcToggle\" onmouseout=\"this.bgColor=gcBG\" "
+ "onclick='fSetSelected(this)'>");
write("<font name='cellText' id='cellText'></font>");
write("</td>")
}
write("</tr>");
}
}
}
function fUpdateCal(iYear, iMonth) {
iYear = (iYear * 1) + CY11;
//alert(iYear);
myMonth = fBuildCal(iYear, iMonth);
var i = 0;
for (w = 0; w < 6; w++)
for (d = 0; d < 7; d++) {
if (document.charset) {
with (cellText[(7 * w) + d]) {
Victor = i++;
if (myMonth[w + 1][d] < 0) {
color = gcGray;
innerHTML = -myMonth[w + 1][d];
calCell[(7 * w) + d].style.cursor = "default";
}
else {
color = ((d == 0) || (d == 6)) ? "red" : "black";
innerHTML = myMonth[w + 1][d];
calCell[(7 * w) + d].style.cursor = "pointer";
}
}
}
else {
with (document.getElementsByName("cellText")[(7 * w) + d]) {
Victor = i++;
if (myMonth[w + 1][d] < 0) {
color = gcGray;
innerHTML = -myMonth[w + 1][d];
document.getElementsByName("calCell")[(7 * w) + d].style.cursor = "default";
}
else {
color = ((d == 0) || (d == 6)) ? "red" : "black";
innerHTML = myMonth[w + 1][d];
}
}
}
}
}
function fSetYearMon(iYear, iMon) {
tbSelMonth.options[iMon - 1].selected = true;
//for (i = 0; i < tbSelYear.length; i++)
// if (tbSelYear.options[i].value == iYear)
// tbSelYear.options[i].selected = true;
tbSelYear.value = iYear;
fUpdateCal(iYear, iMon);
}
function fPrevYear() {
var iYear = tbSelYear.value;
var iMon = tbSelMonth.value;
fSetYearMon(--iYear, iMon);
}
function fNextYear() {
var iYear = tbSelYear.value;
var iMon = tbSelMonth.value;
fSetYearMon(++iYear, iMon);
}
function fPrevMonth() {
var iMon = tbSelMonth.value;
var iYear = tbSelYear.value;
if (--iMon < 1) {
iMon = 12;
iYear--;
}
fSetYearMon(iYear, iMon);
}
function fNextMonth() {
var iMon = tbSelMonth.value;
var iYear = tbSelYear.value;
if (++iMon > 12) {
iMon = 1;
iYear++;
}
fSetYearMon(iYear, iMon);
}
function fGetXY(aTag) {
var oTmp = aTag;
var pt = new Point(0, 0);
do {
pt.x += oTmp.offsetLeft;
pt.y += oTmp.offsetTop;
oTmp = oTmp.offsetParent;
}
while (oTmp.tagName != "BODY");
return pt;
}
function fCancel() {
if (window.showModalDialog) {
//parent.document.getElementById("DatePicker").style["display"] = "none";
//parent.document.getElementById("Blocker").style["display"] = "none";
var datepicker = parent.document.getElementById("DatePicker");
//var blocker = parent.document.getElementById("Blocker");
datepicker.style.top = 0;
datepicker.style.left = 0;
datepicker.style.width = 0;
datepicker.style.height = 0;
//blocker.style.top = 0;
//blocker.style.left = 0;
//blocker.style.width = 0;
//blocker.style.height = 0;
}
else {
window.returnValue = "";
window.close();
}
}
var gMonths = new Array("一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月");
//var gMonths = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");
with (document) {
//write("<table border='0' bgcolor='#6699cc' width='100%' height='100%'>");
write("<table border='0' bgcolor='#6699cc'>");
write("<tr><td valign='middle' align='center'>");
write("<table id='popTable' border='0' bgcolor='#6699cc'>");
write("<TR><td valign='middle' align='center'>");
// 年度輸入
write("&nbsp;<input type='button' value='<' name='PrevYear' onClick='fPrevYear()' style='height:24;width:24;font:11pt Arial;cursor:pointer;'>");
write("<input type='text' name='tbSelYear' id='tbSelYear' onKeydown='fUpdateCal(tbSelYear.value, tbSelMonth.value);' style='height:24;width:40; font:11pt Arial; border-style:groove'>");
write("<input type='button' value='>' name='NextYear' onClick='fNextYear()' style='height:24;width:24;FONT:11pt Arial;cursor:pointer'>&nbsp;");
// 年度挑選
//write("&nbsp;<SELECT name='tbSelYear' onChange='fUpdateCal(tbSelYear.value, tbSelMonth.value)' >");
//for(i=1990;i<2015;i++)
// write("<OPTION value='"+i+"'>"+i+"</OPTION>");
//write("</SELECT>");
// 月份挑選
write("&nbsp;<input type='button' name='PrevMonth' value='<' style='height:24;width:24;font:11pt Arial;cursor:pointer' onClick='fPrevMonth()'>");
write("<select name='tbSelMonth' id='tbSelMonth' onChange='fUpdateCal(tbSelYear.value, tbSelMonth.value)' style='width:70;height:21;font:11pt Arial;border-style:groove'>");
for (i = 0; i < 12; i++)
write("<option value='" + (i + 1) + "'>" + gMonths[i] + "</option>");
write("</SELECT>");
write("<input type='button' name='NextMonth' value='>' style='height:24;width:24;font:11pt Arial;cursor:pointer' onclick='fNextMonth()'>");
write("</td>");
write("</TR><TR>");
write("<td align='center'>");
write("<DIV style='background-color:teal;'><table width='100%' border='0' cellpadding='2'>");
fDrawCal(giYear, giMonth, 19, 12);
write("</table></DIV>");
write("</td>");
write("</TR>");
write("<TR><TD align='center'>");
write("<input type='button' name='Close' value='關閉' onclick='fCancel()' style='height:24;width:60;FONT:11pt Arial;cursor:pointer;'>");
write("</TD></TR>");
write("</TABLE>");
write("</td></tr></table>")
//write("<TR><TD align='center'>");
//write("<font style='cursor:hand;font:12 Fixedsys' onclick='fSetDate(giYear,giMonth,giDay)' onMouseOver='this.style.color=gcToggle' onMouseOut='this.style.color=0'>今天是&nbsp;&nbsp;"+gMonths[giMonth-1]+"&nbsp;"+giDay+",&nbsp;"+giYear+"</font>");
//write("</TD></TR>");write("</TD></TR>");
//write("</TABLE>");
}
var CY11 = 0;
if (Request.QueryString("CY11"))
CY11 = parseInt(Request.QueryString("CY11"), 10);
if (Request.QueryString("SENDER")) {
var oldDate = "";
if (window.showModalDialog)
oldDate = parent.document.getElementById(Request.QueryString("SENDER")).value;
else if (window.opener)
oldDate = window.opener.document.getElementById(Request.QueryString("SENDER")).value;
if (oldDate != "") {
// var datepart = oldDate.split("/");
//
// if (datepart.length > 0 && !isNaN(parseInt(datepart[0], 10)))
// {
// giYear = (parseInt(datepart[0], 10) * 1) + CY11;
// }
// if (datepart.length > 1 && !isNaN(parseInt(datepart[1], 10)))
// giMonth = parseInt(datepart[1], 10);
// if (datepart.length > 2 && !isNaN(parseInt(datepart[2], 10)))
// giDay = parseInt(datepart[2], 10);
oldDate = oldDate.replace(separator, "");
giYear = (parseInt(oldDate.substr(0, oldDate.length - 4), 10) * 1) + CY11;
giMonth = parseInt(oldDate.substr(oldDate.length - 4, 2), 10);
giDay = parseInt(oldDate.substr(oldDate.length - 2, 2), 10);
}
}
document.getElementById("tbSelYear").value = giYear - CY11;
document.getElementById("tbSelMonth").value = giMonth;
fUpdateCal(document.getElementById("tbSelYear").value,
document.getElementById("tbSelMonth").value);
window.returnValue = "";
</SCRIPT>
<BODY bgColor="#6699cc" style="margin:0px">
</BODY>
</HTML>