예제 #1
0
        private void LoadReport_PCP()
        {
            ProvinceReport report = repRepo.GetCount_PCP();

            this.lbl_AB_Invited.Text = report.AB_Invited.Value.ToString();
            this.lbl_AB_Reg.Text     = report.AB_Registered.Value.ToString();
            this.lbl_AB_ePAF.Text    = report.AB_ePAF.HasValue ? report.AB_ePAF.Value.ToString() : string.Empty;
            this.lbl_AB_eMAF.Text    = report.AB_eMAF.HasValue ? report.AB_eMAF.Value.ToString() : string.Empty;


            this.lbl_BC_Invited.Text = report.BC_Invited.Value.ToString();
            this.lbl_BC_Reg.Text     = report.BC_Registered.Value.ToString();
            this.lbl_BC_ePAF.Text    = report.BC_ePAF.HasValue ? report.BC_ePAF.Value.ToString() : string.Empty;
            this.lbl_BC_eMAF.Text    = report.BC_eMAF.HasValue ? report.BC_eMAF.Value.ToString() : string.Empty;


            this.lbl_SK_Invited.Text = report.SK_Invited.Value.ToString();
            this.lbl_SK_Reg.Text     = report.SK_Registered.Value.ToString();
            this.lbl_SK_ePAF.Text    = report.SK_ePAF.HasValue ? report.SK_ePAF.Value.ToString() : string.Empty;
            this.lbl_SK_eMAF.Text    = report.SK_eMAF.HasValue ? report.SK_eMAF.Value.ToString() : string.Empty;


            this.lbl_MB_Invited.Text = report.MB_Invited.Value.ToString();
            this.lbl_MB_Reg.Text     = report.MB_Registered.Value.ToString();
            this.lbl_MB_ePAF.Text    = report.MB_ePAF.HasValue ? report.MB_ePAF.Value.ToString() : string.Empty;
            this.lbl_MB_eMAF.Text    = report.MB_eMAF.HasValue ? report.MB_eMAF.Value.ToString() : string.Empty;


            this.lbl_ON_Invited.Text = report.ON_Invited.Value.ToString();
            this.lbl_ON_Reg.Text     = report.ON_Registered.Value.ToString();
            this.lbl_ON_ePAF.Text    = report.ON_ePAF.HasValue ? report.ON_ePAF.Value.ToString() : string.Empty;
            this.lbl_ON_eMAF.Text    = report.ON_eMAF.HasValue ? report.ON_eMAF.Value.ToString() : string.Empty;


            this.lbl_QC_Invited.Text = report.QC_Invited.Value.ToString();
            this.lbl_QC_Reg.Text     = report.QC_Registered.Value.ToString();
            this.lbl_QC_ePAF.Text    = report.QC_ePAF.HasValue ? report.QC_ePAF.Value.ToString() : string.Empty;
            this.lbl_QC_eMAF.Text    = report.QC_eMAF.HasValue ? report.QC_eMAF.Value.ToString() : string.Empty;


            this.lbl_NB_Invited.Text = report.NB_Invited.Value.ToString();
            this.lbl_NB_Reg.Text     = report.NB_Registered.Value.ToString();
            this.lbl_NB_ePAF.Text    = report.NB_ePAF.HasValue ? report.NB_ePAF.Value.ToString() : string.Empty;
            this.lbl_NB_eMAF.Text    = report.NB_eMAF.HasValue ? report.NB_eMAF.Value.ToString() : string.Empty;


            this.lbl_NS_Invited.Text = report.NS_Invited.Value.ToString();
            this.lbl_NS_Reg.Text     = report.NS_Registered.Value.ToString();
            this.lbl_NS_ePAF.Text    = report.NS_ePAF.HasValue ? report.NS_ePAF.Value.ToString() : string.Empty;
            this.lbl_NS_eMAF.Text    = report.NS_eMAF.HasValue ? report.NS_eMAF.Value.ToString() : string.Empty;


            this.lbl_NL_Invited.Text = report.NL_Invited.Value.ToString();
            this.lbl_NL_Reg.Text     = report.NL_Registered.Value.ToString();
            this.lbl_NL_ePAF.Text    = report.NL_ePAF.HasValue ? report.NL_ePAF.Value.ToString() : string.Empty;
            this.lbl_NL_eMAF.Text    = report.NL_eMAF.HasValue ? report.NL_eMAF.Value.ToString() : string.Empty;


            this.lbl_PEI_Invited.Text = report.PEI_Invited.Value.ToString();
            this.lbl_PEI_Reg.Text     = report.PEI_Registered.Value.ToString();
            this.lbl_PEI_ePAF.Text    = report.PEI_ePAF.HasValue ? report.PEI_ePAF.Value.ToString() : string.Empty;
            this.lbl_PEI_eMAF.Text    = report.PEI_eMAF.HasValue ? report.PEI_eMAF.Value.ToString() : string.Empty;



            this.lblInvitedTotal.Text =
                (
                    report.AB_Invited.Value +
                    report.BC_Invited.Value +
                    report.SK_Invited.Value +
                    report.MB_Invited.Value +
                    report.ON_Invited.Value +
                    report.QC_Invited.Value +
                    report.NB_Invited.Value +
                    report.NS_Invited.Value +
                    report.NL_Invited.Value +
                    report.PEI_Invited.Value

                ).ToString();


            this.lblRegsiteredTotal.Text = (
                report.AB_Registered.Value +
                report.BC_Registered.Value +
                report.SK_Registered.Value +
                report.MB_Registered.Value +
                report.ON_Registered.Value +
                report.QC_Registered.Value +
                report.NB_Registered.Value +
                report.NS_Registered.Value +
                report.NL_Registered.Value +
                report.PEI_Registered.Value

                ).ToString();


            lblePAF.Text =
                (
                    report.AB_ePAF.Value +
                    report.BC_ePAF.Value +
                    report.SK_ePAF.Value +
                    report.MB_ePAF.Value +
                    report.ON_ePAF.Value +
                    report.QC_ePAF.Value +
                    report.NB_ePAF.Value +
                    report.NS_ePAF.Value +
                    report.NL_ePAF.Value +
                    report.PEI_ePAF.Value

                ).ToString();

            this.lbleMAF.Text =

                (
                    report.AB_eMAF.Value +
                    report.BC_eMAF.Value +
                    report.SK_eMAF.Value +
                    report.MB_eMAF.Value +
                    report.ON_eMAF.Value +
                    report.QC_eMAF.Value +
                    report.NB_eMAF.Value +
                    report.NS_eMAF.Value +
                    report.NL_eMAF.Value +
                    report.PEI_eMAF.Value

                ).ToString();
        }
