private void getDIList() { if (cidiagcard == null) { cidiagcard = new OverViewTableCard(); SecCols.AddRender(cidiagcard); cidiagcard.Text = "诊断"; } cidiagcard.Size = new Size(355, 300); List <string> fieldNameList = new List <string>(); fieldNameList.Add("name"); BindingList <object> valueList = new BindingList <object>(); if (ent4BannerDto != null && ent4BannerDto.Id_ent != null) { XapDataList <IpViewDiagDTO> listCiDi = this.model.GetDiagDataList(ent4BannerDto.Id_ent); if (listCiDi != null && listCiDi.Count > 0) { } foreach (IpViewDiagDTO item in listCiDi) { valueList.Add(item); } } cidiagcard.SetData(fieldNameList, valueList, null); }
private void getOrderList() { if (ordercard == null) { ordercard = new OverViewTableCard(); ordercard.DataDisplay += new EventHandler <XDataDisplayEventArgs>(tabControl_DataDisplay); ThirdCols.AddRender(ordercard); } //managecontrol.SecCols.ListItems.Add(ordercard); ordercard.Text = "医嘱"; //大屏下的医嘱列表 if (RelativeUIParam.ScreenSize == ScreenSize.Large) { ordercard.Size = new Size(ordercard.Size.Width, 859); } else { ordercard.Size = new Size(ordercard.Size.Width, 430); } List <string> fieldNameList = new List <string>(); fieldNameList.Add("Content_or"); List <XCellRender> columnEditList = new List <XCellRender>(); DoctorOrderCard card = new DoctorOrderCard(); columnEditList.Add(card); BindingList <object> valueList = new BindingList <object>(); if (ent4BannerDto != null && ent4BannerDto.Id_ent != null) { XapDataList <CiOrderDO> listorder = this.model.GetCiOrderDataList(ent4BannerDto.Id_ent); foreach (CiOrderDO item in listorder) { valueList.Add(item); } } //ordercard.DataView.DataTable.DataDisplay += new EventHandler<XDataDisplayEventArgs>(tabControl_DataDisplay); ordercard.SetData(fieldNameList, valueList, columnEditList.ToArray()); ordercard.MouseDoubleClick += new MouseEventHandler(tableView_MouseDoubleClick); }
private void getDIList() { if (cidiagcard == null) { cidiagcard = new OverViewTableCard(); //大屏下诊断放到第一列 if (RelativeUIParam.ScreenSize == ScreenSize.Large) { this.FirstCols.AddRender(cidiagcard); cidiagcard.Size = new Size(cidiagcard.Size.Width, 364); } else { //小屏下诊断放到第二列 SecCols.AddRender(cidiagcard); cidiagcard.Size = new Size(cidiagcard.Size.Width, 300); } } cidiagcard.Text = "诊断"; List <string> fieldNameList = new List <string>(); fieldNameList.Add("name"); BindingList <object> valueList = new BindingList <object>(); if (ent4BannerDto != null && ent4BannerDto.Id_ent != null) { XapDataList <IpViewDiagDTO> listCiDi = this.model.GetDiagDataList(ent4BannerDto.Id_ent); if (listCiDi != null && listCiDi.Count > 0) { var tmpDiList = listCiDi.OrderBy(u => (u as IpViewDiagDTO).Sortno); foreach (IpViewDiagDTO item in tmpDiList) { valueList.Add(item); } } } cidiagcard.SetData(fieldNameList, valueList, null); cidiagcard.MouseDoubleClick += new MouseEventHandler(cidiagcard_MouseDoubleClick); }
private void getOverViewTableCard() { if (overViewTableCard == null) { overViewTableCard = new OverViewTableCard(); if (RelativeUIParam.ScreenSize == ScreenSize.Large) { overViewTableCard.Size = new Size(overViewTableCard.Size.Width, 104); } FirstCols.AddRender(overViewTableCard); } overViewTableCard.Location = new Point(10, 10); overViewTableCard.Text = "过敏史"; List <String> fieldNameList = new List <string>(); fieldNameList.Add("Name_alcla"); if (ent4BannerDto != null) { BindingList <Object> list = this.model.getAllergyDto(ent4BannerDto.Id_pat); if (list != null) { overViewTableCard.SetData(fieldNameList, list, null); } //managecontrol.FirstCols.ListItems.Add(overViewTableCard); //this.xapFormControl1.Controls.Add(FirstCols); // this.xapFormControl1.AddRender(overViewTableCard); } else { this.SetStatusMsg("患者信息为空"); } }
private void getOrderList() { if (ordercard == null) { ordercard = new OverViewTableCard(); ordercard.DataDisplay += new EventHandler <XDataDisplayEventArgs>(tabControl_DataDisplay); ThirdCols.AddRender(ordercard); } ordercard.Size = new Size(355, 400); ordercard.Text = "医嘱"; List <XCellRender> columnEditList = new List <XCellRender>(); DoctorOrderCard card = new DoctorOrderCard(); columnEditList.Add(card); ordercard.Size = new Size(450, 400); List <string> fieldNameList = new List <string>(); fieldNameList.Add("Content_or"); BindingList <object> valueList = new BindingList <object>(); if (ent4BannerDto != null && ent4BannerDto.Id_ent != null) { XapDataList <CiOrderDO> listorder = this.model.GetCiOrderDataList(ent4BannerDto.Id_ent); if (listorder != null && listorder.Count > 0) { } foreach (CiOrderDO item in listorder) { valueList.Add(item); } } //ordercard.DataView.DataTable.DataDisplay+= new EventHandler<XDataDisplayEventArgs>(tabControl_DataDisplay); ordercard.SetData(fieldNameList, valueList, columnEditList.ToArray()); //if (border_or == null) //{ // border_or = new BorderControl(); //} //border_or.TitleText = "处置"; //border_or.Location = new Point(570, 10); //border_or.Size = new Size(650, 350); //XDataView tableView_order = new XDataView(); //tableView_order.ShowRowNumbers = true; //tableView_order.HeadVisible = true; //tableView_order.DataTable.Columns.Visible = false; //XDataColumn conent_or = new XDataColumn(); //conent_or.Caption = "处置"; //conent_or.FieldName = "Content_or"; //conent_or.ColumnEdit = new DoctorOrderCard(); //conent_or.DefalutWidth = 603; //tableView_order.DataTable.Columns.Add(conent_or); //tableView_order.DataTable.DataDisplay += new EventHandler<XDataDisplayEventArgs>(tabControl_DataDisplay); //tableView_order.Size = new Size(650, 350); //tableView_order.Location = new Point(570, 10); //tableView_order.DataTable.Columns.ResumeLayout(); //if (patDo != null) //{ // tableView_order.DataTable.DataSource = this.model.GetCiOrderDataList(patDo.Id_ent); //} //tableView_order.DataTable.MouseDoubleClick += new MouseEventHandler(tableView_MouseDoubleClick); //border_or.ContentControl = tableView_order; //this.xapFormControl1.Controls.Remove(border_or); //this.xapFormControl1.AddRender(border_or); }