protected override void fpSpread1_Sheet1_CellChanged(object sender, FarPoint.Win.Spread.SheetViewEventArgs e) { base.fpSpread1_Sheet1_CellChanged(sender, e); //如果没有装载数据完成,则不做处理 if (!this.isDataLoaded) { return; } //如果改变了名称,则拼音码、五笔码自动发生变化 if (this.fpSpread1_Sheet1.Columns[e.Column].Label == "名称") { Column column = this.GetColumnByName("拼音码"); if (column != null /*&& this.fpSpread1_Sheet1.Cells[e.Row,column.Index].Text.Length==0*/) { this.fpSpread1_Sheet1.Cells[e.Row, column.Index].Text = Neusoft.FrameWork.Public.String.GetSpell(this.fpSpread1_Sheet1.Cells[e.Row, e.Column].Text); } column = this.GetColumnByName("五笔码"); if (column != null) { Neusoft.HISFC.Models.Base.ISpell spCode = this.spellManager.Get(this.fpSpread1_Sheet1.Cells[e.Row, e.Column].Text); if (spCode != null) { this.fpSpread1_Sheet1.Cells[e.Row, column.Index].Text = spCode.WBCode; } } } }
protected virtual void fpSpread1_Sheet1_CellChanged(object sender, FarPoint.Win.Spread.SheetViewEventArgs e) { if (!this.isQuerying && (!this.insertRows.Contains(e.Row)) && (!this.updateRows.Contains(e.Row)) && e.Row >= 0) { this.updateRows.Add(e.Row); this.isDirty = true; } }
private void fpSpread1_Sheet1_CellChanged(object sender, FarPoint.Win.Spread.SheetViewEventArgs e) { this.isDirty = true; }