/// <summary> /// 常数信息加载 /// </summary> /// <returns></returns> protected int ShowConstantList() { List <Neusoft.HISFC.Models.Pharmacy.DrugConstant> drugConstantList = phaConsManager.QueryDrugConstant(Function.DrugTypePriv_ConsType); if (drugConstantList == null) { MessageBox.Show(Neusoft.FrameWork.Management.Language.Msg("加载药品常数类别发生错误") + this.phaConsManager.Err); return(-1); } this.Clear(); this.neuSpread1_Sheet1.Rows.Count = drugConstantList.Count; int iRowIndex = 0; foreach (Neusoft.HISFC.Models.Pharmacy.DrugConstant info in drugConstantList) { this.neuSpread1_Sheet1.Cells[iRowIndex, 0].Text = "<" + info.DrugType + ">" + this.itemTypeHelper.GetName(info.DrugType); //药品类别 this.neuSpread1_Sheet1.Cells[iRowIndex, 1].Text = info.Item.ID; this.neuSpread1_Sheet1.Cells[iRowIndex, 2].Text = info.Item.Name; this.neuSpread1_Sheet1.Cells[iRowIndex, 3].Text = info.Memo; //备注 this.neuSpread1_Sheet1.Rows[iRowIndex].Tag = info; iRowIndex++; } return(1); }