private List <xap.cli.sdk.render.Items.XRadiobox> GetRadioList() { List <xap.cli.sdk.render.Items.XRadiobox> list = new List <xap.cli.sdk.render.Items.XRadiobox>(); xap.cli.sdk.render.Items.XRadiobox uncheckRadio = new xap.cli.sdk.render.Items.XRadiobox(); uncheckRadio.Text = ReportCodeDict.HP_TREAT_ALL_SELECT; xap.cli.sdk.render.Items.XRadiobox checkRadio = new xap.cli.sdk.render.Items.XRadiobox(); checkRadio.Text = ReportCodeDict.HP_TREAT_ALL_BLANK; checkRadio.ForeColor = System.Drawing.Color.Blue; list.Add(uncheckRadio); list.Add(checkRadio); return(list); }
/// <summary> /// CreateView执行完毕后,用LoadData的数据填充界面 /// </summary> protected override void OnFillData() { this.xRadioGroup.Location = new Point(10, 0); this.xRadioGroup.Size = this.Size; xap.cli.sdk.render.Items.XRadiobox firstDiRadioBox = new xap.cli.sdk.render.Items.XRadiobox() { ValueCode = "0" }; firstDiRadioBox.Text = "初诊"; this.xRadioGroup.AddRender(firstDiRadioBox); firstDiRadioBox.Checked = true; xap.cli.sdk.render.Items.XRadiobox mzDiRadioBox = new xap.cli.sdk.render.Items.XRadiobox() { ValueCode = "1" }; mzDiRadioBox.Text = "复诊"; this.xRadioGroup.AddRender(mzDiRadioBox); // xap.cli.sdk.render.Items.XRadiobox emgyDiRadioBox = new xap.cli.sdk.render.Items.XRadiobox(); // emgyDiRadioBox.Text = "急诊复诊"; // this.xRadioGroup.AddRender(emgyDiRadioBox); // xap.cli.sdk.render.Items.XRadiobox zyfzRadioBox = new xap.cli.sdk.render.Items.XRadiobox(); // zyfzRadioBox.Text = "住院复诊"; // this.xRadioGroup.AddRender(zyfzRadioBox); // xap.cli.sdk.render.Items.XRadiobox otherRadioBox = new xap.cli.sdk.render.Items.XRadiobox(); // otherRadioBox.Text = "其他"; // this.xRadioGroup.AddRender(otherRadioBox); this.xRadioGroup.ValueTextChanged += xRadioGroup_ValueTextChanged; // 切换病历下拉框 //mrSelCombox = new XComboBox(this); //mrSelCombox.Size = new System.Drawing.Size(260, 20); //int x = this.Size.Width - mrSelCombox.Size.Width - 1; //int y = (this.Size.Height - mrSelCombox.Size.Height) / 2; //mrSelCombox.Location = new Point(x, y); //mrSelCombox.ValueTextChanging += MrSelCombox_ValueTextChanging; //mrSelCombox.ValueTextChanged += MrSelCombox_ValueTextChanged; this.AddRender(this.xRadioGroup); // 首次加载,设置返回值第一个为选中状态 //this.FillCiMrItems(null); //this.AddRender(this.mrSelCombox); }