コード例 #1
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);
        }
コード例 #2
0
        private void loadRender()
        {
            this.xScrollPanel_PrtParams = new XAPScrollBarPanel();
            this.label8        = new XLabel();
            this.comboPrinters = new XComboBox(this.xScrollPanel_PrtParams);

            // lable8
            this.label8.Name      = "label_prtname";
            this.label8.Location  = new Point(20, 36);
            this.label8.ForeColor = Color.FromArgb(78, 78, 78);
            this.label8.Size      = new Size(105, RelativeUIParam.RELATIVECELLSIZE.Height);
            this.label8.Alignment = StringAlignment.Far;
            this.label8.ValueText = "选择小票打印机";
            // comboPrinter
            this.comboPrinters.Location          = new Point(label8.Bound.Right + 8, this.label8.Bound.Y);
            this.comboPrinters.Name              = "comboPrinter";
            this.comboPrinters.Size              = new Size(256, RelativeUIParam.RELATIVECELLSIZE.Height);
            this.comboPrinters.TabIndex          = 11;
            this.comboPrinters.ValueTextChanged += new EventHandler(comboPrinters_ValueTextChanged);

            //
            // xScrollPanel_PrtParams
            //
            this.xScrollPanel_PrtParams.AutoScroll        = true;
            this.xScrollPanel_PrtParams.Dock              = System.Windows.Forms.DockStyle.Fill;
            this.xScrollPanel_PrtParams.EnabledHorizontal = false;
            this.xScrollPanel_PrtParams.EnabledVertical   = false;
            //this.xScrollPanel_PrtParams.AddRender(this.label2); //打印份数
            //this.xScrollPanel_PrtParams.AddRender(this.textPrintCopies);
            this.xScrollPanel_PrtParams.AddRender(this.label8); //选择打印机
            this.xScrollPanel_PrtParams.AddRender(this.comboPrinters);
            this.xScrollPanel_PrtParams.Font              = new Font("微软雅黑", 12F, FontStyle.Regular, GraphicsUnit.Pixel);
            this.xScrollPanel_PrtParams.HPreferStep       = 1D;
            this.xScrollPanel_PrtParams.IsContainerRender = true;
            this.xScrollPanel_PrtParams.Name              = "xScrollPanel_PrtParams";
            this.xScrollPanel_PrtParams.ScrollWidth       = 10;
            this.xScrollPanel_PrtParams.SingleBorderStyle = false;
            this.xScrollPanel_PrtParams.TabStop           = false;
            this.xScrollPanel_PrtParams.Text              = "xScrollPanel_PrtParams";
            this.xScrollPanel_PrtParams.VPreferStep       = 1D;

            this.Controls.Add(this.xScrollPanel_PrtParams);

            this.Font   = new Font("Microsoft Sans Serif", 10.8F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
            this.Margin = new System.Windows.Forms.Padding(2, 4, 2, 4);
            this.Name   = "XForm_PrtConfig";
        }
コード例 #3
0
        void Init()
        {
            this.ComplexOrderRenders = new List <ComplexOrderAssist>();
            this._orderLineRenders   = new List <OrderLineRender>();
            this.model                 = new OrderTemplatePithyTreeViewModel();
            this.ContainerControl      = new XAPScrollBarPanel();
            this.ContainerControl.Dock = DockStyle.Fill;
            this.AddRender(ContainerControl);


            _emptyRender          = new OrderEmptyRender();
            _emptyRender.TipText  = "未检索到相关数据";
            _emptyRender.Location = new Point(30, 10);
            _emptyRender.Size     = new Size(200, OrderConstAssist.OrderRenderHeight);
            _emptyRender.Visible  = false;
            this.ContainerControl.AddRender(_emptyRender);
        }
コード例 #4
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);
        }
