Exemplo n.º 1
0
        public override void Edit()
        {
            try
            {
                this.BeginLoading();
                EntitymModelAccessRecord       mdAccessRecord       = GetRowObject();
                List <EntityModelParamCalc>    lstMdParamCalc       = null;
                List <EntityRiskFactorsResult> lstRiskFactorsResult = null;
                if (mdAccessRecord.qnRecId <= 0)
                {
                    DialogBox.Msg("请选择问卷");
                    return;
                }

                EntityClientReport rpt = GneralPersonalReport(mdAccessRecord, out lstMdParamCalc, out lstRiskFactorsResult);
                frmPopup2030101    frm = new frmPopup2030101(rpt);
                frm.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
            finally
            {
                this.CloseLoading();
            }
        }
Exemplo n.º 2
0
        private void btnLoadReport_Click(object sender, EventArgs e)
        {
            List <EntityModelParamCalc>    lstMdParamCalc        = null;
            List <EntityRiskFactorsResult> lstRiskFactorsResults = null;
            frm20301 frm = new frm20301();
            EntitymModelAccessRecord mdAccessRecord = GetRowObject();

            if (mdAccessRecord != null)
            {
                if (mdAccessRecord.qnRecId <= 0)
                {
                    DialogBox.Msg("请在个人报告选择问卷,并生成报告!");
                    return;
                }
                frm.Init();
                EntityClientReport rpt    = frm.GneralPersonalReport(mdAccessRecord, out lstMdParamCalc, out lstRiskFactorsResults);
                frmPopup2030101    frmRpt = new frmPopup2030101(rpt);
                frmRpt.ShowDialog();
            }
        }