Exemplo n.º 1
0
        private void Template_TreeList_Click(object sender, EventArgs e)
        {
            try
            {
                if (Template_TreeList.Selection.Count == 0)
                    return;

                // '取得选中的结点
                TreeListNode d_Node = Template_TreeList.Selection[0];
                string d_strpart, d_strdisease_type, d_strtemplate;
                if (d_Node.ParentNode == null)
                {// ){ '当前结点是部位

                }
                else if (d_Node.ParentNode.ParentNode == null)
                {//'当前结点是结果归类

                }
                else if (d_Node.Nodes.Count == 0)
                {
                    d_strtemplate = d_Node.GetValue(0).ToString();// '得到模板
                    d_strdisease_type = d_Node.ParentNode.GetValue(0).ToString();// '得到结果
                    d_strpart = d_Node.ParentNode.ParentNode.GetValue(0).ToString();// '得到部位

                    report_template_Class d_template = new report_template_Class(template_grade_ComboBoxEdit.Text.Trim(), CurReportForm.CurPatexam.dep, d_strpart, d_strdisease_type, d_strtemplate);
                    template_describle_MemoEdit.Text = d_template.template_describle;
                    template_diag_MemoEdit.Text = d_template.template_diag;
                }
            }
            catch (Exception ex)
            {
                ShowErr_Form d_form = new ShowErr_Form(ex.Message, "错误");
                d_form.ShowDialog();
            }
        }
Exemplo n.º 2
0
        private void Template_TreeList_DoubleClick(object sender, EventArgs e)
        {
            if (Template_TreeList.Selection.Count == 0)
                return;

            // '取得选中的结点
            TreeListNode d_Node = Template_TreeList.Selection[0];
            string d_strpart, d_strdisease_type, d_strtemplate;

            if (d_Node.ParentNode == null)
            {// ){ '当前结点是部位
                Filldisease_typeNodeBytemplate_partNode(d_Node);
            }
            else if (d_Node.ParentNode.ParentNode == null)
            {//'当前结点是结果归类
                Filltemplate_nameNodeBydisease_typeNode(d_Node);
            }
            else if (d_Node.Nodes.Count == 0)
            {
                d_strtemplate = d_Node.GetValue(0).ToString();// '得到模板
                d_strdisease_type = d_Node.ParentNode.GetValue(0).ToString();// '得到结果
                d_strpart = d_Node.ParentNode.ParentNode.GetValue(0).ToString();// '得到部位
                report_template_Class d_template = new report_template_Class(template_grade_ComboBoxEdit.Text.Trim(), CurReportForm.CurPatexam.dep, d_strpart, d_strdisease_type, d_strtemplate);
                //string idtemp = d_Node.Tag.ToString();
                //report_template_Class d_template = new report_template_Class("公有", Convert.ToInt32(idtemp));
                CurReportForm.FillTemplate(d_template);
                //FillTemplate(d_template);
                //CurReportForm.FillTemplate(d_template.template_describle, d_template.template_diag);
                //'填充结果归类
                diseasetype_ComboBoxEdit.Text = d_strdisease_type;
            }
        }
Exemplo n.º 3
0
        public virtual void FillTemplate(report_template_Class p_Template)
        {

        }
        private void add_SimpleButton_Click(object sender, EventArgs e)
        {
            if ((template_grade_ComboBoxEdit.Text.Trim() == "公有") && (Share_Class.User.HaveFunction("o") == false))
            {
                ShowErr_Form d_ErrForm = new ShowErr_Form("用户无此操作权限", "提示");
                d_ErrForm.ShowDialog();

                return;
            }
            if (!ValidateData())
                return;

            Curtemplate = new report_template_Class();
            //  '得到当前要处理的Dmb的信息()
            SetClassByInput();

            try
            {


                string p_xml_describe = template_Control_describe.GetTemplateXML();
                string p_xml_diagnose = template_Control_diagnose.GetTemplateXML();
                //Curtemplate.dep = toolStripComboBox_DEP.Text.Trim();
                int newid = Curtemplate.Insert();
                if (newid > 0)
                {
                    d_id = newid;
                    Curtemplate.Update(p_xml_describe, p_xml_diagnose, d_id.ToString());

                    FillTemplate();
                    ShowErr_Form d_ErrForm = new ShowErr_Form("增加模板成功", "提示");
                    d_ErrForm.ShowDialog();
                }
                
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "新增模版", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }


        }
Exemplo n.º 5
0
        public override void FillTemplate(report_template_Class p_template)
        {
            try
            {
                string d_reportinfo = p_template.template_describle;
                string d_reportend = p_template.template_diag;
                if (p_template.xml_describle != "")
                {
                    d_reportinfo = p_template.xml_describle;
                }
                if (p_template.xml_diag != "")
                {
                    d_reportend = p_template.xml_diag;
                }
                InsertTemplate("reportinfotable", d_reportinfo);
                InsertTemplate("reportendtable", d_reportend);
                myEditControl.RefreshDocument();
            }
            catch { }


        }