เพิ่มหน้า ui รายงาน เงินเดือน
This commit is contained in:
42
Models/rpt_payroll_summary/rpt_payroll_summaryService.cs
Normal file
42
Models/rpt_payroll_summary/rpt_payroll_summaryService.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
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 rpt_payroll_summaryService : Irpt_payroll_summaryService
|
||||
{
|
||||
private IMyDatabase db;
|
||||
private Iexternal_linkageService ext;
|
||||
|
||||
public rpt_payroll_summaryService(IMyDatabase mydb, Iexternal_linkageService inext)
|
||||
{
|
||||
db = mydb;
|
||||
ext = inext;
|
||||
}
|
||||
|
||||
public rpt_payroll_summaryWithSelectionViewModel GetBlankItem()
|
||||
{
|
||||
var i = new rpt_payroll_summaryWithSelectionViewModel();
|
||||
i.item_rpt_year = (from x in ext.GetFiscalYear2() orderby x.external_id descending select x).ToList();
|
||||
i.item_rpt_month = (from x in ext.GetThaiMonth() select x).ToList();
|
||||
i.item_department_id = (from x in ext.GetSortingDep() select x).ToList();
|
||||
|
||||
|
||||
return i;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user