Exemplo n.º 1
0
        /// <summary>
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        protected virtual void InitializeComponent()
        {
            components               = new System.ComponentModel.Container();
            this.Dock                = DockStyle.None;
            this.xapFromControl      = new XapFormControl();
            this.xapFromControl.Dock = DockStyle.Fill;
            XapBaseControl titleControl = new XapBaseControl();
            XLabel         title        = new XLabel();

            title.ValueText = this.title;
            title.Height    = 20;
            title.Width     = 100;
            title.Font      = new Font("微软雅黑", 14, GraphicsUnit.Pixel);
            title.ForeColor = Color.FromArgb(0, 153, 229);
            xapLayoutPanel  = new XLayoutPanel();
            //xapLayoutPanel.Size = this.Size;
            xapLayoutPanel.Dock = DockStyle.Fill;
            this.AddRender(xapLayoutPanel);
            XBaseControl titleCtr = new XBaseControl();

            titleCtr.AddRender(title);
            xapLayoutPanel.AddControl(titleCtr, ControlPosition.Top, 30);
            //xapFromControl.Location = new Point(0,title.Location.Y+title.Height + 10);
            xapLayoutPanel.AddControl(xapFromControl, ControlPosition.Center);
        }
Exemplo n.º 2
0
        protected override void InitializeComponent()
        {
            this.Dock                = DockStyle.None;
            components               = new System.ComponentModel.Container();
            this.xapFromControl      = new XapFormControl();
            this.xapFromControl.Dock = DockStyle.None;
            XLabel title = new XLabel();

            title.ValueText          = "医保审核";
            title.Height             = 20;
            title.Width              = 100;
            title.Font               = new Font("微软雅黑", 14, GraphicsUnit.Pixel);
            title.ForeColor          = Color.FromArgb(0, 153, 229);
            xapLayoutPanel           = new XLayoutPanel();
            this.xapLayoutPanel.Dock = DockStyle.Fill;
            //xapLayoutPanel.Size = this.Size;
            this.AddRender(xapLayoutPanel);
            XBaseControl titleCtr = new XBaseControl();

            titleCtr.Dock = DockStyle.None;
            titleCtr.AddRender(title);
            this.radioGroup = new XRadioboxGroup(this.GetRadioList());
            this.radioGroup.IsDefaultSelected = false;
            radioGroup.Location = new Point(0, 30);
            radioGroup.Size     = new Size(300, 25);
            titleCtr.AddRender(radioGroup);
            xapLayoutPanel.AddControl(titleCtr, ControlPosition.Top, 65);
            //xapFromControl.Location = new Point(0,title.Location.Y+title.Height + 10);
            xapLayoutPanel.AddControl(xapFromControl, ControlPosition.Center);
        }
Exemplo n.º 3
0
        //private List<OrTplItmDtDO> savedatalist;
        #endregion

        #region 构造函数区域
        public prescriptionListView()
        {
            InitializeComponent();

            this.isHerb = false;

            this.ContainerControl          = new XAPScrollBarPanel();
            this.ContainerControl.Size     = new Size(this.Size.Width, this.Size.Height);
            this.ContainerControl.Location = new Point(1, 0);
            this.AddRender(ContainerControl);

            this.Container          = new XBaseControl();
            this.Container.Size     = new Size(ContainerControl.Size.Width, ContainerControl.Size.Height);
            this.Container.Location = new Point(0, 0);
            this.Container.Paint   += new PaintEventHandler(Container_Paint);
            ContainerControl.AddRender(Container);

            this.Font         = new Font("微软雅黑", 12, GraphicsUnit.Pixel);
            this.Tiptext      = "未检索到相关数据";
            this.textsize     = TextRenderer.MeasureText(Tiptext, this.Font);
            this.SizeChanged += new EventHandler(NewOrderTemplateListView_SizeChanged);

            this.Load  += new EventHandler(prescriptionListView_Load);
            this.Paint += new PaintEventHandler(OpOrderTemplateListView_Paint);
        }
