feat: 품목정보 상세 패널 추가 및 프로젝트/근태/권한 기능 확장
- Items: 우측에 이미지, 담당자, 입고/발주내역 패널 추가 (fItems 윈폼 동일) - Project: 목록 및 상세 다이얼로그 구현 - Kuntae: 오류검사/수정 기능 추가 - UserAuth: 사용자 권한 관리 페이지 추가 - UserGroup: 그룹정보 다이얼로그로 전환 - Header: 사용자 메뉴 서브메뉴 방향 수정, 즐겨찾기 기능 - Backend API: Items 상세/담당자/구매내역, 근태 오류검사, 프로젝트 목록 등 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -93,16 +93,19 @@ namespace Project.Web
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 업무일지 상세 조회 (vJobReportForUser 뷰 사용)
|
||||
/// 업무일지 상세 조회 (vJobReportForUser 뷰 + JobReport 테이블 조인)
|
||||
/// </summary>
|
||||
public string Jobreport_GetDetail(int id)
|
||||
{
|
||||
try
|
||||
{
|
||||
var sql = @"SELECT idx, pidx, pdate, id, name, type, svalue, hrs, ot, requestpart, package,
|
||||
userprocess, status, projectName, description, ww, otpms, process
|
||||
FROM vJobReportForUser WITH (nolock)
|
||||
WHERE idx = @idx AND gcode = @gcode";
|
||||
// 뷰에서 기본 정보 조회, 원본 테이블에서 jobgrp, tag 추가 조회
|
||||
var sql = @"SELECT v.idx, v.pidx, v.pdate, v.id, v.name, v.type, v.svalue, v.hrs, v.ot,
|
||||
v.requestpart, v.package, v.userprocess, v.status, v.projectName, v.description,
|
||||
v.ww, v.otpms, v.process, j.jobgrp, j.tag
|
||||
FROM vJobReportForUser v WITH (nolock)
|
||||
INNER JOIN JobReport j WITH (nolock) ON v.idx = j.idx
|
||||
WHERE v.idx = @idx AND v.gcode = @gcode";
|
||||
|
||||
var cs = Properties.Settings.Default.gwcs;
|
||||
using (var cn = new SqlConnection(cs))
|
||||
@@ -137,7 +140,7 @@ namespace Project.Web
|
||||
/// <summary>
|
||||
/// 업무일지 추가 (JobReport 테이블)
|
||||
/// </summary>
|
||||
public string Jobreport_Add(string pdate, string projectName, string requestpart, string package,
|
||||
public string Jobreport_Add(string pdate, string projectName, int pidx, string requestpart, string package,
|
||||
string type, string process, string status, string description, double hrs, double ot, string jobgrp, string tag)
|
||||
{
|
||||
try
|
||||
@@ -152,7 +155,7 @@ namespace Project.Web
|
||||
var sql = @"INSERT INTO JobReport (gcode, uid, pdate, projectName, requestpart, package,
|
||||
type, process, status, description, hrs, ot, jobgrp, tag, wuid, wdate, pidx)
|
||||
VALUES (@gcode, @uid, @pdate, @projectName, @requestpart, @package,
|
||||
@type, @process, @status, @description, @hrs, @ot, @jobgrp, @tag, @wuid, GETDATE(), -1);
|
||||
@type, @process, @status, @description, @hrs, @ot, @jobgrp, @tag, @wuid, GETDATE(), @pidx);
|
||||
SELECT SCOPE_IDENTITY();";
|
||||
|
||||
var cs = Properties.Settings.Default.gwcs;
|
||||
@@ -163,6 +166,7 @@ namespace Project.Web
|
||||
cmd.Parameters.AddWithValue("@uid", info.Login.no);
|
||||
cmd.Parameters.AddWithValue("@pdate", pdate);
|
||||
cmd.Parameters.AddWithValue("@projectName", projectName ?? "");
|
||||
cmd.Parameters.AddWithValue("@pidx", pidx);
|
||||
cmd.Parameters.AddWithValue("@requestpart", requestpart ?? "");
|
||||
cmd.Parameters.AddWithValue("@package", package ?? "");
|
||||
cmd.Parameters.AddWithValue("@type", type ?? "");
|
||||
@@ -189,7 +193,7 @@ namespace Project.Web
|
||||
/// <summary>
|
||||
/// 업무일지 수정 (JobReport 테이블)
|
||||
/// </summary>
|
||||
public string Jobreport_Edit(int idx, string pdate, string projectName, string requestpart, string package,
|
||||
public string Jobreport_Edit(int idx, string pdate, string projectName, int pidx, string requestpart, string package,
|
||||
string type, string process, string status, string description, double hrs, double ot, string jobgrp, string tag)
|
||||
{
|
||||
try
|
||||
@@ -224,7 +228,7 @@ namespace Project.Web
|
||||
}
|
||||
|
||||
var sql = @"UPDATE JobReport SET
|
||||
pdate = @pdate, projectName = @projectName, requestpart = @requestpart,
|
||||
pdate = @pdate, projectName = @projectName, pidx = @pidx, requestpart = @requestpart,
|
||||
package = @package, type = @type, process = @process, status = @status,
|
||||
description = @description, hrs = @hrs, ot = @ot, jobgrp = @jobgrp, tag = @tag,
|
||||
wuid = @wuid, wdate = GETDATE()
|
||||
@@ -238,6 +242,7 @@ namespace Project.Web
|
||||
cmd.Parameters.AddWithValue("@gcode", info.Login.gcode);
|
||||
cmd.Parameters.AddWithValue("@pdate", pdate);
|
||||
cmd.Parameters.AddWithValue("@projectName", projectName ?? "");
|
||||
cmd.Parameters.AddWithValue("@pidx", pidx);
|
||||
cmd.Parameters.AddWithValue("@requestpart", requestpart ?? "");
|
||||
cmd.Parameters.AddWithValue("@package", package ?? "");
|
||||
cmd.Parameters.AddWithValue("@type", type ?? "");
|
||||
|
||||
Reference in New Issue
Block a user