protected override void InitializeBizView() { // 暂停布局 this.SuspendLayout(); this.xapFormControl = new xap.rui.control.forms.view.XapFormControl(); // // xapFormControl // this.xapFormControl.AutoSize = true; this.xapFormControl.Context = null; this.xapFormControl.File = null; this.xapFormControl.Dock = System.Windows.Forms.DockStyle.Fill; this.xapFormControl.Location = new System.Drawing.Point(0, 0); this.xapFormControl.Name = "xapFormControl"; this.xapFormControl.Size = new System.Drawing.Size(592, 365); this.xapFormControl.TabIndex = 0; this.xapFormControl.ViewFile = null; //this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 14F); //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AddRender(this.xapFormControl); this.Name = "业务处理基类"; // 唤醒布局 this.ResumeLayout(false); this.PerformLayout(); }
//private XButton saveButton; //private XButton cancelButton; public OpTechnoloyFrame() { xapFormControl = new XapFormControl(); xapFormControl.Dock = DockStyle.Fill; this.Controls.Add(xapFormControl); this.Load += EntHistoryTabFrame_Load; }
private void InitializeComponent() { this.xapFormControl = new XapFormControl(); this.SuspendLayout(); // // xapFormControl // this.xapFormControl.Context = null; this.xapFormControl.Dock = DockStyle.Fill; this.xapFormControl.IsXapGrid = true; this.xapFormControl.Location = new Point(0, 0); this.xapFormControl.Name = "xapFormControl"; this.xapFormControl.Size = new Size(150, 150); this.xapFormControl.TabIndex = 0; // // DiProvePrintPreView // //this.AutoScaleDimensions = new SizeF(6F, 12F); //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.Controls.Add(this.xapFormControl); this.Margin = new System.Windows.Forms.Padding(3, 6, 3, 6); this.Name = "DiProvePrintPreView"; this.ResumeLayout(false); this.ResumeLayout(false); }
public ipoverview() { InitializeComponent(); this.model = new IpOverViewModel(); this.xapFormControl1 = new XapFormControl(); this.xapFormControl1.Dock = DockStyle.Fill; this.xapFormControl1.Size = this.Size; this.Load += new EventHandler(ipoverview_Load); managecontrol = new DashboardWidghts(); managecontrol.Dock = DockStyle.Fill; managecontrol.Size = this.xapFormControl1.Size; managecontrol.Location = new Point(0, 0); FirstCols = new LayoutMColmns(); SecCols = new LayoutMColmns(); ThirdCols = new LayoutMColmns(); //大屏情况下列宽度的重置 if (RelativeUIParam.ScreenSize == ScreenSize.Large) { SecCols.ColWidth = secondColumnWidth; FirstCols.ColWidth = firstColumnWidth; ThirdCols.ColWidth = thirdColumnWidth; } managecontrol.DiagInfoList.Add(this.FirstCols); managecontrol.DiagInfoList.Add(this.SecCols); managecontrol.DiagInfoList.Add(this.ThirdCols); this.xapFormControl1.AddRender(managecontrol); //this.Controls.Add(this.xapFormControl1); this.AddRender(this.xapFormControl1); }
/// <summary> /// 初始化表单控件 /// </summary> private void initXapFormControl() { //窗体中控件布局 xapFormControl = new XapFormControl { Location = Panel.Location, Width = Panel.Width, Height = Panel.Height }; xapFormControl.SetEditPolicy(true); Panel = xapFormControl; saveButton = new XButton { Size = new Size(75, 25), Text = "确定" }; cancelButton = new XButton { Size = new Size(75, 25), Text = "取消" }; this.saveButton.MouseClick += saveButton_MouseClick; this.cancelButton.MouseClick += cancelButton_MouseClick; saveButton.Enabled = bAllowEdit; // cancelButton.Enabled = bAllowEdit; Text = @"处置明细"; AddRender_Btn(saveButton, cancelButton); }
public OpTemplateFrameComplex() { xapFormControl = new XapFormControl(); xapFormControl.Dock = DockStyle.Fill; this.Controls.Add(xapFormControl); this.Load += EntHistoryTabFrame_Load; }
public OPProofOfDiagnosisView() { this.xapFormControl = new XapFormControl(); this.xapFormControl.Dock = DockStyle.Fill; this.Load += new EventHandler(EntDIPorveView_Load); this.Controls.Add(this.xapFormControl); }
public OpOrderHerbsView() { InitializeComponent(); this.Load += new EventHandler(OrderHerbsView_Load); xapFormControl1 = new XapFormControl(); xapFormControl1.Padding = new System.Windows.Forms.Padding(0, 4, 0, 0); this.Controls.Add(xapFormControl1); xapFormControl1.FormCreated += new EventHandler(xapFormControl1_FormCreated); this.xapFormControl1.RefResult += this.OnRefResult; xapFormControl1.ModelFilled += new EventHandler(xapFormControl1_ModelFilled); xapFormControl1.DataChanged += new EventHandler <DataChangedEventArgs>(xapFormControl1_DataChanged); this.xapFormControl1.RefFilter += this.OnRefFilter; her = new HerBalMedicineCtr() { MedicineName = "Name_mm", DosageName = "Quan_med", UsgeName = "Name_boildes", UnitName = "Name_unit_med", HerbalWidth = 99, HerbalHeight = 35 }; her.SelectedClick += new EventHandler(her_SelectedClick); Dictionary <string, Control> controls = new Dictionary <string, Control>(); controls.Add("herCtl", her); this.xapFormControl1.RegisterControl(controls); this.SheetName = "草药医疗单"; }
/// <summary> /// 设计器支持所需的方法 - 不要 /// 使用代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { components = new System.ComponentModel.Container(); //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; xapFormControl = new XapFormControl(); this.Controls.Add(xapFormControl); }
/// <summary> /// 创建分方药品列表控件 /// </summary> /// <param name="ds"></param> /// <returns></returns> private XapFormControl CreatePresDrugFormGrid(object ds) { FormFile file = new FormFile(); file.FormId = CiOrdBillFormTmplConst.CIORD_OP_SpltPrescriptionView;// "20160627093640542K69"; file.FormStyle = FormStyle.List; file.ViewModel = ds; XapFormControl xfc = new XapFormControl() { TabIndex = 0, File = null, Location = new Point(0, 0), Name = "xapFormControl", Dock = DockStyle.None, AutoSize = true, Context = this.Context, ViewFile = file }; xfc.FormCreated += new EventHandler(xfc_FormCreated); xfc.DataDisplay += new EventHandler <XDataDisplayEventArgs>(xfc_DataDisplay); xfc.AfterFocused += Xfc_AfterFocused; return(xfc); }
/// <summary> /// 设置时间控件的最大值 /// </summary> /// <param name="xapFormControl1"></param> /// <param name="Context"></param> /// <param name="tabName"></param> /// <param name="itemkey"></param> /// <param name="datetime"></param> public void setMaxTime(XapFormControl xapFormControl1, BaseContext Context, string tabName, string itemkey, DateTime datetime) { UserRender us = xapFormControl1.GetUserRender(tabName, itemkey); if (us.Renders[0] is XCalendarTimerComboBox) { XCalendarTimerComboBox timebox = us.Renders[0] as XCalendarTimerComboBox; if (timebox != null) { if (datetime != null) { timebox.MaxDate = datetime; } else { timebox.MaxDate = null; } } } else if (us.Renders[0] is XCalendarComboBox) { XCalendarComboBox timebox = us.Renders[0] as XCalendarComboBox; if (timebox != null) { if (datetime != null) { timebox.MaxDate = datetime; } else { timebox.MaxDate = null; } } } }
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); }
/// <summary> /// 构造窗体中的 UI 对象 /// </summary> private void constructControls() { // 创建表单容器 xapFormControl = new XapFormControl { Location = Panel.Location, Width = Panel.Width, Height = Panel.Height }; // 设置可编辑状态 xapFormControl.SetEditPolicy(true); // 将表单容器添加到对话框布局容器 Panel = xapFormControl; // 新建保存按钮以及取消按钮 saveButton = new XButton { Size = new Size(75, 25), Text = "确定" }; cancelButton = new XButton { Size = new Size(75, 25), Text = "取消" }; // 注册事件 saveButton.MouseClick += new MouseEventHandler(saveButton_MouseClick); cancelButton.MouseClick += new MouseEventHandler(cancelButton_MouseClick); Text = @"变动用药"; // 将保存按钮以及取消按钮添加到窗体中 AddRender_Btn(saveButton, cancelButton); }
public OpTemplateControlComplex() { this.Buttonmodel = new AssButtonViewModel(); xapFormControl = new XapFormControl(); xapFormControl.Dock = DockStyle.Fill; this.Controls.Add(xapFormControl); this.Load += EntHistoryTabFrame_Load; }
public MmRefView() { InitializeComponent(); this.Load += new EventHandler(MmRefView_Load); xapFormControl = new XapFormControl(); this.Controls.Add(xapFormControl); this.xapFormControl.FormCreated += new EventHandler(xapFormControl_FormCreated); }
public NewOrderTemplateTreeView() { InitializeComponent(); this.Load += new EventHandler(NewOrderTemplateTreeView_Load); this.xapFormControl = new XapFormControl(); this.xapFormControl.Dock = DockStyle.Fill; this.oTree1.TreeItemSelected += new xap.rui.control.tree.events.TreeItemEventHandler(oTree1_TreeItemSelected); }
public OrSkinTest() { InitializeComponent(); this.Load += new EventHandler(OrSkinTest_Load); //表单 id 20150925055807508S1S xapFormControl1 = new XapFormControl(); this.Controls.Add(xapFormControl1); xapFormControl1.FormCreated += new EventHandler(xapFormControl1_FormCreated); }
public OrderPresView() { InitializeComponent(); this.xapFormControl = new XapFormControl(); this.xapFormControl.Dock = DockStyle.Fill; this.Load += new EventHandler(OrderPresView_Load); this.Controls.Add(this.xapFormControl); }
//private DateTime nowtime; //**************************************************构造函数************************************************************* public OrderConfirmViewModel(string idorg, XapFormControl xapFormControl) { ordService = XapServiceMgr.find <ICiorderMDOCrudService>(); maintainService = XapServiceMgr.find <ICiOrdMaintainService>(); qryservice = XapServiceMgr.find <ICiOrdQryService>(); OrderList = new XapDataList <OrConfirm>(); this.xapFormControl = xapFormControl; // num = qryservice.getIntSystemParam(idorg, ICiOrdNSysParamConst.SYS_PARAM_OrStopChkMaxLeadTime); }
/// <summary> /// 设计器支持所需的方法 - 不要 /// 使用代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { this.xapFormControl = new XapFormControl(); this.xapFormControl.Dock = DockStyle.Fill; components = new System.ComponentModel.Container(); //this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.xapFormControl.Padding = new Padding(0, 4, 0, 0); this.AddRender(this.xapFormControl); }
/// <summary> /// 设计器支持所需的方法 - 不要 /// 使用代码编辑器修改此方法的内容。 /// </summary> private void InitializeComponent() { this.Dock = DockStyle.Fill; xapFormControl = new XapFormControl(); xapFormControl.Dock = DockStyle.Fill; //xapFormControl.Size = this.Size; this.Controls.Add(xapFormControl); components = new System.ComponentModel.Container(); }
public PastOrderListView() { InitializeComponent(); this.xapFormControl1 = new XapFormControl(); this.xapFormControl1.Dock = DockStyle.Fill; this.AddRender(this.xapFormControl1); this.Load += new EventHandler(PastOrderListView_Load); this.xapFormControl1.FormCreated += new EventHandler(control_FormCreated); }
//**************************************************构造函数************************************************************* public OrderConfirmFeeViewModel(OrConfirm orfirm, XapFormControl xapFormControl) { this.xapFormControl = xapFormControl; maintainService = XapServiceMgr.find <ICiOrdMaintainService>(); freqservice = XapServiceMgr.find <IFreqdefMDOCrudService>(); qryservice = XapServiceMgr.find <ICiOrdQryService>(); ordservice = XapServiceMgr.find <ICiorderMDOCrudService>(); AddFeeDTOList = new XapDataList <AddFeeDTO>(); GetFeeList(orfirm); }
public CiRptLabView() { InitializeComponent(); xapFormControl1 = new XapFormControl(); xapFormControl1.Dock = DockStyle.Fill; xapFormControl1.FormCreated += xapFormControl1_FormCreated; xapFormControl1.ModelFilled += xapFormControl1_ModelFilled; model = new CiRptlabViewModel(); Controls.Add(xapFormControl1); Load += CiRptLabView_Load; }
public CiRptObsTreeView() { InitializeComponent(); this.xapFormControl1 = new XapFormControl(); this.xapFormControl1.Dock = DockStyle.Fill; this.oTree1 = new xap.rui.control.tree.otree.OTree(); this.oTree1.Dock = DockStyle.Fill; menu = new NavBarControl(); menu.Size = new Size(30, 430); // this.xapFormControl1.Controls.Add(menu); this.Controls.Add(menu); }
public CiOrdSheetItemView() { InitializeComponent(); this.xapFormControl1 = new XapFormControl(); this.xapFormControl1.Dock = DockStyle.Fill; this.Load += new EventHandler(opoverview_Load); this.Controls.Add(this.xapFormControl1); xapFormControl1.FormCreated += new EventHandler(xapFormControl1_FormCreated); }
public OpOrderTemplateTreeViewComplex() { InitializeComponent(); this.Load += new EventHandler(OpOrderTemplateTreeViewComplex_Load); this.xapFormControl = new XapFormControl(); this.xapFormControl.Dock = DockStyle.Fill; this.oTree1.TreeItemSelected += new xap.rui.control.tree.events.TreeItemEventHandler(oTree1_TreeItemSelected); this.xapFormControl.AddRender(this.oTree1); this.Controls.Add(xapFormControl); }
public OpippathgyCardView() { InitializeComponent(); xapFormControl1 = new XapFormControl(); xapFormControl1.Dock = DockStyle.Fill; xapFormControl1.FormCreated += xapFormControl1_FormCreated; xapFormControl1.ModelFilled += xapFormControl1_ModelFilled; Controls.Add(xapFormControl1); Load += CiRptPathgyView_Load; model = new OpippathgyCardModel(); }
public CiOrdFirmCardView() { InitializeComponent(); xapFormControl = new XapFormControl(); xapFormControl.Dock = DockStyle.Fill; Controls.Add(xapFormControl); xapFormControl.Load += xapFormControl_Load; xapFormControl.RefFilter += OnRefFilter; xapFormControl.FormCreated += xapFormControl_FormCreated; xapFormControl.IsShowWarnForm = false; }
public TakeDrugOutPresView() { InitializeComponent(); this.Load += new EventHandler(TakeDrugOutPresView_Load); xapFormControl1 = new XapFormControl() { Dock = DockStyle.Fill }; xapFormControl1.FormCreated += new EventHandler(xapFormControl1_FormCreated); this.Controls.Add(xapFormControl1); }