private void EntHistoryTabFrame_Load(object sender, EventArgs e) { this.BannerDTO = this.Context["ent4BannerDTO"] as Ent4BannerDTO; this.BaseContext = this.Context["context"] as BaseContext; xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\opordertemplate\\Helper_pithy.xml"); this.OnInit(); }
/// <summary> /// 创建诊毕逻辑链,返回链中起始节点 /// </summary> private AbstractActionHandler CreateActionHandlerChain(string xmlCfgPath) { // 责任链第一个节点 AbstractActionHandler startHandler = null; AbstractActionHandler preActionHandler = null; AbstractActionHandler nextActionHandler = null; XUserControl xUserControl = new XUserControl(); xUserControl.Init(xmlCfgPath); List <XBaseControl> xbaseCtrlList = xUserControl.GetConfig().GetViews(); if (xbaseCtrlList != null) { foreach (XBaseControl xBaseCtrl in xbaseCtrlList) { nextActionHandler = xBaseCtrl as AbstractActionHandler; preActionHandler = this.AddNextActionHandler(preActionHandler, nextActionHandler); if (startHandler == null) { startHandler = nextActionHandler; } } } return(startHandler); }
private void DiCertificateDialog_Load(object sender, EventArgs e) { XUserControl userControl = new XUserControl(); userControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\dicertificate\\dicertificate_config.xml"); userControl.Dock = DockStyle.Fill; userControl.Size = this.Panel.Size; userControl.Location = this.Panel.Location; this.Panel = userControl; //树列表 DiCertificateTreeView leftView = userControl.GetConfig().GetInstance("leftView") as DiCertificateTreeView; if (leftView != null) { leftView.ent4BannerDTO = this.ent4BannerDTO; leftView.parentBaseControl = this.parentControl; } //编辑界面 DiCertificateEditView rightView = userControl.GetConfig().GetInstance("rightView") as DiCertificateEditView; if (rightView != null) { rightView.ent4BannerDTO = this.ent4BannerDTO; } userControl.LoadData(); }
private void xapFormControl_Load(object sender, EventArgs e) { xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\opdimodifydialog\\opdimodifydialog_config.xml"); // 此处不能设置为 Fill 方式,否则 xUserControl 会充满整个窗体, // 会将其他通过代码创建的控件全部遮挡 xUserControl.Dock = DockStyle.Fill; xUserControl.Location = this.Panel.Location; xUserControl.Size = this.Panel.Size; DiListView diListView = xUserControl.GetConfig().GetInstance("DiListView") as DiListView; if (diListView != null) { diListView.IsOrdersEmpty = this.isOrdersEmpty; diListView.SetOwnerControl(msgOwner as XapBaseControl); diListView.SetCallbackAction(this); diListView.SetEnt4BannerDTO(this.Ent4BannerDto); } this.Panel = xUserControl; // 触发执行表单中的 onLoadData 和 onFillData 方法 xUserControl.LoadData(); }
void helperForm_Load(object sender, EventArgs e) { // HelperViewModel model = new HelperViewModel(null,null,null); XUserControl xUserControl = new XUserControl(); xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\opmedicaltechnology\\Helper.xml"); xUserControl.Dock = DockStyle.None; xUserControl.Location = this.Panel.Location; xUserControl.Size = this.Panel.Size; this.Panel = xUserControl; xUserControl.LoadData(); Control content = xUserControl.GetControl(); foreach (Control obj in content.Controls) { if (obj is XTabControl) { tabControl = obj as XTabControl; foreach (XTabPage page in tabControl.XTabPages) { // Visible(page, tabControl); } } } }
/// <summary> /// 加载配置文件是否成功 /// </summary> /// <returns></returns> private XUserControl LoadConfigUserControl(Dictionary <string, object> paramDic, AssiBtnDTO btnDTO) { XUserControl xUserControl = null; Dictionary <AssiFrameLocation, string> ConfigPathDic = this.GetDisplayCfgXmlDic(); // 待加载的配置文件路径不存在 if (ConfigPathDic == null || !ConfigPathDic.ContainsKey(btnDTO.FrameLocation)) { BizAssMessageBoxUtil.ShowInforMsg("加载助手窗口失败,请配置加载助手的配置文件!"); return(xUserControl); } //if (cacheXUserControlDic.ContainsKey(btnDTO.FrameLocation)) //{ // xUserControl = cacheXUserControlDic[btnDTO.FrameLocation]; // xUserControl.LoadData(paramDic); //} //else //{ xUserControl = new XUserControl(); string xmlpath = ConfigPathDic[btnDTO.FrameLocation]; xUserControl.Init(xmlpath, paramDic); xUserControl.Dock = DockStyle.Fill; // cacheXUserControlDic.Add(btnDTO.FrameLocation, xUserControl); //} return(xUserControl); }
void helperForm_Load(object sender, EventArgs e) { // HelperViewModel model = new HelperViewModel(null,null,null); XUserControl xUserControl = new XUserControl(); xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\opordertemplate\\Helper.xml"); xUserControl.Dock = DockStyle.None; xUserControl.Location = this.Panel.Location; xUserControl.Size = this.Panel.Size; this.Panel = xUserControl; xUserControl.LoadData(); Control content = xUserControl.GetControl(); foreach (Control obj in content.Controls) { if (obj is XTabControl) { tabControl = obj as XTabControl; if (tabControl.XTabPages.Count > 2) { tabControl.SelectedIndex = SelectedIndex; } //foreach (XTabPage page in tabControl.XTabPages) //{ // if (page.TabIndex == 2) // { // page.IsSelected = FBoolean.True; // } // // Visible(page, tabControl); //} } } }
private void InitBizDialog() { xUserControl = new XUserControl(); xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\medreferral\\medreferral_config.xml"); xUserControl.Dock = DockStyle.Fill; xUserControl.Location = this.Panel.Location; xUserControl.Size = this.Panel.Size; this.Panel = xUserControl; }
private void DiCertificateView_Load(object sender, EventArgs e) { userControl = new XUserControl(); userControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\dicertificate\\dicertificate_config.xml"); userControl.Dock = DockStyle.Fill; userControl.Size = this.Size; userControl.Location = this.Location; userControl.LoadData(); this.Controls.Add(userControl); }
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(); }
private void EntHistoryTabFrame_Load(object sender, EventArgs e) { xUserControl = new XUserControl(); xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\opordertemplate\\Helper_complex_control.xml"); OpOrderTemplateTreeViewComplex templTreeView = xUserControl.GetConfig().GetInstance("complex_OpOrderTemplateTreeView") as OpOrderTemplateTreeViewComplex; OpOrderTemplateListViewComplex templListView = xUserControl.GetConfig().GetInstance("complex_OpOrderTemplateListView") as OpOrderTemplateListViewComplex; templListView.Ent4BannerDTO = this.BannerDTO; templListView.parentControl = this; if (!string.IsNullOrWhiteSpace(this.modeltype)) { templTreeView.treeKeyModel = this.model.loadTreeModel(this.modeltype); } xUserControl.Dock = DockStyle.Fill; this.xapFormControl.AddRender(xUserControl); }
private void EntHistoryTabFrame_Load(object sender, EventArgs e) { // 弹出窗口 XForm assiViewFrame = this.Context["assiViewFrame"] as XForm; // 加载窗口对象,用于对外发送事件 XapBaseControl xapBaseControl = this.Context["sender"] as XapBaseControl; // 点击确定按钮时是否关闭窗口 bool isConfirmCloseAssiFrame = (bool)this.Context["isConfirmCloseAssiFrame"]; // 关闭按钮名称 string closeBtnText = this.Context["closeBtnText"].ToString(); this.BannerDTO = this.Context["ent4BannerDTO"] as Ent4BannerDTO; this.BaseContext = this.Context["context"] as BaseContext; this.EntHistoryInitEvent = this.Context["entHistoryInitEvent"] as EntHistoryInitEvent; XUserControl xUserControl = new XUserControl(); xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\optrdocstation\\enthistory\\enthistory_config.xml"); EntHistory entHistory = xUserControl.GetConfig().GetInstance("EntHistory") as EntHistory; EntHistoryContent entHistoryContent = xUserControl.GetConfig().GetInstance("EntHistoryContent") as EntHistoryContent; EntHistoryBtn entHistoryBtn = xUserControl.GetConfig().GetInstance("EntHistoryBtn") as EntHistoryBtn; entHistory.Ent4BannerDTO = this.BannerDTO; entHistoryContent.Ent4BannerDTO = this.BannerDTO; entHistoryContent.EntHistoryInitEvent = this.EntHistoryInitEvent; entHistoryContent.BaseContext = this.BaseContext; // 弹出窗口 entHistoryContent.AssiViewFrame = assiViewFrame; // 确定时是否关闭窗口 entHistoryContent.IsConfirmCloseAssiFrame = isConfirmCloseAssiFrame; entHistoryBtn.Ent4BannerDTO = this.BannerDTO; entHistoryBtn.CloseBtnText = closeBtnText; // 弹出窗口 entHistoryBtn.AssiViewFrame = assiViewFrame; xUserControl.Dock = DockStyle.Fill; this.xapFormControl.AddRender(xUserControl); }
void OrdApBuView_Load(object sender, EventArgs e) { xapUserControl.Init("modules\\iihci\\ui\\ordbu\\ordbu_config.xml"); this.xapFormControl.AddRender(xapUserControl); //var a = 0; c = xapUserControl.GetBaseContext().Config.GetInstance("OrdApBuGridView"); if (c != null) { var emg = c as OrdApBuGridView; emg.LoadGrid(EmsHeadDO, this.CiEmsDTO); } b = xapUserControl.GetBaseContext().Config.GetInstance("OrdApBuCardView"); if (b != null) { var emg = b as OrdApBuCardView; emg.loadcard(EmsHeadDO, this.CiEmsDTO); } }
private void DiProvePrintDialog_Load(object sender, EventArgs e) { XUserControl userControl = new XUserControl(); userControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\entdiprove\\diproveprint_config.xml"); userControl.Dock = DockStyle.Fill; userControl.Size = this.Panel.Size; userControl.Location = this.Panel.Location; userControl.LoadData(); Dictionary <string, string> dic = new Dictionary <string, string>(); DiProvePrintPreView bottomView = userControl.GetConfig().GetInstance("bottomView") as DiProvePrintPreView; if (bottomView != null) { bottomView.id_ent = id_ent; } this.Panel = userControl; }
public ConsMrCommonDialog(Dictionary <string, object> args) { InitializeComponent(); this.Text = "病历文书记录"; this.HasbtnBackRec = false; this.Formsize = FormSize.ExtraLarge; this.Height = 600; // 发送所要传送的数据包装 treearg = args; XUserControl userControl = new XUserControl(); userControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\mrcommonoutp\\mrcommonoutp_config.xml"); userControl.Dock = DockStyle.Fill; userControl.LoadData(treearg); userControl.Size = this.Panel.Size; userControl.Location = this.Panel.Location; this.Panel = userControl; }
/// <summary> /// 打印管理窗口 /// </summary> /// <param name="selectedIndex"></param> /// <param name="lstIdor"></param> /// <param name="lstIdpres"></param> /// <param name="ordListView"></param> /// <param name="id_hp"></param> /// <param name="sd_hptp"></param> /// <param name="bShowTools"></param> public PrintManageDialog(int selectedIndex, List <String> lstIdor, List <String> lstIdpres, XapBaseControl ordListView, String id_hp, String sd_hptp, bool bShowTools) { InitializeComponent(); this.Text = "打印预览"; this.Formsize = FormSize.ExtraLarge; this.Height = 600; this.HasbtnBackRec = false; this.Closing += new System.ComponentModel.CancelEventHandler(PrintManageDialog_Closing); XUserControl userControl = new XUserControl(); userControl.Init(Application.StartupPath + (bShowTools ? "\\modules\\iihci\\ui\\printmanage\\printmrg_config.xml" : "\\modules\\iihci\\ui\\printmanage\\printmrg_preview_config.xml")); userControl.Dock = DockStyle.Fill; userControl.LoadData(); userControl.Size = this.Panel.Size; userControl.Location = this.Panel.Location; this.Panel = userControl; if (bShowTools) { PrintChooseView topView = userControl.GetConfig().GetInstance("topView") as PrintChooseView; if (topView != null) { topView.OwnerView = ordListView; topView.IsEditable = selectedIndex < 1; } } this.bottomView = userControl.GetConfig().GetInstance("bottomView") as PrintPreviewView; if (this.bottomView != null) { this.bottomView.OwnerView = ordListView; this.bottomView.SelectedIndex = selectedIndex; this.bottomView.LstIdor = lstIdor; this.bottomView.LstIdpres = lstIdpres; this.bottomView.Id_hp = id_hp; this.bottomView.Sd_hptp = sd_hptp; this.bottomView.bShowTools = bShowTools; } }
void helperForm_Load(object sender, EventArgs e) { HelperViewModel model = new HelperViewModel(null, null, null); this.list = model.pageList.ToList(); XUserControl xUserControl = new XUserControl(); xUserControl.Init("modules\\iihci\\ui\\OrderHelper\\Helper.xml"); xUserControl.Dock = DockStyle.None; xUserControl.Location = this.Panel.Location; xUserControl.Padding = new Padding(4); xUserControl.Size = this.Panel.Size; List <XBaseControl> xBaseCtrlList = xUserControl.GetConfig().GetViews(); foreach (XBaseControl xBaseCtrl in xBaseCtrlList) { BaseHelperView baseHelperView = xBaseCtrl as BaseHelperView; if (baseHelperView != null) { baseHelperView.Ent4BannerDTO = Ent4BannerDTO; } } this.Panel = xUserControl; xUserControl.LoadData(); Control content = xUserControl.GetControl(); foreach (Control obj in content.Controls) { if (obj is XTabControl) { tabControl = obj as XTabControl; foreach (XTabPage page in tabControl.XTabPages) { Visible(page, tabControl); } } } }
protected void EntpHistoryFrame_Load(object sender, System.EventArgs e) { XUserControl xUserControl = new XUserControl(); xUserControl.Init("modules\\iihci\\ui\\optrdocstation\\enthistory\\enthistory_config.xml"); EntHistory entHistory = xUserControl.GetConfig().GetInstance("EntHistory") as EntHistory; EntHistoryContent entHistoryContent = xUserControl.GetConfig().GetInstance("EntHistoryContent") as EntHistoryContent; EntHistoryBtn entHistoryBtn = xUserControl.GetConfig().GetInstance("EntHistoryBtn") as EntHistoryBtn; entHistory.Ent4BannerDTO = this.BannerDTO; entHistoryContent.Ent4BannerDTO = this.BannerDTO; entHistoryContent.EntHistoryInitEvent = this.EntHistoryInitEvent; entHistoryContent.BaseContext = this.BaseContext; entHistoryBtn.EntHistoryFrame = this; entHistoryBtn.Ent4BannerDTO = this.BannerDTO; xUserControl.Dock = DockStyle.Fill; this.xapFormControl.AddRender(xUserControl); }
private void loadContentUserControl() { string xmlCfgPath = null; if (xUserControl != null) { this.xapFormControl.RemoveRender(xUserControl); } xUserControl = new XUserControl(); xmlCfgPath = this.getXmlCfgPath(); xUserControl.Init(xmlCfgPath); xUserControl.Location = new System.Drawing.Point(0, 0); xUserControl.Size = this.Size; xUserControl.Dock = DockStyle.Fill; contentEvent = xUserControl.GetConfig().GetInstance("EntHistoryContentEnvet") as EntHistoryContentEnvet; if (contentEvent == null) { // 日志、提示信息 } contentEvent.Id_ent = this.Id_ent; contentEvent.Code_entp = this.Code_entp; contentEvent.EntHistoryInitEvent = this.EntHistoryInitEvent; // 弹出窗口 contentEvent.AssiViewFrame = this.AssiViewFrame; // 确定时是否关闭窗口 contentEvent.IsConfirmCloseAssiFrame = this.IsConfirmCloseAssiFrame; this.setCfgInstanceProperty(xUserControl); this.xapFormControl.AddRender(xUserControl); }
void OrdTplDialog_Load(object sender, EventArgs e) { XUserControl xUserControl = new XUserControl(); xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\OrderHelper\\Helper.xml"); xUserControl.Dock = DockStyle.None; xUserControl.Location = this.Panel.Location; xUserControl.Size = this.Panel.Size; this.Panel = xUserControl; xUserControl.LoadData(); Control content = xUserControl.GetControl(); foreach (Control obj in content.Controls) { if (obj is XTabControl) { tabControl = obj as XTabControl; foreach (XTabPage page in tabControl.XTabPages) { // Visible(page, tabControl); } } } }
private XUserControl setOpOrderTemplateTreeViewOrderAndVisible() { assiViewFrame = this.Context["assiViewFrame"] as XForm; AssiBtnDTO assiBtnDTO = this.Context["assiBtnDTO"] as AssiBtnDTO; CiEnContextDTO ciEnContext = this.Context["ciEnContext"] as CiEnContextDTO; XapBaseControl xapBaseControl = this.Context["sender"] as XapBaseControl; xUserControl = new XUserControl(); xUserControl.Init(Application.StartupPath + "\\modules\\iihci\\ui\\opordertemplate\\Helper_complex.xml"); OrderHelpButtenComplex helpButon = xUserControl.GetConfig().GetInstance("OrderHelpButten") as OrderHelpButtenComplex; helpButon.parentFrame = this; OpTemplateControlComplex sysTreeView = xUserControl.GetConfig().GetInstance("sys_OpOrderTemplateControlComplex") as OpTemplateControlComplex; OpTemplateControlComplex obsTreeView = xUserControl.GetConfig().GetInstance("obs_OpOrderTemplateControlComplex") as OpTemplateControlComplex; OpTemplateControlComplex westDrugTreeView = xUserControl.GetConfig().GetInstance("westdrug_OpOrderTemplateControlComplex") as OpTemplateControlComplex; OpTemplateControlComplex labTreeView = xUserControl.GetConfig().GetInstance("lab_OpOrderTemplateControlComplex") as OpTemplateControlComplex; OpTemplateControlComplex treateTreeView = xUserControl.GetConfig().GetInstance("treate_OpOrderTemplateControlComplex") as OpTemplateControlComplex; sysTreeView.parentFrame = this; sysTreeView.model = this.model; sysTreeView.BannerDTO = this.BannerDTO; sysTreeView.ciEnContext = ciEnContext; sysTreeView.xapBaseControl = xapBaseControl; sysTreeView.modeltype = BdSrvDictCodeConst.SD_ORTMPLTP_FHMBA; obsTreeView.BannerDTO = this.BannerDTO; obsTreeView.parentFrame = this; obsTreeView.model = this.model; obsTreeView.ciEnContext = ciEnContext; obsTreeView.xapBaseControl = xapBaseControl; obsTreeView.modeltype = BdSrvDictCodeConst.SD_ORTMPLTP_RIS; labTreeView.BannerDTO = this.BannerDTO; labTreeView.parentFrame = this; labTreeView.model = this.model; labTreeView.ciEnContext = ciEnContext; labTreeView.xapBaseControl = xapBaseControl; labTreeView.modeltype = BdSrvDictCodeConst.SD_ORTMPLTP_LIS; treateTreeView.BannerDTO = this.BannerDTO; treateTreeView.parentFrame = this; treateTreeView.model = this.model; treateTreeView.ciEnContext = ciEnContext; treateTreeView.xapBaseControl = xapBaseControl; treateTreeView.modeltype = BdSrvDictCodeConst.SD_ORTMPLTP_TREAT; westDrugTreeView.BannerDTO = this.BannerDTO; westDrugTreeView.parentFrame = this; westDrugTreeView.model = this.model; westDrugTreeView.ciEnContext = ciEnContext; westDrugTreeView.xapBaseControl = xapBaseControl; westDrugTreeView.modeltype = BdSrvDictCodeConst.SD_ORTMPLTP_CZXCY; xUserControl.Dock = DockStyle.Fill; string paramStr = (string)BaseEmsView.BaseEmsInfoContext[ICiOrdNSysParamConst.OrTmplTypeAndSeqSet4OPOrHelper]; if (!string.IsNullOrWhiteSpace(paramStr)) { LayoutXTabPanelControl layoutTabl = xUserControl.GetConfig().GetInstance("tablayout1") as LayoutXTabPanelControl; if (layoutTabl != null) { layoutTabl.XTabPages[0].Visible = paramStr.Contains(BdSrvDictCodeConst.SD_ORTMPLTP_RIS); layoutTabl.XTabPages[1].Visible = paramStr.Contains(BdSrvDictCodeConst.SD_ORTMPLTP_LIS); layoutTabl.XTabPages[2].Visible = paramStr.Contains(BdSrvDictCodeConst.SD_ORTMPLTP_TREAT); layoutTabl.XTabPages[3].Visible = paramStr.Contains(BdSrvDictCodeConst.SD_ORTMPLTP_CZXCY); layoutTabl.XTabPages[4].Visible = paramStr.Contains(BdSrvDictCodeConst.SD_ORTMPLTP_FHMBA); } } xUserControl.Dock = DockStyle.Fill; return(xUserControl); }
private void EntHistoryTabFrame_Load(object sender, EventArgs e) { this.BannerDTO = this.Context["ent4BannerDTO"] as Ent4BannerDTO; this.BaseContext = this.Context["context"] as BaseContext; // 助手最外层窗口 XForm assiViewFrame = this.Context["assiViewFrame"] as XForm; // 助手按钮对象 AssiBtnDTO assiBtnDTO = this.Context["assiBtnDTO"] as AssiBtnDTO; // 就诊上下文环境 CiEnContextDTO ciEnContext = this.Context["ciEnContext"] as CiEnContextDTO; XapBaseControl xapBaseControl = this.Context["sender"] as XapBaseControl; XUserControl xUserControl = new XUserControl(); //if (assiBtnDTO == null) //{ // this.ShowInfo("按钮异常", "提示"); //} //else //{ // if (assiBtnDTO.ButtonId == "btnOpTemplateFrame") // { // xUserControl.Init("modules\\iihci\\ui\\opordertemplate\\Helper.xml"); // OpOrderTemplateListView orderHelpButten = xUserControl.GetConfig().GetInstance("OpOrderTemplateListView") as OpOrderTemplateListView; // orderHelpButten.BannerDTO = this.BannerDTO; // orderHelpButten.AssiViewFrame = assiViewFrame; // orderHelpButten.xapBaseControl = xapBaseControl; // } // else if (assiBtnDTO.ButtonId == "btnOpMedicalTechnology") // { // xUserControl.Init("modules\\iihci\\ui\\opmedicaltechnology\\Helper.xml"); // OPMedicalTechnologyListView orderHelpButten = xUserControl.GetConfig().GetInstance("OPMedicalTechnologyListView") as OPMedicalTechnologyListView; // orderHelpButten.BannerDTO = this.BannerDTO; // orderHelpButten.AssiViewFrame = assiViewFrame; // orderHelpButten.xapBaseControl = xapBaseControl; // } // else if (assiBtnDTO.ButtonId == "btnMedSrv") // { // xUserControl.Init("modules\\iihci\\ui\\medsrvclass\\Helper.xml"); // OpmedSrvRadioView orderHelpButten = xUserControl.GetConfig().GetInstance("OpmedSrvRadioView") as OpmedSrvRadioView; // orderHelpButten.BannerDTO = this.BannerDTO; // orderHelpButten.AssiViewFrame = assiViewFrame; // orderHelpButten.xapBaseControl = xapBaseControl; // } //} xUserControl.Init("modules\\iihci\\ui\\opmedicaltechnology\\Helper.xml"); OPMedicalTechnologyListView orderHelpButten = xUserControl.GetConfig().GetInstance("OPMedicalTechnologyListView") as OPMedicalTechnologyListView; orderHelpButten.BannerDTO = this.BannerDTO; orderHelpButten.AssiViewFrame = assiViewFrame; orderHelpButten.ciEnContext = ciEnContext; orderHelpButten.xapBaseControl = xapBaseControl; // cancelButton.MouseClick += new MouseEventHandler(cancelButton_MouseClick); //EntHistory entHistory = xUserControl.GetConfig().GetInstance("EntHistory") as EntHistory; //EntHistoryContent entHistoryContent = xUserControl.GetConfig().GetInstance("EntHistoryContent") as EntHistoryContent; //EntHistoryBtn entHistoryBtn = xUserControl.GetConfig().GetInstance("EntHistoryBtn") as EntHistoryBtn; //entHistory.Ent4BannerDTO = this.BannerDTO; //entHistoryContent.Ent4BannerDTO = this.BannerDTO; //entHistoryContent.EntHistoryInitEvent = this.EntHistoryInitEvent; //entHistoryContent.BaseContext = this.BaseContext; //entHistoryBtn.Ent4BannerDTO = this.BannerDTO; xUserControl.Dock = DockStyle.Fill; this.xapFormControl.AddRender(xUserControl); }