Exemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            RptTemp rpt = new RptTemp();

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void FrmDanhSachLop_Load(object sender, System.EventArgs e)
        {
            username = QUANLYHOCSINHCAP3.KNCSDL.DataProvider.Username;
            password = QUANLYHOCSINHCAP3.KNCSDL.DataProvider.Password;
            service  = QUANLYHOCSINHCAP3.KNCSDL.DataProvider.Service;
            string malop;

            malop = QUANLYHOCSINHCAP3.KNCSDL.DataProvider.MaLop;


            if (nflag == 3)
            {
                btnBaoCao.Visible = true;
                RptTemp rpt = new RptTemp();
                rpt.SetDatabaseLogon(username, password);
                rpt.SetParameterValue("pMaLop", malop);
                crystalReportViewer1.ReportSource = rpt;
            }
            if (nflag == 2)
            {
                GetDanhSachHocKi();
                lblHK.Visible    = true;
                cboHocky.Visible = true;
            }
            if (nflag == 1)
            {
                lblMaHS.Visible = true;
                txtMaHS.Visible = true;
            }
            if (nflag == 0)
            {
                GetDanhSachMonHoc();
                Getdanhsachlop();
                lblMon.Visible  = true;
                cboMon.Visible  = true;
                lblMaHS.Text    = "Mã lớp";
                lblMaHS.Visible = true;
                cboLop.Visible  = true;
            }
            if (nflag == 4)
            {
                GetDanhSachMonHoc();
                GetDanhSachHocKi();
                lblHK.Visible    = true;
                cboHocky.Visible = true;
                lblMon.Visible   = true;
                cboMon.Visible   = true;
            }
        }
Exemplo n.º 3
0
		private void FrmDanhSachLop_Load(object sender, System.EventArgs e)
		{
			username=QUANLYHOCSINHCAP3.KNCSDL.DataProvider.Username;
			password=QUANLYHOCSINHCAP3.KNCSDL.DataProvider.Password;
			service=QUANLYHOCSINHCAP3.KNCSDL.DataProvider.Service;
			string malop;
			malop=QUANLYHOCSINHCAP3.KNCSDL.DataProvider.MaLop;
			
			
			if (nflag==3)
			{
				btnBaoCao.Visible=true;
				RptTemp  rpt=new RptTemp();
				rpt.SetDatabaseLogon(username , password);
				rpt.SetParameterValue("pMaLop",malop);
				crystalReportViewer1.ReportSource = rpt;
			}
			if(nflag==2)
			{
				GetDanhSachHocKi();
				lblHK.Visible=true;
				cboHocky.Visible=true;
				
			}
			if(nflag==1)
			{
				lblMaHS.Visible=true;
				txtMaHS.Visible=true;
			}
			if(nflag==0)
			{
				GetDanhSachMonHoc();
				Getdanhsachlop();
				lblMon.Visible=true;
				cboMon.Visible=true;
				lblMaHS.Text="Mã lớp";	
				lblMaHS.Visible=true;
				cboLop.Visible	=true;
				
			}
			if(nflag==4)
			{
				GetDanhSachMonHoc();
				GetDanhSachHocKi();
				lblHK.Visible=true;
				cboHocky.Visible=true;
				lblMon.Visible=true;
				cboMon.Visible=true;
			}
			
		}
Exemplo n.º 4
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     RptTemp rpt = new RptTemp();
     rpt.Site = this.Site;
     return rpt;
 }