private void frmExecBill_Load(object sender, System.EventArgs e) { Neusoft.HISFC.BizLogic.Manager.Department dept = new Neusoft.HISFC.BizLogic.Manager.Department(); ArrayList deptList = dept.GetNurseAll(); if (deptList == null) { MessageBox.Show("获取护理站出错" + dept.Err); return; } FarPoint.Win.Spread.CellType.CheckBoxCellType cb = new FarPoint.Win.Spread.CellType.CheckBoxCellType(); fpDept.Columns[0].CellType = cb; this.comboBox1.AddItems(deptList); int i = 0; foreach (Neusoft.HISFC.Models.Base.Department obj in deptList) { this.fpDept.Rows.Add(this.fpDept.RowCount, 1); this.fpDept.Cells[i, 0].Value = false; this.fpDept.Cells[i, 1].Text = obj.Name; this.fpDept.Cells[i, 2].Text = obj.ID; i++; } }