Exemplo n.º 4
0
        /// <summary>
        /// 初始化多医疗单容器以及顶部按钮区域
        /// </summary>
        /// <returns></returns>
        public OrdEditorView InitMultiEmsControl()
        {
            if (isInited)
            {
                return(this);
            }

            // 添加医疗单布局容器
            this.rootView.AddControl(emsLayout, ControlPosition.Center);
            this.rootView.AddControl(new XLayoutPanel {
                Dock = DockStyle.None
            }, ControlPosition.Bottom, 36);

            // 利用XBaseControl包装多医疗单Render
            var leftControl = new XBaseControl();

            (rootView.ControlBottom as XLayoutPanel).AddControl(leftControl, ControlPosition.Center);
            // 实例化多医疗单Render
            multiEmsGroup = new XOrderButtonGroup {
                Location = new Point(0, 0), Size = leftControl.Size, RoundSize = leftControl.Size.Height / 2
            };
            multiEmsGroup.SelectChanged += OnMultiEmsPageSelectChanged;
            leftControl.AddRender(multiEmsGroup);

            // 实例化顶部共同按钮区域
            (rootView.ControlBottom as XLayoutPanel).AddControl(this.buttonGroupView, ControlPosition.Right, 360);

            return(this);
        }
Exemplo n.º 5
0
        private void btnDi_MouseClick(object sender, System.Windows.Forms.MouseEventArgs e)
        {
            XIconToolButton btn    = sender as XIconToolButton;
            AssiBtnDTO      btnDTO = btn.ValueObj as AssiBtnDTO;

            if (!IsAllowOpenAssiFrameValidate(btnDTO))
            {
                if (assiViewFrame != null)
                {
                    assiViewFrame.Close();
                }
                return;
            }

            if (assiViewFrame != null)
            {
                assiViewFrame.Close();
            }
            XBaseControl xBaseCtrl = this.getParentCtrl(btnDTO.FrameLocation);

            if (!isDiOpen)
            {
                diAssiForm                 = new EntDiAssiForm(this.Context);
                diAssiForm.Size            = GetFrameSize(xBaseCtrl);
                diAssiForm.Location        = GetFrameLocation(xBaseCtrl);
                diAssiForm.delegateHelper += getDOsFromHelp;
                diAssiForm.FormClosed     += new FormClosedEventHandler(diAssiForm_FormClosed);
                isDiOpen = true;
                diAssiForm.Show(xBaseCtrl);
            }
        }
Exemplo n.º 6
0
        /// <summary>
        ///     CreateView执行完毕后,用LoadData的数据填充界面
        /// </summary>
        protected override void OnFillData()
        {
            var explorerBar  = new ExplorerBar();
            var dataBar      = new ExplorerBar();
            var contentPanel = new XBaseControl();
            int loaction     = 20;

            OrObsAandLabDTO[] labs = model.getOrObsAandLabDTO(ent4BannerDto.Id_ent, "lab");
            if (labs != null && labs.Length > 0)
            {
                for (int i = 0; i < labs.Length; i++)
                {
                    var lab = new LabelRender();
                    lab.Text     = labs[i].Name;
                    lab.ID       = labs[i].Id;
                    lab.Location = new Point(0, loaction);
                    loaction     = loaction + lab.Size.Height + 30;
                    lab.Size     = new Size(100, 24);
                    contentPanel.AddRender(lab);
                    lab.MouseClick += lab_MouseDoubleClick;
                }
            }
            var layout = new LinearLayout(contentPanel);

            layout.Orientation = Orientation.Horizontal;
            layout.ApplyLayout();

            explorerBar.AddMenuItem(new MenuItemInfo("常规检验", contentPanel));

            dataBar.AddMenuItem(new MenuItemInfo("日期", contentPanel));

            menu.AddMenuItem(new MenuItemInfo("分类模式", explorerBar));
            menu.AddMenuItem(new MenuItemInfo("日期模式", dataBar));
        }
