public EmployeeLinkType(Employee emp, CathedraDBDataContext db, LoadInCoursePlan lilcp, decimal sum) { _emp = emp; _db = db; _lilcp = lilcp; _sum = sum; }
public FormEditLoadFact(CathedraDBDataContext db, int loadFactID) { InitializeComponent(); _loadFactID = loadFactID; _db = db; InitComboBox(); }
public FormViewPostScalary(CathedraDBDataContext db) { InitializeComponent(); _db = db; postBindingSource.DataSource = _db.Post; postSalaryBindingSource.DataSource = _db.PostSalary; schoolYearBindingSource.DataSource = _db.SchoolYear; }
private void вКРИРуководствоМагистрантовToolStripMenuItem1_Click(object sender, EventArgs e) { var db = new CathedraDBDataContext(); var rep = new Repository(db); var form = new FormDistributionVKR(db, rep, 0.1m); form.ShowDialog(); }
public FormDistributionVKR(CathedraDBDataContext db, Repository rep, decimal percentageDeviation) { InitializeComponent(); _db = db; _rep = rep; _percentageDeviation = percentageDeviation; UpdateDataGridView(); }
public FormSettings(CathedraDBDataContext db) { InitializeComponent(); _db = db; cbSchoolYear.DataSource = _db.SchoolYear; cbSchoolYear.SelectedValue = Repository.GetSchollYearID(); numericUpDown1.Value = Repository.GetLoadPercent(); }
public FormViewRate(CathedraDBDataContext db) { InitializeComponent(); _db = db; employeeBindingSource.DataSource = _db.Employee; postBindingSource.DataSource = _db.Post; schoolYearBindingSource.DataSource = _db.SchoolYear; rateBindingSource.DataSource = _db.Rate; }
public EmployeeExtended(Employee emp, CathedraDBDataContext db, Repository rep) { _emp = emp; _db = db; _rep = rep; _elt = new List <EmployeeLinkType>(); foreach (var item in db.SortLoadLinkType.OrderBy(x => x.Id)) { var collection = item.SortLoadLink.First().SortLoad .LoadInCoursePlan.Where(licp => licp.CourseInWork.SchoolYearID == Repository.SchoolYear); var sum = (decimal)item.SortLoadLink.Sum(x => x.SortLoad.PerStudent); foreach (var licp in collection) { _elt.Add(new EmployeeLinkType(emp, db, licp, sum)); } } }
public FormViewLoadFact(CathedraDBDataContext db) { InitializeComponent(); _db = db; }
public FormPreferencesEmployeeWorkTogether(CathedraDBDataContext db, Employee emp) { InitializeComponent(); _db = db; _emp = emp; }
public MainForm() { InitializeComponent(); _db = new CathedraDBDataContext(); _rep = new Repository(_db); }
public FormViewPost(CathedraDBDataContext db) { InitializeComponent(); _db = db; postBindingSource.DataSource = _db.Post; }
public FormEditLoad(CathedraDBDataContext bd) { InitializeComponent(); _db = bd; }
public FormViewEmployee(CathedraDBDataContext db) { InitializeComponent(); _db = db; }
public FormDistriduteLoad(CathedraDBDataContext db, Repository rep) { InitializeComponent(); _db = db; _rep = rep; }
public Repository(CathedraDBDataContext db) { _db = db; }
public FormReportEmployee(CathedraDBDataContext db) { InitializeComponent(); _db = db; employeeBindingSource.DataSource = _db.Employee.Where(x => !x.NonActive); }