| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using SuperAdmin.Controllers;
- using SuperAdmin.Models.Http;
- namespace SuperAdmin.Source
- {
- public class LumilotoUtils
- {
- private static readonly log4net.ILog log = log4net.LogManager.GetLogger(typeof(Program));
-
- public class GameIds
- {
- public const string LUCKY_POWER = "1";
- public const string LUCKY_DAY = "2";
- public const string LUCKY_PLUS = "3";
- }
- public class ResultOrder
- {
- public static String asc = "asc";
- public static String desc = "desc";
- }
- //1: lấy các term đang cho phép mia ticket
- //2: lấy các term đã khóa, không cho mua ticket, đang đợi quay thưởng hoặc nhập giải thưởng(LuckyPower)
- //3: đã chấp nhận kết quả
- //4: kế quả bị từ chối, đợi nhập lại
- //5:. đã nhập kết quả và đợi phê duyệt kết quả
- public class GetTermStatus
- {
- public const string available = "1";
- public const string waitResult = "2";
- public const string accepted = "3";
- public const string rejected = "4";
- public const string waitApproved = "5";
- }
- public class PaidStatus
- {
- public const string notYetPaid = "0";
- public const string alreadyPaid = "1";
- public const string paying = "2";
- public const string paidError = "3";
- }
- public class ExportActionType
- {
- //0=delete data,1=start upload data,2=finish upload data xong, doi duyet,3=reject,4= delete export;5=duyệt
- public const string deleteData = "0";
- public const string startUpload = "1";
- public const string finishUpload = "2";
- public const string rejected = "3";
- public const string deleted = "4";
- public const string approved = "5";
- }
- public class ExportStatus
- {
- //<option value = "0" > Draft </ option >
- // < option value="1">Uploading</option>
- // <option value = "2" > Finish upload</option>
- // <option value = "3" > Rejected </ option >
- // < option value="4">Deleted</option>
- // <option value = "5" > Approved </ option >
- public const string draft = "0";
- public const string startUpload = "1";
- public const string finishUpload = "2";
- public const string rejected = "3";
- public const string deleted = "4";
- public const string approved = "5";
- public const string addingMoney = "6";
- public const string finishAddMoney = "7";
- }
- public class LuckyPowerResultStatus
- {
- public const string waitApprove = "0";
- public const string rejected = "1";
- public const string approved = "2";
- }
- public class ExportType
- {
- //1=Lấy danh sách người trúng thưởng từ hệ thống ,
- //2=lấy danh sách từ file upload
- //3=lấy danh sách người trúng thưởng có trong hệ thống mà ko có trong file import
- //4=lấy danh sách có trong file import mà ko có trong hệ thống
- public static string fromSystem = "1";
- public static string fromUploadFile = "2";
- public static string sysWithoutImport = "3";
- public static string importWithoutSys = "4";
- }
- public class RequestCommand
- {
- public static String CustomerSync = "CustomerSync";
- public static String bet = "bet";
- public static String getTernList = "getTernList";
- public static String checkPin = "checkPin";
- public static String sendOtp = "sendOtp";
- public static String confirmCus = "confirmCus";
- public static String confirmOtp = "confirmOtp";
- public static String getParam = "getParam";
- }
- public class WsType
- {
- public const String ExportGetList = "wsExportGetList";
- public const String ExportInsertData = "wsExportInsertData";
- public const String GetTermList = "wsGetTermList";
- public const String LkpwResultUpdate = "wsLkpwResultUpdate";
- public const String LkpwResultGetHis = "wsLkpwResultGetHis";
- public const String ExportCreated = "wsExportCreated";
- public const String ExportAction = "wsExportAction";
- public const String ExportWinnerGetData = "wsExportWinnerGetData";
- public const String ExportWinnerGetDataById = "wsExportWinnerGetDataById";
- public const String ExportGetHis = "wsExportGetHis";
- public const String BlackInsertData = "wsBlackInsertData";
- public const String BackListGetList = "wsBackListGetList";
- public const String TrafficDayGet = "wsTrafficDayGet";
- public const String MsisdnSearch = "wsMsisdnSearch";
- public const String LockUser = "wsLockUser";
- public const String GetTicketInfo = "wsGetTicketInfo";
- public const String GetTrafficTotal = "wsGetTrafficTotal";
- public const String GetTopPlayer = "wsGetTopPlayer";
- public const String Executes = "wsExecutes";
- public const String TermResult = "urlTermresult";
- public const String ReportByTerm = "urlReportByTerm";
- public const String RevenueTotal = "urlRevenueTotal";
- public const String RevenueDetail = "urlRevenueDetail";
- public const String RewardTotal = "urlRewardTotal";
- public const String RewardDetail = "urlRewardDetail";
- }
- public static String GetGameName(string gameId)
- {
- switch (gameId)
- {
- case GameIds.LUCKY_DAY:
- return "Lucky Day";
- case GameIds.LUCKY_POWER:
- return "Lucky Power";
- case GameIds.LUCKY_PLUS:
- return "Lucky Plus";
- case "-1":
- return "All games";
- }
- return "";
- }
- public static String GetStatusExportName(string status)
- {
- switch (status)
- {
- case ExportActionType.deleteData:
- return "Not upload";
- case ExportActionType.startUpload:
- return "Uploading";
- case ExportActionType.finishUpload:
- return "Wait approving";
- case ExportActionType.rejected:
- return "Rejected";
- case ExportActionType.deleted:
- return "Deleted";
- case ExportActionType.approved:
- return "Approved";
- }
- return "";
- }
- public static String GetStatusPaid(string status)
- {
- switch (status)
- {
- case PaidStatus.notYetPaid:
- return "Not yet paid";
- case PaidStatus.alreadyPaid:
- return "Already paid";
- case PaidStatus.paying:
- return "Paying";
- case PaidStatus.paidError:
- return "PaidError";
- }
- return "";
- }
- public static String GetGameId(string gameName)
- {
- gameName = gameName.ToUpper().Trim();
- switch (gameName)
- {
- case "LUCKY DAY":
- return GameIds.LUCKY_DAY;
- case "LUCKY POWER":
- return GameIds.LUCKY_POWER;
- case "LUCKY PLUS":
- return GameIds.LUCKY_PLUS;
- }
- return "";
- }
- }
- }
|