- WebView2 HostObject 기반 MachineBridge 브릿지 클래스 추가 - MachineBridge.cs (메인), Login, Dashboard, Todo, Common, Jobreport, Kuntae, Project 모듈 - WebSocketServer.cs 추가 (실시간 통신용) - fDashboardNew 다이얼로그 추가 - Jobreport/index.html, Project/index.html의 fetch API를 machine HostObject 호출로 전환 - DashBoardController.cs의 gcode null 처리 추가 - 사용하지 않는 파일 삭제 (navigation.html, common-nav.js, navigation.js, _add_to_project.py, _project_updater.js) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
43 lines
1.0 KiB
C#
43 lines
1.0 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Windows.Forms;
|
|
using Newtonsoft.Json;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Collections.Generic;
|
|
using System.Net;
|
|
using System.Net.NetworkInformation;
|
|
using System.Data;
|
|
using System.Data.SqlClient;
|
|
using FCOMMON;
|
|
using Project.Web.Model;
|
|
|
|
namespace Project.Web
|
|
{
|
|
// Important: Allows JavaScript to see this class
|
|
[ClassInterface(ClassInterfaceType.AutoDual)]
|
|
[ComVisible(true)]
|
|
public partial class MachineBridge
|
|
{
|
|
// Reference to the main form to update logic
|
|
private Dialog.fDashboardNew _host;
|
|
|
|
public MachineBridge(Dialog.fDashboardNew host)
|
|
{
|
|
_host = host;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 로그인 결과 클래스
|
|
/// </summary>
|
|
public class LoginResult
|
|
{
|
|
public bool Success { get; set; }
|
|
public string Message { get; set; }
|
|
public string RedirectUrl { get; set; }
|
|
public string UserName { get; set; }
|
|
public string VersionWarning { get; set; }
|
|
}
|
|
}
|