Exemple #1
0
        /// <summary>
        /// 初始化业务视图
        /// </summary>
        protected override void InitializeBizView()
        {
            rootPanel      = new XLayoutPanel();
            rootPanel.Dock = DockStyle.Fill;


            this.tableViewControl      = CreateEmsGridView(this);//
            this.tableViewControl.Dock = DockStyle.None;
            rootPanel.AddControl(this.tableViewControl, ControlPosition.Center);
            //
            this.cardViewControl = CreateEmsCardView(this);

            if (null != this.cardViewControl)
            {
                this.cardViewControl.Dock = DockStyle.None;
                this.srvItemViewType      = cardViewControl.GetEmsViewType();
                this.tableViewControl.SetEmsViewType(this.srvItemViewType);
                this.OrdErrorList = cardViewControl.OrdErrorList;
                this.tableViewControl.OrdErrorList = cardViewControl.OrdErrorList;
                this.tableViewControl.SetEmsValidate(cardViewControl.GetEmsValidate());


                rootPanel.AddControl(this.cardViewControl, ControlPosition.Bottom, (RelativeUIParam.RELATIVERATIO < 1920 ? BaseEmsView.FORM_CARD_HEIGHT : BaseEmsView.FORM_CARD_HEIGHT + 30));
                rootPanel.BottomWidth = (RelativeUIParam.RELATIVERATIO < 1920 ? BaseEmsView.FORM_CARD_HEIGHT: BaseEmsView.FORM_CARD_HEIGHT + 30);
            }

            this.AddRender(rootPanel);
            this.tableViewControl.UnRegFormEvent_AllowEditing();                                     // 取消原始的AllowEditing事件
            this.tableViewControl.GetXapFormControl().AllowEditing += OnXapFormControl_AllowEditing; // 绑定当前的 AllowEditing
        }
Exemple #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);
        }
Exemple #3
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);
        }
Exemple #4
0
        public ExtMmForm(XapDataList <EmsOrDrug> list, EmsDrugItemDO drugItemDO, EmsOrDrug emsordrug) : this()
        {
            InitializeComponent();
            //IMaterialStockService stoctService = XapServiceMgr.find<IMaterialStockService>();
            //GetStockReqDTO[] reqDtos = new GetStockReqDTO[list.Count];
            //for (int i = 0; i < list.Count; i++)
            //{
            //    GetStockReqDTO reqDTO = new GetStockReqDTO();
            //    reqDTO.Id_mm = list[i].Id_mm;
            //    reqDTO.Id_dep = emsordrug.Id_mp_dep;
            //    reqDTO.Req_unit_id = list[i].Id_unit_sale;
            //    reqDtos[i] = reqDTO;
            //}

            //MaterialStockDTO[] stockdto = stoctService.getMaterialStocks(reqDtos);
            //for (int i = list.Count - 1; i >= 0; i--)
            //{
            //    MaterialStockDTO materialDo = stockdto.FirstOrDefault(p => p.Id_mm == list[i].Id_mm);
            //    if (materialDo != null)
            //    {
            //        double mmcount = (double)materialDo.Quan_stock;
            //        if (mmcount <= 0)
            //        {
            //            list.RemoveAt(i);
            //        }
            //        else
            //        {
            //            list[i].Fact_count = mmcount;
            //            list[i].Price = materialDo.Price_act;
            //        }
            //    }

            IEnumerable <EmsOrDrug> query = null;

            query = from items in list orderby items.Fact_count descending select items;
            int flag = 0;

            foreach (var item in query)
            {
                list[flag] = item;
                flag++;
            }
            mm = new ExtMmRefView(list, emsordrug);
            mm.DoubleClickEvent += new EventHandler(mm_DoubleClickEvent);
            splitContainer1.AddControl(this.orCom, xap.cli.sdk.controls.ControlPosition.Bottom, 30);
            splitContainer1.AddControl(mm, xap.cli.sdk.controls.ControlPosition.Center);
            this.saveButton.MouseClick   += new MouseEventHandler(saveButton_MouseClick);
            this.cancelButton.MouseClick += new MouseEventHandler(cancelButton_MouseClick);
            this.Controls.Add(splitContainer1);
        }
        /// <summary>
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            this.xapFormControl1 = new xap.rui.control.forms.view.XapFormControl();
            panel = new XLayoutPanel();
            this.SuspendLayout();
            //
            // xapFormControl1
            //
            this.xapFormControl1.AutoSize = true;

            panel.Dock = DockStyle.Fill;
            ////this.xapFormControl1.AutoValidate = System.Windows.Forms.AutoValidate.EnableAllowFocusChange;
            //this.xapFormControl1.CanShowing = null;
            this.xapFormControl1.Context = null;
            //this.xapFormControl1.Dock = DockStyle.Fill;
            this.xapFormControl1.File     = null;
            this.xapFormControl1.Location = new System.Drawing.Point(0, 0);
            this.xapFormControl1.Name     = "xapFormControl1";
            this.xapFormControl1.Size     = new System.Drawing.Size(592, 365);
            this.xapFormControl1.TabIndex = 0;
            this.xapFormControl1.ViewFile = null;
            //
            // OrderItemView
            //
            ////this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F);
            ////this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            //this.Dock = DockStyle.Fill;
            //panel.AddControl(new XBaseControl(), ControlPosition.Right, 1);
            panel.AddControl(this.xapFormControl1, ControlPosition.Center);
            this.AddRender(panel);
            this.Name = "OrderItemView";
            this.ResumeLayout(false);
            this.PerformLayout();
        }