コード例 #5
0
ファイル: medSrvRadioView.cs プロジェクト: fhis/order.client
        public medSrvRadioView()
        {
            InitializeComponent();
            this.Load += new EventHandler(medSrvRadioView_Load);

            this.topAlphabetRenderGroup                   = new AlphabetRenderGroup();
            this.topAlphabetRenderGroup.Size              = new Size(this.Size.Width, 28);
            this.topAlphabetRenderGroup.Location          = new Point(0, 0);
            this.topAlphabetRenderGroup.RenderMouseClick += new MouseEventHandler(topAlphabetRenderGroup_RenderMouseClick);
            this.AddRender(this.topAlphabetRenderGroup);

            this.ContainerControl          = new XAPScrollBarPanel();
            this.ContainerControl.Size     = new Size(this.Size.Width, this.Height - 30);
            this.ContainerControl.Location = new Point(0, 29);
            this.ContainerControl.Paint   += new PaintEventHandler(Container_Paint);
            this.AddRender(ContainerControl);

            this.Font         = new Font("微软雅黑", 12, GraphicsUnit.Pixel);
            this.Tiptext      = "未检索到相关数据";
            this.Textsize     = TextRenderer.MeasureText(Tiptext, this.Font);
            this.SizeChanged += new EventHandler(medSrvRadioView_SizeChanged);
            this.ContainerControl.HPreferStep = 216;
        }
コード例 #6
0
 public void LoadMenItemPanel(XAPScrollBarPanel panel, SetMenunrender setMenunrender)
 {
     Panel     = panel;
     Panel.Tag = setMenunrender;
 }
コード例 #7
0
        public BdHpIndicationDTOForm(string limit, string name_srv, bool?isDefault)
        {
            this.IsShowButton  = false;
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Formsize      = FormSize.Medium;
            this.Text          = "是否为医保适应症";
            this.Height        = 200;

            panel          = new XAPScrollBarPanel();
            panel.Size     = this.Panel.Size;
            panel.Location = this.Panel.Location;
            this.Panel     = panel;

            centerControl = new XBaseControl();

            lblDes = new XLabel();
            if (!string.IsNullOrEmpty(limit))
            {
                lblDes.ValueText = limit;
            }
            else
            {
                lblDes.ValueText = "没有医保适应症限制条件";
            }

            //string  strParam = SysParamUtils.getSysParam().SYS_PARAM_HPInfoMode.OrgParam;
            //if (strParam != null && strParam =="2")
            // {
            //     lblDes.ValueText = " 医保限制条件 :"+lblDes.ValueText + "\n  院内限制条件:" + hislimit;
            // }
            //else if (strParam != null && strParam == "1")
            // {
            //     lblDes.ValueText = " 院内限制条件:" + hislimit;
            // }



            lblDes.Font     = new System.Drawing.Font("微软雅黑", 10.75F);
            lblDes.Size     = lblDes.GetPreferredSize(new Size(this.Size.Width - 20, 0));
            lblDes.Location = new Point(10, 0);

            centerControl.Size     = new Size(this.Size.Width - this.Padding.Horizontal, lblDes.Size.Height + 10);
            centerControl.Location = new Point(0, 0);
            centerControl.AddRender(lblDes);
            panel.AddRender(centerControl);
            panel.getScrollBarRect();

            saveButton = new XButton {
                Size = new Size(90, 25), Text = "符合-医保"
            };
            saveButton1 = new XButton {
                Size = new Size(90, 25), Text = "符合-医保1"
            };
            saveButton2 = new XButton {
                Size = new Size(90, 25), Text = "符合-医保2"
            };
            cancelButton = new XButton {
                Size = new Size(90, 25), Text = "不符合-自费"
            };

            saveButton.MouseClick   += new MouseEventHandler(saveButton_MouseClick);
            saveButton1.MouseClick  += new MouseEventHandler(saveButton_MouseClick1);
            saveButton2.MouseClick  += new MouseEventHandler(saveButton_MouseClick2);
            cancelButton.MouseClick += new MouseEventHandler(cancelButton_MouseClick);

            this.AddRender_Btn(saveButton1, saveButton2, saveButton, cancelButton);
            // this.AddRender_Btn( saveButton1, saveButton2, cancelButton);
            if (isDefault != null && (bool)isDefault)
            {
                this.MouseButton = saveButton;
            }
            else
            {
                this.MouseButton = cancelButton;
            }
        }