20260813 :: 실사>CAPI 기기 예약 수정 및 CAPI 기기 예약 현황 추가
This commit is contained in:
@@ -8,24 +8,22 @@
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT ROW_NUMBER() OVER(ORDER BY D.ID) AS NO, D.ID, DU.ID as UID, D.T_DEVICE_MODEL, D.T_NO, "
|
||||
query = query & " ISNULL(DU.P_CHILD_SN, '') AS P_CHILD_SN, "
|
||||
query = query & " ISNULL(VPM.P_SUBJECT, '') AS P_SUBJECT, "
|
||||
query = query & " ISNULL(DU.MAN_ID, '') AS MAN_ID,"
|
||||
query = query & " ISNULL(M.M_NAME, '') AS M_NAME,"
|
||||
query = query & " ISNULL(DU.USE_ST_DT, '') AS USE_ST_DT,"
|
||||
query = query & " ISNULL(DU.USE_ED_DT, '') AS USE_ED_DT,"
|
||||
query = query & " ISNULL(DU.D_NO, '') AS D_NO,"
|
||||
query = query & " ISNULL(DU.INSERT_USER, '') AS INSERT_USER,"
|
||||
query = query & " ISNULL(P.p_name, '') AS INSERT_USER_NAME,"
|
||||
query = query & " INSERT_DT, MODIFY_DT "
|
||||
query = query & " FROM project2.dbo.T_DEVICE D"
|
||||
query = query & " LEFT JOIN project2.dbo.T_DEVICE_USE DU ON D.ID = DU.DEVICE_ID"
|
||||
query = query & " LEFT JOIN project2.dbo.V_PROJECT_METHOD VPM ON DU.P_CHILD_SN = VPM.p_child_sn"
|
||||
query = query & " LEFT JOIN project2.dbo.man M ON DU.MAN_ID = M.new_id"
|
||||
query = query & " LEFT JOIN project2.dbo.V_Person P ON DU.INSERT_USER = P.p_no "
|
||||
query = query & " WHERE D.ID = " & device_id & " AND DU.USE_YN = 'N' "
|
||||
query = query & " ORDER BY MODIFY_DT DESC "
|
||||
query = query & " select ISNULL(DU.P_CHILD_SN, '') AS P_CHILD_SN, "
|
||||
query = query & " ISNULL(VPM.P_SUBJECT, '') AS P_SUBJECT, "
|
||||
query = query & " ISNULL(DU.MAN_ID, '') AS MAN_ID, "
|
||||
query = query & " ISNULL(M.M_NAME, '') AS M_NAME, "
|
||||
query = query & " ISNULL(DU.USE_ST_DT, '') AS USE_ST_DT, "
|
||||
query = query & " ISNULL(DU.USE_ED_DT, '') AS USE_ED_DT, "
|
||||
query = query & " ISNULL(DU.D_NO, '') AS D_NO, "
|
||||
query = query & " ISNULL(P.p_name, '') AS INSERT_USER_NAME, "
|
||||
query = query & " DU.INSERT_DT, DU.MODIFY_DT "
|
||||
query = query & " from T_DEVICE_USE_NEW DU "
|
||||
query = query & " JOIN T_DEVICE_NEW D ON D.ID = DU.DEVICE_ID "
|
||||
query = query & " LEFT JOIN project2.dbo.T_PROJECT_METHOD VPM ON DU.P_CHILD_SN = VPM.p_child_sn "
|
||||
query = query & " LEFT JOIN project2.dbo.man M ON DU.MAN_ID = M.new_id "
|
||||
query = query & " LEFT JOIN project2.dbo.person P ON DU.INSERT_USER = P.p_no "
|
||||
query = query & " WHERE D.ID = " & device_id & " AND DU.USE_YN <> 'Y' "
|
||||
query = query & " ORDER BY DU.MODIFY_DT DESC "
|
||||
|
||||
response.write "<table class='table table-sm table-sm2 table-bordered table-head tr-colors'>"
|
||||
response.write "<tr>"
|
||||
|
||||
Reference in New Issue
Block a user