求助:代码up[i].checkBoxZ.Checked里面的up[i]可能指的是什么?

dw_csdn 2018-11-18 01:19:18
最近在学习C#操作word,网上遇到一段代码,可以看出加的有不少控件,但代码up[i].checkBoxZ.Checked中up[i]可能指是什么呢?
Report report = new Report();
report.CreateNewDocument(Application.StartupPath + "\\地接社.doc"); //模板路径
report.InsertValue("djs_name", this.comboBox_djs_name.Text);
report.InsertValue("djs_man", this.comboBox_djs_man.Text);
report.InsertValue("djs_num", this.textBox_djs_num.Text);
report.InsertValue("djs_tel", this.textBox_djs_tel.Text);
report.InsertValue("djs_fax", this.textBox_djs_fax.Text);
report.InsertValue("zts_name", this.comboBox_zts_name.Text);
report.InsertValue("zts_man", this.comboBox_zts_man.Text);
report.InsertValue("zts_num", this.textBox_zts_num.Text);
report.InsertValue("zts_tel", this.textBox_zts_tel.Text);
report.InsertValue("zts_fax", this.textBox_zts_fax.Text);
report.InsertValue("行程", this.textBoxXC.Text);
int xx = Int32.Parse(this.comboBoxdays.Text);
report.AddRow(1, xx);
for (int i = 0; i < xx;i++ )
{
string sss="";
if (up[i].checkBoxZ.Checked||up[i].checkBoxSDZ.Checked||up[i].checkBoxHZ.Checked)
sss += "早";
if (up[i].checkBoxZH.Checked||up[i].checkBoxSDZH.Checked||up[i].checkBoxSDZHB.Checked)
sss += "中";
if (up[i].checkBoxW.Checked||up[i].checkBoxSDW.Checked)
sss += "晚";
string bzz = "";
if (up[i].textBoxS.Text.Trim() == "早餐后,")
{ }
else { bzz += up[i].textBoxS.Text; }
if (up[i].textBoxX.Text.Trim() == "午餐后,")
{ }
else { bzz += up[i].textBoxX.Text; }
string rq = "";
if (!this.cbb.Checked)
rq = up[i].labelDayNo.Text + "\n" + up[i].dateTimePicker.Text + "\n" + up[i].labelWeek.Text;
else
rq = up[i].labelDayNo.Text;
string[] values ={ rq,bzz,sss, up[i].comboBoxAdd.Text};
report.InsertCell(1, 7+i, 4, values);
}
int deletei = 0 ;
for (int i = xx-1; i >=0; i--)
{
if (up[i].textBoxS.Text.Trim() == "早餐后," && up[i].textBoxX.Text.Trim() == "午餐后,")
{
report.DeleteRow(1, i + 7);
deletei++;
}
}
xx = xx - deletei;
...全文
18 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

110,570

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