资源简介
基于C#开发的旅游景区源码,希望和大家一起学习!
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class aboutbyg : System.Web.UI.Page
{
protected void Page_Load(object sender EventArgs e)
{
}
//天干
private static string[] TianGan = { “甲“ “乙“ “丙“ “丁“ “戊“ “己“ “庚“ “辛“ “壬“ “癸“ };
//地支
private static string[] DiZhi = { “子“ “丑“ “寅“ “卯“ “辰“ “巳“ “午“ “未“ “申“ “酉“ “戌“ “亥“ };
//十二生肖
private static string[] ShengXiao = { “鼠“ “牛“ “虎“ “兔“ “龙“ “蛇“ “马“ “羊“ “猴“ “鸡“ “狗“ “猪“ };
//农历日期
private static string[] DayName = {“*““初一““初二““初三““初四““初五“
“初六““初七““初八““初九““初十“
“十一““十二““十三““十四““十五“
“十六““十七““十八““十九““二十“
“廿十一““廿十二““廿十三““廿十四““廿十五“
“廿十六““廿十七““廿十八““廿十九““三十“};
//农历月份
private static string[] MonthName = { “*“ “正“ “二“ “三“ “四“ “五“ “六“ “七“ “八“ “九“ “十“ “十一“ “腊“ };
//公历月计数天
private static int[] MonthAdd = { 0 31 59 90 120 151 181 212 243 273 304 334 };
//农历数据
private static int[] LunarData = {26353333871701174826770169423911334231175396438
340237493311771453694201326235046519732213402
40020229011386267611605234913751527094645331738
290133042112422651199255132352970637331706398762
2741120626743826471318204070347746165313862413
330077119726372688773365531109290029223980422395
117926741526356610671701174839877227422391330031
1175161120001037495277171452274233239723503222
26894934023493133973138646421960523493341232709
289026794627735925651210265139586313232707265877};
///
/// 获取对应日期的农历
///
/// 公历日期
///
public string GetLunarCalendar(DateTime dtDay)
{
string sYear = dtDay.Year.ToString();
string sMonth = dtDay.Month.ToString();
string sDay = dtDay.Day.ToString();
int year;
int month;
int day;
try
{
year = int.Parse(sYear);
month = int.Parse(sMonth);
day = int.Parse(sDay);
}
catch
{
year = DateTime.Now.Year;
month = DateTime.Now.Month;
day = DateTime.Now.Day;
}
int nTheDate;
int nIsEnd;
int k m n nBit i;
string calendar = string.Empty;
//计算到初始时间1921年2月8日的天数:1921-2-8(正月初一)
nTheDate = (year - 1921) * 365 + (year - 1921) / 4 + day + MonthAdd[month - 1] - 38;
if ((year % 4 == 0) && (month > 2))
nTheDate += 1;
//计算天干,地支,月,日
nIsEnd = 0;
m = 0;
k = 0;
n = 0;
while (nIsEnd != 1)
{
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1937 2009-03-19 11:44 admin\admin_login.aspx
文件 2224 2009-03-17 14:26 admin\admin_login.aspx.cs
文件 3430 2009-06-26 10:23 admin\backpages\admin_aboutus.aspx
文件 3314 2009-10-22 13:13 admin\backpages\admin_aboutus.aspx.cs
文件 4760 2010-01-11 11:22 admin\backpages\admin_actAdd.aspx
文件 3183 2010-01-11 11:11 admin\backpages\admin_actAdd.aspx.cs
文件 483 2009-06-27 17:14 admin\backpages\admin_actDel.aspx
文件 2434 2009-06-26 14:05 admin\backpages\admin_actDel.aspx.cs
文件 7054 2010-01-11 11:22 admin\backpages\admin_actEdit.aspx
文件 4900 2010-01-11 11:12 admin\backpages\admin_actEdit.aspx.cs
文件 9078 2010-01-11 11:07 admin\backpages\admin_actList.aspx
文件 526 2009-06-26 13:09 admin\backpages\admin_actList.aspx.cs
文件 10481 2010-01-11 10:37 admin\backpages\admin_AdAdd.aspx
文件 7310 2010-01-11 10:28 admin\backpages\admin_AdAdd.aspx.cs
文件 479 2009-06-27 17:15 admin\backpages\admin_AdDel.aspx
文件 4183 2010-01-13 10:54 admin\backpages\admin_AdDel.aspx.cs
文件 12541 2010-01-11 10:37 admin\backpages\admin_AdEdit.aspx
文件 9551 2010-01-13 11:12 admin\backpages\admin_AdEdit.aspx.cs
文件 8735 2009-08-19 16:15 admin\backpages\admin_AdList.aspx
文件 525 2009-06-26 10:14 admin\backpages\admin_AdList.aspx.cs
文件 4020 2009-06-27 17:15 admin\backpages\admin_changePwd.aspx
文件 2157 2009-03-19 16:28 admin\backpages\admin_changePwd.aspx.cs
文件 3430 2009-07-20 17:22 admin\backpages\admin_contact.aspx
文件 3300 2009-07-20 17:10 admin\backpages\admin_contact.aspx.cs
文件 3424 2010-01-09 15:01 admin\backpages\admin_fuwu.aspx
文件 3318 2009-10-22 13:16 admin\backpages\admin_fuwu.aspx.cs
文件 6073 2009-10-22 15:43 admin\backpages\admin_jobAdd.aspx
文件 2315 2009-10-22 15:44 admin\backpages\admin_jobAdd.aspx.cs
文件 481 2009-06-27 17:16 admin\backpages\admin_jobDel.aspx
文件 2436 2009-06-26 18:04 admin\backpages\admin_jobDel.aspx.cs
............此处省略1176个文件信息
评论
共有 条评论