public override void DataBind() { using (ReportDal DataAccess = new ReportDal()) { String YearMonth = txtYearMonth.Text; //if (!string.IsNullOrEmpty(YearMonth)&&(YearMonth.Length>6)) YearMonth = YearMonth.Substring(0, 4) + YearMonth.Substring(5, 2); PlantBonusRepeater.DataSource = DataAccess.GetPlantBonus(YearMonth); } base.DataBind(); }
public override void DataBind() { using (ReportDal DataAccess = new ReportDal()) { String YearMonth = txtYearMonth.Text; String SpecialField = Request.Params["SpecialField"]; //if (!string.IsNullOrEmpty(YearMonth)&&(YearMonth.Length>6)) YearMonth = YearMonth.Substring(0, 4) + YearMonth.Substring(5, 2); ShiftBonusRepeater.DataSource = DataAccess.GetShiftScoreAndBonus(YearMonth, SpecialField); } base.DataBind(); ColSpan(); }
public override void DataBind() { using (ReportDal DataAccess = new ReportDal()) { String YearMonth = "";// txtYearMonth.Text; String SpecialField = Request.Params["SpecialField"]; if (!string.IsNullOrEmpty(YearMonth) && (YearMonth.Length > 6)) YearMonth = YearMonth.Substring(0, 4) + YearMonth.Substring(5, 2); DateTime StartDate = Convert.ToDateTime(txtStartDate.Text); DateTime EndDate = Convert.ToDateTime(txtEndDate.Text); ScoreRepeater.DataSource = DataAccess.GetShiftScore(StartDate, EndDate, SpecialField); } base.DataBind(); ColSpan(); }
public override void DataBind() { using (ReportDal DataAccess = new ReportDal()) { String YearMonth = txtYearMonth.Text; String SpecialField = Request.Params["SpecialField"]; string position = ddlPosition.SelectedValue; if (!string.IsNullOrEmpty(YearMonth) && (YearMonth.Length > 6)) YearMonth = YearMonth.Substring(0, 4) + YearMonth.Substring(5, 2); List<PersonScoreEntity> resultDataList = DataAccess.GetPersonScore(YearMonth, SpecialField); if (position != "ALL") { resultDataList = resultDataList.Where(r => r.PositionID == position).ToList(); } PersonScoreRepeater.DataSource = resultDataList; } base.DataBind(); ColSpan(); }