First Initial

This commit is contained in:
Nakorn Rientrakrunchai
2020-02-20 15:02:39 +07:00
commit 8b98125e49
3048 changed files with 760804 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
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_familyService : Irep_familyService
{
private IMyDatabase db;
private Iexternal_linkageService ext;
private Iexternal_employeeService emp;
public rep_familyService(IMyDatabase mydb, Iexternal_linkageService inext, Iexternal_employeeService inemp)
{
db = mydb;
ext = inext;
emp = inemp;
}
public rep_familyWithSelectionViewModel GetBlankItem()
{
var i = new rep_familyWithSelectionViewModel();
i.item_employee_id = (from x in emp.GetListByemployee_type(null, null) select x).ToList();
i.item_position_id = (from x in ext.GetPositionForReport() select x).ToList();
i.item_org_id = (from x in ext.GetDepartmentDataForReport() select x).ToList();
i.item_relation_id = (from x in ext.GetRelationshipForReport() select x).ToList();
return i;
}
}
}