Exemplo n.º 7
0
        /// <summary>
        /// 添加注释
        /// </summary>
        private void AddNote(XBaseControl Control, int type)
        {
            int startX = 20;
            int startY = 310;

            foreach (XLabel item in this.noteList)
            {
                Control.RemoveRender(item);
                if (type <= 3)
                {
                    if (item.Tag != null && item.Tag.Equals(type))
                    {
                        item.Location = new Point(startX, startY);
                        startY       += item.Size.Height;
                        Control.AddRender(item);
                    }
                    else if (item.Tag == null)
                    {
                        item.Location = new Point(startX, startY);
                        startY       += item.Size.Height;
                        Control.AddRender(item);
                    }
                    else if (item.Tag != null && Convert.ToInt32(item.Tag) >= type && item.Equals(this.connectLabel))
                    {
                        item.Location = new Point(startX, startY);
                        startY       += item.Size.Height;
                        Control.AddRender(item);
                    }
                }
            }
            Control.Invalidate();
        }
Exemplo n.º 8
0
        /// <summary>
        /// 指定鼠标点击范围,确定是否需要关闭辅助录入组件
        /// </summary>
        /// <returns>鼠标点击不关闭辅助录入的区域view</returns>
        protected override List <XBaseControl> getMouseInXBaseCtrlList(AssiBtnDTO btnDTO)
        {
            //emrView 为门诊左侧病历区域在配置文件optrdocstation_config.xml中配置的classId
            // <Clazz id="emrView" classname="iih.ci.mr_pub.view.PubMrWriteableCardView" dllname="iih.ci.mr_pub"/>

            if (btnDTO.OpenFrameModel == AssiFrameOpenModel.SHOW_DIALOG)
            {
                return(null);
            }

            List <XBaseControl> xapBaseCtrlList = new List <XBaseControl>();

            foreach (AssiFrameLocation assiFramLocation in parentXBaseCtrlIdDic.Keys)
            {
                string       s         = parentXBaseCtrlIdDic[assiFramLocation];
                XBaseControl xbaseCtrl = this.getParentCtrl(assiFramLocation);

                if (xbaseCtrl != null && !xapBaseCtrlList.Contains(xbaseCtrl))
                {
                    xapBaseCtrlList.Add(xbaseCtrl);
                }
            }

            XBaseControl assBttonView = this.getXapBaseCtrl("AssButtonOpView");

            xapBaseCtrlList.Add(assBttonView);

            return(xapBaseCtrlList);
        }
Exemplo n.º 9
0
 /// <summary>
 /// 获取左侧显示区域尺寸
 /// </summary>
 /// <returns></returns>
 private Size GetLeftSize()
 {
     if (leftXBaseCtrl == null)
     {
         leftXBaseCtrl = this.getParentCtrl(LEFT_REGION_CLASS_ID);
     }
     return(this.getSize(leftXBaseCtrl));
 }
Exemplo n.º 10
0
 /// <summary>
 /// 获取右侧显示区域尺寸
 /// </summary>
 /// <returns></returns>
 public Size GetRightSize()
 {
     if (rightXBaseCtrl == null)
     {
         rightXBaseCtrl = this.getParentCtrl(RIGHT_REGION_CLASS_ID);
     }
     return(this.getSize(rightXBaseCtrl));
 }
