firts commit
This commit is contained in:
107
REPORT_API_ver6/Models/ProjectModels.cs
Normal file
107
REPORT_API_ver6/Models/ProjectModels.cs
Normal file
@@ -0,0 +1,107 @@
|
||||
using System.Net;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using REPORT_API_ver6.Services;
|
||||
|
||||
namespace REPORT_API_ver6.Models
|
||||
{
|
||||
public class PkeyInfo
|
||||
{
|
||||
public string SecurityKey { get; set; } = string.Empty;
|
||||
public string Pkey { get; set; } = string.Empty;
|
||||
public int isKiwi { get; set; } = 0;
|
||||
|
||||
public PkeyInfo(string securityKey)
|
||||
{
|
||||
Security security = new Security();
|
||||
SecurityKey = securityKey;
|
||||
Pkey = security.decryptString(WebUtility.UrlDecode(securityKey));
|
||||
if (Pkey.IndexOf("|K|W|") > -1)
|
||||
{
|
||||
Pkey = Pkey.Replace("|K|W|", "");
|
||||
isKiwi = 1;
|
||||
}
|
||||
}
|
||||
|
||||
public PkeyInfo() { }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// KON Question 정보
|
||||
/// </summary>
|
||||
public class QuestionInfo
|
||||
{
|
||||
public string variableName { get; set; } = string.Empty;
|
||||
public string explain { get; set; } = string.Empty;
|
||||
public string structureType { get; set; } = string.Empty;
|
||||
public string questionType { get; set; } = string.Empty;
|
||||
public string itemType { get; set; } = string.Empty;
|
||||
public string variableType { get; set; } = string.Empty;
|
||||
public string maxCount { get; set; } = string.Empty;
|
||||
public string questionTitle { get; set; } = string.Empty;
|
||||
public JObject attrJson { get; set; } = new JObject();
|
||||
public JObject itemJson { get; set; } = new JObject();
|
||||
public JObject optionJson { get; set; } = new JObject();
|
||||
|
||||
public QuestionInfo() { }
|
||||
}
|
||||
|
||||
public class DerivedParam
|
||||
{
|
||||
public string VariableID { get; set; } = string.Empty;
|
||||
public string OriginID { get; set; } = string.Empty;
|
||||
public string VariableType { get; set; } = string.Empty;
|
||||
public string VariableTitle { get; set; } = string.Empty;
|
||||
public string VariableInfo { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// DerivedParam 설정
|
||||
/// </summary>
|
||||
/// <param name="variableID">파생 변수명</param>
|
||||
/// <param name="originID">수정 전 변수명</param>
|
||||
/// <param name="variableType">파생변수 타입</param>
|
||||
/// <param name="variableTitle">파생변수 제목</param>
|
||||
/// <param name="variableInfo">파생변수 정보</param>
|
||||
public DerivedParam(string variableID, string originID, string variableType, string variableTitle, string variableInfo)
|
||||
{
|
||||
VariableID = variableID;
|
||||
OriginID = originID;
|
||||
VariableType = variableType;
|
||||
VariableTitle = variableTitle;
|
||||
VariableInfo = variableInfo;
|
||||
}
|
||||
|
||||
public DerivedParam() { }
|
||||
}
|
||||
|
||||
|
||||
public class BookmarkParam
|
||||
{
|
||||
public string BookmarkPage { get; set; }
|
||||
public string BookmarkID { get; set; }
|
||||
public string BookmarkTitle { get; set; }
|
||||
public string BookmarkInfo { get; set; }
|
||||
public string BookmarkJson { get; set; }
|
||||
public string IsOpen { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// BookmarkParam 설정
|
||||
/// </summary>
|
||||
/// <param name="bookmarkPage">TABULATION, CROSSTAB</param>
|
||||
/// <param name="bookmarkID">북마크 ID</param>
|
||||
/// <param name="bookmarkTitle">북마크 제목</param>
|
||||
/// <param name="bookmarkInfo">북마크 설명</param>
|
||||
/// <param name="bookmarkJson">북마크 정보</param>
|
||||
/// <param name="isOpen">공개/비공개</param>
|
||||
public BookmarkParam(string bookmarkPage, string bookmarkID, string bookmarkTitle, string bookmarkInfo, string bookmarkJson, string isOpen)
|
||||
{
|
||||
BookmarkPage = bookmarkPage;
|
||||
BookmarkID = bookmarkID;
|
||||
BookmarkTitle = bookmarkTitle;
|
||||
BookmarkInfo = bookmarkInfo;
|
||||
BookmarkJson = bookmarkJson;
|
||||
IsOpen = isOpen;
|
||||
}
|
||||
|
||||
public BookmarkParam() { }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user