CommonObj.cs 20 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091
  1. using Newtonsoft.Json;
  2. using System.Text.Json.Serialization;
  3. namespace ConvertLog.common
  4. {
  5. public class CommonObj
  6. {
  7. public CommonObj()
  8. {
  9. }
  10. }
  11. public class LoginResponse
  12. {
  13. [JsonProperty("id")]
  14. public string id { get; set; }
  15. [JsonProperty("fullName")]
  16. public string fullName { get; set; }
  17. [JsonProperty("role")]
  18. public string role { get; set; }
  19. [JsonProperty("isActive")]
  20. public string isActive { get; set; }
  21. }
  22. public class structPrizeObj
  23. {
  24. [JsonProperty("id")]
  25. public string id { get; set; }
  26. [JsonProperty("code")]
  27. public string code { get; set; }
  28. [JsonProperty("name")]
  29. public string name { get; set; }
  30. [JsonProperty("display")]
  31. public string display { get; set; }
  32. [JsonProperty("money")]
  33. public string money { get; set; }
  34. [JsonProperty("groupId")]
  35. public string groupId { get; set; }
  36. [JsonProperty("groupName")]
  37. public string groupName { get; set; }
  38. }
  39. public class structPrizeDisPlayObj: structPrizeObj
  40. {
  41. [JsonProperty("totalDrawThisMonth")]
  42. public string totalDrawThisMonth { get; set; }
  43. [JsonProperty("totalMoneyThisMonth")]
  44. public string totalMoneyThisMonth { get; set; }
  45. [JsonProperty("totalDrawPreviousMonth")]
  46. public string totalDrawPreviousMonth { get; set; }
  47. [JsonProperty("totalMoneyPreviousMonth")]
  48. public string totalMoneyPreviousMonth { get; set; }
  49. [JsonProperty("totalDrawThisMonthMore")]
  50. public string totalDrawThisMonthMore { get; set; }
  51. [JsonProperty("totalMoneyThisMonthMore")]
  52. public string totalMoneyThisMonthMore { get; set; }
  53. [JsonProperty("unitOfPrize")]
  54. public string unitOfPrize { get; set; }
  55. [JsonProperty("length")]
  56. public string length { get; set; }
  57. [JsonProperty("unitOfPrizeThisMonth")]
  58. public string unitOfPrizeThisMonth { get; set; }
  59. [JsonProperty("unitOfPrizePreviousMonth")]
  60. public string unitOfPrizePreviousMonth { get; set; }
  61. [JsonProperty("unitOfPrizeThisMonthMore")]
  62. public string unitOfPrizeThisMonthMore { get; set; }
  63. }
  64. public class prizeOfTermObj
  65. {
  66. [JsonProperty("id")]
  67. public string id { get; set; }
  68. [JsonProperty("termId")]
  69. public string termId { get; set; }
  70. [JsonProperty("prizeId")]
  71. public string prizeId { get; set; }
  72. [JsonProperty("prizeName")]
  73. public string prizeName { get; set; }
  74. [JsonProperty("prizeDisplay")]
  75. public string prizeDisplay { get; set; }
  76. [JsonProperty("prizeDisplayNew")]
  77. public string prizeDisplayNew { get; set; }
  78. [JsonProperty("groupId")]
  79. public string groupId { get; set; }
  80. [JsonProperty("groupName")]
  81. public string groupName { get; set; }
  82. [JsonProperty("prizeMoney")]
  83. public string prizeMoney { get; set; }
  84. [JsonProperty("prizeType")]
  85. public string prizeType { get; set; }
  86. [JsonProperty("prizeStatus")]
  87. public string prizeStatus { get; set; }
  88. [JsonProperty("drawStatus")]
  89. public string drawStatus { get; set; }
  90. [JsonProperty("totalDraw")]
  91. public string totalDraw { get; set; }
  92. [JsonProperty("totalDrawAll")]
  93. public string totalDrawAll { get; set; }
  94. [JsonProperty("totalDrawAccept")]
  95. public string totalDrawAccept { get; set; }
  96. [JsonProperty("totalDrawAcceptOrder")]
  97. public string totalDrawAcceptOrder { get; set; }
  98. [JsonProperty("totalDrawRemain")]
  99. public string totalDrawRemain { get; set; }
  100. [JsonProperty("totalDrawReject")]
  101. public string totalDrawReject { get; set; }
  102. [JsonProperty("totalDrawClear")]
  103. public string totalDrawClear { get; set; }
  104. [JsonProperty("totalDrawSold")]
  105. public string totalDrawSold { get; set; }
  106. [JsonProperty("totalDrawUnsold")]
  107. public string totalDrawUnsold { get; set; }
  108. [JsonProperty("totalDrawUnprint")]
  109. public string totalDrawUnprint { get; set; }
  110. [JsonProperty("prResult")]
  111. public string prResult { get; set; }
  112. [JsonProperty("prResultStatus")]
  113. public string prResultStatus { get; set; }
  114. [JsonProperty("prResultStatusMsg")]
  115. public string prResultStatusMsg { get; set; }
  116. [JsonProperty("prTotalSold")]
  117. public string prTotalSold { get; set; }
  118. [JsonProperty("prTotalUnsold")]
  119. public string prTotalUnsold { get; set; }
  120. [JsonProperty("prStrReplace")]
  121. public string prStrReplace { get; set; }
  122. [JsonProperty("prStrLength")]
  123. public string prStrLength { get; set; }
  124. [JsonProperty("prIsMore")]
  125. public string prIsMore { get; set; }
  126. [JsonProperty("prWaiwaiStrResult")]
  127. public string prWaiwaiStrResult { get; set; }
  128. [JsonProperty("nowResult")]
  129. public string nowResult { get; set; }
  130. [JsonProperty("nowResultEn")]
  131. public string nowResultEn { get; set; }
  132. [JsonProperty("nowResultStatus")]
  133. public string nowResultStatus { get; set; }
  134. [JsonProperty("nowResultStatusMsg")]
  135. public string nowResultStatusMsg { get; set; }
  136. [JsonProperty("nowTotalSold")]
  137. public string nowTotalSold { get; set; }
  138. [JsonProperty("nowTotalUnsold")]
  139. public string nowTotalUnsold { get; set; }
  140. [JsonProperty("nowStrReplace")]
  141. public string nowStrReplace { get; set; }
  142. [JsonProperty("nowStrLength")]
  143. public string nowStrLength { get; set; }
  144. [JsonProperty("nowIsMore")]
  145. public string nowIsMore { get; set; }
  146. [JsonProperty("nowWaiwaiStrResult")]
  147. public string nowWaiwaiStrResult { get; set; }
  148. [JsonProperty("termOnline")]
  149. public string termOnline { get; set; }
  150. [JsonProperty("totalMoreDraw")]
  151. public string totalMoreDraw { get; set; }
  152. [JsonProperty("prizeOrder")]
  153. public string prizeOrder { get; set; }
  154. [JsonProperty("prizeUnit")]
  155. public string prizeUnit { get; set; }
  156. [JsonProperty("timeUpdateResult")]
  157. public string timeUpdateResult { get; set; }
  158. [JsonProperty("secondWating")]
  159. public string secondWating { get; set; }
  160. [JsonProperty("status")]
  161. public string status { get; set; }
  162. }
  163. public class prizeInReqeustObj
  164. {
  165. [JsonProperty("termId")]
  166. public string termId { get; set; }
  167. [JsonProperty("type")]
  168. public string type { get; set; }
  169. [JsonProperty("data")]
  170. public List<prizeInObj> data { get; set; }
  171. }
  172. public class prizeInObj
  173. {
  174. //code
  175. [JsonProperty("prizeId")]
  176. public string prizeId { get; set; }
  177. [JsonProperty("totalDraw")]
  178. public string totalDraw { get; set; }
  179. //Nhung truong sau day them moi
  180. [JsonProperty("prizeTypeId")]
  181. public string prizeTypeId { get; set; }
  182. [JsonProperty("prizeTypeName")]
  183. public string prizeTypeName { get; set; }
  184. [JsonProperty("prizeMoney")]
  185. public string prizeMoney { get; set; }
  186. [JsonProperty("prizeCode")]
  187. public string prizeCode { get; set; }
  188. [JsonProperty("prizeNameEn")]
  189. public string prizeNameEn { get; set; }
  190. [JsonProperty("prizeNameMy")]
  191. public string prizeNameMy { get; set; }
  192. [JsonProperty("prizeNumBall")]
  193. public string prizeNumBall { get; set; }
  194. [JsonProperty("prizeNum")]
  195. public string prizeNum { get; set; }
  196. [JsonProperty("prizeTermIdIrd")]
  197. public string prizeTermIdIrd { get; set; }
  198. [JsonProperty("prizeOrder")]
  199. public string prizeOrder { get; set; }
  200. }
  201. public class uploadObj
  202. {
  203. [JsonProperty("id")]
  204. public string id { get; set; }
  205. [JsonProperty("termId")]
  206. public string termId { get; set; }
  207. [JsonProperty("type")]
  208. public string type { get; set; }
  209. [JsonProperty("createDate")]
  210. public string createDate { get; set; }
  211. [JsonProperty("status")]
  212. public string status { get; set; }
  213. [JsonProperty("totalFile")]
  214. public string totalFile { get; set; }
  215. [JsonProperty("totalRecord")]
  216. public string totalRecord { get; set; }
  217. [JsonProperty("totalSuccess")]
  218. public string totalSuccess { get; set; }
  219. [JsonProperty("totalFalse")]
  220. public string totalFalse { get; set; }
  221. [JsonProperty("listFile")]
  222. public List<uploadFileObj> listFile { get; set; }
  223. }
  224. public class uploadFileObj
  225. {
  226. [JsonProperty("id")]
  227. public string id { get; set; }
  228. [JsonProperty("fileId")]
  229. public string fileId { get; set; }
  230. [JsonProperty("fileName")]
  231. public string fileName { get; set; }
  232. [JsonProperty("status")]
  233. public string status { get; set; }
  234. [JsonProperty("totalRecord")]
  235. public string totalRecord { get; set; }
  236. [JsonProperty("totalRecordSucess")]
  237. public string totalRecordSucess { get; set; }
  238. [JsonProperty("totalRecordFalse")]
  239. public string totalRecordFalse { get; set; }
  240. [JsonProperty("createDate")]
  241. public string createDate { get; set; }
  242. [JsonProperty("startDate")]
  243. public string startDate { get; set; }
  244. [JsonProperty("endDate")]
  245. public string endDate { get; set; }
  246. [JsonProperty("termUploadId")]
  247. public string termUploadId { get; set; }
  248. }
  249. public class uploadFileReqeustObj: ResponseCommon
  250. {
  251. [JsonProperty("termUploadId")]
  252. public string termUploadId { get; set; }
  253. [JsonProperty("data")]
  254. public List<fileInObj> data { get; set; }
  255. }
  256. public class fileInObj: ResponseCommon
  257. {
  258. [JsonProperty("fileId")]
  259. public string fileId { get; set; }
  260. [JsonProperty("fileName")]
  261. public string fileName { get; set; }
  262. }
  263. public class ResponseCommon
  264. {
  265. public ResponseCommon()
  266. {
  267. this.errorCode = "2910";
  268. this.message = "System update";
  269. this.httpStatusCode = "200";
  270. }
  271. public ResponseCommon(string _errCode, string _msg)
  272. {
  273. this.errorCode = _errCode;
  274. this.message = _msg;
  275. }
  276. [JsonProperty("errorCode")]
  277. public string errorCode { get; set; }
  278. [JsonProperty("message")]
  279. public string message { get; set; }
  280. //[JsonProperty("httpStatusCode")]
  281. [System.Text.Json.Serialization.JsonIgnore(Condition = JsonIgnoreCondition.Always)]
  282. public string httpStatusCode { get; set; }
  283. }
  284. public class resultOfTermObj
  285. {
  286. [JsonProperty("id")]
  287. public string id { get; set; }
  288. [JsonProperty("code")]
  289. public string code { get; set; }
  290. [JsonProperty("name")]
  291. public string name { get; set; }
  292. [JsonProperty("display")]
  293. public string display { get; set; }
  294. [JsonProperty("money")]
  295. public string money { get; set; }
  296. [JsonProperty("groupId")]
  297. public string groupId { get; set; }
  298. [JsonProperty("groupName")]
  299. public string groupName { get; set; }
  300. [JsonProperty("result")]
  301. public string result { get; set; }
  302. }
  303. public class resultOfTermObjV2
  304. {
  305. [JsonProperty("prizeId")]
  306. public string prizeId { get; set; }
  307. [JsonProperty("prizeName")]
  308. public string prizeName { get; set; }
  309. [JsonProperty("prizeDisplay")]
  310. public string prizeDisplay { get; set; }
  311. [JsonProperty("prizeMoney")]
  312. public string prizeMoney { get; set; }
  313. [JsonProperty("prizeOrder")]
  314. public string prizeOrder { get; set; }
  315. [JsonProperty("prizeResult")]
  316. public string prizeResult { get; set; }
  317. [JsonProperty("prizeResultArr")]
  318. public List<resultObj> prizeResultArr { get; set; }
  319. [JsonProperty("prizeResultThisTerm")]
  320. public string prizeResultThisTerm { get; set; }
  321. [JsonProperty("prizeResultThisTermArr")]
  322. public List<resultObj> prizeResultThisTermArr { get; set; }
  323. [JsonProperty("prizeResultThisMoreTerm")]
  324. public string prizeResultThisMoreTerm { get; set; }
  325. [JsonProperty("prizeResultThisMoreTermArr")]
  326. public List<resultObj> prizeResultThisMoreTermArr { get; set; }
  327. [JsonProperty("prizeResultPreTerm")]
  328. public string prizeResultPreTerm { get; set; }
  329. [JsonProperty("prizeResultPreTermArr")]
  330. public List<resultObj> prizeResultPreTermArr { get; set; }
  331. [JsonProperty("prizeResultMoreTerm")]
  332. public string prizeResultMoreTerm { get; set; }
  333. [JsonProperty("prizeResultMoreTermArr")]
  334. public List<resultObj> prizeResultMoreTermArr { get; set; }
  335. [JsonProperty("groupId")]
  336. public string groupId { get; set; }
  337. [JsonProperty("groupName")]
  338. public string groupName { get; set; }
  339. [JsonProperty("unit")]
  340. public string unit { get; set; }
  341. [JsonProperty("length")]
  342. public string length { get; set; }
  343. [JsonProperty("currentSold")]
  344. public string currentSold { get; set; }
  345. [JsonProperty("currentMoney")]
  346. public string currentMoney { get; set; }
  347. [JsonProperty("perviousSold")]
  348. public string perviousSold { get; set; }
  349. [JsonProperty("perviousMoney")]
  350. public string perviousMoney { get; set; }
  351. [JsonProperty("moreSold")]
  352. public string moreSold { get; set; }
  353. [JsonProperty("moreMoney")]
  354. public string moreMoney { get; set; }
  355. [JsonProperty("totalRevenue")]
  356. public string totalRevenue { get; set; }
  357. [JsonProperty("totalRevenuePri")]
  358. public string totalRevenuePri { get; set; }
  359. [JsonProperty("limitJackport")]
  360. public string limitJackport { get; set; }
  361. [JsonProperty("curentRevenue")]
  362. public string curentRevenue { get; set; }
  363. [JsonProperty("curentRenueWinner")]
  364. public string curentRenueWinner { get; set; }
  365. [JsonProperty("curentJackport")]
  366. public string curentJackport { get; set; }
  367. [JsonProperty("remainJackport")]
  368. public string remainJackport { get; set; }
  369. [JsonProperty("curentOther")]
  370. public string curentOther { get; set; }
  371. [JsonProperty("remainOther")]
  372. public string remainOther { get; set; }
  373. [JsonProperty("irdTerm")]
  374. public string irdTerm { get; set; }
  375. }
  376. public class resultObj
  377. {
  378. [JsonProperty("id")]
  379. public string id { get; set; }
  380. [JsonProperty("ticket")]
  381. public string ticket { get; set; }
  382. [JsonProperty("type")]
  383. public string type { get; set; }
  384. [JsonProperty("action")]
  385. public string action { get; set; }
  386. [JsonProperty("totalSold")]
  387. public string totalSold { get; set; }
  388. [JsonProperty("money")]
  389. public string money { get; set; }
  390. [JsonProperty("totalMoney")]
  391. public string totalMoney { get; set; }
  392. [JsonProperty("isDelete")]
  393. public string isDelete { get; set; }
  394. }
  395. public class importObj
  396. {
  397. [JsonProperty("uploadId")]
  398. public string uploadId { get; set; }
  399. [JsonProperty("uploadDetailId")]
  400. public string uploadDetailId { get; set; }
  401. [JsonProperty("type")]
  402. public string type { get; set; }
  403. [JsonProperty("ticket")]
  404. public string ticket { get; set; }
  405. }
  406. public class oneImportObj
  407. {
  408. [JsonProperty("uploadId")]
  409. public string uploadId { get; set; }
  410. [JsonProperty("uploadDetailId")]
  411. public string uploadDetailId { get; set; }
  412. [JsonProperty("importObjList")]
  413. public List<importObj> importObjList { get; set; }
  414. public oneImportObj(string uploadId, string uploadDetailId, List<importObj> importObjList)
  415. {
  416. this.uploadId = uploadId;
  417. this.uploadDetailId = uploadDetailId;
  418. this.importObjList = importObjList;
  419. }
  420. }
  421. public class totalFileImportObj
  422. {
  423. [JsonProperty("uploadId")]
  424. public string uploadId { get; set; }
  425. [JsonProperty("uploadDetailId")]
  426. public string uploadDetailId { get; set; }
  427. [JsonProperty("totalBlock")]
  428. public string totalBlock { get; set; }
  429. [JsonProperty("totalRow")]
  430. public string totalRow { get; set; }
  431. [JsonProperty("totalRowErr")]
  432. public string totalRowErr { get; set; }
  433. [JsonProperty("isFinsh")]
  434. public string isFinsh { get; set; }
  435. public totalFileImportObj(string uploadId, string uploadDetailId, string totalBlock, string totalRow, string totalRowErr, string isFinsh)
  436. {
  437. this.uploadId = uploadId;
  438. this.uploadDetailId = uploadDetailId;
  439. this.totalBlock = totalBlock;
  440. this.totalRow = totalRow;
  441. this.totalRowErr = totalRowErr;
  442. this.isFinsh = isFinsh;
  443. }
  444. }
  445. public class paramObj
  446. {
  447. [JsonProperty("id")]
  448. public string id { get; set; }
  449. [JsonProperty("code")]
  450. public string code { get; set; }
  451. [JsonProperty("display0")]
  452. public string display0 { get; set; }
  453. [JsonProperty("display1")]
  454. public string display1 { get; set; }
  455. }
  456. public class drawResult
  457. {
  458. public string Id { get; set; }
  459. public double Num { get; set; }
  460. }
  461. public class winnerObj
  462. {
  463. [JsonProperty("ticket")]
  464. public string ticket { get; set; }
  465. [JsonProperty("result")]
  466. public string result { get; set; }
  467. [JsonProperty("prizeName")]
  468. public string prizeName { get; set; }
  469. [JsonProperty("prizeDisplay")]
  470. public string prizeDisplay { get; set; }
  471. [JsonProperty("prizeGroupName")]
  472. public string prizeGroupName { get; set; }
  473. }
  474. public class waiResult
  475. {
  476. [JsonProperty("id")]
  477. public string id { get; set; }
  478. [JsonProperty("result")]
  479. public string result { get; set; }
  480. [JsonProperty("resultLocal")]
  481. public string resultLocal { get; set; }
  482. [JsonProperty("termId")]
  483. public string termId { get; set; }
  484. [JsonProperty("prizeId")]
  485. public string prizeId { get; set; }
  486. [JsonProperty("prizeName")]
  487. public string prizeName { get; set; }
  488. [JsonProperty("prizeDisplay")]
  489. public string prizeDisplay { get; set; }
  490. [JsonProperty("groupId")]
  491. public string groupId { get; set; }
  492. [JsonProperty("groupName")]
  493. public string groupName { get; set; }
  494. [JsonProperty("prizeMoney")]
  495. public string prizeMoney { get; set; }
  496. [JsonProperty("prizeType")]
  497. public string prizeType { get; set; }
  498. [JsonProperty("lSold")]
  499. public List<waiRange> lSold { get; set; }
  500. [JsonProperty("lUnSold")]
  501. public List<waiRange> lUnSold { get; set; }
  502. public waiResult()
  503. {
  504. lSold = new List<waiRange>();
  505. lUnSold = new List<waiRange>();
  506. }
  507. }
  508. public class waiRange
  509. {
  510. [JsonProperty("from")]
  511. public string from { get; set; }
  512. [JsonProperty("to")]
  513. public string to { get; set; }
  514. [JsonProperty("total")]
  515. public string total { get; set; }
  516. [JsonProperty("seq")]
  517. public string seq { get; set; }
  518. }
  519. }