/// <summary> /// Insert a MonthlySalary. /// </summary> public void Insert(Model.MonthlySalary monthlySalary) { // // todo:add other logic here // accessor.Insert(monthlySalary); }
/// <summary> /// Update a MonthlySalary. /// </summary> public void Update(Model.MonthlySalary monthlySalary) { // // todo: add other logic here. // accessor.Update(monthlySalary); }
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(); }
public Model.MonthlySalary GetPrev(Model.MonthlySalary e) { return(sqlmapper.QueryForObject <Model.MonthlySalary>("MonthlySalary.get_prev", e)); }
public Model.MonthlySalary GetNext(Model.MonthlySalary e) { return(sqlmapper.QueryForObject <Model.MonthlySalary>("MonthlySalary.get_next", e)); }
public bool HasRowsAfter(Model.MonthlySalary e) { return(sqlmapper.QueryForObject <bool>("MonthlySalary.has_rows_after", e)); }
public bool HasRowsBefore(Model.MonthlySalary e) { return(sqlmapper.QueryForObject <bool>("MonthlySalary.has_rows_before", e)); }
public void Update(Model.MonthlySalary e) { this.Update <Model.MonthlySalary>(e); }
public void Insert(Model.MonthlySalary e) { this.Insert <Model.MonthlySalary>(e); }
public Model.MonthlySalary GetNext(Model.MonthlySalary e) { return(accessor.GetNext(e)); }
public Model.MonthlySalary GetPrev(Model.MonthlySalary e) { return(accessor.GetPrev(e)); }
public bool HasRowsAfter(Model.MonthlySalary e) { return(accessor.HasRowsAfter(e)); }
public bool HasRowsBefore(Model.MonthlySalary e) { return(accessor.HasRowsBefore(e)); }