Exemple #1
0
        private void cbBMedicalClass_SelectedIndexChanged(object sender, EventArgs e)
        {
            LoadMedicalItem();
            this.tabPage2.Controls.Clear();
            Control control = new FormSite.FormatPanel(HIS.MZDoc_BLL.OP_MedicalApply.GetMedicalApplyXmlDocument((int)this.cbBMedicalClass.SelectedValue));

            control.Dock = DockStyle.Fill;
            this.tabPage2.Controls.Add(control);
        }
Exemple #2
0
        /// <summary>
        /// 获得打印参数
        /// </summary>
        /// <param name="apply"></param>
        /// <returns></returns>
        private List <FormSite.PrintParameter> GetPrintParameter(HIS.MZDoc_BLL.BaseMedical apply)
        {
            FormSite.FormatPanel control = new FormSite.FormatPanel(apply.Apply_Content);
            if (control.Controls.Count == 0)
            {
                control = new FormSite.FormatPanel(HIS.MZDoc_BLL.OP_ReadBaseData.GetMedicalApplyXmlDocument(apply.Medical_Class));
            }
            switch (apply.Apply_Type)
            {
            case 0:
                control.SetElementValue("Purpose", apply.Item_Name);
                break;

            case 2:
                control.SetElementValue("Num", apply.Num.ToString());
                break;

            default:
                break;
            }
            return(control.PrintParameters);
        }