public AbsenceQartly Bind(MonthTableFactory converter) { m_Data = converter; m_Data.BindStaticCells(gc_Employee, gc_OldHolidays, gc_NewHolidays, gc_SpareHolidaysExc, gc_SpareHolidaysInc, gc_AvailableHolidays, gc_UsedHolidays); foreach (XRTableCell cell in xrDetailRow.Cells) { string factor = cell.Name.Replace("gc_", ""); if (PrintoutConst.Months.Contains(factor)) { m_Data.BindDynamicCell(cell, PrintoutConst.Months.IndexOf(factor)); cell.BeforePrint += new PrintEventHandler(cellBeforePrint); } } DataSource = m_Data.Table; return this; }
public AbsenceQartly Bind(MonthTableFactory converter) { m_Data = converter; m_Data.BindStaticCells(gc_Employee, gc_OldHolidays, gc_NewHolidays, gc_SpareHolidaysExc, gc_SpareHolidaysInc, gc_AvailableHolidays, gc_UsedHolidays); foreach (XRTableCell cell in xrDetailRow.Cells) { string factor = cell.Name.Replace("gc_", ""); if (PrintoutConst.Months.Contains(factor)) { m_Data.BindDynamicCell(cell, PrintoutConst.Months.IndexOf(factor)); cell.BeforePrint += new PrintEventHandler(cellBeforePrint); } } DataSource = m_Data.Table; return(this); }