/// <summary> /// 初始化 /// </summary> public void Init() { Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("正在加载基础数据 请稍候..."); Application.DoEvents(); Neusoft.HISFC.BizProcess.Integrate.Pharmacy pharmacyIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Pharmacy(); List <Neusoft.HISFC.Models.Pharmacy.Item> phaList = pharmacyIntegrate.QueryItemList(true); if (phaList == null) { MessageBox.Show(Language.Msg("加载药品列表发生错误!") + pharmacyIntegrate.Err); return; } foreach (Neusoft.HISFC.Models.Pharmacy.Item info in phaList) { info.Memo = info.Specs; } this.alDrugList = new ArrayList(phaList.ToArray()); this.drugHelper = new Neusoft.FrameWork.Public.ObjectHelper(this.alDrugList); Neusoft.FrameWork.WinForms.Classes.MarkCellType.NumCellType markNumCell = new Neusoft.FrameWork.WinForms.Classes.MarkCellType.NumCellType(); this.fsStencil_Sheet1.Columns[4].CellType = markNumCell; this.fsStencil_Sheet1.Columns[5].CellType = markNumCell; this.stencilItemTypeList = Neusoft.HISFC.Models.Preparation.EnumStencilItemTypeService.List(); string[] strItemType = new string[this.stencilItemTypeList.Count]; int i = 0; foreach (Neusoft.FrameWork.Models.NeuObject tempItemType in this.stencilItemTypeList) { strItemType[i] = tempItemType.Name; i++; } FarPoint.Win.Spread.CellType.ComboBoxCellType itemTypeCombo = new FarPoint.Win.Spread.CellType.ComboBoxCellType(); itemTypeCombo.Items = strItemType; this.fsStencil_Sheet1.Columns[2].CellType = itemTypeCombo; Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm(); FarPoint.Win.Spread.InputMap im; im = this.fsStencil.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused); im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.None); }
/// <summary> /// 初始化 /// </summary> public void Init() { Neusoft.HISFC.BizProcess.Integrate.Pharmacy pharmacyIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Pharmacy(); List <Neusoft.HISFC.Models.Pharmacy.Item> phaList = pharmacyIntegrate.QueryItemList(true); if (phaList == null) { MessageBox.Show(Language.Msg("加载药品列表发生错误!") + pharmacyIntegrate.Err); return; } foreach (Neusoft.HISFC.Models.Pharmacy.Item info in phaList) { info.Memo = info.Specs; } this.alDrugList = new ArrayList(phaList.ToArray()); this.drugHelper = new Neusoft.FrameWork.Public.ObjectHelper(this.alDrugList); }
/// <summary> /// 初始化 /// </summary> public void Init() { Neusoft.FrameWork.WinForms.Classes.Function.ShowWaitForm("正在加载基础数据 请稍候..."); Application.DoEvents(); Neusoft.HISFC.BizProcess.Integrate.Pharmacy pharmacyIntegrate = new Neusoft.HISFC.BizProcess.Integrate.Pharmacy(); List <Neusoft.HISFC.Models.Pharmacy.Item> phaList = pharmacyIntegrate.QueryItemList(true); if (phaList == null) { MessageBox.Show(Language.Msg("加载药品列表发生错误!") + pharmacyIntegrate.Err); return; } foreach (Neusoft.HISFC.Models.Pharmacy.Item info in phaList) { info.Memo = info.Specs; } this.alDrugList = new ArrayList(phaList.ToArray()); this.drugHelper = new Neusoft.FrameWork.Public.ObjectHelper(this.alDrugList); FarPoint.Win.Spread.InputMap im; im = this.fsMaterial.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused); im.Put(new FarPoint.Win.Spread.Keystroke(Keys.Enter, Keys.None), FarPoint.Win.Spread.SpreadActions.None); Neusoft.FrameWork.WinForms.Classes.MarkCellType.NumCellType markNumCell = new Neusoft.FrameWork.WinForms.Classes.MarkCellType.NumCellType(); this.fsMaterial_Sheet1.Columns[(int)MaterialColumnSet.ColQty].CellType = markNumCell; this.fsMaterial.PhaListColumnIndex = 1; this.fsMaterial.PhaListEnabled = true; this.fsMaterial.Init(); this.GetInterface(); Neusoft.FrameWork.WinForms.Classes.Function.HideWaitForm(); }