Exemplo n.º 11
0
        private void intButten()
        {
            // 确定、打印病历、病历打印预览,取消(关闭)按钮
            this.xBtnOK        = new XButton();
            this.xBtnPrint     = new XButton();
            this.xBtnPrintView = new XButton();
            this.xBtnClose     = new XButton();
            this.xBtnSwitch    = new XButton();

            // 左右布局控件 展现按钮、图例
            this.rightBaseCtrl = new XBaseControl();
            this.xLayoutPanel  = new XLayoutPanel();
            this.SuspendLayout();

            ///
            /// xLayoutPanel
            ///
            this.xLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;

            ///
            /// rightBaseCtrl 按钮区域
            ///
            this.xLayoutPanel.AddControl(this.rightBaseCtrl, ControlPosition.Right, 474);

            Size btnSize = new Size(86, 30);

            this.xBtnSwitch.Text        = "切换";
            this.xBtnSwitch.Size        = new Size(86, 30);
            this.xBtnSwitch.Location    = new Point(190, 8);
            this.xBtnSwitch.MouseClick += new MouseEventHandler(xBtnSwitch_MouseClick);
            this.rightBaseCtrl.AddRender(this.xBtnSwitch);
            ///
            /// xBtnInovke
            ///
            this.xBtnOK.Text        = "确定";
            this.xBtnOK.Size        = new Size(86, 30);
            this.xBtnOK.Location    = new Point(284, 8);
            this.xBtnOK.MouseClick += new MouseEventHandler(xBtnOK_MouseClick);
            this.rightBaseCtrl.AddRender(this.xBtnOK);

            ///
            /// xBtnClose
            ///
            this.xBtnClose.Text        = "取消";
            this.xBtnClose.Size        = new Size(86, 30);
            this.xBtnClose.Location    = new Point(378, 8);
            this.xBtnClose.MouseClick += new MouseEventHandler(xBtnClose_MouseClick);
            this.rightBaseCtrl.AddRender(this.xBtnClose);

            ///
            /// this
            ///
            this.BackColor = Color.FromArgb(245, 245, 245);
            this.Controls.Add(this.xLayoutPanel);

            this.ResumeLayout(false);
        }
Exemplo n.º 12
0
        /// <summary>
        /// 获取左侧显示区域坐标
        /// </summary>
        /// <returns></returns>
        private Point GetLeftLocation()
        {
            if (leftXBaseCtrl == null)
            {
                leftXBaseCtrl = this.getParentCtrl(LEFT_REGION_CLASS_ID);
            }

            return(getLocation(leftXBaseCtrl));
        }
Exemplo n.º 13
0
        /// <summary>
        /// 获取右侧显示区域坐标
        /// </summary>
        /// <returns></returns>
        private Point GetRightLocation()
        {
            if (rightXBaseCtrl == null)
            {
                rightXBaseCtrl = this.getParentCtrl(RIGHT_REGION_CLASS_ID);
            }

            return(getLocation(rightXBaseCtrl));
        }
Exemplo n.º 14
0
 public OrderDrugDesView()
 {
     InitializeComponent();
     this.Load += new EventHandler(OrderDrugDesView_Load);
     //flowLayoutPanel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     panel          = new XBaseControl();
     panel.Location = new Point(10, 0);
     panel.Size     = new Size(this.Size.Width, this.Size.Height);
     this.AddRender(panel);
 }
Exemplo n.º 15
0
 public OrdFeeCollectInfoView(XBaseControl o, FArrayList ds) : base(null)
 {
     parentView = o;
     if (null != ds && ds.Count > 0)
     {
         foreach (Object objFee in ds)
         {
             datasource.Add(objFee as EmsFeesDTO);
         }
     }
 }
