예제 #1
0
		public string GetAbsDetail(int stuNumber,DateTime getDate)
		{
			string absDetail = string.Empty;
			DataSet dsAbsDetail;
			using ( StuVisitInfoDataAccess stuVisitInfoDataAcess = new StuVisitInfoDataAccess() )
			{
				try
				{
					dsAbsDetail = stuVisitInfoDataAcess.SetAbsentDaysInMonth(stuNumber,getDate);
					absDetail = "该幼儿本月连续缺勤2天累积天数为: "+stuVisitInfoDataAcess.GetAbsSum.ToString()+"天!"
						+"\t\t具体情况为:\t\t\t\t\t"; 
					foreach(DataRow absDetailRow in dsAbsDetail.Tables[0].Rows)
					{
						absDetail += "统计日期: "+Convert.ToDateTime(absDetailRow[1]).ToString("yyyy-MM-dd")
							+"\t\t\t\t统计结果: "+"该幼儿从上个出勤日截止到统计日"
							+"\t\t\t连续缺勤 "+absDetailRow[2].ToString()+" 天\t\t\t\t";
					}
				}
				catch(Exception e)
				{
					Util.WriteLog(e.Message,Util.EXCEPTION_LOG_TITLE);
					return null;
				}
			}
			return absDetail;
		}
예제 #2
0
		public void DoAbsenceUpdate()
		{
			using (StuVisitInfoDataAccess stuVisitInfoDataAccess = new StuVisitInfoDataAccess())
			{
				try
				{
					stuVisitInfoDataAccess.DoAbsenceInfoUpdate(stuVisit);
				}
				catch(Exception e)
				{
					Util.WriteLog(e.Message,Util.EXCEPTION_LOG_TITLE);
				}
			}
		}
예제 #3
0
		public int DoAbsenceInfoInsert()
		{
			using (StuVisitInfoDataAccess stuVisitInfoDataAccess = new StuVisitInfoDataAccess())
			{
				try
				{
					return stuVisitInfoDataAccess.DoAbsenceInfoInsert(stuVisit);
				}
				catch(Exception e)
				{
					Util.WriteLog(e.Message,Util.EXCEPTION_LOG_TITLE);
					return -1;
				}
			}
		}
예제 #4
0
		public DataSet Get2DaysAbsence(string getGrade,string getClass,DateTime getDate)
		{
			using ( StuVisitInfoDataAccess stuVisitInfoDataAccess = new StuVisitInfoDataAccess() )
			{
				try
				{
					return stuVisitInfoDataAccess.Set2DaysAbs(getGrade,getClass,getDate);
				}
				catch(Exception e)
				{
					Util.WriteLog(e.Message,Util.EXCEPTION_LOG_TITLE);
					return null;
				}
			}
		}
예제 #5
0
		public DataSet GetAbsenceDetail(string getGrade,string getClass,string getName,string getNumber,
			DateTime getBegDate,DateTime getEndDate)
		{
			using ( StuVisitInfoDataAccess stuVisitInfoDataAccess = new StuVisitInfoDataAccess() )
			{
				try
				{
					return stuVisitInfoDataAccess.SetAbsenceDetail(getGrade,getClass,getName,getNumber,
						getBegDate,getEndDate);
				}
				catch(Exception e)
				{
					Util.WriteLog(e.Message,Util.EXCEPTION_LOG_TITLE);
					return null;
				}
			}
		}