/// <summary> /// 初始化 /// </summary> protected override void Init() { base.Init(); Neusoft.NFC.Interface.Classes.MarkCellType.NumCellType numMarkCellType = new Neusoft.NFC.Interface.Classes.MarkCellType.NumCellType(); this.fsReport_Sheet1.Columns[2].CellType = numMarkCellType; }
/// <summary> /// 根据不同的项目类型 设置单元格属性 /// </summary> /// <param name="itemType">项目类型</param> /// <param name="rowIndex">单元格行索引</param> /// <param name="columnIndex">单元格列索引</param> private void SetReportCellType(Neusoft.HISFC.Object.Preparation.EnumStencilItemType itemType, int rowIndex, int columnIndex) { switch (itemType) { case Neusoft.HISFC.Object.Preparation.EnumStencilItemType.Person: this.fsReport.SetColumnList(this.fsReport_Sheet1, this.alStaticEmployee, columnIndex); break; case Neusoft.HISFC.Object.Preparation.EnumStencilItemType.Dept: this.fsReport.SetColumnList(this.fsReport_Sheet1, this.alStaticDept, columnIndex); break; case Neusoft.HISFC.Object.Preparation.EnumStencilItemType.Date: Neusoft.NFC.Interface.Classes.MarkCellType.DateTimeCellType markDateCellType = new Neusoft.NFC.Interface.Classes.MarkCellType.DateTimeCellType(); this.fsReport_Sheet1.Cells[rowIndex, columnIndex].CellType = markDateCellType; break; case Neusoft.HISFC.Object.Preparation.EnumStencilItemType.Number: Neusoft.NFC.Interface.Classes.MarkCellType.NumCellType numCellType = new Neusoft.NFC.Interface.Classes.MarkCellType.NumCellType(); this.fsReport_Sheet1.Cells[rowIndex, columnIndex].CellType = numCellType; break; default: break; } }