Exemplo n.º 16
0
        /// <summary>
        ///调用打开助手窗口
        /// </summary>
        /// <param name="btnDTO">按钮参数</param>
        protected void LoadAssiFrame(AssiBtnDTO btnDTO)
        {
            if (!IsAllowOpenAssiFrameValidate(btnDTO))
            {
                if (assiViewFrame != null)
                {
                    assiViewFrame.Close();
                }
                return;
            }

            XBaseControl xBaseCtrl = this.getParentCtrl(btnDTO.FrameLocation);

            if (diAssiForm != null)
            {
                diAssiForm.Close();
                diAssiForm = null;
                isDiOpen   = false;
            }

            // 如果窗口已经打开,点击按钮时只进行tab页签间的切换
            if (assiViewFrame == null || (assiViewFrame.FrameLocation != btnDTO.FrameLocation || assiViewFrame.FrameOpenModel != btnDTO.OpenFrameModel) && assiViewFrame.IsFrameOpened)
            {
                if (assiViewFrame != null)
                {
                    assiViewFrame.Close();
                }

                assiViewFrame = new AssiViewFrame();
                assiViewFrame.assistantBtnBaseView = this;
                assiViewFrame.FrameLocation        = btnDTO.FrameLocation;
                assiViewFrame.FrameOpenModel       = btnDTO.OpenFrameModel;
                // 设置鼠标点击时,不需要关闭辅助录入的组件,除此之外都关闭辅助录入
                assiViewFrame.MouseInXBaseCtrlList = this.getMouseInXBaseCtrlList(btnDTO);

                //// 设置窗体的起始位置
                assiViewFrame.StartPosition   = FormStartPosition.Manual;
                assiViewFrame.FormBorderStyle = FormBorderStyle.None;

                assiViewFrame.Location = this.GetFrameLocation(xBaseCtrl);
                assiViewFrame.Size     = this.GetFrameSize(xBaseCtrl);
            }
            // 参数中增加事件处理对象
            Dictionary <string, object> paramDic = this.getParamDic(btnDTO);

            paramDic.Add("assiViewFrame", assiViewFrame);
            // 获取加载对象
            XUserControl xUserCtrl = this.LoadConfigUserControl(paramDic, btnDTO);

            if (xUserCtrl != null)
            {
                assiViewFrame.loadFrame(xBaseCtrl, xUserCtrl, btnDTO);
            }
        }
Exemplo n.º 17
0
        public VideoImage()
        {
            InitializeComponent();

            this.MinimumSize = new Size(700, 500);

            baseControl        = new XBaseControl();
            baseControl.Dock   = DockStyle.Fill;
            baseControl.Paint += new PaintEventHandler(baseControl_Paint);
            this.AddRender(baseControl);
        }
Exemplo n.º 18
0
        void MedicalSharingInfoForm_Load(object sender, EventArgs e)
        {
            Dictionary <string, object> param = new Dictionary <string, object>();

            param.Add("showinfo", this.medicalSharingDTOList);

            var          x    = FuncletCreater.GetLocalFunclet(string.Format("modules/iihci/ui/judgedidelete/{0}", "judgedidelete_config.xml"), param);
            XBaseControl xcon = new XBaseControl();

            xcon.AddRender(x);
            this.Panel = xcon;
        }
Exemplo n.º 19
0
        /// <summary>
        /// 弹出物品选择器
        /// </summary>
        /// <param name="ds"></param>
        /// <param name="def"></param>
        /// <param name="atPoint"></param>
        private void ShowMmSelector(XDataRow row, List <EmsOrDrug> ds, EmsOrDrug def, Point atPoint, bool canEdit = true)
        {
            var mmContainer = new XBaseControl();

            mmContainer.Size = new Size(473, 160);

            var query = from items in ds orderby items.Fact_count descending select items;

            var mm = new ExtMmRefView(LogicEx.GetInstance().ConvertDataSouse <EmsOrDrug>(query.ToList()), def, false);

            mm.Dock = DockStyle.Fill;
            mmContainer.AddRender(mm);
            var popWindow = new XContextForm(mmContainer);

            mm.Event_SelectChanged += (sender, e) =>
            {
                EmsOrDrug orDrug = EmsHeadDO.Emsdrugs.EmsOrDrugList[gv.FocusedRowHandle];
                var       mmDrug = e.Data as EmsOrDrug;

                if (mmDrug == null)
                {
                    if (orDrug.Fg_self == true)
                    {
                        orDrug.Name_mm = orDrug.Name_srv;
                        orDrug.Id_mm   = null;
                    }
                    popWindow.Close();
                    return;
                }

                #region 皮试逻辑的判断
                if (mmDrug.Fg_skintest != null && mmDrug.Fg_skintest == true)
                {
                    SkinTestLogic logic = new SkinTestLogic(EmsHeadDO.PatInfo);
                    orDrug.Name_mm    = mmDrug.Name_mm;
                    orDrug.Id_mm      = mmDrug.Id_mm;
                    orDrug.Id_srvskin = mmDrug.Id_srvskin;
                    if (logic.skinTestLogic(orDrug).Equals("0"))
                    {
                        popWindow.Close();
                        return;
                    }
                }
                #endregion
                cof.CopyTo(mmDrug, orDrug, "Id_srv", "Name_srv");
                cof.concateMMSpecAndName(orDrug);
                orDrug.Fg_mm = true;
                updateTableCustomerComtrol();
                popWindow.Close();
            };
            popWindow.Show(atPoint);
            mm.Enabled = canEdit;
        }
