资源简介
这个里面是c#源码,有根据出生日期得到星座和生肖以及农历详细信息等
代码片段和文件信息
using EQCCD;
using HR_Core.BLL;
using HR_Core.BLL.Archive;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace HR.Archives
{
public partial class ArchivebaseInfo : Common.Pagebase
{
public string ArcID;
public int iUserID = 0;
public string linkInfo;
public string sImgUrl;
public string tempsImgUrl;
public string workExpenrice;
public string smallImgsUrl;
public string bigImgsUrl;
protected string YearLan
{
get
{
return Common_Core.baseData.LanguageManager.GetText(“Year“);
}
}
protected string MonthLan
{
get
{
return Common_Core.baseData.LanguageManager.GetText(“Month“);
}
}
protected void Page_Load(object sender EventArgs e)
{
ArcID = Request.QueryString[“id“];
if (Page.IsPostBack)
{
return;
}
BindData();
}
private void BindData()
{
DataRow dr = ArchivePolymerizationMgr.GetUserInfo(ArcID);
iUserID = 0;
sImgUrl = tempsImgUrl = ““;
if (dr != null)
{
this.txtUserName.Text = this.ltlName.Text = dr[“sName“].ToString();
this.txtEmpID.Text = ltlEmpNO.Text = dr[“sEmp_ID“].ToString();
this.txtSta.Text = dr[“iSuspend“].ToString();
sImgUrl = tempsImgUrl = dr[“sHeadImg“].ToString().Split(‘‘)[0];
iUserID = dr[“FK_UserID“].Parse(0);
}
List ImgAndVideoList = ArchivePolymerizationMgr.GetImgAndVideo(iUserID.ToString());
string[] bigImgs = new string[10];
string[] smallImgs = new string[10];
int imgCount = 0;
int m = 0;
if (ImgAndVideoList.Count > 0)
{
string str = string.Empty;
string smallImg = ImgAndVideoList[2];
string bigImg = ImgAndVideoList[0];
string[] vlist = bigImg.Split(‘‘);
string[] vList1 = smallImg.Split(‘‘);
// string[] bigImgs=new string[vlist.Length];
// string[] smallImgs = new string[vList1.Length];
imgCount = vlist.Length;
if (string.IsNullOrEmpty(bigImg))
{
bigImgs[0] = ““;
smallImgs[0] = ““;
}
else
{
for (int i = 0; i < vlist.Length; i++)
{
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-04-04 13:48 根据农历获取星座和生肖等信息\
文件 40266 2019-03-28 15:47 根据农历获取星座和生肖等信息\Archiveba
文件 17422 2019-03-28 15:51 根据农历获取星座和生肖等信息\Archiveba
文件 16818 2019-03-27 15:32 根据农历获取星座和生肖等信息\Archiveba
- 上一篇:C#在线网络售票程序
- 下一篇:Web实训网站C#新闻发布系统
评论
共有 条评论