protected override void OnLoad() { this.isAcross = true; this.isSort = false; this.Init(); base.OnLoad(); //野割方象 Neusoft.HISFC.Integrate.Manager manager = new Neusoft.HISFC.Integrate.Manager(); System.Collections.ArrayList constantList = manager.GetDeptmentAllValid(); Neusoft.HISFC.Object.Base.Department top = new Neusoft.HISFC.Object.Base.Department(); top.ID = "0"; top.Name = "畠 何"; top.SpellCode = "QB"; top.WBCode = "WU"; this.neuComboBox1.Items.Add(top); foreach (Neusoft.HISFC.Object.Base.Department con in constantList) { neuComboBox1.Items.Add(con); } this.neuComboBox1.alItems.Add(top); this.neuComboBox1.alItems.AddRange(constantList); if (neuComboBox1.Items.Count > 0) { neuComboBox1.SelectedIndex = 0; deptCode = ((Neusoft.HISFC.Object.Base.Department)neuComboBox1.Items[0]).ID; deptName = ((Neusoft.HISFC.Object.Base.Department)neuComboBox1.Items[0]).Name; } }
/// <summary> /// 初始化 /// </summary> private void init() { this.dateBegin.Value = this.regMgr.GetDateTimeFromSysDateTime().Date; this.dateEnd.Value = this.dateBegin.Value; //挂号科室 Neusoft.HISFC.Integrate.Manager deptMgr = new Neusoft.HISFC.Integrate.Manager(); ArrayList al = deptMgr.QueryRegDepartment(); if (al == null) { al = new ArrayList(); } this.cmbDept.AddItems(al); //挂号医生 al = deptMgr.QueryEmployee(Neusoft.HISFC.Object.Base.EnumEmployeeType.D); if (al == null) { al = new ArrayList(); } this.cmbDoct.AddItems(al); //操作员 al = deptMgr.QueryEmployeeAll(); if (al == null) { al = new ArrayList(); } this.cmbOper.AddItems(al); }
/// <summary> /// 检索药品信息 /// </summary> private void RetrieveData( ) { //显示等待信息 Neusoft.NFC.Interface.Classes.Function.ShowWaitForm(Language.Msg("正在检索药品信息...")); Application.DoEvents( ); //取药品数据 List <Neusoft.HISFC.Object.Pharmacy.Item> al = item.QueryItemList(true); if (al == null) { MessageBox.Show(item.Err); Neusoft.NFC.Interface.Classes.Function.HideWaitForm( ); return; } //取药品类型数组 Neusoft.HISFC.Integrate.Manager manager = new Neusoft.HISFC.Integrate.Manager( ); this.drugTypeHelper.ArrayObject = manager.GetConstantList(Neusoft.HISFC.Object.Base.EnumConstant.ITEMTYPE); this.qualityHelper.ArrayObject = manager.GetConstantList(Neusoft.HISFC.Object.Base.EnumConstant.DRUGQUALITY); //显示药品数据 Neusoft.HISFC.Object.Pharmacy.Item info; for (int i = 0; i < al.Count; i++) { info = al[i] as Neusoft.HISFC.Object.Pharmacy.Item; this.dsDrug.Tables[0].Rows.Add(new Object[] { false, //是否添加 info.Name, //药品名称 info.Specs, //药品规格 info.PriceCollection.RetailPrice, //零售价 qualityHelper.GetName(info.Quality.ID), //药品性质 info.PackUnit, //包装单位 info.PackQty, //包装数量 info.MinUnit, //最小单位 info.ID, //药品编码 drugTypeHelper.GetName(info.Type.ID), //药品类型 info.NameCollection.SpellCode, //拼音码 info.NameCollection.WBCode, //五笔码 info.NameCollection.UserCode, //自定义码 info.NameCollection.RegularName, //通用名 info.NameCollection.SpellCode, //通用名拼音码 info.NameCollection.WBCode, //通用名五笔码 }); //设置格式 this.SetFormat( ); Neusoft.NFC.Interface.Classes.Function.ShowWaitForm(i, al.Count); Application.DoEvents( ); } Neusoft.NFC.Interface.Classes.Function.HideWaitForm( ); }
protected override void OnLoad() { this.Init(); Neusoft.HISFC.Integrate.Manager manager = new Neusoft.HISFC.Integrate.Manager(); System.Collections.ArrayList consList = manager.GetConstantList("PACTUNIT"); foreach (Neusoft.HISFC.Object.Base.Const con in consList) { metComboBox1.Items.Add(con); } if (metComboBox1.Items.Count >= 0) { metComboBox1.SelectedIndex = 0; metCode = ((Neusoft.HISFC.Object.Base.Const)metComboBox1.Items[0]).ID; metName = ((Neusoft.HISFC.Object.Base.Const)metComboBox1.Items[0]).Name; } base.OnLoad(); }
/// <summary> /// 数据加载初始化 /// </summary> protected void DataInit() { #region 医嘱类别加载 Neusoft.HISFC.Integrate.Manager integrateManager = new Neusoft.HISFC.Integrate.Manager(); ArrayList alOrderType = (integrateManager.QueryOrderTypeList());//医嘱类型 foreach (Neusoft.HISFC.Object.Order.OrderType obj in alOrderType) { if (obj.IsDecompose) { if (alLong == null) { alLong = new ArrayList(); } alLong.Add(obj); } else { if (alShort == null) { alShort = new ArrayList(); } alShort.Add(obj); } } #endregion #region 频次加载 ArrayList List = integrateManager.QuereyFrequencyList(); this.cmbFrequency.DataSource = List; this.cmbFrequency.DisplayMember = "ID"; this.cmbFrequency.ValueMember = "ID"; this.frequencyHelper.ArrayObject = List; #endregion #region 煎药方式 ArrayList memoAl = new ArrayList(); Neusoft.NFC.Object.NeuObject obj1 = new Neusoft.NFC.Object.NeuObject(); obj1.ID = "0"; obj1.Name = "自煎"; memoAl.Add(obj1); obj1 = new Neusoft.NFC.Object.NeuObject(); obj1.ID = "1"; obj1.Name = "代煎"; memoAl.Add(obj1); obj1 = new Neusoft.NFC.Object.NeuObject(); obj1.ID = "2"; obj1.Name = "复渣"; memoAl.Add(obj1); obj1 = new Neusoft.NFC.Object.NeuObject(); obj1.ID = "3"; obj1.Name = "代复渣"; memoAl.Add(obj1); this.cmbMemo.DataSource = memoAl; this.cmbMemo.DisplayMember = "Name"; this.cmbMemo.ValueMember = "ID"; #endregion #region 草药项目 if (this.alItem == null) { this.alItem = new ArrayList(); } this.alItem = this.itemManager.QueryItemAvailableList(this.deptCode, "C"); if (this.alItem == null) { MessageBox.Show("获取草药项目列表出错!"); return; } #endregion #region 用法 this.alUsage = Neusoft.UFC.Order.Classes.Function.HelperUsage.ArrayObject; if (this.alUsage == null) { MessageBox.Show("获取用法列表出错!"); return; } #endregion this.fpEnter1.SetWidthAndHeight(150, 100); this.fpEnter1.SetIDVisiable(this.fpEnter1_Sheet1, (int)ColumnSet.ColTradeName, false); this.fpEnter1.SetColumnList(this.fpEnter1_Sheet1, (int)ColumnSet.ColTradeName, this.alItem); this.fpEnter1.SetColumnList(this.fpEnter1_Sheet1, (int)ColumnSet.ColUsage, this.alUsage); this.fpEnter1.ShowListWhenOfFocus = true; this.fpEnter1.SetItem += new Neusoft.NFC.Interface.Controls.NeuFpEnter.setItem(fpEnter1_SetItem); this.fpEnter1.KeyEnter += new Neusoft.NFC.Interface.Controls.NeuFpEnter.keyDown(fpEnter1_KeyEnter); FarPoint.Win.Spread.InputMap im; im = this.fpEnter1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused); im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Down, Keys.None), FarPoint.Win.Spread.SpreadActions.None); im = this.fpEnter1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused); im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Up, Keys.None), FarPoint.Win.Spread.SpreadActions.None); im = this.fpEnter1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused); im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Escape, Keys.None), FarPoint.Win.Spread.SpreadActions.None); }