Exemplo n.º 20
0
        protected void Additem(XBaseControl Control)
        {
            QuadrantRender render1 = new QuadrantRender();

            render1.Location  = new Point(3, 4);
            render1.TeethType = 1;
            Control.AddRender(render1);
            render1.Select    = true;
            this.SelectRender = render1;
            this.quadrantDic.Add(render1.TeethType, render1);

            QuadrantRender render2 = new QuadrantRender();

            render2.Location  = new Point(3, render1.Bound.Bottom + 3);
            render2.TeethType = 2;
            Control.AddRender(render2);
            this.quadrantDic.Add(render2.TeethType, render2);

            QuadrantRender render3 = new QuadrantRender();

            render3.Location  = new Point(3, render2.Bound.Bottom + 3);
            render3.Size      = new System.Drawing.Size(215, 90);
            render3.TeethType = 3;
            Control.AddRender(render3);
            this.quadrantDic.Add(render3.TeethType, render3);

            QuadrantRender render4 = new QuadrantRender();

            render4.Location  = new Point(3, render3.Bound.Bottom + 3);
            render4.TeethType = 4;
            Control.AddRender(render4);
            this.quadrantDic.Add(render4.TeethType, render4);

            QuadrantRender render5 = new QuadrantRender();

            render5.Location  = new Point(3, render4.Bound.Bottom + 3);
            render5.TeethType = 5;
            Control.AddRender(render5);
            this.quadrantDic.Add(render5.TeethType, render5);

            //QuadrantRender render6 = new QuadrantRender();
            //render6.Location = new Point(3, render5.Bound.Bottom + 3);
            //render6.TeethType = 6;
            //Control.AddRender(render6);
            this.quadrantDic.Add(render5.TeethType + 1, render5);

            QuadrantRender render7 = new QuadrantRender();

            render7.Location  = new Point(3, render5.Bound.Bottom + 3);
            render7.TeethType = 7;
            Control.AddRender(render7);
            this.quadrantDic.Add(render7.TeethType, render7);
        }
Exemplo n.º 21
0
 /// <summary>
 /// 获取辅助录入显示的尺寸
 /// <para>子类根据实际需求设定显示的尺寸</para>
 /// </summary>
 /// <returns></returns>
 private Size getSize(XBaseControl xBaseCtrl)
 {
     if (xBaseCtrl != null)
     {
         return(xBaseCtrl.Size);
     }
     else
     {
         int width  = SystemInformation.WorkingArea.Width;
         int height = SystemInformation.WorkingArea.Height;
         return(new System.Drawing.Size(width / 2, height - 80));
     }
 }
Exemplo n.º 22
0
 /// <summary>
 /// 获取显示位置
 /// </summary>
 /// <returns></returns>
 protected virtual Point GetFrameLocation(XBaseControl xBaseCtrl)
 {
     if (xBaseCtrl != null)
     {
         return(xBaseCtrl.PointToScreen(new Point(0, 0)));
     }
     else
     {
         int width  = SystemInformation.WorkingArea.Width;
         int height = SystemInformation.WorkingArea.Height;
         return(new Point(width / 2, 80));
     }
 }
Exemplo n.º 23
0
 /// <summary>
 /// 获取弹出窗口的尺寸
 /// </summary>
 /// <returns></returns>
 protected virtual Size GetFrameSize(XBaseControl xBaseCtrl)
 {
     if (xBaseCtrl != null)
     {
         return(xBaseCtrl.Size);
     }
     else
     {
         int width  = SystemInformation.WorkingArea.Width;
         int height = SystemInformation.WorkingArea.Height;
         return(new Size(width / 2, height - 80));
     }
 }
