Exemplo n.º 1
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm    form       = null;
            PersonFileFrm iParentFrm = this.MControler.IParentFrm as PersonFileFrm;
            string        str        = name;

            if (str != null)
            {
                if (!(str == "封面信息"))
                {
                    if (str == "详细信息")
                    {
                        form = new PersonRecordInfoForm();
                        (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                    }
                    else if (str == "健康信息")
                    {
                        form = new HealthInfoForm();
                        (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                    }
                }
                else
                {
                    form = new RecordBaseInfoForm();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
            }
            (form as Form).Text = name;
            form.HaveToSave     = true;
            return(form);
        }
Exemplo n.º 2
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;
            string     str  = name;

            if (str != null)
            {
                if (str == "档案完整率")
                {
                    form = new frmRecordComplete();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "随访率")
                {
                    form = new frmVisitPercent();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "建档数列表")
                {
                    form = new FrmStatistics();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
            }

            (form as Form).Text = name;
            form.HaveToSave     = false;
            return(form);
        }
Exemplo n.º 3
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;
            string     str  = name;

            PTBFactory.PtbID = 0;

            if (str != null)
            {
                if (str == "10天内应访视")
                {
                    form = new frmTwentyVisit();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "过期10天内访视")
                {
                    form = new frmTenVisit();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "从未访视")
                {
                    form = new frmNeverVisit();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
            }

            (form as Form).Text = name;
            form.HaveToSave     = false;
            return(form);
        }
Exemplo n.º 4
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;
            string     str  = name;

            if (str != null)
            {
                if (!(str == "基本信息"))
                {
                    if (str == "随访信息")
                    {
                        form = new DiaVisitForm();
                        (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                    }
                }
                else
                {
                    form = new DiaInfoForm();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
            }
            (form as Form).Text = name;
            form.HaveToSave     = true;
            return(form);
        }
Exemplo n.º 5
0
        public void ShowChild(IChildForm child)
        {
            if (child != null)
            {
                Form form = child as Form;
                form.BackColor         = Color.White;
                form.TopLevel          = false;
                form.Location          = new Point(0, 0);
                this.lbNavigation.Text = this.Text + ">" + form.Text;

                if (!this.panel1.Controls.Contains((Control)child))
                {
                    this.panel1.Controls.Add(form);
                }

                this.panel1.Controls.SetChildIndex(form, 0);
                if (!child.HaveToSave)
                {
                    this.btnSave.Visible = false;
                }
                else
                {
                    this.btnSave.Visible = true;
                }

                form.Show();
            }
        }
Exemplo n.º 6
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;
            string     str  = name;

            if (str != null)
            {
                if (str == "接诊记录")
                {
                    form = new DataListSearch("接诊记录");
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "会诊记录")
                {
                    form = new DataListSearch("会诊记录");
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "转诊记录")
                {
                    form = new DataListSearch("转诊记录");
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
            }

            (form as Form).Text = name;
            form.HaveToSave     = false;
            return(form);
        }
Exemplo n.º 7
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;

            if (name != null)
            {
                if (name == "体检信息")
                {
                    form = new PhysicalQueryForm();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (name == "健康评估")
                {
                    form = new ExamQueryForm();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (name == "健康指导")
                {
                    form = new GuideQueryForm();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
            }

            (form as Form).Text = name;
            form.HaveToSave     = false;
            return(form);
        }
        private void btn_Select_Click(object sender, EventArgs e)
        {
            IChildForm child = ActiveMdiChild as IChildForm;

            if (child == null)
            {
                return;
            }

            Cursor.Current = Cursors.WaitCursor;

            /*
             * switch (command)
             * {
             *  case "New": child.New(); break;
             *  case "Save": child.Save(); break;
             *  case "Search": child.Search(); break;
             *  case "Delete": child.Delete(); break;
             *  default: break;
             * }
             */

            int i_cnt = child.SelectItem();

            if (i_cnt > 0)
            {
                lbl_MessageText.Text = $"{i_cnt}건의 데이터가 조회 되었습니다.";
            }
            else
            {
                lbl_MessageText.Text = "데이터를 조회하는데 문제가 발생하였습니다.";
            }
            Cursor.Current = Cursors.Default;
        }
Exemplo n.º 9
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;
            string     str  = name;

            if (str != null)
            {
                if (str == "批量打印")
                {
                    //if (area.Equals("威海")) form = new BatchPrintFormForWeiHai();
                    //else form = new BatchPrintForm();
                    form = new BatchPrintForm();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else
                {
                    form = new BatchExport();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
            }

            (form as Form).Text = name;
            form.HaveToSave     = false;
            return(form);
        }
        private void SelectToolStripMenuItem_Click(object sender, EventArgs e)
        {
            IChildForm child = ActiveMdiChild as IChildForm;

            if (child == null)
            {
                return;
            }

            Cursor.Current = Cursors.WaitCursor;

            /*
             * switch (command)
             * {
             *  case "New": child.New(); break;
             *  case "Save": child.Save(); break;
             *  case "Search": child.Search(); break;
             *  case "Delete": child.Delete(); break;
             *  default: break;
             * }
             */

            child.SelectItem();

            Cursor.Current = Cursors.Default;
        }
Exemplo n.º 11
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;
            string     str  = name;

            if (str != null)
            {
                if (str == "个人档案")
                {
                    form = new RecordQueryForm();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "家庭信息")
                {
                    form = new FamilyListQueryForm();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "体检信息")
                {
                    form = new PhysicalQueryForm();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
            }

            (form as Form).Text = name;
            form.HaveToSave     = false;
            return(form);
        }
Exemplo n.º 12
0
        /// <summary>
        /// Processes event that raised when a child form closes.
        /// <para>Обработать событие при закрытии дочерней формы.</para>
        /// </summary>
        private void ChildFormClosed(object sender, FormClosedEventArgs e)
        {
            // removes the link to the form associated with a tree node
            // очистка ссылки на форму, связанную с узлом дерева
            IChildForm itfWin   = sender as IChildForm;
            TreeNode   treeNode = itfWin == null || itfWin.ChildFormTag == null ? null : itfWin.ChildFormTag.TreeNode;

            if (treeNode == null)
            {
                foreach (TreeNode node in allNodes)
                {
                    NodeInfo nodeInfo = node.Tag as NodeInfo;
                    if (nodeInfo != null && nodeInfo.Form == sender)
                    {
                        nodeInfo.Form = null;
                        break;
                    }
                }
            }
            else
            {
                NodeInfo nodeInfo = treeNode.Tag as NodeInfo;
                if (nodeInfo != null)
                {
                    nodeInfo.Form = null;
                }
            }
        }
Exemplo n.º 13
0
        public virtual void Call_Child(object sender, EventArgs e)
        {
            Control    control = sender as Control;
            IChildForm child   = this.CreateChild(control.Name);

            this.IParentFrm.ChildStatus(control.Name, ChildFormStatus.Activity);
            this.IParentFrm.ShowChild(child);
        }
Exemplo n.º 14
0
        protected void OpenRelatedForm(GridView grid, IChildForm relatedForm, string code = "Code")
        {
            var rows = grid.GetSelectedRows();

            if (rows.Count() > 0)
            {
                BaseControl.OpenRelatedForm(relatedForm, grid.GetRowCellValue(rows[0], code).ToString(), CallingCommand);
            }
        }
Exemplo n.º 15
0
        public override Dictionary <string, IChildForm> GetOneOrMoreForm()
        {
            Dictionary <string, IChildForm> dictionary = new Dictionary <string, IChildForm>();

            foreach (ItemParamters paramters in this.ItemParamters)
            {
                IChildForm form = this.CreateChildForm(paramters.Text);
                form.InitEveryThing();
                dictionary.Add(paramters.Text, form);
            }
            return(dictionary);
        }
Exemplo n.º 16
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm   form       = null;
            PhysicalForm iParentFrm = this.MControler.IParentFrm as PhysicalForm;

            if (name == "一般情况")
            {
                form = new HealthHouseForm();
                (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
            }
            else if (name == "辅助检查")
            {
                form = new PhysicalAssistCheck();
                (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
            }
            else if (name == "中医体质")
            {
                form = new HealthMedicalForm();
                (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
            }
            else if (name == "骨密度")
            {
                form = new HealthBoneForm();
                (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
            }
            else if (name == "心血管")
            {
                form = new HealthVascularForm();
                (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
            }
            else if (name == "肺功能")
            {
                form = new HealthLungForm();
                (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
            }
            else if (name == "心电")
            {
                form = new HealthECG();
                (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
            }
            else if (name == "B超")
            {
                form = new HealthBCHAO();
                (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
            }
            (form as Form).Text = name;
            form.HaveToSave     = true;

            return(form);
        }
Exemplo n.º 17
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;
            string     str;

            if (((str = name) != null) && (str == "基本信息"))
            {
                form = new FamilyInfoForm();
                (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
            }
            (form as Form).Text = name;
            form.HaveToSave     = true;
            return(form);
        }
Exemplo n.º 18
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;

            if (name == "签字维护")
            {
                form = new SignMaint();
                (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
            }

            (form as Form).Text = name;
            form.HaveToSave     = true;
            return(form);
        }
Exemplo n.º 19
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;
            string     str  = name;

            if (str != null)
            {
                if (str == "老年人记录")
                {
                    form = new GroupDataListsSearch(str);
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "高血压记录")
                {
                    form = new GroupDataListsSearch(str);
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "糖尿病记录")
                {
                    form = new GroupDataListsSearch(str);
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "冠心病记录")
                {
                    form = new GroupDataListsSearch(str);
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "脑卒中记录")
                {
                    form = new GroupDataListsSearch(str);
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "精神病记录")
                {
                    form = new GroupDataListsSearch(str);
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "肺结核记录")
                {
                    form = new GroupDataListsSearch(str);
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
            }

            (form as Form).Text = name;
            form.HaveToSave     = false;
            return(form);
        }
Exemplo n.º 20
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;
            string     str  = name;

            if (str != null)
            {
                if (!(str == "儿童管理卡"))
                {
                    if (str == "1-8月内检查")
                    {
                        form = new KidsInOneYearOldVisitForm();
                        (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                    }
                    else if (str == "新生儿访视")
                    {
                        form = new FrmNewBornVisit();
                        (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                    }
                    else if (str == "12-30月内检查")
                    {
                        form = new KidsOneToTwoVisitForm();
                        (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                    }
                    else if (str == "3-6岁内检查")
                    {
                        form = new KidsThreeToSixVisitForm();
                        (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                    }
                    else if (str == "中医药管理")
                    {
                        form = new FrmChlTcmhmOne();
                        (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                    }
                }
                else
                {
                    form = new KidsInfoForm();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
            }
            (form as Form).Text = name;
            form.HaveToSave     = true;
            return(form);
        }
Exemplo n.º 21
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;
            string     str  = name;

            if (str != null)
            {
                if (str == "接诊")
                {
                    form = new ReceiveTreat();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
            }

            (form as Form).Text = name;
            form.HaveToSave     = true;
            return(form);
        }
Exemplo n.º 22
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;
            string     str  = name;

            if (str != null)
            {
                if (str == "清单查询")
                {
                    form = new PhotoListForm();
                    //(form as IChildModel<RecordsBaseInfoModel>).Model = ((IParentModel<RecordsBaseInfoModel>)this.MControler.IParentFrm).Model;
                }
            }

            (form as Form).Text = name;
            form.HaveToSave     = false;
            return(form);
        }
Exemplo n.º 23
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;
            string     str  = name;

            if (str != null)
            {
                if (!(str == "第1次入户随访"))
                {
                    if (str == "随访服务信息1")
                    {
                        form = new PTBVisitForm("1");
                        (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                    }

                    if (str == "随访服务信息2")
                    {
                        form = new PTBVisitForm("2");
                        (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                    }

                    if (str == "随访服务信息3")
                    {
                        form = new PTBVisitForm("3");
                        (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                    }

                    if (str == "随访服务信息4")
                    {
                        form = new PTBVisitForm("4");
                        (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                    }
                }
                else
                {
                    form = new PTBInfoForm();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
            }

            (form as Form).Text = name;
            form.HaveToSave     = true;
            return(form);
        }
        private void btn_Save_Click(object sender, EventArgs e)
        {
            IChildForm child = ActiveMdiChild as IChildForm;

            if (child == null)
            {
                return;
            }

            Cursor.Current = Cursors.WaitCursor;

            /*
             * switch (command)
             * {
             *  case "New": child.New(); break;
             *  case "Save": child.Save(); break;
             *  case "Search": child.Search(); break;
             *  case "Delete": child.Delete(); break;
             *  default: break;
             * }
             */

            if (child.SaveItem())
            {
                if (child.SelectItem() > 0)
                {
                    lbl_MessageText.Text = "데이터 저장 완료.";
                }
                else
                {
                    lbl_MessageText.Text = "데이터 저장은 완료됬지만 데이터를 불러오는데 문제가 발생하였습니다.";
                }
            }

            else
            {
                lbl_MessageText.Text = "데이터 저장에 문제가 발생하였습니다.";
            }


            Cursor.Current = Cursors.Default;
        }
Exemplo n.º 25
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;

            if (name == "健康评估")
            {
                form = new HealthAssessForm();
                (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
            }
            else if (name == "健康问询")
            {
                form = new HealthAssessExamenForm();
                (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
            }

            (form as Form).Text = name;
            form.HaveToSave     = true;

            return(form);
        }
Exemplo n.º 26
0
        /// <summary>
        /// 添加Form
        /// </summary>
        /// <param name="_frmName"></param>
        /// <param name="_frm"></param>
        /// <returns></returns>
        virtual public bool AddForm(string _frmName, Form _frm)
        {
            if (IsExistForm(_frmName))
            {
                SetFormActive(_frmName);
                return(false);
            }

            _frm.MdiParent         = this;
            _frm.Tag               = _frmName;
            frmContainer[_frmName] = _frm;
            if (_frm is IChildForm)
            {
                IChildForm _c = _frm as IChildForm;
                _c.Application  = this;
                _c.MenuChanged += new EventHandler <EventArgs>(_MenuChanged);
            }
            _frm.Show();
            ShowHideFormatCategory(CurrentForm);
            return(true);
        }
        private void btn_Delete_Click(object sender, EventArgs e)
        {
            IChildForm child = ActiveMdiChild as IChildForm;

            if (child == null)
            {
                return;
            }

            Cursor.Current = Cursors.WaitCursor;

            if (child.DeleteItem())
            {
                lbl_MessageText.Text = "데이터 삭제 완료.";
                child.SelectItem();
            }

            else
            {
                lbl_MessageText.Text = "데이터 삭제에 문제가 발생하였습니다.";
            }
        }
Exemplo n.º 28
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;
            string     str  = name;

            if (str != null)
            {
                if (str == "个人档案")
                {
                    form = new frmOutBaseInfo();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "体检信息")
                {
                    form = new frmOutInfoQuery();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "老年人")
                {
                    form = new frmOutOldMen();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "高血压")
                {
                    form = new frmOutHyper();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "糖尿病")
                {
                    form = new frmOutDiabete();
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
            }

            (form as Form).Text = name;
            form.HaveToSave     = false;
            return(form);
        }
Exemplo n.º 29
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;
            string     str  = name;

            if (str != null)
            {
                if (str == "心电打印")
                {
                    string ectType = "1";

                    XmlDocument document = new XmlDocument();
                    document.Load(Environment.CurrentDirectory + @"\ECGconfig.xml");
                    XmlNode node = document.SelectSingleNode("//ECGType");

                    if (node != null)
                    {
                        ectType = node.InnerText.Trim();
                    }

                    if (ectType == "2")
                    {
                        form = new frmECGPrintM();
                    }
                    else
                    {
                        form = new frmECGPrint();
                    }

                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
            }

            (form as Form).Text = name;
            form.HaveToSave     = false;
            return(form);
        }
Exemplo n.º 30
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;
            string     str  = name;

            if (str != null)
            {
                if (str == "会诊修改")
                {
                    form = new ConsulateModify {
                        ID = this.ID
                    };
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "接诊修改")
                {
                    form = new ReceiveTreatModify
                    {
                        ID = this.ID
                    };
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
                else if (str == "转诊修改")
                {
                    form = new ReferralModify
                    {
                        ID = this.ID
                    };
                    (form as IChildModel <RecordsBaseInfoModel>).Model = ((IParentModel <RecordsBaseInfoModel>) this.MControler.IParentFrm).Model;
                }
            }

            (form as Form).Text = name;
            form.HaveToSave     = true;
            return(form);
        }
Exemplo n.º 31
0
		public bool SaveForm(IChildForm childForm)
		{
			return MDIParentMenuHelper.Instance.SaveChild(childForm);
		}