nr 구매 제한 기능 추가

- 트리거를 이용하여 기존 프로그램 사용자도 오류가 발생하도록 함
This commit is contained in:
backuppc
2025-12-12 11:06:13 +09:00
parent 77f1ddab80
commit 890e6edab4
20 changed files with 1787 additions and 216 deletions

View File

@@ -599,6 +599,7 @@ namespace Project.Web
}
break;
// ===== JobReport API (JobReport 뷰/테이블) =====
case "JOBREPORT_GET_LIST":
{
@@ -607,9 +608,10 @@ namespace Project.Web
string uid = json.uid ?? "";
string cate = json.cate ?? ""; // 사용안함 (호환성)
string searchKey = json.searchKey ?? "";
string requestId = json.requestId;
Console.WriteLine($"[WS] JOBREPORT_GET_LIST: sd={sd}, ed={ed}, uid={uid}, searchKey={searchKey}");
string result = _bridge.Jobreport_GetList(sd, ed, uid, cate, searchKey);
var response = new { type = "JOBREPORT_LIST_DATA", data = JsonConvert.DeserializeObject(result) };
var response = new { type = "JOBREPORT_LIST_DATA", data = JsonConvert.DeserializeObject(result), requestId = requestId };
await Send(socket, JsonConvert.SerializeObject(response));
}
break;
@@ -1199,6 +1201,43 @@ namespace Project.Web
}
break;
// ===== HolidayRequest API (휴가/외출 신청) =====
case "HOLIDAY_REQUEST_GET_LIST":
{
string startDate = json.startDate ?? "";
string endDate = json.endDate ?? "";
string userId = json.userId ?? "";
int userLevel = json.userLevel ?? 0;
string result = _bridge.HolidayRequest_GetList(startDate, endDate, userId, userLevel);
var response = new { type = "HOLIDAY_REQUEST_LIST_DATA", data = JsonConvert.DeserializeObject(result) };
await Send(socket, JsonConvert.SerializeObject(response));
}
break;
case "HOLIDAY_REQUEST_SAVE":
{
int idx = json.idx ?? 0;
string uid = json.uid ?? "";
string cate = json.cate ?? "";
string sdate = json.sdate ?? "";
string edate = json.edate ?? "";
string remark = json.remark ?? "";
string responseMsg = json.response ?? "";
int conf = json.conf ?? 0;
string holyReason = json.holyReason ?? "";
string holyBackup = json.holyBackup ?? "";
string holyLocation = json.holyLocation ?? "";
decimal holyDays = json.holyDays ?? 0;
decimal holyTimes = json.holyTimes ?? 0;
string stime = json.stime ?? "";
string etime = json.etime ?? "";
string result = _bridge.HolidayRequest_Save(idx, uid, cate, sdate, edate, remark, responseMsg, conf, holyReason, holyBackup, holyLocation, holyDays, holyTimes, stime, etime);
var response = new { type = "HOLIDAY_REQUEST_SAVED", data = JsonConvert.DeserializeObject(result) };
await Send(socket, JsonConvert.SerializeObject(response));
}
break;
// ===== MailForm API (메일양식) =====
case "MAILFORM_GET_LIST":
{