Exemplo n.º 24
0
 /// <summary>
 /// 获取当前显示窗口的位置
 /// <para>子类根据实际需求设定显示的位置</para>
 /// </summary>
 /// <returns></returns>
 private Point getLocation(XBaseControl xBaseCtrl)
 {
     if (xBaseCtrl != null)
     {
         return(xBaseCtrl.PointToScreen(new Point(0, 0)));
     }
     else
     {
         int width  = SystemInformation.WorkingArea.Width;
         int height = SystemInformation.WorkingArea.Height;
         return(new Point(width / 2, 80));
     }
 }
Exemplo n.º 25
0
        /// <summary>
        /// 加载助手窗体
        /// </summary>
        /// <param name="parentCtrl"></param>
        /// <param name="classId"></param>
        public void loadFramePithy(XBaseControl parentCtrl, XUserControl xUserControl, AssiBtnDTO btnDTO)
        {
            LayoutPanelManager layoutPanelManager = xUserControl.GetConfig().GetInstance("LayoutPanelManager") as LayoutPanelManager;

            for (int n = 0; n < layoutPanelManager.ManagedPanels.Count; n++)
            {
                LayoutManagedPanel layoutManaged = layoutPanelManager.ManagedPanels[n] as LayoutManagedPanel;
                if (btnDTO.modelType == null || btnDTO.modelType != "complex")
                {
                    if ("OrdertemplatePithy" == layoutManaged.Id)
                    {
                        if (layoutManaged.Controls.Count < 1)
                        {
                            XmlNode node = xUserControl.GetConfig().GetNode("ManagedPanel", layoutManaged.Id);
                            xUserControl.GetConfig().CreateManagedPanelControl(layoutManaged, node);
                        }
                        layoutPanelManager.SelectedIndex = n;
                        break;
                    }
                }
                else
                {
                    if ("OrdertemplateComplex" == layoutManaged.Id)
                    {
                        if (layoutManaged.Controls.Count < 1)
                        {
                            XmlNode node = xUserControl.GetConfig().GetNode("ManagedPanel", layoutManaged.Id);
                            xUserControl.GetConfig().CreateManagedPanelControl(layoutManaged, node);
                        }
                        layoutPanelManager.SelectedIndex = n;
                        break;
                    }
                }
            }
            if (!IsFrameOpened)
            {
                IsFrameOpened = true;

                if (this.FrameOpenModel == AssiFrameOpenModel.SHOW_DIALOG)
                {
                    this.ShowDialog(parentCtrl);
                }
                else
                {
                    this.Show(parentCtrl);
                }
            }
        }
Exemplo n.º 26
0
        private void InfoButton_MouseClick(object sender, MouseEventArgs e)
        {
            var mmContainer = new XBaseControl()
            {
                Size = new Size(473, 200)
            };

            var ordFeeCollectInfoView = new OrdFeeCollectInfoView(mmContainer, _dataSource["group"] as FArrayList);

            ordFeeCollectInfoView.Dock = DockStyle.Fill;
            ordFeeCollectInfoView.SingleBorderStyle = true;
            mmContainer.AddRender(ordFeeCollectInfoView);
            var popWindow = new XContextForm(mmContainer);
            var pt        = this.ownerView.Location;

            pt.Offset((ownerView.Size.Width - mmContainer.Size.Width) / 2, (RelativeUIParam.ScreenSize != ScreenSize.Large)? -7:22);
            popWindow.Show(ownerView.PointToScreen(pt));
        }
