Ejemplo n.º 1
0
 /// <summary>
 /// Insert a MonthlySalary.
 /// </summary>
 public void Insert(Model.MonthlySalary monthlySalary)
 {
     //
     // todo:add other logic here
     //
     accessor.Insert(monthlySalary);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Update a MonthlySalary.
 /// </summary>
 public void Update(Model.MonthlySalary monthlySalary)
 {
     //
     // todo: add other logic here.
     //
     accessor.Update(monthlySalary);
 }
Ejemplo n.º 3
0
        private void LoadEmployeesByMonth()
        {
            DateTime mdate = DateTime.Parse(this.combox_anotherMonth.SelectedItem.ToString() + "-01").Date;

            this.bs_Employees.DataSource = this._EmployeeManager.GetHasThereEmp_ListByDateTime(mdate);

            if (!(mdate.Year == DateTime.Now.Year) && !(mdate.Month == DateTime.Now.Month))
            {
                IList <Model.MonthlySalary> mss = this._monthlysalarymanager.SelectForSpecialMonth(mdate.Year, mdate.Month).ToList();
                (this.bs_Employees.DataSource as List <Model.Employee>).ForEach(d =>
                {
                    try
                    {
                        Model.MonthlySalary curMS = mss.Where(ms => ms.EmployeeId == d.EmployeeId).First();
                        d.HolidayInstitution      = curMS.HolidayInstitution;
                        d.HolidayInstitutionDate  = curMS.HolidayInstitutionDate;
                    }
                    catch
                    {
                        d.HolidayInstitution     = false;
                        d.HolidayInstitutionDate = string.Empty;
                    }
                });
            }
            this.grid_MonthDate.RefreshDataSource();
            this.grid_Employees.RefreshDataSource();
        }
Ejemplo n.º 4
0
 public Model.MonthlySalary GetPrev(Model.MonthlySalary e)
 {
     return(sqlmapper.QueryForObject <Model.MonthlySalary>("MonthlySalary.get_prev", e));
 }
Ejemplo n.º 5
0
 public Model.MonthlySalary GetNext(Model.MonthlySalary e)
 {
     return(sqlmapper.QueryForObject <Model.MonthlySalary>("MonthlySalary.get_next", e));
 }
Ejemplo n.º 6
0
 public bool HasRowsAfter(Model.MonthlySalary e)
 {
     return(sqlmapper.QueryForObject <bool>("MonthlySalary.has_rows_after", e));
 }
Ejemplo n.º 7
0
 public bool HasRowsBefore(Model.MonthlySalary e)
 {
     return(sqlmapper.QueryForObject <bool>("MonthlySalary.has_rows_before", e));
 }
Ejemplo n.º 8
0
 public void Update(Model.MonthlySalary e)
 {
     this.Update <Model.MonthlySalary>(e);
 }
Ejemplo n.º 9
0
 public void Insert(Model.MonthlySalary e)
 {
     this.Insert <Model.MonthlySalary>(e);
 }
Ejemplo n.º 10
0
 public Model.MonthlySalary GetNext(Model.MonthlySalary e)
 {
     return(accessor.GetNext(e));
 }
Ejemplo n.º 11
0
 public Model.MonthlySalary GetPrev(Model.MonthlySalary e)
 {
     return(accessor.GetPrev(e));
 }
Ejemplo n.º 12
0
 public bool HasRowsAfter(Model.MonthlySalary e)
 {
     return(accessor.HasRowsAfter(e));
 }
Ejemplo n.º 13
0
 public bool HasRowsBefore(Model.MonthlySalary e)
 {
     return(accessor.HasRowsBefore(e));
 }