Exemple #6
0
        public ConsInvitedDeptsDialog(object ds)
        {
            datasource = ds as XapDataList <EmsItemInCons>;
            InitializeComponent();
            rootPanel       = new XLayoutPanel();
            this.Size       = new Size(380, 300);
            this.Name       = "受邀科室选择";
            this.Panel      = rootPanel;
            this.Panel.Size = this.Size;
            xapFormControl  = new XapFormControl();
            this.xapFormControl.AutoSize = true;

            rootPanel.Dock = DockStyle.None;

            this.xapFormControl.Context = null;
            //this.xapFormControl1.Dock = DockStyle.Fill;
            this.xapFormControl.File     = null;
            this.xapFormControl.Location = new System.Drawing.Point(0, 0);
            this.xapFormControl.Name     = "xapFormControl1";
            this.xapFormControl.Size     = new System.Drawing.Size(380, 300);
            this.xapFormControl.TabIndex = 0;
            this.xapFormControl.ViewFile = null;
            rootPanel.AddControl(this.xapFormControl, ControlPosition.Center);

            // 按钮
            this.loadBottomButtons();

            // 初始化事件
            this.xapFormControl.Load        += new EventHandler(ConsInvitedDeptsDialog_Load);
            this.xapFormControl.FormCreated += new EventHandler(xapFormControl_FormCreated);
            this.xapFormControl.ModelFilled += new EventHandler(xapFormControl_ModelFilled);
            this.xapFormControl.RefFilter   += new EventHandler <xap.rui.control.refcontrol.events.RefActivatingEventArgs>(xapFormControl_RefFilter);
        }
        void AssMedSrvCatgDialog_Load(object sender, EventArgs e)
        {
            if (this.ownerView == null || this.ownerView.Context.Config == null)
            {
                return;
            }
            XapBaseControl emrView = this.ownerView.Context.Config.GetInstance("emrView") as XapBaseControl;

            this.Location = emrView.PointToScreen(emrView.Location);
            this.Size     = emrView.Size;

            this.rootView = new XLayoutPanel();
            rootView.Dock = DockStyle.Fill;
            this.AddRender(rootView);

            XLayoutPanel centerPanel = new XLayoutPanel();

            XUserControl xUserControl = new XUserControl();

            xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\assmedsrvcatg\\assmedsrvcatg_config.xml");

            // 此处不能设置为 Fill 方式,否则 xUserControl 会充满整个窗体,
            // 会将其他通过代码创建的控件全部遮挡
            xUserControl.Dock     = DockStyle.Fill;
            xUserControl.Location = new Point(0, 0);
            xUserControl.Size     = this.Size;
            rootView.AddControl(xUserControl, ControlPosition.Center);
            itemView = xUserControl.GetConfig().GetInstance("AssMedSrvCatgItemView") as AssMedSrvCatgItemView;
            itemView.setOwnerView(this.ownerView);

//             treeView = this.ownerView.Context.Config.GetInstance("AssMedSrvCatgTreeView") as AssMedSrvCatgTreeView;
//             itemView = this.ownerView.Context.Config.GetInstance("AssMedSrvCatgItemView") as AssMedSrvCatgItemView;
//             itemView.setOwnerView(this.ownerView);
//
//             centerPanel.AddControl(treeView, ControlPosition.Left, 220);
//             centerPanel.AddControl(itemView, ControlPosition.Center);
//
//             rootView.AddControl(centerPanel, ControlPosition.Center);

            XLayoutPanel bottomPanel = new XLayoutPanel();

            bottomPanel.BackColor = Color.Gray;
            rootView.AddControl(bottomPanel, ControlPosition.Bottom, 44);

            xUserControl.LoadData();
        }
Exemple #8
0
        private void DiAssListView_Load(object sender, EventArgs e)
        {
            EntDiAssiContainer diAssiForm = new EntDiAssiContainer(this.Context);

            diAssiForm.delegateHelper += getDOsFromHelp;

            panel      = new XLayoutPanel();
            panel.Dock = DockStyle.Fill;
            panel.AddControl(diAssiForm, ControlPosition.Center);
            this.AddRender(panel);
        }
        void OrderDiInfoDialog_Load(object sender, EventArgs e)
        {
            rootPanel.Dock     = DockStyle.None;
            rootPanel.Location = this.Panel.Location;
            rootPanel.Size     = this.Panel.Size;
            this.Panel         = rootPanel;

            mOrderDiInfoView = new OrderDiInfoView(this.ownerControl, this.ent4BannerDTO);

            rootPanel.AddControl(mOrderDiInfoView, ControlPosition.Center);

            loadBottomButtons();
        }
Exemple #10
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.Text       = "HpIndicDocJudgeForm";
            this.components = new System.ComponentModel.Container();
            //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            xLayoutPanel                    = new XLayoutPanel();
            this.xLayoutPanel.Dock          = System.Windows.Forms.DockStyle.Fill;
            this.xLayoutPanel.Location      = new System.Drawing.Point(5, 37);
            this.xLayoutPanel.CenterPadding = "10,0,0,0";
            buttonControl                   = new XapBaseControl();
            saveButton = new XButton {
                Size = new Size(90, 25), Text = "确认"
            };
            saveButton.Location = new Point(this.Bounds.Width - 120, 0);
            buttonControl.AddRender(saveButton);

            xLayoutPanel.AddControl(buttonControl, ControlPosition.Bottom, 35);
            this.AddRender(xLayoutPanel);
            //lblDes.Size = lblDes.GetPreferredSize(new Size(this.Width - 30, 60));
            this.StartPosition = FormStartPosition.CenterScreen;
        }