Exemplo n.º 27
0
 protected void AddInput(XBaseControl Control, int type)
 {
     Control.RemoveRenderAll();
     if (type <= 3)
     {
         quadrantEditor           = new QuadrantEditorRender();
         quadrantEditor.Location  = new Point(11, 10);
         quadrantEditor.TeethType = type;
         quadrantEditor.Text      = this.SelectRender.Text;
         tempRender = quadrantEditor;
         Control.AddRender(quadrantEditor);
     }
     else if (type == 4)
     {
         pdRender           = new PdEditorRender();
         pdRender.Location  = new Point(10, 10);
         pdRender.TeethType = type;
         pdRender.Text      = this.SelectRender.Text;
         tempRender         = pdRender;
         Control.AddRender(pdRender);
     }
     else if (type == 5)
     {
         sicknessRender           = new SicknessTeethRender();
         sicknessRender.Location  = new Point(10, 10);
         sicknessRender.TeethType = type;
         sicknessRender.Text      = this.SelectRender.Text;
         tempRender = sicknessRender;
         Control.AddRender(sicknessRender);
     }
     else
     {
         grEditorRender           = new GrEditorRender();
         grEditorRender.Location  = new Point(10, 10);
         grEditorRender.TeethType = type;
         grEditorRender.Text      = this.SelectRender.Text;
         tempRender = grEditorRender;
         Control.AddRender(grEditorRender);
     }
     tempRender.ValueTextChanged += new EventHandler(tempRender_ValueTextChanged);
     this.btSave.Enabled          = false;
     // 添加注释说明
     this.AddNote(Control, type);
 }
Exemplo n.º 28
0
        private void drugtable_SizeChanged(object sender, EventArgs e)
        {
            XapFormGridControl table = sender as XapFormGridControl;

            //好多层的容器,控件组给出的方案
            if (table != null && table.Parent != null && table.Parent.Parent != null && table.Parent.Parent.Parent != null && table.Parent.Parent.Parent.Parent != null)
            {
                XSpreadPanel ctrParent = table.Parent.Parent.Parent.Parent as XSpreadPanel;
                XBaseControl ctr       = table.Parent.Parent.Parent as XBaseControl;
                if (table.HScroll.Visible)
                {
                    ctr.Size = new Size(ctr.Size.Width, ctrParent.PanelHeight + 10);
                }
                else
                {
                    ctr.Size = new Size(ctr.Size.Width, ctrParent.PanelHeight);
                }
            }
        }
Exemplo n.º 29
0
        /// <summary>
        /// 设置辅助录入显示相对应的父窗体
        /// </summary>
        /// <returns></returns>
        protected virtual XBaseControl getParentCtrl()
        {
            string classId = "OrdListView";

            try
            {
                XapBaseControl xapListCtrl = this.Context.Config.GetInstance(classId) as XapBaseControl;

                if (xapListCtrl != null)
                {
                    this.xBaseCtrl = xapListCtrl.Parent as XBaseControl;
                }
            }
            catch (Exception)
            {
                MessageBoxEx.Show("在路径[\\modules\\iihci\\ui\\optrdocstation]的配置文件中未能找到id为[" + classId + "]的类!", "就诊历史", MessageBoxButtons.OK, MessageBoxIconEx.Error, MessageBoxDefaultButton.Button1);
            }
            return(xBaseCtrl);
        }
Exemplo n.º 30
0
        //private List<string> Srvlist = new List<string>();
        #endregion

        #region 构造函数区域
        public OrderTemplateListView()
        {
            InitializeComponent();

            this.ContainerControl      = new XAPScrollBarPanel();
            this.ContainerControl.Size = new Size(this.Size.Width, 365);
            this.ContainerControl.Dock = DockStyle.Fill;
            this.AddRender(ContainerControl);

            this.Container          = new XBaseControl();
            this.Container.Size     = new Size(ContainerControl.Size.Width, ContainerControl.Size.Height);
            this.Container.Location = new Point(0, 0);
            this.Container.Paint   += new PaintEventHandler(Container_Paint);
            ContainerControl.AddRender(Container);

            this.Font         = new Font("微软雅黑", 12, GraphicsUnit.Pixel);
            this.Tiptext      = "未检索到相关数据";
            this.Textsize     = TextRenderer.MeasureText(Tiptext, this.Font);
            this.SizeChanged += new EventHandler(OrderTemplateListView_SizeChanged);
        }