Add Dashboard todo edit/delete/complete features and Note view count tracking

This commit is contained in:
backuppc
2025-12-02 15:03:51 +09:00
parent 6a2485176b
commit e82f86191a
25 changed files with 3512 additions and 324 deletions

View File

@@ -836,6 +836,99 @@ namespace Project.Web
break;
// ===== Note API (메모장) =====
case "NOTE_GET_LIST":
{
string startDate = json.startDate ?? "";
string endDate = json.endDate ?? "";
string uid = json.uid ?? "";
string result = _bridge.Note_GetList(startDate, endDate, uid);
var response = new { type = "NOTE_LIST_DATA", data = JsonConvert.DeserializeObject(result) };
await Send(socket, JsonConvert.SerializeObject(response));
}
break;
case "NOTE_GET_DETAIL":
{
int idx = json.idx ?? 0;
string result = _bridge.Note_GetDetail(idx);
var response = new { type = "NOTE_DETAIL_DATA", data = JsonConvert.DeserializeObject(result) };
await Send(socket, JsonConvert.SerializeObject(response));
}
break;
case "NOTE_ADD":
{
string pdate = json.pdate ?? "";
string title = json.title ?? "";
string uid = json.uid ?? "";
string description = json.description ?? "";
string description2 = json.description2 ?? "";
bool share = json.share ?? false;
string guid = json.guid ?? "";
string result = _bridge.Note_Add(pdate, title, uid, description, description2, share, guid);
var response = new { type = "NOTE_ADDED", data = JsonConvert.DeserializeObject(result) };
await Send(socket, JsonConvert.SerializeObject(response));
}
break;
case "NOTE_EDIT":
{
int idx = json.idx ?? 0;
string pdate = json.pdate ?? "";
string title = json.title ?? "";
string uid = json.uid ?? "";
string description = json.description ?? "";
string description2 = json.description2 ?? "";
bool share = json.share ?? false;
string guid = json.guid ?? "";
string result = _bridge.Note_Edit(idx, pdate, title, uid, description, description2, share, guid);
var response = new { type = "NOTE_EDITED", data = JsonConvert.DeserializeObject(result) };
await Send(socket, JsonConvert.SerializeObject(response));
}
break;
case "NOTE_DELETE":
{
int idx = json.idx ?? 0;
string result = _bridge.Note_Delete(idx);
var response = new { type = "NOTE_DELETED", data = JsonConvert.DeserializeObject(result) };
await Send(socket, JsonConvert.SerializeObject(response));
}
break;
// ===== Board API (게시판 - 패치내역 등) =====
case "BOARD_GET_LIST":
{
int bidx = json.bidx ?? 5;
string searchKey = json.searchKey ?? "";
string result = _bridge.Board_GetList(bidx, searchKey);
var response = new { type = "BOARD_LIST_DATA", data = JsonConvert.DeserializeObject(result) };
await Send(socket, JsonConvert.SerializeObject(response));
}
break;
case "BOARD_GET_DETAIL":
{
int idx = json.idx ?? 0;
string result = _bridge.Board_GetDetail(idx);
var response = new { type = "BOARD_DETAIL_DATA", data = JsonConvert.DeserializeObject(result) };
await Send(socket, JsonConvert.SerializeObject(response));
}
break;
// ===== Mail API (메일 발신 내역) =====
case "MAIL_GET_LIST":
{
string startDate = json.startDate ?? "";
string endDate = json.endDate ?? "";
string searchKey = json.searchKey ?? "";
string result = _bridge.Mail_GetList(startDate, endDate, searchKey);
var response = new { type = "MAIL_LIST_DATA", data = JsonConvert.DeserializeObject(result) };
await Send(socket, JsonConvert.SerializeObject(response));
}
break;
// ===== Holiday API (월별근무표) =====
case "HOLIDAY_GET_LIST":
{