public void Update() { foreach (Touch touch in Input.touches) { r = uiCamera.ScreenPointToRay(touch.position); if (Physics.Raycast(r, out hit, Mathf.Infinity, 1 << 5)) { if (hit.transform.gameObject.name == "spr_touchPad") { touchMovingX = touch.deltaPosition.x; touchMovingY = touch.deltaPosition.y; TouchRotation(); SysLogManager.SetLogMessage("Touch Pos (X,Y) : " + touch.position.x + "," + touch.position.y); SysLogManager.SetLogMessage("Hit Pos (X,Y) : " + hit.transform.position.x + "," + hit.transform.position.y); SysLogManager.SetLogMessage("Cur Touch ID : " + UICamera.currentTouchID); SysLogManager.SetLogMessage("All Touches : " + Input.touchCount); } } } // test code by jjw if (movingCharacterFlag == true) { MovingCharacter(); } }
public void ExportLogs(string rname, string optype, string module, string ip, DateTime?stime, DateTime?etime) { int total; var list = new SysLogManager().GetLogs(out total, CurrentTenant.TenantId, rname, optype, module, ip, stime, etime, 1, int.MaxValue); var dt = new System.Data.DataTable(); dt.Columns.Add(RetechWing.LanguageResources.Common.YxtNum); dt.Columns.Add(RetechWing.LanguageResources.ReportLanguage.Operator); dt.Columns.Add(RetechWing.LanguageResources.ReportLanguage.OperatorTime); dt.Columns.Add(RetechWing.LanguageResources.ReportLanguage.IPaddress); dt.Columns.Add(RetechWing.LanguageResources.ReportLanguage.OperatorType); dt.Columns.Add(RetechWing.LanguageResources.ReportLanguage.OperationProgram); dt.Columns.Add(RetechWing.LanguageResources.ReportLanguage.SubmitData); foreach (var log in list) { dt.Rows.Add(log.RowIndex, log.Realname, log.LogTime, log.ClientIp, log.DescLocalLanguage, log.ModuleLocalLanguage, log.RequestData); } var dtList = new List <DataTable>(); dtList.Add(dt); string strFileName = DateTime.Now.ToString("yyyyMMddHHmmss"); export.ExportChart(new List <ChartModel>(), dtList, HttpContext, strFileName); }
public void SaveGame() { lzf_Compression = new LZF(); UnityThreadHelper.Dispatcher.Dispatch(() => { // 월드 오브젝트에서 컴포넌트 추출. getWorld = GameObject.Find("World"); m_world = getWorld.GetComponent("World") as World; }); // Init GameData class gameWorldData = new GameData(); // 게임월드 배열을 저장 게임데이터로 옴긴다. gameWorldData.Flatten3dArray(m_world); // 압축시작. lzf_Compression.Compress(gameWorldData.GetWorldData(), gameWorldData.GetWorldData().Length, gameWorldData.GetSaveByteArray(), ConstantGroup.saveBtyeArraySize); // 파일 생성. BinaryFormatter bf = new BinaryFormatter(); FileStream fileStream = File.Open(fileDirectory, FileMode.OpenOrCreate); // 시리얼라이징. bf.Serialize(fileStream, gameWorldData); fileStream.Close(); UnityThreadHelper.Dispatcher.Dispatch(() => { SysLogManager.SetLogMessage("<SYSTEM> : 현재 내용이 저장되었습니다. "); }); }
public ActionResult SysMobileLogDetail(int id) { var log = new SysLogManager().GetLogById(id); var roles = _roleManager.GetRolesForUser(log.Opener); ViewBag.roleNames = roles.Select(p => p.RoleName); return(View(log)); }
public SysOperationLog_Collection QuerySysOperationList(string menuName, string userId, string operUserId, DateTime startTime, DateTime endTimen, int pageIndex, int pageSize) { using (var manager = new SysLogManager()) { int totalCount = 0; SysOperationLog_Collection collection = new SysOperationLog_Collection(); var result = manager.QuerySysOperationList(menuName, userId, operUserId, startTime, endTimen, pageIndex, pageSize, out totalCount); collection.TotalCount = totalCount; collection.LogInfoList = result; return(collection); } }
public void AddSysOperationLog(string userId, string operUserId, string menuName, string desc) { using (var manager = new SysLogManager()) { manager.AddSysOperationLog(new External.Domain.Entities.AdminMenu.SysOperationLog { UserId = userId, OperUserId = operUserId, CreateTime = DateTime.Now, Description = desc, MenuName = menuName, }); } }
public override void OnActionExecuted(ActionExecutedContext filterContext) { base.OnActionExecuted(filterContext); var log = new RetechWing.Infrastructure.SysLog(); var currentUser = GetCurrentUser(); log.LogTime = System.DateTime.Now; log.Opener = currentUser.UserId; log.ClientIp = WebClient.GetClientIp(); log.ClientType = filterContext.HttpContext.Request.Browser.Browser + " " + filterContext.HttpContext.Request.Browser.Version; log.RequestData = GetRequestParams(filterContext.HttpContext.Request); log.RequestUrl = filterContext.HttpContext.Request.RawUrl; log.TenantId = currentUser.TenantId; log.TableDesc = TableDescription; log.TableName = TableName; log.Description = Description; if (IsFileUpload) { if (filterContext.HttpContext.Request.Files.Count > 0 && filterContext.HttpContext.Request.Files[DataIdentity] != null) { log.DataId = filterContext.HttpContext.Request.Files[DataIdentity].FileName; } } else { log.DataId = filterContext.HttpContext.Request.Params[DataIdentity]; if (string.IsNullOrEmpty(Description)) { if (string.IsNullOrEmpty(log.DataId) || log.DataId == "0") { log.Description = "新增"; } else { log.Description = "修改"; } } else { log.Description = Description; } } log.ModuleName = ModuleName; log.LogType = 0; SysLogManager logManager = new SysLogManager(); logManager.AddLog(log); }
public ActionResult SysLogDetail(int id) { var log = new SysLogManager().GetLogById(id); if (log.Opener == 0) { //系统管理员 ViewBag.roleNames = new[] { "系统管理员" }; } else { var roles = _roleManager.GetRolesForUser(log.Opener); ViewBag.roleNames = roles.Select(p => p.RoleName); } return(View(log)); }
public JsonResult GetMobileLogs(string rname, string module, string ip, string mobileName, string mobileModel, string networkStatus, DateTime?stime, DateTime?etime, int pageIndex, int pageSize) { int total; var list = new SysLogManager().GetMobileLogs(out total, CurrentTenant.TenantId, rname, module, ip, mobileName, mobileModel, networkStatus, stime, etime, pageIndex, pageSize); var dataList = list.Select(p => new { p.RowIndex, p.LogId, p.Realname, LogTime = p.LogTime.ToString("yyyy-MM-dd HH:mm:ss"), p.ClientIp, p.ModuleName, p.MobileName, p.MobileModel, p.NetworkStatus, p.RequestData }); return(Json(new { dataList, recordCount = total }, JsonRequestBehavior.AllowGet)); }
public JsonResult GetLogs(string rname, string optype, string module, string ip, DateTime?stime, DateTime?etime, int pageIndex, int pageSize) { int total; var list = new SysLogManager().GetLogs(out total, CurrentTenant.TenantId, rname, optype, module, ip, stime, etime, pageIndex, pageSize); var dataList = list.Select(p => new { p.RowIndex, p.LogId, p.Realname, LogTime = p.LogTime.ToString("yyyy-MM-dd HH:mm:ss"), p.ClientIp, ModuleName = p.ModuleLocalLanguage, Description = p.DescLocalLanguage, p.RequestData, p.TableName }); return(Json(new { dataList, recordCount = total }, JsonRequestBehavior.AllowGet)); }
// 저장된 게임맵 data를 로드합니다. public void LoadGameMapData() { byte[] loadByteArray = new byte[worldX * worldY * worldZ]; data = new byte[worldX, worldY, worldZ]; loadByteArray = saveAndLoadManager.GetGameLoadData().GetLoadByteArray(); for (int x = 0; x < worldX; x++) { for (int y = 0; y < worldY; y++) { for (int z = 0; z < worldZ; z++) { data[x, y, z] = loadByteArray[x + worldY * (y + worldZ * z)]; } } } UnityThreadHelper.Dispatcher.Dispatch(() => { // 월드 데이터 로딩이 완료되었다. saveAndLoadManager.SetIsLoaded(false); SysLogManager.SetLogMessage("<SYSTEM> : 저장내용을 불러왔습니다. "); }); }