zhao
2021-07-07 2fdf959ac739edd6de84aa8053b8b9683dce8e8b
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
54
55
56
57
58
59
60
61
62
using HH.WMS.Utils.NPOI.HSSF.UserModel;
using HH.WMS.Utils.NPOI.SS.UserModel;
using HH.WMS.WebUI.Controllers;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
 
namespace HH.WMS.WebUI.Areas.AllQuery.Controllers
{
    public class LogController : BaseController
    {
        //
        // GET: /AllQuery/Log/
 
        public ActionResult Index()
        {
            return View();
        }
 
        public string GetList(int pageIndex, int pageSize, string logName, string logType, string logFrom, string valueDate, string logContent)
        {
            string[] dates = new string[2];
            if (!string.IsNullOrEmpty(valueDate))
                dates = JsonConvert.DeserializeObject<string[]>(valueDate);
            var searchModel = new
            {
                TokenId = ViewConstants.TokenId,
                pageIndex = pageIndex,
                pageSize = pageSize,
                SearchCondition = new
                {
                    CN_S_LOG_TITLE = logName,
                    CN_S_LOG_TYPE = logType,
                    CN_S_LOG_FROM = logFrom,
                    CN_T_START = !string.IsNullOrEmpty(valueDate) ? dates[0] : "",
                    CN_T_END = !string.IsNullOrEmpty(valueDate) ? dates[1] : "",
                    CN_S_LOG_CONTENT = logContent
                }
            };
 
            var result = HttpWMS_Post("api/Log/GetList", JsonConvert.SerializeObject(searchModel));
            return result;
        }
 
        public string GetDtls(string mstGuid)
        {
            var result = HttpWMS_Get("api/Log/GetDtls?mstGuid=" + mstGuid);
            return result;
        }
 
 
        public void ExportExcel()
        {
           
        }
 
    }
}