示例#1
0
        private void GetReportData()
        {
            crEmployeePaySlip  crt    = new crEmployeePaySlip();
            EWA_SalarySettings objEWA = new EWA_SalarySettings();
            DL_SalarySettings  objDL  = new DL_SalarySettings();

            String EmpCode = Session["EmpCode"].ToString();

            objEWA.UserCode    = EmpCode;
            objEWA.SalaryMonth = Session["PayMonth"].ToString();

            DataSet ds = objDL.BindSalarySlipReport(objEWA);

            crt.SetDataSource(ds.Tables[0]);
            crvPrintSalarySlip.ReportSource = crt;
            crvPrintSalarySlip.RefreshReport();

            Session.Add("CR_Session", crt);  //Add Report into Session CR_Session
        }