内容发布更新时间 : 2025/1/12 0:25:22星期一 下面是文章的全部内容请认真阅读。
e.New(1);
e.RenameWorksheet((size_t)0, L\职工考勤\
BasicExcelWorksheet* sheet = e.GetWorksheet(L\职工考勤\sheet->Cell(0,0)->SetWString(\日期\sheet->Cell(0,1)->SetWString(\星期\sheet->Cell(0,2)->SetWString(\姓名\sheet->Cell(0,3)->SetWString(\部门\sheet->Cell(0,4)->SetWString(\上班\sheet->Cell(0,5)->SetWString(\下班\CListCtrl *hlist=&_lists;
int rows=hlist->GetItemCount();
int lows=hlist->GetHeaderCtrl()->GetItemCount(); int i,j;
COleDateTime odt; for(i=1;i<=rows;i++) { for(j=0;j
m=_latearray.GetSize();
sheet->Cell(i,0)->SetWString(\迟到\i++;
for(n=0,j=0;n
m=_leaveearlyarray.GetSize();
sheet->Cell(i,0)->SetWString(\早退\i++;
for(n=0,j=0;n
25
i=i+2; m=_absentarray.GetSize(); sheet->Cell(i,0)->SetWString(\缺勤\ i++; for(n=0,j=0;n