First Initial
This commit is contained in:
44
Models/rep_leave_summary/rep_leave_summaryService.cs
Normal file
44
Models/rep_leave_summary/rep_leave_summaryService.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using AutoMapper;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using TTSW.EF;
|
||||
using TTSW.Utils;
|
||||
using TTSW.Constant;
|
||||
using TTSW.Common;
|
||||
using TodoAPI2.Models;
|
||||
using System.IO;
|
||||
using System.Web;
|
||||
using System.Net;
|
||||
using TTSW.Configure;
|
||||
using Microsoft.Extensions.Options;
|
||||
using System.Data;
|
||||
|
||||
namespace TodoAPI2.Models
|
||||
{
|
||||
public class rep_leave_summaryService : Irep_leave_summaryService
|
||||
{
|
||||
private IMyDatabase db;
|
||||
private Iexternal_linkageService ext;
|
||||
private Iexternal_employeeService emp;
|
||||
|
||||
public rep_leave_summaryService(IMyDatabase mydb, Iexternal_linkageService inext, Iexternal_employeeService inemp)
|
||||
{
|
||||
db = mydb;
|
||||
ext = inext;
|
||||
emp = inemp;
|
||||
}
|
||||
|
||||
public rep_leave_summaryWithSelectionViewModel GetBlankItem()
|
||||
{
|
||||
var i = new rep_leave_summaryWithSelectionViewModel();
|
||||
i.item_fiscal_year = (from x in ext.GetFiscalYear() select x).ToList();
|
||||
i.item_org_id = (from x in ext.GetDepartmentDataForReport() select x).ToList();
|
||||
i.item_employee_id = (from x in emp.GetListByemployee_type(null, null) select x).ToList();
|
||||
|
||||
return i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user