Exemplo n.º 1
0
 public EmployeeLinkType(Employee emp, CathedraDBDataContext db, LoadInCoursePlan lilcp, decimal sum)
 {
     _emp   = emp;
     _db    = db;
     _lilcp = lilcp;
     _sum   = sum;
 }
Exemplo n.º 2
0
 public FormEditLoadFact(CathedraDBDataContext db, int loadFactID)
 {
     InitializeComponent();
     _loadFactID = loadFactID;
     _db         = db;
     InitComboBox();
 }
Exemplo n.º 3
0
 public FormViewPostScalary(CathedraDBDataContext db)
 {
     InitializeComponent();
     _db = db;
     postBindingSource.DataSource       = _db.Post;
     postSalaryBindingSource.DataSource = _db.PostSalary;
     schoolYearBindingSource.DataSource = _db.SchoolYear;
 }
Exemplo n.º 4
0
        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();
        }
Exemplo n.º 5
0
 public FormDistributionVKR(CathedraDBDataContext db, Repository rep, decimal percentageDeviation)
 {
     InitializeComponent();
     _db  = db;
     _rep = rep;
     _percentageDeviation = percentageDeviation;
     UpdateDataGridView();
 }
Exemplo n.º 6
0
 public FormSettings(CathedraDBDataContext db)
 {
     InitializeComponent();
     _db = db;
     cbSchoolYear.DataSource    = _db.SchoolYear;
     cbSchoolYear.SelectedValue = Repository.GetSchollYearID();
     numericUpDown1.Value       = Repository.GetLoadPercent();
 }
Exemplo n.º 7
0
 public FormViewRate(CathedraDBDataContext db)
 {
     InitializeComponent();
     _db = db;
     employeeBindingSource.DataSource   = _db.Employee;
     postBindingSource.DataSource       = _db.Post;
     schoolYearBindingSource.DataSource = _db.SchoolYear;
     rateBindingSource.DataSource       = _db.Rate;
 }
Exemplo n.º 8
0
 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));
         }
     }
 }
Exemplo n.º 9
0
 public FormViewLoadFact(CathedraDBDataContext db)
 {
     InitializeComponent();
     _db = db;
 }
 public FormPreferencesEmployeeWorkTogether(CathedraDBDataContext db, Employee emp)
 {
     InitializeComponent();
     _db  = db;
     _emp = emp;
 }
Exemplo n.º 11
0
 public MainForm()
 {
     InitializeComponent();
     _db  = new CathedraDBDataContext();
     _rep = new Repository(_db);
 }
Exemplo n.º 12
0
 public FormViewPost(CathedraDBDataContext db)
 {
     InitializeComponent();
     _db = db;
     postBindingSource.DataSource = _db.Post;
 }
Exemplo n.º 13
0
 public FormEditLoad(CathedraDBDataContext bd)
 {
     InitializeComponent();
     _db = bd;
 }
Exemplo n.º 14
0
 public FormViewEmployee(CathedraDBDataContext db)
 {
     InitializeComponent();
     _db = db;
 }
Exemplo n.º 15
0
 public FormDistriduteLoad(CathedraDBDataContext db, Repository rep)
 {
     InitializeComponent();
     _db  = db;
     _rep = rep;
 }
Exemplo n.º 16
0
 public Repository(CathedraDBDataContext db)
 {
     _db = db;
 }
Exemplo n.º 17
0
 public FormReportEmployee(CathedraDBDataContext db)
 {
     InitializeComponent();
     _db = db;
     employeeBindingSource.DataSource = _db.Employee.Where(x => !x.NonActive);
 }