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);
        }
Exemple #2
0
        public override IChildForm CreateChildForm(string name)
        {
            IChildForm form = null;
            string     str  = name;

            if (str != null)
            {
                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);
        }