/// <summary> /// 初始化摆药单信息 /// </summary> protected virtual void InitListView( ) { if (this.DesignMode) { return; } this.SuspendLayout( ); this.Columns.Clear( ); this.Items.Clear( ); this.Columns.Add("摆药单名称", 160, HorizontalAlignment.Left); this.Columns.Add("打印类型", 70, HorizontalAlignment.Center); this.Columns.Add("是否有效", 70, HorizontalAlignment.Center); this.Columns.Add("备注", 200, HorizontalAlignment.Left); try { Neusoft.HISFC.BizLogic.Pharmacy.DrugStore drugStore = new Neusoft.HISFC.BizLogic.Pharmacy.DrugStore(); ArrayList drugBillClassList = new ArrayList(); drugBillClassList = drugStore.QueryDrugBillClassList(); bool isHaveRBill = false; bool isHavePBill = false; foreach (DrugBillClass billClass in drugBillClassList) { if (billClass.ID == "R") { isHaveRBill = true; } if (billClass.ID == "P") { isHavePBill = true; } this.AddItem(billClass, false); } this.SaveDefaultBill(!isHavePBill, !isHaveRBill); } catch { } this.ResumeLayout( ); }
/// <summary> /// 初始化 /// </summary> protected virtual void Init() { this.InitControlParam(); //取医嘱类型,用于将编码转换成名称 Neusoft.HISFC.BizLogic.Manager.OrderType orderManager = new Neusoft.HISFC.BizLogic.Manager.OrderType(); this.orderTypeHelper.ArrayObject = orderManager.GetList(); //合并重复值的列 this.neuSpread1_DetailSheet.SetColumnMerge(0, FarPoint.Win.Spread.Model.MergePolicy.Always); this.neuSpread1_DetailSheet.SetColumnMerge(1, FarPoint.Win.Spread.Model.MergePolicy.Always); this.neuSpread2_PatientDetailSheet.SetColumnMerge(0, FarPoint.Win.Spread.Model.MergePolicy.Always); this.neuSpread2_PatientDetailSheet.SetColumnMerge(1, FarPoint.Win.Spread.Model.MergePolicy.Always); this.neuSpread1_DetailSheet.SetColumnAllowAutoSort(-1, false); Neusoft.FrameWork.WinForms.Classes.MarkCellType.NumCellType numCellType = new Neusoft.FrameWork.WinForms.Classes.MarkCellType.NumCellType(); numCellType.DecimalPlaces = 0; this.neuSpread3_DeptDetailSheet.Columns[4].CellType = numCellType; Neusoft.HISFC.BizLogic.Pharmacy.DrugStore drugStoreManager = new Neusoft.HISFC.BizLogic.Pharmacy.DrugStore(); ArrayList alDrugBillClass = drugStoreManager.QueryDrugBillClassList(); if (alDrugBillClass == null) { MessageBox.Show(Language.Msg("")); return; } foreach (Neusoft.HISFC.Models.Pharmacy.DrugBillClass info in alDrugBillClass) { this.hsDrugBillClass.Add(info.ID, info.PrintType); } //集中发送方式选择摆药导致打印单子混乱,先封掉 {C388ED06-DFF8-4a9a-9359-1929F95CEEB7} wbo 2010-11-27 this.neuSpread1_DetailSheet.Columns[2].Locked = true; }