/// <summary> /// 初始化下拉列表 查询数据等 /// </summary> /// <returns> -1 出错</returns> public int InitInfo() { //初始化表,并绑定数据源 InitDateTable(); InitList(); fpEnter1_Sheet1.GrayAreaBackColor = System.Drawing.Color.White; Neusoft.HISFC.BizLogic.HealthRecord.ICD icdMgr = new Neusoft.HISFC.BizLogic.HealthRecord.ICD(); ArrayList icdList = icdMgr.Query(ICDTypes.ICD10, QueryTypes.Valid); this.fpEnter1.SetColumnList(this.fpEnter1_Sheet1, 6, icdList); this.fpEnter1.SetColumnList(this.fpEnter1_Sheet1, 7, icdList); return(0); }
/// <summary> /// 获取修改或新增的信息 /// </summary> private void GetICDinfo() { try { if (editType == EditTypes.Add) { newICD.User01 = textSeqNO.Text; //副诊断码 newICD.ID = this.textICDid.Text; //ICD编码 newICD.Name = this.textICDName.Text; //ICD名称 newICD.SpellCode = this.textSpellCode.Text; //拼音码 newICD.WBCode = this.WBCode.Text; //五笔码 newICD.UserCode = this.textUserCode.Text; //统计码 newICD.Is30Illness = Neusoft.FrameWork.Function.NConvert.ToInt32(Is30Illness.Checked).ToString(); //是否是30种疾病 newICD.IsInfection = Neusoft.FrameWork.Function.NConvert.ToInt32(IsInfection.Checked).ToString(); //是否是传染病 newICD.IsTumour = Neusoft.FrameWork.Function.NConvert.ToInt32(IsTumour.Checked).ToString(); //; //是否是肿瘤 newICD.IsValid = true; newICD.SexType.ID = this.SexComBox.Tag.ToString(); //适用性别 newICD.SexType.Name = this.SexComBox.Text; newICD.TraditionalDiag = cbTraditional.Checked; } if (editType == EditTypes.Modify) { newICD = orgICD.Clone(); newICD.User01 = textSeqNO.Text; //副诊断码 newICD.Name = this.textICDName.Text; //ICD名称 newICD.SpellCode = this.textSpellCode.Text; //拼音码 newICD.WBCode = this.WBCode.Text; //五笔码 newICD.UserCode = this.textUserCode.Text; //统计码 newICD.Is30Illness = Neusoft.FrameWork.Function.NConvert.ToInt32(Is30Illness.Checked).ToString(); //是否是30种疾病 newICD.IsInfection = Neusoft.FrameWork.Function.NConvert.ToInt32(IsInfection.Checked).ToString(); //是否是传染病 newICD.IsTumour = Neusoft.FrameWork.Function.NConvert.ToInt32(IsTumour.Checked).ToString(); //; //是否是肿瘤 newICD.IsValid = this.IsValid.Checked; //有效性 newICD.SexType.ID = this.SexComBox.Tag.ToString(); //适用性别 newICD.SexType.Name = this.SexComBox.Text; newICD.TraditionalDiag = cbTraditional.Checked; } #region 取操作员 和操作时间 //这个地方不是很准,只是暂时给前台显示用。 Neusoft.HISFC.BizLogic.HealthRecord.ICD icd = new Neusoft.HISFC.BizLogic.HealthRecord.ICD(); //操作员 编码 姓名 newICD.OperInfo.ID = icd.Operator.ID; newICD.OperInfo.Name = icd.Operator.Name; //操作时间 newICD.OperInfo.OperTime = icd.GetDateTimeFromSysDateTime(); #endregion } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void ucICDInfo_Load(object sender, System.EventArgs e) { Neusoft.HISFC.BizLogic.HealthRecord.ICD icd = new Neusoft.HISFC.BizLogic.HealthRecord.ICD(); //加载性别列表 this.SexComBox.AppendItems(Neusoft.HISFC.Models.Base.SexEnumService.List()); if (SexComBox.Items != null) { if (SexComBox.Items.Count > 0) { SexComBox.SelectedIndex = 0; } } //首先判断是增加 ,修改 if (editType == EditTypes.Add) { //增加 this.IsValid.Checked = true; //增加的的时候 有效的 this.IsValid.Enabled = false; //有效 ContinueInput.Checked = true; //可以连续输入 cbTraditional.Checked = false; Is30Illness.Checked = false; IsInfection.Checked = false; IsTumour.Checked = false; this.Text = "增加"; } else { //修改 this.textSeqNO.Text = orgICD.User01.ToString(); //序列号 this.textICDid.Text = orgICD.ID; //ICD编码 this.textICDName.Text = orgICD.Name; //ICD名称 this.WBCode.Text = orgICD.WBCode; this.textSpellCode.Text = orgICD.SpellCode; //拼音码 this.textUserCode.Text = orgICD.UserCode; //自定义编码 this.cbTraditional.Checked = orgICD.TraditionalDiag; //if (orgICD.Is30Illness == "是") //{ this.Is30Illness.Checked = Neusoft.FrameWork.Function.NConvert.ToBoolean(orgICD.Is30Illness); //是否30种疾病 //} //else //{ // this.Is30Illness.Checked = false; //是否30种疾病 //} //if (orgICD.IsInfection == "是") //{ this.IsInfection.Checked = Neusoft.FrameWork.Function.NConvert.ToBoolean(orgICD.IsInfection); //是否是传染病 //} //else //{ // this.IsInfection.Checked = false;//是否是传染病 //} //if (orgICD.IsTumour == "是") //{ this.IsTumour.Checked = Neusoft.FrameWork.Function.NConvert.ToBoolean(orgICD.IsTumour); // //是否是恶性肿瘤 //} //else //{ // this.IsTumour.Checked = false; //是否是恶性肿瘤 //} this.IsValid.Checked = orgICD.IsValid; //if (orgICD.IsValid == "是") //{ // this.IsValid.Checked = true;//是否有效 //} //else //{ // this.IsValid.Checked = false;//是否有效 //} this.SexComBox.Tag = orgICD.SexType.ID; //适用性别 ContinueInput.Enabled = false; //修改不允许连续输入 //不允许修改ID textICDid.ReadOnly = true; this.Text = "修改"; } }