yanjinhui
2025-03-07 aeb32ca2cc420266734c782df01b27be617e6943
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WIDESEAWCS_Core;
using WIDESEAWCS_Core.BaseController;
using WIDESEAWCS_DTO.SerialPort;
using WIDESEAWCS_DTO.TaskInfo;
using WIDESEAWCS_ITaskInfoService;
using WIDESEAWCS_Model.Models;
 
namespace WIDESEAWCS_Server.Controllers.SerialPort
{
    [Route("api/[controller]")]
    [ApiController]
    public class NjTaskController : ApiBaseController<INjTaskServer, Dt_NjTask>
    {
        public NjTaskController(INjTaskServer service) : base(service)
        {
 
        }
 
 
        [HttpGet, Route("Fuzzyquery"), AllowAnonymous]
        public WebResponseContent Fuzzyquery(string trainkind, string trainnum, string track, string coachnum, string bogie, string processdept)
        {
            return Service.Fuzzyquery(trainkind, trainnum, track, coachnum, bogie, processdept);
        }
 
        //[HttpPost, Route("Addhisy"), AllowAnonymous]
        //public WebResponseContent Addhisy(int takeid, string Tempname, string takename, string jishuyuan, string zhijianyuan_lc, string zhijianyuan_dg,
        //    string zhijianyuan_dq, string gongzhang, string liju_lc, string fuzhu_lc, string liju_dg, string fuzhu_dg, string liju_dq, string fuzhu_dq)
        //{
        //    return Service.Addhisy(takeid, Tempname, takename, jishuyuan, zhijianyuan_lc, zhijianyuan_dg,
        //     zhijianyuan_dq, gongzhang, liju_lc, fuzhu_lc, liju_dg, fuzhu_dg, liju_dq, fuzhu_dq);
        //}
 
        [HttpPost, Route("Submtandsave"), AllowAnonymous] //提交并保存模板
        public WebResponseContent Submtandsave(NjtakeDTO njtakeDTO)
        {
            return Service.Submtandsave(njtakeDTO);
        }
 
 
        [HttpPost, Route("Submit"), AllowAnonymous] //提交
        public WebResponseContent Submit(NotempDTO notempDTO)
        {
            return Service.Submit(notempDTO);
        }
 
        
 
    }
}