Ejemplo n.º 1
0
        protected virtual TabNavigatorControl createTabNavigatorControl()
        {
            //弹出控件
            var ctrl = new TabNavigatorControl {
                Size = new Size(32, 200)
            };

            ctrl.BodyText    = "医疗单";
            ctrl.NavFormWith = 605;

            return(ctrl);
        }
Ejemplo n.º 2
0
        public OpOrderItemView()
        {
            InitializeComponent();

            this.xapFormControl1.Load         += XapFormControl_OnLoad;
            this.xapFormControl1.DataDbClick  += OnXapFormControl_DataDbClick;
            this.xapFormControl1.FormCreated  += XapFormControl_FormCreated;
            this.xapFormControl1.ModelFilled  += xapFormControl1_ModelFilled;
            this.xapFormControl1.AfterFocused += xapFormControl1_AfterFocused;
            this.xapFormControl1.Resize       += xapFormControl1_Resize;

            OrdParam.GetOrdParam.isHos = false;
            control = createTabNavigatorControl();
            ordSelectedContainer = new OrdSelectedContainer();
            if (null != control)
            {
                this.Controls.Add(control);
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 多医疗单处理,医疗单入口
        /// </summary>
        /// <param name="dataList">医嘱对象集合(第一个不是医嘱,是医嘱的数据来源)</param>
        /// <param name="patientsDto">患者信息DTO</param>
        /// <param name="tabNaviControl">右缩面板对象</param>
        public void ManyRecordSheet(List <Object> dataList, Ent4BannerDTO patientsDto, TabNavigatorControl tabNaviControl)
        {
            this.emsList.Clear();
            this.ciControlNameDict.Clear();
            this.UiEmsDict.Clear();
            this.CiEmsDict.Clear();
            this.ctls.Clear();
            this.emsIndexAndButtonArea.DataSource.Clear();
            if (this.emsDO != null)
            {
                this.emsDO.Emsdrugs.EmsOrDrugList.Clear();
            }

            this.tabNaviControl = tabNaviControl;
            if (dataList != null && dataList.Count > 0 && patientsDto != null)
            {
                ParseOrderDataFrom(dataList);

                for (int i = 1; i < dataList.Count; ++i)
                {
                    // 默认医疗单
                    this.SetEmsFromOrdOrSrv(dataList[i], patientsDto);
                    emsList.Add(i + "", ciControl);
                    this.UiEmsDict.Add(i + "", this.emsDO);
                    this.CiEmsDict.Add(i + "", this.dto);
                    ciControlNameDict.Add(i + "", SheetName);
                }

                // 处理多医疗单显示
                emsIndexAndButtonArea.RenderVisable = true;
                emsIndexAndButtonArea.Dock          = DockStyle.None;
                if (emsList.Count > 1)
                {
                    emsIndexAndButtonArea.DataSource = emsList;
                    emsIndexAndButtonArea.NameDict   = ciControlNameDict;
                    emsIndexAndButtonArea.IndexRenderList[emsIndexAndButtonArea.IndexRenderList.Count - 1].Crossflag = false;
                    TMPrender = emsIndexAndButtonArea.IndexRenderList[emsIndexAndButtonArea.IndexRenderList.Count - 1];
                    emsIndexAndButtonArea.IndexRenderList[emsIndexAndButtonArea.IndexRenderList.Count - 1].Editflag = true;
                    this.emsDO = emsIndexAndButtonArea.IndexRenderList[emsIndexAndButtonArea.IndexRenderList.Count - 1].Ci.EmsHeadDO;
                    //this.splitContainer1.SplitterDistance = 427;
                    //splitContainer1.BottomWidth = 75;
                    emsIndexAndButtonArea.xapScrollBarPanel1.Invalidate();
                    this.splitContainer1.AddControl(emsIndexAndButtonArea, xap.cli.sdk.controls.ControlPosition.Bottom, 71);
                }
                else
                {
                    foreach (XRoundRender Pastrender in emsIndexAndButtonArea.IndexRenderList)
                    {
                        emsIndexAndButtonArea.xapScrollBarPanel1.RemoveRender(Pastrender);
                    }
                    emsIndexAndButtonArea.IndexRenderList.Clear();
                    emsIndexAndButtonArea.RenderVisable = false;
                    //this.splitContainer1.SplitterDistance = 460;
                    splitContainer1.BottomWidth = 40;
                    emsIndexAndButtonArea.xapScrollBarPanel1.Invalidate();
                    this.splitContainer1.AddControl(emsIndexAndButtonArea, xap.cli.sdk.controls.ControlPosition.Bottom, 40);
                }
                //this.splitContainer1.Panel2.Controls.Add(orCom);
                //不要在这里注册,每次注册都会累加(位置调整到创建emsIndexAndButtonArea的位置,确保只创建一次 wzz)
                //emsIndexAndButtonArea.RounderClick += new MouseEventHandler(orCom_MouseClick);
                //emsIndexAndButtonArea.DeleteEvent += new EventHandler(orCom_deleteevent);
            }
        }