public ForecastsController(ERPDBContext context) : base(context) { _context = context; _employeeIds = context.Employees .Where(e => e.Active) .Select(e => e.Id) .ToHashSet(); }
public EmployeesController(ERPDBContext context) : base(context) { _context = context; _employeeNames = _context.Employees .AsNoTracking() .ToDictionary(e => e.Id, e => e.EmployeeName); _teamNames = _context.Teams .AsNoTracking() .ToDictionary(t => t.Id, t => t.TeamName); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ERPDBContext objERPDBContext = new ERPDBContext(); DataTable dt = objERPDBContext.GetReportDS("", 3); //WebApplication1.Models.AssetDBContext db = new WebApplication1.Models.AssetDBContext(); //System.Collections.Generic.List<WebApplication1.Models.Employee> employees = null; //employees = db.Employees.ToList(); //List<MVCReportViwer.Customer> customers = null; // using (MVCReportViwer.MyDatabaseEntities dc = new MVCReportViwer.MyDatabaseEntities()) // { // customers = dc.Customers.OrderBy(a => a.CustomerID).ToList(); ReportViewer1.LocalReport.ReportPath = Server.MapPath("~/Reports/rpt_employee_info.rdlc"); ReportViewer1.LocalReport.DataSources.Clear(); //ReportDataSource rdc = new ReportDataSource("EmployeeDS", employees); ReportDataSource rdc = new ReportDataSource("ReportDataSet", dt); //("ERPDBDataSet", ds); ReportViewer1.LocalReport.DataSources.Add(rdc); ReportViewer1.LocalReport.Refresh(); // } } }
public UserNavViewComponent(ERPDBContext context) { _context = context; }
public TeamsController(ERPDBContext context) : base(context) { _context = context; }
public SkillLevelsController(ERPDBContext context) : base(context) { _context = context; }
public DepartmentsController(ERPDBContext context) { _context = context; }
public SubcontractorsController(ERPDBContext context) : base(context) { _context = context; }
public WorkDaysController(ERPDBContext context) : base(context) { _context = context; }
public UnitsController(ERPDBContext context) : base(context) { _context = context; }
public MyController(ERPDBContext context) : base() { _context = context; }
public AppSettingsController(ERPDBContext context) : base(context) { _context = context; }
public HomeController(ERPDBContext context) : base(context) { _context = context; }
public AppUsersController(ERPDBContext context) : base(context) { _context = context; }
public ProjectsController(ERPDBContext context) : base(context) { _context = context; }
public EmployeesController(ERPDBContext context) { _context = context; }
public UserStandardCheckViewComponent(ERPDBContext context) { _context = context; }
public RolesController(ERPDBContext context) : base(context) { _context = context; }
public CurrenciesController(ERPDBContext context) : base(context) { _context = context; }
public ClaimsTransformer(ERPDBContext context) { _context = context; }
public ClientsController(ERPDBContext context) : base(context) { _context = context; }