예제 #2
0
        private void LoadReport_CS()
        {
            ProvinceReport report = repRepo.GetCount_CS();

            this.lbl_AB_Invited_CS.Text = report.AB_Invited.Value.ToString();
            this.lbl_AB_Reg_CS.Text     = report.AB_Registered.Value.ToString();

            this.lbl_BC_Invited_CS.Text = report.BC_Invited.Value.ToString();
            this.lbl_BC_Reg_CS.Text     = report.BC_Registered.Value.ToString();

            this.lbl_SK_Invited_CS.Text = report.SK_Invited.Value.ToString();
            this.lbl_SK_Reg_CS.Text     = report.SK_Registered.Value.ToString();

            this.lbl_MB_Invited_CS.Text = report.MB_Invited.Value.ToString();
            this.lbl_MB_Reg_CS.Text     = report.MB_Registered.Value.ToString();

            this.lbl_ON_Invited_CS.Text = report.ON_Invited.Value.ToString();
            this.lbl_ON_Reg_CS.Text     = report.ON_Registered.Value.ToString();

            this.lbl_QC_Invited_CS.Text = report.QC_Invited.Value.ToString();
            this.lbl_QC_Reg_CS.Text     = report.QC_Registered.Value.ToString();

            this.lbl_NB_Invited_CS.Text = report.NB_Invited.Value.ToString();
            this.lbl_NB_Reg_CS.Text     = report.NB_Registered.Value.ToString();

            this.lbl_NS_Invited_CS.Text = report.NS_Invited.Value.ToString();
            this.lbl_NS_Reg_CS.Text     = report.NS_Registered.Value.ToString();

            this.lbl_NL_Invited_CS.Text = report.NL_Invited.Value.ToString();
            this.lbl_NL_Reg_CS.Text     = report.NL_Registered.Value.ToString();

            this.lbl_PEI_Invited_CS.Text = report.PEI_Invited.Value.ToString();
            this.lbl_PEI_Reg_CS.Text     = report.PEI_Registered.Value.ToString();

            this.lblInvitedTotal_2.Text =
                (
                    report.AB_Invited.Value +
                    report.BC_Invited.Value +
                    report.SK_Invited.Value +
                    report.MB_Invited.Value +
                    report.ON_Invited.Value +
                    report.QC_Invited.Value +
                    report.NB_Invited.Value +
                    report.NS_Invited.Value +
                    report.NL_Invited.Value +
                    report.PEI_Invited.Value

                ).ToString();

            this.lblRegTotal_2.Text = (
                report.AB_Registered.Value +
                report.BC_Registered.Value +
                report.SK_Registered.Value +
                report.MB_Registered.Value +
                report.ON_Registered.Value +
                report.QC_Registered.Value +
                report.NB_Registered.Value +
                report.NS_Registered.Value +
                report.NL_Registered.Value +
                report.PEI_Registered.Value

                ).ToString();
        }
예제 #3
0
        public ProvinceReport GetCount_CS()
        {
            ProvinceReport retVal = new ProvinceReport();

            foreach (var item in Entites.sp_GetProvinceReport_CS())
            {
                switch (item.Province)
                {
                case "AB":

                    retVal.AB_Invited    = item.Invited;
                    retVal.AB_Registered = item.Registered;

                    break;

                case "BC":

                    retVal.BC_Invited    = item.Invited;
                    retVal.BC_Registered = item.Registered;

                    break;

                case "SK":

                    retVal.SK_Invited    = item.Invited;
                    retVal.SK_Registered = item.Registered;

                    break;

                case "MB":

                    retVal.MB_Invited    = item.Invited;
                    retVal.MB_Registered = item.Registered;

                    break;

                case "ON":

                    retVal.ON_Invited    = item.Invited;
                    retVal.ON_Registered = item.Registered;

                    break;

                case "QC":

                    retVal.QC_Invited    = item.Invited;
                    retVal.QC_Registered = item.Registered;

                    break;

                case "NB":

                    retVal.NB_Invited    = item.Invited;
                    retVal.NB_Registered = item.Registered;

                    break;

                case "NS":

                    retVal.NS_Invited    = item.Invited;
                    retVal.NS_Registered = item.Registered;

                    break;

                case "NL":
                    retVal.NL_Invited    = item.Invited;
                    retVal.NL_Registered = item.Registered;

                    break;

                case "PEI":

                    retVal.PEI_Invited    = item.Invited;
                    retVal.PEI_Registered = item.Registered;

                    break;
                }
            }

            return(retVal);
        }