测试

呆呆地 

呆呆地的

 

代码 fffffffffff
public string GetJobScheduleInfo(object id)
{
JobScheduleInfo jsi
= new OAS.BLL.JobScheduleManager().GetModel(int.Parse(id.ToString()));
string jobScheduleInfo = "<a href='mydesk/jobschedule/jobschedulelistforday.aspx?dt="+DateTime.Now.Year+"-"+DateTime.Now.Month+"-"+DateTime.Now.Day+"'>";
if (jsi==null|| Convert.ToDateTime(jsi.JobSchedule_Date).Day != DateTime.Now.Day)
{
return " <span style='color: #666666'>暂无</span>"; // 如果没有安排,则返回提示信息
}
jobScheduleInfo
+=jsi.JobSchedule_Content.Length > 10?jsi.JobSchedule_Content.Substring(0, 10) + "..":jsi.JobSchedule_Content + "</a>";
return jobScheduleInfo;
}

 

 

public string GetJobScheduleInfo(object id)
{
JobScheduleInfo jsi
= new OAS.BLL.JobScheduleManager().GetModel(int.Parse(id.ToString()));
string jobScheduleInfo = "<a href='mydesk/jobschedule/jobschedulelistforday.aspx?dt="+DateTime.Now.Year+"-"+DateTime.Now.Month+"-"+DateTime.Now.Day+"'>";
if (jsi==null|| Convert.ToDateTime(jsi.JobSchedule_Date).Day != DateTime.Now.Day)
{
return " <span style='color: #666666'>暂无</span>"; // 如果没有安排,则返回提示信息
}
jobScheduleInfo
+=jsi.JobSchedule_Content.Length > 10?jsi.JobSchedule_Content.Substring(0, 10) + "..":jsi.JobSchedule_Content + "</a>";
return jobScheduleInfo;
}

 

 

 

 

的的

ff

测试代码
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{

// 获得当前登陆者ID
userId = (Session["currUser"] as UserInfo).ID;

InitNews();
// 新闻
InitUrl(); // 个人网址
InitBBS(); // 讨论区
InitNoticeMotion(); // 通知
InitVote(); //投票
InitJobSchedule(); // 近日日程
InitMeetingApply(); // 会议
InitWorkPlan(); //工作计划
InitJobScheduleToday(); //今日日程
InitReceiveEmail(); //内部邮件
InitBirthday(); //生日用户
InitWorkLog(); //工作日志
InitAdvice(); //投诉建议

OperationControl.DataBindToddlValue(ddlAddressListType,
"08"); // 初始化角色组
ShowBlock(); // 显示模块
}
}

/// <summary>
/// 初始化消息
/// </summary>
private void InitNoticeMotion()
{
OAS.BLL.NoticeMotionManager noticeMotionManager
= new OAS.BLL.NoticeMotionManager();
noticeMotionManager.SetNoticeActiveOrNotActive();
// 高东 2010/3/18 更新状态
// 获得最新的5条公告通知
DataSet ds = noticeMotionManager.GetDataSet(5, "NoticeMotion_State = 1 and UserInfoID like '%," + userId + ",%'", "NoticeMotion_Time desc");
// 绑定数据
block6.DataSource = ds;
block6.DataBind();
if (ds.Tables[0].Rows.Count == 0)
{
(block6.Controls[block6.Controls.Count
- 1].FindControl("lt6") as Literal).Text = "&middot;无公告通知信息";
}
}

ffff

所有的代码,测试。

测试代码

    /// <summary>
    /// 获得日程安排具体信息
    /// 修改人:张冀
    /// 修改时间:2010年01月05日
    /// 修改内容:原代码未删减,注释日期显示
    /// </summary>
    public string GetJobScheduleInfo(object id)
    {
        JobScheduleInfo jsi = new OAS.BLL.JobScheduleManager().GetModel(int.Parse(id.ToString()));
        string jobScheduleInfo = "<a href='mydesk/jobschedule/jobschedulelistforday.aspx?dt="+DateTime.Now.Year+"-"+DateTime.Now.Month+"-"+DateTime.Now.Day+"'>";
        if (jsi==null|| Convert.ToDateTime(jsi.JobSchedule_Date).Day != DateTime.Now.Day)
        {
            return " <span style='color: #666666'>暂无</span>";         // 如果没有安排,则返回提示信息
        }
        jobScheduleInfo +=jsi.JobSchedule_Content.Length > 10?jsi.JobSchedule_Content.Substring(0, 10) + "..":jsi.JobSchedule_Content + "</a>";
        return jobScheduleInfo; 
    }

 

 

测试ff

posted @ 2010-05-19 18:28  hayada  阅读(98)  评论(1)    收藏  举报