/// <summary> /// 设置主窗体属性 /// </summary> /// <param name="ucPhaManager"></param> private void SetPhaManagerProperty(Neusoft.HISFC.Components.Pharmacy.Out.ucPhaOut ucPhaManager) { this.phaOutManager = ucPhaManager; if (this.phaOutManager != null) { //设置界面显示 this.phaOutManager.IsShowItemSelectpanel = true; this.phaOutManager.IsShowInputPanel = false; //设置目标科室信息 目标人员信息 this.phaOutManager.SetTargetDept(false, true, Neusoft.HISFC.Models.IMA.EnumModuelType.Phamacy, Neusoft.HISFC.Models.Base.EnumDepartmentType.P); //设置工具栏按钮显示 this.phaOutManager.SetToolBarButton(true, false, false, false, true); this.phaOutManager.SetToolBarButtonVisible(true, false, false, false, true, true, false); //设置显示的待选择数据 this.phaOutManager.SetSelectData("2", false, null, null, null); //设置提示信息 this.phaOutManager.ShowInfo = ""; this.phaOutManager.Fp.EditModeReplace = true; this.phaOutManager.FpSheetView.DataAutoSizeColumns = false; this.phaOutManager.EndTargetChanged -= new ucIMAInOutBase.DataChangedHandler(phaOutManager_EndTargetChanged); this.phaOutManager.EndTargetChanged += new ucIMAInOutBase.DataChangedHandler(phaOutManager_EndTargetChanged); this.phaOutManager.FpKeyEvent -= new ucIMAInOutBase.FpKeyHandler(phaOutManager_FpKeyEvent); this.phaOutManager.FpKeyEvent += new ucIMAInOutBase.FpKeyHandler(phaOutManager_FpKeyEvent); this.phaOutManager.Fp.EditModeOff -= new EventHandler(Fp_EditModeOff); this.phaOutManager.Fp.EditModeOff += new EventHandler(Fp_EditModeOff); this.phaOutManager.SetItemListWidth(2); } }
/// <summary> /// 设置主窗体属性 /// </summary> /// <param name="ucPhaManager"></param> private void SetPhaManagerProperty(Neusoft.HISFC.Components.Pharmacy.Out.ucPhaOut ucPhaManager) { this.phaOutManager = ucPhaManager; if (this.phaOutManager != null) { //设置界面显示 this.phaOutManager.IsShowItemSelectpanel = true; this.phaOutManager.IsShowInputPanel = false; //设置目标科室信息 目标人员信息 this.phaOutManager.SetTargetDept(false, true, Neusoft.HISFC.Models.IMA.EnumModuelType.Phamacy, Neusoft.HISFC.Models.Base.EnumDepartmentType.P); this.phaOutManager.SetTargetPerson(true, Neusoft.HISFC.Models.Base.EnumEmployeeType.P); //设置工具栏按钮显示 this.phaOutManager.SetToolBarButton(true, false, false, false, true); this.phaOutManager.SetToolBarButtonVisible(true, false, false, false, true, true, false); //设置显示的待选择数据 this.phaOutManager.SetSelectData("2", Function.IsOutByBatchNO, null, null, null); //提示信息设置 this.phaOutManager.ShowInfo = ""; if (this.isSpecialOut) { this.phaOutManager.TargetDept = this.phaOutManager.DeptInfo; } this.phaOutManager.Fp.EditModeReplace = true; this.phaOutManager.FpSheetView.DataAutoSizeColumns = false; this.phaOutManager.EndTargetChanged -= new ucIMAInOutBase.DataChangedHandler(phaOutManager_EndTargetChanged); this.phaOutManager.EndTargetChanged += new ucIMAInOutBase.DataChangedHandler(phaOutManager_EndTargetChanged); this.phaOutManager.FpKeyEvent -= new ucIMAInOutBase.FpKeyHandler(phaOutManager_FpKeyEvent); this.phaOutManager.FpKeyEvent += new ucIMAInOutBase.FpKeyHandler(phaOutManager_FpKeyEvent); this.phaOutManager.Fp.EditModeOff -= new EventHandler(Fp_EditModeOff); this.phaOutManager.Fp.EditModeOff += new EventHandler(Fp_EditModeOff); this.phaOutManager.Fp.CellDoubleClick -= new FarPoint.Win.Spread.CellClickEventHandler(Fp_CellDoubleClick); this.phaOutManager.Fp.CellDoubleClick += new FarPoint.Win.Spread.CellClickEventHandler(Fp_CellDoubleClick); this.phaOutManager.FpSheetView.DataAutoCellTypes = false; this.SetFormat(); this.Init(); if (Function.IsOutByBatchNO) { this.phaOutManager.SetItemListWidth(3); } else { this.phaOutManager.SetItemListWidth(2); } } }
/// <summary> /// 设置主窗体属性 /// </summary> /// <param name="ucPhaManager"></param> private void SetPhaManagerProperty(Neusoft.HISFC.Components.Pharmacy.Out.ucPhaOut ucPhaManager) { this.phaOutManager = ucPhaManager; if (this.phaOutManager != null) { //设置界面显示 this.phaOutManager.IsShowInputPanel = false; this.phaOutManager.IsShowItemSelectpanel = true; //设置目标科室 目标人员信息 this.phaOutManager.SetTargetDept(false, true, Neusoft.HISFC.Models.IMA.EnumModuelType.Phamacy, Neusoft.HISFC.Models.Base.EnumDepartmentType.P); this.phaOutManager.SetTargetPerson(true, Neusoft.HISFC.Models.Base.EnumEmployeeType.P); //设置工具栏按钮显示 this.OnExpand += new EventHandler(ExamOutPriv_OnExpand); this.phaOutManager.SetToolBarButton(true, false, false, false, true); this.phaOutManager.SetToolBarButtonVisible(true, false, false, false, true, true, false); this.phaOutManager.AddToolBarButton("日消耗", "", 0, true, false, this.ExamOutPriv_OnExpand); System.EventHandler PrePrintHandler = new EventHandler(PrePrint); this.phaOutManager.AddToolBarButton("打印", "对出库单进行预打印", Neusoft.FrameWork.WinForms.Classes.EnumImageList.D打印, 11, true, PrePrintHandler); //设置显示的待选择数据 this.phaOutManager.SetSelectData("2", Function.IsOutByBatchNO, null, null, null); //设置显示信息 this.phaOutManager.ShowInfo = ""; this.phaOutManager.Fp.EditModePermanent = false; this.phaOutManager.Fp.EditModeReplace = true; this.phaOutManager.FpSheetView.DataAutoSizeColumns = false; this.phaOutManager.FpKeyEvent -= new ucIMAInOutBase.FpKeyHandler(phaManager_FpKeyEvent); this.phaOutManager.FpKeyEvent += new ucIMAInOutBase.FpKeyHandler(phaManager_FpKeyEvent); this.phaOutManager.Fp.EditModeOff -= new EventHandler(Fp_EditModeOff); this.phaOutManager.Fp.EditModeOff += new EventHandler(Fp_EditModeOff); this.phaOutManager.Fp.CellDoubleClick -= new FarPoint.Win.Spread.CellClickEventHandler(Fp_CellDoubleClick); this.phaOutManager.Fp.CellDoubleClick += new FarPoint.Win.Spread.CellClickEventHandler(Fp_CellDoubleClick); this.phaOutManager.FpSheetView.DataAutoCellTypes = false; this.SetFormat(); this.InitConfig(); this.phaOutManager.SetItemListWidth(2); } }
/// <summary> /// 设置主窗体属性 /// </summary> /// <param name="ucPhaManager"></param> private void SetPhaManagerProperty(Neusoft.HISFC.Components.Pharmacy.Out.ucPhaOut ucPhaManager) { this.phaOutManager = ucPhaManager; if (this.phaOutManager != null) { //设置界面显示 this.phaOutManager.IsShowItemSelectpanel = true; this.phaOutManager.IsShowInputPanel = false; //设置目标科室信息 目标人员信息 this.phaOutManager.SetTargetDept(false, true, Neusoft.HISFC.Models.IMA.EnumModuelType.Phamacy, Neusoft.HISFC.Models.Base.EnumDepartmentType.P); this.phaOutManager.SetTargetPerson(true, Neusoft.HISFC.Models.Base.EnumEmployeeType.P); //设置工具栏按钮显示 this.phaOutManager.SetToolBarButtonVisible(false, false, false, false, true, true, false); //设置显示的待选择数据 this.phaOutManager.SetSelectData("2", Function.IsOutByBatchNO, null, null, null); this.phaOutManager.Fp.EditModeReplace = true; this.phaOutManager.FpSheetView.DataAutoSizeColumns = false; this.phaOutManager.EndTargetChanged -= new ucIMAInOutBase.DataChangedHandler(phaOutManager_EndTargetChanged); this.phaOutManager.EndTargetChanged += new ucIMAInOutBase.DataChangedHandler(phaOutManager_EndTargetChanged); this.phaOutManager.FpKeyEvent -= new ucIMAInOutBase.FpKeyHandler(phaOutManager_FpKeyEvent); this.phaOutManager.FpKeyEvent += new ucIMAInOutBase.FpKeyHandler(phaOutManager_FpKeyEvent); this.phaOutManager.Fp.EditModeOff -= new EventHandler(Fp_EditModeOff); this.phaOutManager.Fp.EditModeOff += new EventHandler(Fp_EditModeOff); this.phaOutManager.FpSheetView.DataAutoCellTypes = false; this.SetFormat(); this.InitControlParam(); //提示信息设置 this.phaOutManager.ShowInfo = "当前价让加价率:" + this.defaultPriceRate.ToString("N"); System.EventHandler eFun = new EventHandler(SetTransferRate); this.phaOutManager.AddToolBarButton("加价设置", "设置价让出库加价率", Neusoft.FrameWork.WinForms.Classes.EnumImageList.S设置, 2, true, eFun); this.phaOutManager.SetItemListWidth(2); } }
/// <summary> /// /// </summary> /// <param name="isSpeOut">是否特殊出库</param> /// <param name="ucPhaManager"></param> public CommonOutPriv(bool isSpeOut, Neusoft.HISFC.Components.Pharmacy.Out.ucPhaOut ucPhaManager) { this.isSpecialOut = isSpeOut; this.SetPhaManagerProperty(ucPhaManager); }
public ExamOutPriv(Neusoft.HISFC.Components.Pharmacy.Out.ucPhaOut ucPhaManager) { this.SetPhaManagerProperty(ucPhaManager); }
/// <summary> /// 价让出库 /// </summary> /// <param name="ucPhaManager"></param> public TransferOutput(Neusoft.HISFC.Components.Pharmacy.Out.ucPhaOut ucPhaManager) { this.SetPhaManagerProperty(ucPhaManager); }
public Neusoft.HISFC.Components.Pharmacy.In.IPhaInManager GetOutInstance(Neusoft.FrameWork.Models.NeuObject outPrivType, Neusoft.HISFC.Components.Pharmacy.Out.ucPhaOut ucPhaManager) { switch (outPrivType.Memo) { case "21": //一般出库 return(new HISFC.Components.Pharmacy.Out.CommonOutPriv(false, ucPhaManager)); case "26": //特殊出库 return(new HISFC.Components.Pharmacy.Out.CommonOutPriv(true, ucPhaManager)); case "24": //出库申请 return(new HISFC.Components.Pharmacy.Out.ApplyOutPriv(ucPhaManager)); case "25": //出库审批 return(new HISFC.Components.Pharmacy.Out.ExamOutPriv(ucPhaManager)); case "22": return(new HISFC.Components.Pharmacy.Out.BackOutPriv(ucPhaManager)); } EnumIMAOutType enumType = EnumIMAOutTypeService.GetEnumFromName(outPrivType.Memo); switch (enumType) { case EnumIMAOutType.TransferOutput: return(new HISFC.Components.Pharmacy.Out.TransferOutput(ucPhaManager)); } return(null); }