Compare commits
33 Commits
fcb5e171da
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 88be1142bc | |||
| b1bdb33a23 | |||
| 2d73de12d1 | |||
| c085599ca9 | |||
| 9e670e17b6 | |||
| bd90910b32 | |||
| 295e7a6e23 | |||
| 2999d7a68e | |||
| 524a3b941f | |||
| e46f88d6fb | |||
| 60caf35218 | |||
| 3cbbc4dda1 | |||
| 187b8e2d62 | |||
| 8731b3e13f | |||
| e25981e280 | |||
| ecdba2637e | |||
| 82d1ce7dd5 | |||
| 1cfca3b0ac | |||
| c66c6659d6 | |||
| 96941fb4c4 | |||
| dca58ac2b3 | |||
| a1c7bba2b4 | |||
| b0abd85138 | |||
| 5297151017 | |||
| 927a8c851b | |||
| 9775d2b4a2 | |||
| 3f9bc2c32f | |||
| 6d9d108967 | |||
| 4659f232c0 | |||
| b268e8b40b | |||
| 3cac45c823 | |||
| 5239e80b47 | |||
| 5b3fce33be |
26
.agent/profile.yml
Normal file
26
.agent/profile.yml
Normal file
@@ -0,0 +1,26 @@
|
||||
schema_version: 1
|
||||
|
||||
project:
|
||||
id: asp-intranet
|
||||
name: ASP Intranet
|
||||
type: internal-service
|
||||
layer: fullstack
|
||||
legacy: true
|
||||
|
||||
stack:
|
||||
- classic-asp
|
||||
|
||||
databases:
|
||||
- id: intranet
|
||||
engine: mssql
|
||||
role: primary-intranet-data
|
||||
access: read-write
|
||||
|
||||
migration:
|
||||
status: planned
|
||||
target_stack:
|
||||
- typescript
|
||||
- react
|
||||
- nextjs
|
||||
- java-springboot
|
||||
strategy: staged
|
||||
27
.agent/project.md
Normal file
27
.agent/project.md
Normal file
@@ -0,0 +1,27 @@
|
||||
## ASP Intranet Repository Rules
|
||||
|
||||
### Repository Role and Current Authority
|
||||
|
||||
- This is the legacy Classic ASP intranet application covering approval, business, contact, cost, knowledge, management, project, statistics, and related employee workflows.
|
||||
- Preserve current routes, includes, sessions, authentication, authorization, form fields, redirects, document links, uploads, and MSSQL behavior while the application remains in service.
|
||||
- Treat employee, organization, contact, approval, cost, and uploaded-document data as sensitive internal information. Minimize exposure in logs, errors, fixtures, and completion reports.
|
||||
- Do not modernize multiple business areas or shared libraries as a side effect of a narrow maintenance task.
|
||||
|
||||
### Encoding and File Safety
|
||||
|
||||
- Most ASP files in this repository are not UTF-8. Treat CP949/EUC-KR-family encoding and CRLF as the likely legacy contract, but verify each touched file rather than applying a repository-wide assumption.
|
||||
- Never normalize the repository to UTF-8 or rewrite a broad include tree. Preserve each file's bytes, BOM state, line endings, response code page, and charset behavior.
|
||||
- Do not use a UTF-8-only formatter or patching workflow on a legacy file. Inspect the byte-level diff and Korean text after every approved ASP change.
|
||||
- Large document and image collections are business artifacts, not automatic refactoring or formatting targets.
|
||||
|
||||
### Data and Migration Direction
|
||||
|
||||
- Trace include chains and shared DB helpers before changing SQL, authentication, authorization, or session behavior.
|
||||
- Parameterize new or changed values while preserving ADO parameter order, types, result shapes, transactions, null behavior, and ordering.
|
||||
- The approved long-term destination is a Spring Boot backend and Next.js/TypeScript frontend migrated by bounded business workflow.
|
||||
- Establish behavior, data, document, permission, rollout, and rollback baselines before replacing a legacy workflow.
|
||||
|
||||
### Harness and Verification
|
||||
|
||||
- `AGENTS.md` and `CLAUDE.md` are generated. Edit `.agent/profile.yml` or `.agent/project.md`, then recompose instead of editing generated files.
|
||||
- Do not start IIS, connect to a real database, submit approval or business data, or modify uploaded documents during validation without separate approval.
|
||||
4
.gitattributes
vendored
Normal file
4
.gitattributes
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
/.gitattributes text eol=lf
|
||||
/.agent/** text eol=lf
|
||||
/AGENTS.md text eol=lf
|
||||
/CLAUDE.md text eol=lf
|
||||
270
AGENTS.md
Normal file
270
AGENTS.md
Normal file
@@ -0,0 +1,270 @@
|
||||
<!--
|
||||
GENERATED BY KRI AGENT HARNESS. DO NOT EDIT DIRECTLY.
|
||||
Project: asp-intranet
|
||||
Schema version: 1
|
||||
Edit the source fragments or repository .agent files, then recompose.
|
||||
-->
|
||||
|
||||
# KRI Development Base Instructions
|
||||
|
||||
This document defines the shared working rules for KRI development repositories.
|
||||
Keep project-specific facts and commands in the project profile and project rules.
|
||||
|
||||
## Instruction Resolution
|
||||
|
||||
Apply repository instructions in this order:
|
||||
|
||||
1. Base rules
|
||||
2. Project-type rules
|
||||
3. Technology-stack rules
|
||||
4. Shared consumer contracts
|
||||
5. Project-specific rules
|
||||
6. The explicitly approved task scope
|
||||
|
||||
Later and more specific instructions may override earlier general instructions only within their stated scope.
|
||||
|
||||
- Apply a shared consumer contract only when `.agent/profile.yml` declares it.
|
||||
- Do not silently resolve a material instruction conflict. Report the conflicting rules and request a decision before changing files.
|
||||
- Rules involving destructive actions, credentials, external systems, production, deployment, databases, or Git publication require explicit authorization even when a later rule is less restrictive.
|
||||
|
||||
## Communication
|
||||
|
||||
- Respond to the user in Korean unless the user requests another language.
|
||||
- Keep code identifiers, commands, paths, protocol names, and external API terms in their original form.
|
||||
- Follow the repository's existing language conventions for code comments and user-facing messages.
|
||||
- Lead with the result or decision, then provide only the detail needed to verify it.
|
||||
- Do not create or retain a full session transcript.
|
||||
|
||||
## Work Authorization
|
||||
|
||||
- The default workflow is discussion first and explicit execution approval second.
|
||||
- During discussion, perform only read-only investigation needed to understand the task and propose a concrete plan, unless the user prohibits inspection.
|
||||
- Read-only investigation may include file inspection, code search, encoding checks, `git status`, `git diff`, `git log`, and sanitized official-documentation lookup.
|
||||
- Before execution approval, do not edit files, install dependencies, run builds or tests, start services, connect to databases, or change local or external state.
|
||||
- Before requesting approval, describe the intended scope, affected areas, validation plan, and material risks.
|
||||
- Treat approval as limited to the presented scope. Pause and discuss again if the work materially expands.
|
||||
- If the user explicitly requests immediate execution without prior discussion, the discussion gate may be skipped for the stated scope.
|
||||
- Fast-track authorization does not implicitly authorize protected operations such as destructive commands, production changes, deployments, database mutations, Git publication, or external messages.
|
||||
|
||||
## Local Development Environment
|
||||
|
||||
- Primary OS: Windows 11.
|
||||
- Primary shell: PowerShell.
|
||||
- Use Git Bash only when the repository already depends on Bash or POSIX shell behavior.
|
||||
- Prefer repository-provided wrappers and scripts over globally installed commands.
|
||||
- Do not assume that GNU utilities, WSL, Docker, or a Unix-compatible shell are available unless the project profile confirms them.
|
||||
- Detect Java, Node.js, .NET, Python, package-manager, and database-tool versions from repository configuration.
|
||||
- Do not install or modify global toolchains as part of a project task.
|
||||
|
||||
Preferred human-facing tools:
|
||||
|
||||
- Classic ASP: Visual Studio Code
|
||||
- Java and Spring Boot: IntelliJ IDEA
|
||||
- C# and .NET: JetBrains Rider
|
||||
- JavaScript, TypeScript, and Next.js: JetBrains WebStorm
|
||||
- Python: JetBrains PyCharm
|
||||
- Microsoft SQL Server: SQL Server Management Studio
|
||||
- Other databases: JetBrains DataGrip
|
||||
|
||||
- These preferences do not authorize launching or controlling a GUI application.
|
||||
- Prefer IDE-independent commands that can also run in CI.
|
||||
- Do not modify global IDE settings.
|
||||
- Do not create or modify `.idea`, `.vscode`, workspace, or run-configuration files unless the approved task requires it.
|
||||
- Preserve existing shared IDE configuration when it is already tracked.
|
||||
|
||||
## PowerShell and Path Safety
|
||||
|
||||
- Quote paths containing spaces, brackets, parentheses, Korean characters, or PowerShell metacharacters.
|
||||
- Prefer `-LiteralPath` when operating on an exact filesystem path.
|
||||
- Use project-relative paths in committed configuration and documentation. Do not commit machine-specific paths such as `D:\_____Dev\...`.
|
||||
- Do not pass filesystem targets between PowerShell, `cmd.exe`, and Bash for destructive or recursive operations.
|
||||
- Keep a filesystem operation within one shell from target resolution through execution.
|
||||
- Before a recursive delete or move, resolve and verify every absolute target.
|
||||
- Never use a drive root, workspace root, user profile, unresolved variable, wildcard, or broad glob as a recursive delete target.
|
||||
- Prefer recoverable operations when practical.
|
||||
|
||||
## Change Discipline
|
||||
|
||||
- Preserve all existing user changes, including uncommitted and untracked work.
|
||||
- Keep changes minimal but complete for the approved objective.
|
||||
- Avoid unrelated cleanup, formatting, renaming, dependency upgrades, and architectural refactoring.
|
||||
- Do not overwrite or revert unrelated changes.
|
||||
- Stop and report when the requested change overlaps existing work in a way that cannot be handled safely.
|
||||
- Prefer changing an authoritative source over editing generated output.
|
||||
- Treat files marked as generated as read-only unless regeneration is part of the approved plan.
|
||||
- Do not edit vendored dependencies, build outputs, caches, or generated clients unless explicitly required.
|
||||
- Do not regenerate a broad set of files for a narrow change without first explaining the expected output scope.
|
||||
|
||||
## Text Encoding and Korean Content Safety
|
||||
|
||||
- Treat the existing file encoding, BOM state, and line-ending style as part of the file's contract.
|
||||
- Preserve Korean comments, user-facing messages, error messages, identifiers, and documentation exactly unless the task explicitly requires changing them.
|
||||
- Do not assume that garbled terminal output means the file itself is corrupted. Verify bytes and encoding before modifying suspicious text.
|
||||
- Before editing an existing text file, determine its current encoding and BOM state when repository configuration does not already guarantee them.
|
||||
- Do not convert encoding, add or remove a BOM, or normalize line endings as a side effect of an unrelated change.
|
||||
- Avoid whole-file rewrites for small changes.
|
||||
- Do not rewrite source files through `Get-Content | Set-Content`, `Out-File`, shell redirection, or another method whose encoding behavior is implicit.
|
||||
- Do not use a patching or formatting tool on a non-UTF-8 file unless it is known to preserve that file's encoding.
|
||||
- Treat a console display problem and an on-disk encoding problem as separate issues.
|
||||
- After editing Korean text, inspect the diff for replacement characters (`<60>`), mojibake, unexpected escapes, BOM changes, and unrelated line-ending changes.
|
||||
- Run `.agent/tools/check-encoding.ps1` when it is available and the change touches Korean text or a non-default encoding.
|
||||
- If encoding cannot be identified confidently, stop before writing and report the affected file and evidence.
|
||||
- For a new text file, follow repository configuration. If no rule exists, use UTF-8 without BOM.
|
||||
|
||||
## Git Safety
|
||||
|
||||
- Use `git status`, `git diff`, and `git log` for read-only investigation.
|
||||
- Do not run `commit`, `push`, `pull`, `fetch`, `merge`, `rebase`, `reset`, `checkout`, `switch`, `stash`, `clean`, `tag`, or force operations unless that specific operation is explicitly approved.
|
||||
- Source-edit approval does not include commit or push approval.
|
||||
- Never amend an existing commit unless explicitly requested.
|
||||
- Before an approved commit, show the intended files, validation results, and proposed commit message.
|
||||
- Never push directly to a protected branch unless the user names the target branch and explicitly authorizes the push.
|
||||
|
||||
## Dependencies and External Actions
|
||||
|
||||
- Use the package manager, lockfile, and toolchain already selected by the repository.
|
||||
- Do not install global packages.
|
||||
- Do not add, remove, or upgrade a dependency unless it was included in the approved plan.
|
||||
- Pause for approval if an unplanned dependency becomes necessary.
|
||||
- Keep lockfiles synchronized with approved dependency changes.
|
||||
- Do not deploy, publish packages, create releases, send messages or email, call business APIs, or modify external services unless explicitly requested.
|
||||
- Never upload proprietary source code, internal documents, credentials, customer data, or database contents to an external service.
|
||||
- Remove secrets and unnecessary internal identifiers from external search queries.
|
||||
|
||||
## Database Safety
|
||||
|
||||
- Treat writing or reviewing SQL as source code separately from executing SQL against a database.
|
||||
- SQL files, migrations, schema proposals, and query drafts may be created within an approved source-change scope.
|
||||
- Do not connect to a shared, staging, or production database without explicit authorization for that environment.
|
||||
- Read-only queries against a non-local database also require authorization because results may contain sensitive data.
|
||||
- Do not execute DDL, DML, stored procedures, migrations, administrative commands, or data-correction scripts against a non-disposable database without separate authorization for the exact target and operation.
|
||||
- Source-change approval does not authorize migration execution.
|
||||
- Use a disposable local or test database for approved validation only after verifying its identity and disposable nature.
|
||||
- Never place credentials, connection strings, or sensitive query results in source files, logs, generated documents, or chat output.
|
||||
|
||||
## Secrets and Sensitive Data
|
||||
|
||||
- Never add credentials, tokens, passwords, private keys, connection strings, session identifiers, or production data to source control.
|
||||
- Read sensitive files only when the approved task requires it and no safer source exists.
|
||||
- Prefer inspecting configuration keys and schemas without displaying secret values.
|
||||
- Never echo secrets into terminal output, chat responses, logs, diffs, generated documents, test fixtures, or screenshots.
|
||||
- Redact sensitive values when reporting errors or command output.
|
||||
- If a possible secret is discovered, do not repeat it. Report only its location, type, and recommended containment action.
|
||||
- Do not rotate, revoke, copy, or otherwise modify credentials unless that exact action is explicitly authorized.
|
||||
|
||||
## Validation
|
||||
|
||||
- Discover supported build, test, lint, type-check, and formatting commands from repository files and project instructions. Do not invent commands.
|
||||
- Include intended validation in the discussion-phase plan.
|
||||
- After approved changes, run the narrowest relevant validation first, then broader checks when appropriate.
|
||||
- Limit formatting to files within the approved scope.
|
||||
- Do not run tests that require a shared database, production service, paid external API, or sensitive data unless separately authorized.
|
||||
- Do not claim that a check passed unless it was executed successfully.
|
||||
- If a check cannot be run, state the exact reason.
|
||||
- Distinguish a current-change failure from a pre-existing failure or an undetermined failure.
|
||||
- Do not fix unrelated failures without expanding the approved scope.
|
||||
- Inspect the worktree after validation for unexpected generated files, formatting churn, encoding changes, or lockfile changes.
|
||||
|
||||
## Artifacts and Session Records
|
||||
|
||||
- Do not create full-session transcripts, automatic HTML copies, analysis reports, or extra documentation unless explicitly requested.
|
||||
- Store durable information in the repository's existing documentation structure.
|
||||
- Do not place generated reports or temporary analysis files in the repository root.
|
||||
- Remove task-specific temporary files created by the current task after validation when removal is safe.
|
||||
|
||||
## Completion Report
|
||||
|
||||
When implementation is complete, report in Korean:
|
||||
|
||||
- what changed and why;
|
||||
- the main affected files or components;
|
||||
- validation commands actually executed and their results;
|
||||
- checks not executed and the reason;
|
||||
- remaining risks, assumptions, or follow-up work;
|
||||
- database, deployment, dependency, encoding, and compatibility impact when applicable.
|
||||
|
||||
- Do not report completion while required validation is failing or known encoding corruption is unresolved.
|
||||
- Keep the report concise and do not include a full session transcript.
|
||||
|
||||
## Internal Service Project Rules
|
||||
|
||||
- Internal-only usage does not reduce security, privacy, compatibility, or validation requirements.
|
||||
- Preserve authentication, authorization, role boundaries, auditability, and personal-data protections.
|
||||
- Identify affected user workflows before changing visible behavior.
|
||||
- Treat Frontend and Backend repositories as separate deployable systems with an explicit API contract between them.
|
||||
- Coordinate request, response, authentication, error, and versioning changes across both sides when the approved scope includes both repositories.
|
||||
- Do not silently require a simultaneous Frontend and Backend deployment.
|
||||
- Prefer backward-compatible transitions when deployments may occur independently.
|
||||
- Include migration and rollback considerations for database, API, and configuration changes.
|
||||
- Do not modernize legacy code as an unrelated side effect.
|
||||
- Apply Classic ASP text-safety rules only when the project profile declares the `classic-asp` stack.
|
||||
- Do not access or modify production data merely because the service is internal.
|
||||
|
||||
## Classic ASP
|
||||
|
||||
- Prioritize behavior preservation. Do not modernize syntax, includes, data access, error handling, or page structure outside the approved scope.
|
||||
- Trace the full include chain and relevant application/session/configuration dependencies before changing shared ASP behavior.
|
||||
- Preserve `Response.CodePage`, `Response.CharSet`, page directives, response headers, and the existing browser/server encoding contract.
|
||||
- Parameterize ADO commands and preserve the expected command type, parameter order, data types, sizes, directions, result sets, and transaction behavior.
|
||||
- Close and release recordsets, commands, connections, streams, and other COM resources on every applicable path.
|
||||
- Preserve the established `On Error Resume Next` and error propagation pattern; do not suppress newly introduced failures.
|
||||
|
||||
### Legacy Text File Safety
|
||||
|
||||
- Treat each existing Classic ASP text file's byte encoding, BOM state, and line endings as part of its contract.
|
||||
- Detect those properties before editing and preserve them exactly unless an encoding conversion is explicitly approved.
|
||||
- Do not assume UTF-8. Existing files may use UTF-8 with or without BOM, EUC-KR/CP949, or another legacy encoding.
|
||||
- Keep Korean comments, literals, SQL, HTML, JavaScript, and error messages byte-safe. Stop if the source encoding cannot be identified confidently.
|
||||
- Avoid formatters or bulk rewrites that normalize encoding or line endings across the file.
|
||||
- After editing, run the harness encoding check and inspect the diff for replacement characters, mojibake, unexpected BOM changes, or whole-file churn.
|
||||
|
||||
## Microsoft SQL Server
|
||||
|
||||
- Use T-SQL syntax and behavior only for data sources whose declared engine is `mssql`.
|
||||
- Preserve the configured SQL Server version, database and schema names, collation, naming, migration, and access conventions.
|
||||
- Parameterize values. Do not build SQL by concatenating untrusted input.
|
||||
- Preserve Unicode behavior and use the repository's established `nvarchar`/`nchar` and parameter conventions where Korean or other Unicode text is possible.
|
||||
- Treat stored-procedure parameters, result sets, return values, transaction behavior, and error behavior as public contracts.
|
||||
- Consider indexes and actual execution characteristics for changed filters, joins, ordering, grouping, and pagination.
|
||||
- Do not introduce MySQL or other dialect syntax into MSSQL paths.
|
||||
- Keep read-only legacy integrations read-only. A source-code change approval authorizes SQL analysis and script drafting only; execution requires separate explicit approval and the declared data-source access level.
|
||||
|
||||
## Planned Migration
|
||||
|
||||
- Treat the current stack and production behavior as authoritative until an explicit migration task and slice are approved.
|
||||
- Do not begin a partial migration while handling an unrelated feature, fix, review, or refactor.
|
||||
- Before migration work, document the relevant baseline: routes, APIs, authentication, authorization, state, data contracts, environment variables, build, deployment, operations, and user-visible behavior.
|
||||
- Define small staged slices with acceptance criteria, compatibility requirements, validation, rollout, and rollback for each slice.
|
||||
- Keep migrated and non-migrated areas interoperable for as long as both remain active.
|
||||
- Apply target-stack conventions only inside the approved slice and shared boundaries that must change with it.
|
||||
- Establish behavior equivalence with representative checks before removing the previous implementation.
|
||||
- Separate intentional product or behavior changes from framework-only migration changes so each can be reviewed independently.
|
||||
- For standalone React applications, the default planned target is Next.js with TypeScript unless the project profile explicitly declares another approved target.
|
||||
|
||||
## ASP Intranet Repository Rules
|
||||
|
||||
### Repository Role and Current Authority
|
||||
|
||||
- This is the legacy Classic ASP intranet application covering approval, business, contact, cost, knowledge, management, project, statistics, and related employee workflows.
|
||||
- Preserve current routes, includes, sessions, authentication, authorization, form fields, redirects, document links, uploads, and MSSQL behavior while the application remains in service.
|
||||
- Treat employee, organization, contact, approval, cost, and uploaded-document data as sensitive internal information. Minimize exposure in logs, errors, fixtures, and completion reports.
|
||||
- Do not modernize multiple business areas or shared libraries as a side effect of a narrow maintenance task.
|
||||
|
||||
### Encoding and File Safety
|
||||
|
||||
- Most ASP files in this repository are not UTF-8. Treat CP949/EUC-KR-family encoding and CRLF as the likely legacy contract, but verify each touched file rather than applying a repository-wide assumption.
|
||||
- Never normalize the repository to UTF-8 or rewrite a broad include tree. Preserve each file's bytes, BOM state, line endings, response code page, and charset behavior.
|
||||
- Do not use a UTF-8-only formatter or patching workflow on a legacy file. Inspect the byte-level diff and Korean text after every approved ASP change.
|
||||
- Large document and image collections are business artifacts, not automatic refactoring or formatting targets.
|
||||
|
||||
### Data and Migration Direction
|
||||
|
||||
- Trace include chains and shared DB helpers before changing SQL, authentication, authorization, or session behavior.
|
||||
- Parameterize new or changed values while preserving ADO parameter order, types, result shapes, transactions, null behavior, and ordering.
|
||||
- The approved long-term destination is a Spring Boot backend and Next.js/TypeScript frontend migrated by bounded business workflow.
|
||||
- Establish behavior, data, document, permission, rollout, and rollback baselines before replacing a legacy workflow.
|
||||
|
||||
### Harness and Verification
|
||||
|
||||
- `AGENTS.md` and `CLAUDE.md` are generated. Edit `.agent/profile.yml` or `.agent/project.md`, then recompose instead of editing generated files.
|
||||
- Do not start IIS, connect to a real database, submit approval or business data, or modify uploaded documents during validation without separate approval.
|
||||
@@ -2,6 +2,45 @@
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
x = "2"
|
||||
|
||||
Dim title()
|
||||
Max_Title = 26
|
||||
Dim sel_type
|
||||
ReDim title(Max_Title, 3)
|
||||
Dim sel_year
|
||||
Dim doc_year_list()
|
||||
sel_year = CStr(Year(Now))
|
||||
If Request("sel_year") <> "" Then
|
||||
sel_year = Request("sel_year")
|
||||
End If
|
||||
query = "select distinct <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> order by <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
Rs.Open query, adoConn, 1
|
||||
ReDim title(Rs.RecordCount, 3)
|
||||
title(0, 1) = "<22><>ü"
|
||||
i = 0
|
||||
Do While Not Rs.EOF
|
||||
i = i + 1
|
||||
title(i, 1) = Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
|
||||
Rs.MoveNext
|
||||
Loop
|
||||
Rs.Close
|
||||
|
||||
query = "select distinct left(<28>߱<EFBFBD><DFB1><EFBFBD>,4) as <20>߱<EFBFBD><DFB1><EFBFBD> from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> order by left(<28>߱<EFBFBD><DFB1><EFBFBD>,4) desc"
|
||||
Rs.Open query, adoConn, 1
|
||||
ReDim doc_year_list(Rs.RecordCount)
|
||||
i = 0
|
||||
Do While Not Rs.EOF
|
||||
i = i + 1
|
||||
doc_year_list(i) = Rs("<22>߱<EFBFBD><DFB1><EFBFBD>")
|
||||
Rs.MoveNext
|
||||
Loop
|
||||
Rs.Close
|
||||
|
||||
sel_type = Request("sel_type")
|
||||
If Trim(sel_type) = "" Then
|
||||
sel_type = "0"
|
||||
End If
|
||||
p_hotvalue = Request("p_hotvalue")
|
||||
if request("gotopage") <> "" then
|
||||
tmp_currentpage = request("gotopage")
|
||||
else
|
||||
@@ -9,6 +48,19 @@ else
|
||||
end if
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<%
|
||||
Function ExtractTargetValue(val)
|
||||
Dim arr, s, p
|
||||
arr = Split(val, "^//^")
|
||||
s = arr(0)
|
||||
p = InStr(s, "^^")
|
||||
if p > 0 then
|
||||
ExtractTargetValue = Mid(s, p + 2)
|
||||
else
|
||||
ExtractTargetValue = s
|
||||
end if
|
||||
End Function
|
||||
%>
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
@@ -21,13 +73,65 @@ end if
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<form name="approval" method="post">
|
||||
<%
|
||||
query = "SELECT * "
|
||||
query = query & "FROM Document a "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = "SELECT a.*, b.* "
|
||||
query = query & "FROM Document a WITH(NOLOCK) "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b WITH(NOLOCK) on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & " LEFT OUTER JOIN direct_costcode D1 WITH(NOLOCK) ON CONVERT(VARCHAR(5), b.target11) = CONVERT(VARCHAR(5), D1.id) "
|
||||
query = query & " LEFT OUTER JOIN direct_costcode D2 WITH(NOLOCK) ON CONVERT(VARCHAR(5), b.target12) = CONVERT(VARCHAR(5), D2.id) "
|
||||
query = query & "WHERE b.login_p_no <> '" & Session("User_Number") & "' "
|
||||
query = query & " AND a.d_delok = 'N' "
|
||||
query = query & " AND a.d_name <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
If sel_type <> "0" Then
|
||||
query = query & " AND a.d_name = '" & title(sel_type, 1) & "' "
|
||||
Else
|
||||
query = query & " AND a.d_name <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
End If
|
||||
If sel_year <> "all" Then
|
||||
query = query & " AND a.d_no LIKE 'KRC-" & sel_year & "%' "
|
||||
End If
|
||||
If p_hotvalue <> "" Then
|
||||
query = query & " AND ( "
|
||||
query = query & " b.p_sn LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " a.d_write_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " D1.d_cost_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " D2.d_cost_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " a.d_no LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target8 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target9 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target20 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target21 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target22 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target23 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target24 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target25 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target26 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target27 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target28 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target29 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target30 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target31 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target32 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target33 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target34 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target35 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target36 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target37 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target38 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target39 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target40 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target41 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target42 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target43 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target44 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target45 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target46 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target47 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target48 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target49 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target50 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' "
|
||||
query = query & " ) "
|
||||
End If
|
||||
query = query & " AND a.d_order_cnt in ('77') "
|
||||
query = query & " AND (a.d_order1 = '" & Session("User_Number") & "' "
|
||||
for tmp_i = 2 to 4
|
||||
@@ -41,17 +145,41 @@ end if
|
||||
%>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="padding:5"><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD><EFBFBD><EFBFBD> : <20><> <b class="tahoma_orange"><%=tmp_count%></b><3E><><EFBFBD><EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.</td>
|
||||
<td style="padding:5">
|
||||
<09>߱<EFBFBD><DFB1><EFBFBD> :
|
||||
<select name="sel_year" onchange="javascript:subit(0);">
|
||||
<option value="all" <%if sel_year = "all" then %> selected <% end if %>><3E><>ü</option>
|
||||
<%
|
||||
for i=1 To ubound(doc_year_list)
|
||||
%>
|
||||
<option value="<%=doc_year_list(i) %>" <%if doc_year_list(i) = sel_year then %> selected <% end if %>><%=doc_year_list(i) %><3E><></option>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</select> <20><><EFBFBD>ϰ<EFBFBD><CFB0><EFBFBD> : <20><> <b class="tahoma_orange"><%=formatnumber(tmp_count,0)%></b><3E><><EFBFBD><EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.
|
||||
|
||||
<%if tmp_project_chk = "1" OR tmp_admin_chk = "1" then%>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<select name="sel_type" onchange="subit('2')" >
|
||||
<%for i = 0 to ubound(title)%>
|
||||
<OPTION value='<%=i%>' <%if cint(sel_type) = cint(i) then%>selected<%end if%>><% if title(i,1) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F1BAB8B0><EFBFBD>" then response.write "<22><><EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD>" else response.Write title(i,1) end if %></option>
|
||||
<%next%>
|
||||
</select>
|
||||
<%end if%>
|
||||
|
||||
<input type="text" name='p_hotvalue' style="width:120;text-align:center;" value="<%=p_hotvalue%>">
|
||||
<img src="/images/common/btn_smallsrch.gif" align="absmiddle" onClick="subit('1')" style="cursor:pointer;"> <b class="tahoma_orange"> <20>ۼ<EFBFBD><DBBC><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, <20>ŷ<EFBFBD>ó, <20><EFBFBD>, <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, ǰ<>ǹ<EFBFBD><C7B9><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD> <20><><EFBFBD><EFBFBD></b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="5%" align="center" height="24" >No.</td>
|
||||
<td width="50%" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD>з<EFBFBD></td>
|
||||
<td align="center" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td align="center" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td width="15%" align="center" height="24" ><3E><>û</td>
|
||||
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD>з<EFBFBD></td>
|
||||
<td width="8%" align="center" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td width="5%" align="center" style="text-align:center; white-space:nowrap;" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td width="5%" align="center" height="24" ><3E><>û</td>
|
||||
</tr>
|
||||
<%
|
||||
if Rs.RecordCount > 0 then
|
||||
@@ -95,14 +223,27 @@ end if
|
||||
if Rs("d_name") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
|
||||
tmp_flag = "t2"
|
||||
end If
|
||||
|
||||
tmp_display_name = Rs("d_name")
|
||||
if tmp_display_name = "<22>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>" then
|
||||
tmp_display_name = "<22><EFBFBD>(<28><>)Ȱ<><C8B0><EFBFBD><EFBFBD>"
|
||||
end if
|
||||
|
||||
if Rs("d_name") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" or Rs("d_name") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
|
||||
tmp_doc_code = ExtractTargetValue(Rs("target20"))
|
||||
tmp_doc_desc = ExtractTargetValue(Rs("target21"))
|
||||
else
|
||||
tmp_doc_code = Rs("target10")
|
||||
tmp_doc_desc = Rs("target1")
|
||||
end if
|
||||
%>
|
||||
<!--- Loop Set Start --->
|
||||
<tr>
|
||||
<td align="center" height="24" ><%=Num%></td>
|
||||
<td align="left" height="24"><a href="javascript:openit('<%=tmp_flag%>','<%=Rs("d_no")%>','1','<%=x%>','<%=Rs("p_sn") %>')" class="blue"><%if Rs("d_name") = "<22>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>" then response.Write "<22><EFBFBD>(<28><>)Ȱ<><C8B0><EFBFBD><EFBFBD>" else response.Write Rs("d_name") end if%></a></td>
|
||||
<td align="center" height="24" ><%=Rs("d_write_date")%></td>
|
||||
<td align="center" height="24" class="k_darkorange"><%=Rs("login_<6E≯<EFBFBD>")%></td>
|
||||
<td align="center" height="24" class="k_darkorange">ó<><C3B3><EFBFBD>Ϸ<EFBFBD></td>
|
||||
<td align="center" style="vertical-align:middle;" height="24" ><%=Num%></td>
|
||||
<td align="left" style="vertical-align:middle;" height="24"><a href="javascript:openit('<%=tmp_flag%>','<%=Rs("d_no")%>','1','<%=x%>','<%=Rs("p_sn") %>')" class="blue"><%=tmp_display_name%>[<%=Rs("d_no")%>] <20><>([<%=tmp_doc_code%>] <%=tmp_doc_desc%>)</a></td>
|
||||
<td align="center" style="vertical-align:middle;" height="24" ><%=Rs("d_write_date")%></td>
|
||||
<td align="center" style="text-align:center; white-space:nowrap; vertical-align:middle;" height="24" class="k_darkorange"><%=Rs("login_<6E≯<EFBFBD>")%></td>
|
||||
<td align="center" style="vertical-align:middle;" height="24" class="k_darkorange">ó<><C3B3><EFBFBD>Ϸ<EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
Rs.MoveNext
|
||||
@@ -111,10 +252,11 @@ end if
|
||||
Rs.Close
|
||||
%>
|
||||
</table>
|
||||
<%=Pagelist("allow_listall.asp",tmp_currentpage ,tmp_bcolor , "", pagecount, "&b_type=" & b_type)%>
|
||||
<%=Pagelist("allow_listall.asp",tmp_currentpage ,tmp_bcolor , "", pagecount, "&b_type=" & b_type & "&sel_type=" & sel_type & "&p_hotvalue=" & p_hotvalue & "&sel_year=" & sel_year)%>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -123,6 +265,11 @@ end if
|
||||
<!-- /.content -->
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function subit(a){
|
||||
document.approval.action = "allow_listall.asp";
|
||||
document.approval.submit();
|
||||
}
|
||||
|
||||
function openit(z,x,c,v,p_sn) {
|
||||
if (z == 'C') {
|
||||
var url = '/ess/doc_infochange_print.asp?d_no=' + x + '&view_chk=' + c + '&x=' + v;
|
||||
|
||||
@@ -349,18 +349,18 @@
|
||||
end if%>
|
||||
|
||||
<tr>
|
||||
<td colspan="5" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>ҼӺμ<D3BA>)</td>
|
||||
<td colspan="4" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<2F><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>)</td>
|
||||
<td colspan="5" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD></td>
|
||||
<td colspan="4" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>μ<EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>ӿ<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=tmp_title%></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>μ<EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>ӿ<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=tmp_title%></td>
|
||||
</tr>
|
||||
<%
|
||||
|
||||
@@ -118,6 +118,61 @@
|
||||
to {color:#000;}
|
||||
*/
|
||||
}
|
||||
.attach_file_preview{
|
||||
display:flex;
|
||||
flex-direction:column;
|
||||
justify-content:center;
|
||||
align-items:center;
|
||||
width:100%;
|
||||
overflow:hidden;
|
||||
padding:10px;
|
||||
box-sizing:border-box;
|
||||
text-align:center;
|
||||
}
|
||||
.attach_file_ext{
|
||||
font-weight:bold;
|
||||
color:#666;
|
||||
font-size:14px;
|
||||
}
|
||||
.attach_file_name{
|
||||
display:block;
|
||||
max-width:100%;
|
||||
overflow:hidden;
|
||||
text-overflow:ellipsis;
|
||||
white-space:nowrap;
|
||||
font-size:11px;
|
||||
color:#333;
|
||||
}
|
||||
.attach_upload_loading{
|
||||
display:none;
|
||||
position:fixed;
|
||||
top:0;left:0;right:0;bottom:0;
|
||||
background:rgba(255,255,255,0.7);
|
||||
z-index:10000;
|
||||
flex-direction:column;
|
||||
justify-content:center;
|
||||
align-items:center;
|
||||
}
|
||||
.attach_upload_loading.active{
|
||||
display:flex;
|
||||
}
|
||||
.attach_upload_spinner{
|
||||
width:50px;
|
||||
height:50px;
|
||||
border:5px solid #ccc;
|
||||
border-top:5px solid #333;
|
||||
border-radius:50%;
|
||||
animation:attach_spin 1s linear infinite;
|
||||
}
|
||||
@keyframes attach_spin{
|
||||
0%{ transform:rotate(0deg); }
|
||||
100%{ transform:rotate(360deg); }
|
||||
}
|
||||
.attach_upload_text{
|
||||
margin-top:10px;
|
||||
font-size:14px;
|
||||
color:#333;
|
||||
}
|
||||
</style>
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
@@ -237,7 +292,7 @@
|
||||
<td width="15%" align="center" class="align-middle"><3E><><EFBFBD><EFBFBD>÷<EFBFBD><C3B7></td>
|
||||
<td colspan="3">
|
||||
<button type="button" class="btn btn-sm btn-primary" onclick="addDocAttach();"><3E>߰<EFBFBD></button>
|
||||
<input type="file" accept="image/*,application/pdf" id="doc_attach" class="d-none"/>
|
||||
<input type="file" accept="image/*,.zip,.pdf,.hwp,.doc,.docx,.xls,.xlsx,.ppt,.pptx" id="doc_attach" multiple="multiple" class="d-none"/>
|
||||
<input type="file" name="doc_attach" multiple="multiple" class="d-none" />
|
||||
</td>
|
||||
</tr>
|
||||
@@ -278,7 +333,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" class="tit_left tit_right"><3E><><EFBFBD><EFBFBD><br>(<28><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD>,<br><3E>ܰ<EFBFBD> <20><EFBFBD>)</td>
|
||||
<td align="center" class="tit_left tit_right"><3E><><EFBFBD>볻<EFBFBD><EFBFBD><br>(<28><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><EFBFBD>ʼ<EFBFBD>)</td>
|
||||
<td align="center" colspan="7">
|
||||
<TEXTAREA rows="3" cols="80" name="expence_reason" id="expence_reason1" style="width:100%;height:50;"></TEXTAREA>
|
||||
</td>
|
||||
@@ -307,7 +362,7 @@
|
||||
<td align="center"><3E><><EFBFBD>ް<EFBFBD><DEB0><EFBFBD></td>
|
||||
<td align="center"><3E>ΰ<EFBFBD><CEB0><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center"><3E><><EFBFBD><EFBFBD><EFBFBD>Ѿ<EFBFBD></td>
|
||||
<td align="center"><3E><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>, <20><EFBFBD><EFBFBD><EFBFBD>, <20>ܰ<EFBFBD> <20><EFBFBD>)</td>
|
||||
<td align="center"><3E><><EFBFBD>볻<EFBFBD><EFBFBD>(<28><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><EFBFBD>ʼ<EFBFBD>)</td>
|
||||
<tr>
|
||||
<tr>
|
||||
<td align="right">2201001_C01</td>
|
||||
@@ -343,6 +398,10 @@
|
||||
</tr>
|
||||
</table>
|
||||
<canvas id="pdf-canvas" width="400" class="d-none"></canvas>
|
||||
<div class="attach_upload_loading" id="attachUploadLoading">
|
||||
<div class="attach_upload_spinner"></div>
|
||||
<div class="attach_upload_text">업로드 중입니다...</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -377,13 +436,9 @@
|
||||
|
||||
$("#doc_attach").on("change", function(e){
|
||||
if(e.target.files.length > 0){
|
||||
if(e.target.files[0].type == "application/pdf"){
|
||||
pdfToImg(e.target.files[0]);
|
||||
}else{
|
||||
fileArray.push(e.target.files[0]);
|
||||
}
|
||||
$("#attachUploadLoading").addClass("active");
|
||||
processDocAttachFiles(e.target.files, 0);
|
||||
}
|
||||
imgPreviewSetting(fileArray);
|
||||
});
|
||||
|
||||
$(document).on("click", ".imgPreviewItem", function(){
|
||||
@@ -436,31 +491,57 @@
|
||||
$("#doc_attach").click();
|
||||
}
|
||||
|
||||
function processDocAttachFiles(files, idx){
|
||||
if(idx >= files.length){
|
||||
imgPreviewSetting(fileArray);
|
||||
$("#attachUploadLoading").removeClass("active");
|
||||
return;
|
||||
}
|
||||
if(files[idx].type == "application/pdf"){
|
||||
pdfToImg(files[idx], function(){
|
||||
processDocAttachFiles(files, idx + 1);
|
||||
});
|
||||
}else{
|
||||
fileArray.push(files[idx]);
|
||||
processDocAttachFiles(files, idx + 1);
|
||||
}
|
||||
}
|
||||
|
||||
function imgPreviewSetting(files){
|
||||
if(files.length > 0){
|
||||
var tmpHTML = "";
|
||||
tmpHTML = "<div id='imgPreviewDiv' class='d-flex'></div>";
|
||||
$("#imgPreviews").children("td").html(tmpHTML);
|
||||
$.each(files, function(i, f){
|
||||
$("#imgPreviewDiv").append(
|
||||
"<div class='d-flex p-1 m-1 imgPreviewItem' data-idx='" + i + "'>"+
|
||||
"<img src='' alt='÷<><C3B7>' class='' id='preview_" + (i+1) + "' />"+
|
||||
"</div>"
|
||||
);
|
||||
var reader = new FileReader();
|
||||
reader.onload = function(e){
|
||||
$("#preview_" + (i+1)).attr("src", e.target.result);
|
||||
$("#preview_" + (i+1)).parent().popover({
|
||||
html: true,
|
||||
trigger: 'hover',
|
||||
container: 'body',
|
||||
placement: 'right',
|
||||
content: function () { return '<img class="imgView" src="' + e.target.result + '" />'; }
|
||||
});
|
||||
var $item = $("<div>", {
|
||||
"class": "d-flex p-1 m-1 imgPreviewItem",
|
||||
"data-idx": i
|
||||
});
|
||||
$("#imgPreviewDiv").append($item);
|
||||
if(f.type.indexOf("image/") == 0){
|
||||
var previewId = "preview_" + (i + 1);
|
||||
$item.append($("<img>", { src: "", alt: "attach", id: previewId }));
|
||||
var reader = new FileReader();
|
||||
reader.onload = function(e){
|
||||
$("#" + previewId).attr("src", e.target.result);
|
||||
$("#" + previewId).parent().popover({
|
||||
html: true,
|
||||
trigger: "hover",
|
||||
container: "body",
|
||||
placement: "right",
|
||||
content: function () { return "<img class='imgView' src='" + e.target.result + "' />"; }
|
||||
});
|
||||
}
|
||||
reader.readAsDataURL(f);
|
||||
}else{
|
||||
var dotIdx = f.name.lastIndexOf(".");
|
||||
var fileExt = dotIdx > -1 ? f.name.substring(dotIdx + 1).toUpperCase() : "FILE";
|
||||
var $filePreview = $("<div>", { "class": "attach_file_preview" });
|
||||
$filePreview.append($("<span>", { "class": "attach_file_ext" }).text(fileExt));
|
||||
$filePreview.append($("<span>", { "class": "attach_file_name" }).text(f.name));
|
||||
$item.append($filePreview);
|
||||
}
|
||||
reader.readAsDataURL(f);
|
||||
});
|
||||
|
||||
$("#imgPreviews").show();
|
||||
}else{
|
||||
$("#imgPreviews").hide();
|
||||
@@ -506,7 +587,7 @@
|
||||
'</td>'+
|
||||
'</tr>'+
|
||||
'<tr id="addRow_Bottom_'+contents_count+'">'+
|
||||
'<td align="center" class="tit_left tit_right"><3E><><EFBFBD><EFBFBD><br>(<28><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD>,<br><3E>ܰ<EFBFBD> <20><EFBFBD>)</td>'+
|
||||
'<td align="center" class="tit_left tit_right"><3E><><EFBFBD>볻<EFBFBD><EFBFBD><br>(<28><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><EFBFBD>ʼ<EFBFBD>)</td>'+
|
||||
'<td align="center" colspan="7">'+
|
||||
'<TEXTAREA rows="3" cols="80" name="expence_reason" id="expence_reason' + contents_count + '" style="width:100%;height:50;"></TEXTAREA>'+
|
||||
'</td>'+
|
||||
@@ -829,7 +910,6 @@
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڸ<EFBFBD> <20>Է<EFBFBD><D4B7>ϼ<EFBFBD><CFBC><EFBFBD>!");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (p_sn == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20>Է<EFBFBD> <20>Ͻʽÿ<CABD>!");
|
||||
return false;
|
||||
@@ -937,14 +1017,15 @@
|
||||
$("#hangmok").append(ajaxResponse);
|
||||
}
|
||||
|
||||
function pdfToImg(file){
|
||||
function pdfToImg(file, callback){
|
||||
var pdf_url = URL.createObjectURL(file);
|
||||
var pdfTask = PDFJS.getDocument({ url: pdf_url });
|
||||
pdfTask.onPassword = passwordCB;
|
||||
pdfTask.promise.then(function(pdf_doc) {
|
||||
pdfGetPage(pdf_doc, 1, pdf_doc.numPages);
|
||||
pdfGetPage(pdf_doc, 1, pdf_doc.numPages, callback);
|
||||
}).catch(function(error) {
|
||||
alert(error.message);
|
||||
if(callback){ callback(); }
|
||||
});
|
||||
}
|
||||
|
||||
@@ -957,7 +1038,7 @@
|
||||
passwordFunc(new_password);
|
||||
}
|
||||
|
||||
function pdfGetPage(pdf_doc, currentPage, pdfMaxPage){
|
||||
function pdfGetPage(pdf_doc, currentPage, pdfMaxPage, callback){
|
||||
pdf_doc.getPage(currentPage).then(function(page){
|
||||
var scale = 1.5;
|
||||
var viewport = page.getViewport(scale);
|
||||
@@ -981,9 +1062,9 @@
|
||||
var file = new File([new Uint8Array(array)], "tmpfile.jpg", {type: 'image/jpeg'});
|
||||
fileArray.push(file);
|
||||
if(pdfMaxPage > currentPage){
|
||||
pdfGetPage(pdf_doc, currentPage + 1, pdfMaxPage);
|
||||
pdfGetPage(pdf_doc, currentPage + 1, pdfMaxPage, callback);
|
||||
}else{
|
||||
imgPreviewSetting(fileArray);
|
||||
if(callback){ callback(); }
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -367,18 +367,18 @@
|
||||
end if%>
|
||||
|
||||
<tr>
|
||||
<td colspan="5" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>ҼӺμ<D3BA>)</td>
|
||||
<td colspan="4" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<2F><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>)</td>
|
||||
<td colspan="5" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD></td>
|
||||
<td colspan="4" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>μ<EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>ӿ<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=tmp_title%></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>μ<EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>ӿ<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=tmp_title%></td>
|
||||
</tr>
|
||||
<%
|
||||
|
||||
@@ -686,18 +686,18 @@
|
||||
end if%>
|
||||
|
||||
<tr>
|
||||
<td colspan="5" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>ҼӺμ<D3BA>)</td>
|
||||
<td colspan="4" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<2F><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>)</td>
|
||||
<td colspan="5" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD></td>
|
||||
<td colspan="4" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>μ<EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>ӿ<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=tmp_title%></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>μ<EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>ӿ<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=tmp_title%></td>
|
||||
</tr>
|
||||
<%
|
||||
|
||||
@@ -183,6 +183,61 @@
|
||||
to {color:#000;}
|
||||
*/
|
||||
}
|
||||
.attach_file_preview{
|
||||
display:flex;
|
||||
flex-direction:column;
|
||||
justify-content:center;
|
||||
align-items:center;
|
||||
width:100%;
|
||||
overflow:hidden;
|
||||
padding:10px;
|
||||
box-sizing:border-box;
|
||||
text-align:center;
|
||||
}
|
||||
.attach_file_ext{
|
||||
font-weight:bold;
|
||||
color:#666;
|
||||
font-size:14px;
|
||||
}
|
||||
.attach_file_name{
|
||||
display:block;
|
||||
max-width:100%;
|
||||
overflow:hidden;
|
||||
text-overflow:ellipsis;
|
||||
white-space:nowrap;
|
||||
font-size:11px;
|
||||
color:#333;
|
||||
}
|
||||
.attach_upload_loading{
|
||||
display:none;
|
||||
position:fixed;
|
||||
top:0;left:0;right:0;bottom:0;
|
||||
background:rgba(255,255,255,0.7);
|
||||
z-index:10000;
|
||||
flex-direction:column;
|
||||
justify-content:center;
|
||||
align-items:center;
|
||||
}
|
||||
.attach_upload_loading.active{
|
||||
display:flex;
|
||||
}
|
||||
.attach_upload_spinner{
|
||||
width:50px;
|
||||
height:50px;
|
||||
border:5px solid #ccc;
|
||||
border-top:5px solid #333;
|
||||
border-radius:50%;
|
||||
animation:attach_spin 1s linear infinite;
|
||||
}
|
||||
@keyframes attach_spin{
|
||||
0%{ transform:rotate(0deg); }
|
||||
100%{ transform:rotate(360deg); }
|
||||
}
|
||||
.attach_upload_text{
|
||||
margin-top:10px;
|
||||
font-size:14px;
|
||||
color:#333;
|
||||
}
|
||||
</style>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<!-- Content Header (Page header) -->
|
||||
@@ -331,7 +386,7 @@
|
||||
<td width="15%" align="center" class="align-middle"><3E><><EFBFBD><EFBFBD>÷<EFBFBD><C3B7></td>
|
||||
<td colspan="3">
|
||||
<button type="button" class="btn btn-sm btn-primary" onclick="addDocAttach();"><3E>߰<EFBFBD></button>
|
||||
<input type="file" accept="image/*,application/pdf" id="doc_attach" class="d-none"/>
|
||||
<input type="file" accept="image/*,.zip,.pdf,.hwp,.doc,.docx,.xls,.xlsx,.ppt,.pptx" id="doc_attach" multiple="multiple" class="d-none"/>
|
||||
<input type="file" name="doc_attach" multiple="multiple" class="d-none" />
|
||||
</td>
|
||||
</tr>
|
||||
@@ -381,7 +436,7 @@
|
||||
<td>
|
||||
<table class="table table-sm table-sm2 table-bordered tr-colors border-top">
|
||||
<tr>
|
||||
<td align="center" class="align-middle" width="15%"><3E><><EFBFBD><EFBFBD>(<28><EFBFBD>)</td>
|
||||
<td align="center" class="align-middle" width="15%"><3E><><EFBFBD>볻<EFBFBD><EFBFBD>(<28><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC>ʼ<EFBFBD>)</td>
|
||||
<td align="center" >
|
||||
<TEXTAREA rows="5" cols="80" name="expence_reason" id="expence_reason" style="width:100%;height:80;"></TEXTAREA>
|
||||
</td>
|
||||
@@ -424,6 +479,10 @@
|
||||
</div>
|
||||
</form>
|
||||
<canvas id="pdf-canvas" width="400" class="d-none"></canvas>
|
||||
<div class="attach_upload_loading" id="attachUploadLoading">
|
||||
<div class="attach_upload_spinner"></div>
|
||||
<div class="attach_upload_text">업로드 중입니다...</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -893,13 +952,9 @@
|
||||
|
||||
$("#doc_attach").on("change", function(e){
|
||||
if(e.target.files.length > 0){
|
||||
if(e.target.files[0].type == "application/pdf"){
|
||||
pdfToImg(e.target.files[0]);
|
||||
}else{
|
||||
fileArray.push(e.target.files[0]);
|
||||
}
|
||||
$("#attachUploadLoading").addClass("active");
|
||||
processDocAttachFiles(e.target.files, 0);
|
||||
}
|
||||
imgPreviewSetting(fileArray);
|
||||
});
|
||||
|
||||
$(document).on("click", ".imgPreviewItem", function(){
|
||||
@@ -972,8 +1027,6 @@
|
||||
if(retJson.length > 0){
|
||||
if($.grep(retJson, function(o, i){ return o.chk == "1"; }).length > 0){
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20>̹<EFBFBD> <20>ۼ<EFBFBD><DBBC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ <20>Դϴ<D4B4>.\n<><6E><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD> <20><> <20>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD>ֽñ<D6BD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.");
|
||||
//$("#expence_num").val("");
|
||||
//return false;
|
||||
}
|
||||
var tmpHTML = "";
|
||||
$.each(retJson, function(i, o){
|
||||
@@ -993,45 +1046,72 @@
|
||||
$("#doc_attach").click();
|
||||
}
|
||||
|
||||
function processDocAttachFiles(files, idx){
|
||||
if(idx >= files.length){
|
||||
imgPreviewSetting(fileArray);
|
||||
$("#attachUploadLoading").removeClass("active");
|
||||
return;
|
||||
}
|
||||
if(files[idx].type == "application/pdf"){
|
||||
pdfToImg(files[idx], function(){
|
||||
processDocAttachFiles(files, idx + 1);
|
||||
});
|
||||
}else{
|
||||
fileArray.push(files[idx]);
|
||||
processDocAttachFiles(files, idx + 1);
|
||||
}
|
||||
}
|
||||
|
||||
function imgPreviewSetting(files){
|
||||
if(files.length > 0){
|
||||
var tmpHTML = "";
|
||||
tmpHTML = "<div id='imgPreviewDiv' class='d-flex'></div>";
|
||||
$("#imgPreviews").children("td").html(tmpHTML);
|
||||
$.each(files, function(i, f){
|
||||
$("#imgPreviewDiv").append(
|
||||
"<div class='d-flex p-1 m-1 imgPreviewItem' data-idx='" + i + "'>"+
|
||||
"<img src='' alt='÷<><C3B7>' class='' id='preview_" + (i+1) + "' />"+
|
||||
"</div>"
|
||||
);
|
||||
var reader = new FileReader();
|
||||
reader.onload = function(e){
|
||||
$("#preview_" + (i+1)).attr("src", e.target.result);
|
||||
$("#preview_" + (i+1)).parent().popover({
|
||||
html: true,
|
||||
trigger: 'hover',
|
||||
container: 'body',
|
||||
placement: 'right',
|
||||
content: function () { return '<img class="imgView" src="' + e.target.result + '" />'; }
|
||||
});
|
||||
var $item = $("<div>", {
|
||||
"class": "d-flex p-1 m-1 imgPreviewItem",
|
||||
"data-idx": i
|
||||
});
|
||||
$("#imgPreviewDiv").append($item);
|
||||
if(f.type.indexOf("image/") == 0){
|
||||
var previewId = "preview_" + (i + 1);
|
||||
$item.append($("<img>", { src: "", alt: "attach", id: previewId }));
|
||||
var reader = new FileReader();
|
||||
reader.onload = function(e){
|
||||
$("#" + previewId).attr("src", e.target.result);
|
||||
$("#" + previewId).parent().popover({
|
||||
html: true,
|
||||
trigger: "hover",
|
||||
container: "body",
|
||||
placement: "right",
|
||||
content: function () { return "<img class='imgView' src='" + e.target.result + "' />"; }
|
||||
});
|
||||
}
|
||||
reader.readAsDataURL(f);
|
||||
}else{
|
||||
var dotIdx = f.name.lastIndexOf(".");
|
||||
var fileExt = dotIdx > -1 ? f.name.substring(dotIdx + 1).toUpperCase() : "FILE";
|
||||
var $filePreview = $("<div>", { "class": "attach_file_preview" });
|
||||
$filePreview.append($("<span>", { "class": "attach_file_ext" }).text(fileExt));
|
||||
$filePreview.append($("<span>", { "class": "attach_file_name" }).text(f.name));
|
||||
$item.append($filePreview);
|
||||
}
|
||||
reader.readAsDataURL(f);
|
||||
});
|
||||
|
||||
$("#imgPreviews").show();
|
||||
}else{
|
||||
$("#imgPreviews").hide();
|
||||
}
|
||||
}
|
||||
|
||||
function pdfToImg(file){
|
||||
function pdfToImg(file, callback){
|
||||
var pdf_url = URL.createObjectURL(file);
|
||||
var pdfTask = PDFJS.getDocument({ url: pdf_url });
|
||||
pdfTask.onPassword = passwordCB;
|
||||
pdfTask.promise.then(function(pdf_doc) {
|
||||
pdfGetPage(pdf_doc, 1, pdf_doc.numPages);
|
||||
pdfGetPage(pdf_doc, 1, pdf_doc.numPages, callback);
|
||||
}).catch(function(error) {
|
||||
alert(error.message);
|
||||
if(callback){ callback(); }
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1044,7 +1124,7 @@
|
||||
passwordFunc(new_password);
|
||||
}
|
||||
|
||||
function pdfGetPage(pdf_doc, currentPage, pdfMaxPage){
|
||||
function pdfGetPage(pdf_doc, currentPage, pdfMaxPage, callback){
|
||||
pdf_doc.getPage(currentPage).then(function(page){
|
||||
var scale = 1.5;
|
||||
var viewport = page.getViewport(scale);
|
||||
@@ -1068,9 +1148,9 @@
|
||||
var file = new File([new Uint8Array(array)], "tmpfile.jpg", {type: 'image/jpeg'});
|
||||
fileArray.push(file);
|
||||
if(pdfMaxPage > currentPage){
|
||||
pdfGetPage(pdf_doc, currentPage + 1, pdfMaxPage);
|
||||
pdfGetPage(pdf_doc, currentPage + 1, pdfMaxPage, callback);
|
||||
}else{
|
||||
imgPreviewSetting(fileArray);
|
||||
if(callback){ callback(); }
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -227,12 +227,12 @@
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = 'ȸ<>ĺ<EFBFBD> <20><> <20><>Ÿ' THEN VGC.cost ELSE 0 END), 0) AS hang8_use_cost, "
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = 'Ȱ<><C8B0><EFBFBD><EFBFBD>' THEN VGC.cost ELSE 0 END), 0) AS hang9_use_cost "
|
||||
Query = Query & " FROM GROUP_COST_EST GCE LEFT JOIN V_GROUP_COST_NEW VGC "
|
||||
Query = Query & " ON VGC.d_code IN ( "
|
||||
Query = Query & " ON (VGC.d_code IN ( "
|
||||
Query = Query & " CASE WHEN GCE.depart_cd = 'S801' THEN 'S301' ELSE GCE.depart_cd END, "
|
||||
Query = Query & " CASE WHEN GCE.depart_cd = 'S801' THEN 'S401' ELSE GCE.depart_cd END, "
|
||||
Query = Query & " CASE WHEN GCE.depart_cd = 'S801' THEN 'S501' ELSE GCE.depart_cd END, "
|
||||
Query = Query & " CASE WHEN GCE.depart_cd = 'S801' THEN 'S601' ELSE GCE.depart_cd END "
|
||||
Query = Query & " ) "
|
||||
Query = Query & " ) OR (VGC.p_no = '" & Session("User_Number") & "' AND VGC.cost_date BETWEEN GCE.st_date AND GCE.ed_date AND vgc.txt_hangmok not in ('Ȱ<><C8B0><EFBFBD><EFBFBD>')))"
|
||||
Query = Query & " AND VGC.cost_date BETWEEN GCE.st_date AND GCE.ed_date "
|
||||
Query = Query & " WHERE use_yn = '1' "
|
||||
'<27><><EFBFBD>ؼ<EFBFBD> 2023-05-02 <20><>Ʈ<EFBFBD>ʵ<EFBFBD> <20>ѵ<EFBFBD> <20>߰<EFBFBD>
|
||||
@@ -348,7 +348,12 @@
|
||||
Query = Query & " ISNULL(SUM(CASE WHEN VGC.txt_hangmok = 'Ȱ<><C8B0><EFBFBD><EFBFBD>' THEN VGC.cost ELSE 0 END), 0) AS hang9_use_cost "
|
||||
Query = Query & " FROM GROUP_COST_EST GCE LEFT JOIN V_GROUP_COST_NEW VGC "
|
||||
IF Session("User_Number") = "20150302" OR Session("User_Number") = "20210405" OR Session("User_Number") = "20191202" OR Session("User_Number") = "20031102" OR Session("N_Depart") = "E" THEN
|
||||
Query = Query & " ON VGC.d_code = 'E101' AND VGC.cost_date BETWEEN GCE.st_date AND GCE.ed_date "
|
||||
IF Session("User_Number") = "20191202" THEN
|
||||
Query = Query & " ON VGC.d_code = 'M101'"
|
||||
ELSE
|
||||
Query = Query & " ON VGC.d_code = 'E101'"
|
||||
END IF
|
||||
Query = Query & " AND VGC.cost_date BETWEEN GCE.st_date AND GCE.ed_date "
|
||||
END IF
|
||||
'IF Session("User_Number") = "20000201" OR Session("User_Number") = "20160205" THEN '<27><><EFBFBD>ؼ<EFBFBD> 2023-05-02 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>λ<EFBFBD><CEBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ư<><C6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> E102<30><32> <20><><EFBFBD><EFBFBD>
|
||||
' Query = Query & " ON VGC.d_code = 'E101' AND VGC.cost_date BETWEEN GCE.st_date AND GCE.ed_date "
|
||||
@@ -452,6 +457,8 @@
|
||||
<!-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Ȱ<><C8B0><EFBFBD><EFBFBD> <20>ܿ<D7BF><DCBF><EFBFBD> <20>Ĵ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/ȸ<>ĺ<EFBFBD> <20><> <20><>Ÿ -->
|
||||
<%If Session("User_Number") = "20150302" OR Session("User_Number") = "20210405" OR Session("User_Number") = "20191202" OR Session("User_Number") = "20031102" OR Session("N_Depart") = "E" Then %>
|
||||
<option value="Ȱ<><C8B0><EFBFBD><EFBFBD>">Ȱ<><C8B0><EFBFBD><EFBFBD></option>
|
||||
<option value="<22>Ĵ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"><3E><EFBFBD><D7B7><EFBFBD><EEBFB5>(<28>Ĵ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)</option>
|
||||
<option value="ȸ<>ĺ<EFBFBD> <20><> <20><>Ÿ"><3E><EFBFBD><D7B7><EFBFBD><EEBFB5>(ȸ<>ĺ<EFBFBD> <20><> <20><>Ÿ)</option>
|
||||
<% else %>
|
||||
<option value="<22>Ĵ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"><3E>Ĵ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option>
|
||||
<option value="ȸ<>ĺ<EFBFBD> <20><> <20><>Ÿ">ȸ<>ĺ<EFBFBD> <20><> <20><>Ÿ</option>
|
||||
@@ -523,7 +530,7 @@
|
||||
if session("job_code") = "08" then
|
||||
preGroupfeeQuery = preGroupfeeQuery & " and depart_cd = '18' and p_job_part = '08'"
|
||||
else
|
||||
preGroupfeeQuery = preGroupfeeQuery & " and depart_cd = '18' and p_job_part <> '08' "
|
||||
preGroupfeeQuery = preGroupfeeQuery & " and depart_cd = '18' and p_job_part <> '08' AND p_no <> '20191202' "
|
||||
end if
|
||||
Elseif depart_cd_string <> "" then
|
||||
' 2023-05-15 <20><><EFBFBD>ؼ<EFBFBD> <20><>Ʈ<EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD> <20><> <20><EFBFBD><D7B7><EFBFBD> <20><><EFBFBD>볻<EFBFBD><EBB3BB> <20><> <20><> <20>ְ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>ڱ<EFBFBD><DAB1><EFBFBD> <20><><EFBFBD>볻<EFBFBD><EBB3BB><EFBFBD><EFBFBD> <20><> <20><>
|
||||
|
||||
@@ -550,18 +550,18 @@
|
||||
end if%>
|
||||
|
||||
<tr>
|
||||
<td colspan="5" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>ҼӺμ<D3BA>)</td>
|
||||
<td colspan="4" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<2F><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>)</td>
|
||||
<td colspan="5" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD></td>
|
||||
<td colspan="4" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>μ<EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>ӿ<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=tmp_title%></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>μ<EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>ӿ<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=tmp_title%></td>
|
||||
</tr>
|
||||
<%
|
||||
|
||||
@@ -316,7 +316,7 @@
|
||||
if($(this).prop("checked") == true){
|
||||
checkedConfirm.push($(this).data("d_no"));
|
||||
}else{
|
||||
uncheckedConfirm.push($(this).data("d_no"));
|
||||
uncheckedConfirm.push($(this).data("d_no")); // TEST: disable unchecked mail/action
|
||||
}
|
||||
});
|
||||
if(comment == "" && uncheckedConfirm.length > 0){
|
||||
|
||||
@@ -88,11 +88,41 @@ end if
|
||||
query = query & " b.p_sn LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " a.d_write_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " D1.d_cost_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " D1.d_cost_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " D2.d_cost_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " a.d_no LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target8 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target9 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target20 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' "
|
||||
query = query & " b.target20 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target21 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target22 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target23 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target24 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target25 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target26 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target27 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target28 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target29 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target30 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target31 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target32 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target33 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target34 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target35 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target36 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target37 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target38 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target39 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target40 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target41 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target42 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target43 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target44 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target45 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target46 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target47 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target48 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target49 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target50 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' "
|
||||
query = query & " ) "
|
||||
End If
|
||||
query = query & " ORDER BY a.d_sn DESC "
|
||||
@@ -135,12 +165,12 @@ end if
|
||||
<td width="5%" align="center" height="24" >No.</td>
|
||||
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD>з<EFBFBD></td>
|
||||
<td width="14%" align="center" height="24" ><3E>ŷ<EFBFBD>ó</td>
|
||||
<td width="6%"align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="6%"align="center" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td width="8%"align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="8%"align="center" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td width="4%"align="center" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td width="5%" align="center" height="24" ><3E><>û</td>
|
||||
<%if tmp_admin_chk = "1" then%>
|
||||
<td width="12%" align="center" height="24" ><3E><><EFBFBD>ҿ<EFBFBD><D2BF><EFBFBD></td>
|
||||
<td width="7%" align="center" height="24" ><3E><><EFBFBD>ҿ<EFBFBD><D2BF><EFBFBD></td>
|
||||
<%end if%>
|
||||
</tr>
|
||||
<%
|
||||
|
||||
@@ -683,18 +683,18 @@
|
||||
end if%>
|
||||
|
||||
<tr>
|
||||
<td colspan="5" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>ҼӺμ<D3BA>)</td>
|
||||
<td colspan="4" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD>/<2F><EFBFBD><EFBFBD><EFBFBD>(<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>)</td>
|
||||
<td colspan="5" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD></td>
|
||||
<td colspan="4" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>μ<EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>ӿ<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=tmp_title%></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>μ<EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E>ӿ<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=tmp_title%></td>
|
||||
</tr>
|
||||
<%
|
||||
|
||||
@@ -277,12 +277,12 @@
|
||||
'request("aa")
|
||||
|
||||
query = "insert into <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, target1, target2, target3, target4, target5, "
|
||||
query = query & " target6, target7, target8, target9, target10, target11, target12, target13, target14, target15, target16, target17, target20, target21, target97,target98,target99,target100,p_sn, <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, login_p_no, login_<6E≯<EFBFBD>,login_ip) values ( "
|
||||
query = query & " target6, target7, target8, target9, target10, target11, target12, target13, target14, target15, target16, target17, target20, target21, target97,target98,target99,target100,p_sn, <20>߱<EFBFBD><DFB1><EFBFBD>, <20>߱ð<DEBD>, login_p_no, login_<6E≯<EFBFBD>,login_ip, remark1) values ( "
|
||||
query = query & "'" & krc_no & "', "
|
||||
query = query & "'" & replace(title, " ", "") & "', "
|
||||
query = query & "'" & gap(1) & "', "
|
||||
query = query & "'" & CheckWord(gap(2)) & "', "
|
||||
query = query & "'" & gap(3) & "', "
|
||||
query = query & "'" & year(date) & "-" & zeroformat(month(date),2) & "-" & zeroformat(day(date),2) & "', "
|
||||
query = query & "'" & gap(4) & "', "
|
||||
query = query & "'" & gap(5) & "', "
|
||||
query = query & "'" & gap(6) & "', "
|
||||
@@ -312,7 +312,7 @@
|
||||
query = query & "'" & time() & "', "
|
||||
query = query & "'" & user_name(0) & "', "
|
||||
query = query & "'" & user_name(1) & "', "
|
||||
query = query & "'" & Session("USERIP") & "') "
|
||||
query = query & "'" & Session("USERIP") & "', '3') "
|
||||
'Response.Write query & "<br>"
|
||||
adoconn.execute query
|
||||
|
||||
|
||||
@@ -158,6 +158,11 @@ title(29, 2) = "
|
||||
tmp_view = "0"
|
||||
end if
|
||||
|
||||
'<27><><EFBFBD><EFBFBD> <20>ߴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>: <20>ް<EFBFBD><DEB0><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ٺ<EFBFBD><D9BA><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ޱ<EFBFBD>-<2D><EFBFBD><EEBFB5><EFBFBD>ο<EFBFBD>
|
||||
if i = 1 Or i = 5 Or i = 12 Or i = 23 then
|
||||
tmp_view = "0"
|
||||
end if
|
||||
|
||||
If Left(title(i, 1), 3) <> "DEL" Then
|
||||
if month(now()) < 10 then
|
||||
temp_approval_activity_date = "0" & month(now())
|
||||
|
||||
@@ -15,6 +15,30 @@ dim xd_no : xd_no=replace(replace(replace(replace(request("d_no"),"'",""),"""","
|
||||
dim sql
|
||||
select case xState
|
||||
case "del"
|
||||
Dim deleteRs, deleteTargetExists, deleteTargetCostType
|
||||
Dim deleteErrNumber, deleteErrDescription
|
||||
deleteTargetExists = False
|
||||
deleteTargetCostType = ""
|
||||
|
||||
On Error Resume Next
|
||||
adoConn.BeginTrans
|
||||
|
||||
Set deleteRs = Server.CreateObject("ADODB.Recordset")
|
||||
sql = "SELECT target16 FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> WITH (UPDLOCK, HOLDLOCK) "
|
||||
sql = sql & "WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '" & xd_no & "' AND del_yes_no = 'no' "
|
||||
deleteRs.Open sql, adoConn, adOpenStatic, adLockReadOnly
|
||||
If Err.Number = 0 Then
|
||||
If deleteRs.RecordCount > 0 Then
|
||||
deleteTargetExists = True
|
||||
If Not IsNull(deleteRs("target16")) Then
|
||||
deleteTargetCostType = LCase(Trim(CStr(deleteRs("target16"))))
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
If deleteRs.State = 1 Then deleteRs.Close
|
||||
Set deleteRs = Nothing
|
||||
|
||||
If deleteTargetExists Then
|
||||
sql=""
|
||||
sql=sql&" Declare @start_dt Varchar(10) "&vbCrLf
|
||||
sql=sql&" Declare @end_dt Varchar(10) "&vbCrLf
|
||||
@@ -27,7 +51,8 @@ select case xState
|
||||
sql=sql&" SELECT @start_dt = Convert(varchar(10), target1), @end_dt = Convert(varchar(10), target2), @user_no = Convert(varchar(8), login_p_no) FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>='<27>ް<EFBFBD><DEB0><EFBFBD>' AND <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ= @d_no "&vbCrLf
|
||||
|
||||
sql=sql&" UPDATE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> SET del_yes_no = 'yes' "&vbCrLf
|
||||
sql=sql&" WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ IN (SELECT d_no FROM cost_account WHERE job_prj_id IN (SELECT id FROM Job WHERE j_date BETWEEN @start_dt AND @end_dt AND j_p_no=@user_no AND j_detail_code > '0')) "&vbCrLf
|
||||
'sql=sql&" WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ IN (SELECT d_no FROM cost_account WHERE job_prj_id IN (SELECT id FROM Job WHERE j_date BETWEEN @start_dt AND @end_dt AND j_p_no=@user_no AND j_detail_code > '0')) "&vbCrLf
|
||||
sql=sql&" WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ='"&xd_no&"' "&vbCrLf
|
||||
sql=sql&" UPDATE Document SET d_delok='Y' "&vbCrLf
|
||||
sql=sql&" WHERE d_no IN (SELECT d_no FROM cost_account WHERE job_prj_id IN (SELECT id FROM Job WHERE j_date BETWEEN @start_dt AND @end_dt AND j_p_no=@user_no AND j_detail_code > '0')) "&vbCrLf
|
||||
sql=sql&" DELETE cost_account WHERE job_prj_id IN (SELECT id FROM Job WHERE j_date BETWEEN @start_dt AND @end_dt AND j_p_no=@user_no AND j_detail_code > '0') "&vbCrLf
|
||||
@@ -59,21 +84,21 @@ select case xState
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " and sebu = (select d_cost_name from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 AS varchar(100)) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " and cost_type = (select CAST(target16 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " ) - (select CAST(CAST(target5 AS varchar(100)) AS INT) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"'), "&VbCrlf
|
||||
sql = sql & " ) - (select CONVERT(money, REPLACE(CONVERT(varchar(100), target5), ',', '')) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"'), "&VbCrlf
|
||||
sql = sql & " cha_money = "&VbCrlf
|
||||
sql = sql & " ( "&VbCrlf
|
||||
sql = sql & " select cha_money from direct_cost where del_yes_no = 'no' and p_child_sn = (select CAST(target10 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " and sebu = (select d_cost_name from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 AS varchar(100)) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " and cost_type = (select CAST(target16 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " ) - (select CAST(CAST(target5 AS varchar(100)) AS INT) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " ) - (select CONVERT(money, REPLACE(CONVERT(varchar(100), target5), ',', '')) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " where del_yes_no = 'no' and p_child_sn = (select CAST(target10 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " and hangmok = (select CAST(target11 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " and sebu = (select d_cost_name from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 AS varchar(100)) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
sql = sql & " and cost_type = (select CAST(target16 AS varchar(100)) from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"') "&VbCrlf
|
||||
adoconn.execute sql
|
||||
End If
|
||||
If UCASE(Mid(xd_no, 10, 1)) = "A" Then
|
||||
If UCASE(Mid(xd_no, 10, 1)) = "A" And deleteTargetCostType <> "" And deleteTargetCostType <> "common" Then
|
||||
sql = " "
|
||||
sql = sql & " update direct_cost "
|
||||
sql = sql & " set direct_cost.act_money = convert(money, direct_cost.act_money) - B.cost, direct_cost.cha_money = convert(money, direct_cost.cha_money) - B.cost "
|
||||
@@ -83,218 +108,237 @@ select case xState
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target21, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target21, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target21, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target22, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target22, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target22, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target23, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target23, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target23, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target24, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target24, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target24, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target25, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target25, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target25, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target26, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target26, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target26, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target27, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target27, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target27, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target28, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target28, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target28, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target29, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target29, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target29, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target30, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target30, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target30, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target31, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target31, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target31, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target32, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target32, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target32, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target33, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target33, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target33, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target34, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target34, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target34, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target35, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target35, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target35, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target36, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target36, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target36, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target37, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target37, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target37, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target38, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target38, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target38, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target39, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target39, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target39, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target40, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target40, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target40, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target41, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target41, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target41, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target42, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target42, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target42, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target43, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target43, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target43, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target44, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target44, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target44, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target45, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target45, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target45, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target46, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target46, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target46, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target47, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target47, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target47, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target48, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target48, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target48, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target49, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target49, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target49, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' union all "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' union all "
|
||||
sql = sql & " select A.p_child_sn, A.hangmok, A.sebu, B.act_money, B.cha_money , A.cost "
|
||||
sql = sql & " from "
|
||||
sql = sql & " ( select CAST(dbo.split(dbo.split(target50, '^//^', 1), '^^', 2) as varchar) as p_child_sn, "
|
||||
sql = sql & " CAST(replace(dbo.split(target50, '^//^', 2), ',', '') as int) as cost, "
|
||||
sql = sql & " CAST(replace(dbo.split(target50, '^//^', 2), ',', '') as money) as cost, "
|
||||
sql = sql & " CAST(target11 as varchar) as hangmok, d_cost_name as sebu "
|
||||
sql = sql & " from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> a left outer join direct_costcode dc on CAST(target12 as varchar) = dc.id where <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = '"&xd_no&"' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu where B.del_yes_no='no' "
|
||||
sql = sql & " ) A left outer join direct_cost B on A.p_child_sn = B.p_child_sn and A.hangmok = B.hangmok and A.sebu = B.sebu and B.cost_type = '" & deleteTargetCostType & "' where B.del_yes_no='no' "
|
||||
sql = sql & " ) M group by p_child_sn, hangmok, sebu "
|
||||
sql = sql & " ) B "
|
||||
sql = sql & " where direct_cost.p_child_sn = B.p_child_sn and direct_cost.hangmok = B.hangmok and direct_cost.sebu = B.sebu and direct_cost.del_yes_no = 'no' "
|
||||
sql = sql & " where direct_cost.p_child_sn = B.p_child_sn and direct_cost.hangmok = B.hangmok and direct_cost.sebu = B.sebu and direct_cost.cost_type = '" & deleteTargetCostType & "' and direct_cost.del_yes_no = 'no' "
|
||||
adoconn.execute sql
|
||||
End If
|
||||
End If
|
||||
|
||||
deleteErrNumber = Err.Number
|
||||
deleteErrDescription = Err.Description
|
||||
If deleteErrNumber <> 0 Then
|
||||
Err.Clear
|
||||
adoConn.RollbackTrans
|
||||
Else
|
||||
Err.Clear
|
||||
adoConn.CommitTrans
|
||||
deleteErrNumber = Err.Number
|
||||
deleteErrDescription = Err.Description
|
||||
End If
|
||||
On Error GoTo 0
|
||||
|
||||
If deleteErrNumber <> 0 Then
|
||||
Response.Write "<script>alert('<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ó<><C3B3> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>߽<EFBFBD><DFBD>ϴ<EFBFBD>.');history.back();</script>"
|
||||
Response.End
|
||||
End If
|
||||
end select
|
||||
'@@@@@ <20><><EFBFBD><EFBFBD>ó<EFBFBD><C3B3> <20><> @@@@@@@@@@@
|
||||
|
||||
@@ -303,6 +347,45 @@ if x = "99" then
|
||||
x = "3"
|
||||
end if
|
||||
|
||||
dim title()
|
||||
Max_Title = 26
|
||||
dim sel_type
|
||||
redim title(Max_Title, 3)
|
||||
dim sel_year
|
||||
dim doc_year_list()
|
||||
sel_year = cstr(year(now))
|
||||
if request("sel_year") <> "" then
|
||||
sel_year = request("sel_year")
|
||||
end if
|
||||
query = "select distinct <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> order by <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
Rs.Open query, adoConn, 1
|
||||
redim title(Rs.recordcount, 3)
|
||||
title(0, 1) = "<22><>ü"
|
||||
i=0
|
||||
do while not Rs.eof
|
||||
i = i + 1
|
||||
title(i , 1) = Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
|
||||
Rs.movenext
|
||||
loop
|
||||
Rs.close
|
||||
|
||||
query = "select distinct left(<28>߱<EFBFBD><DFB1><EFBFBD>,4) as <20>߱<EFBFBD><DFB1><EFBFBD> from <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> order by left(<28>߱<EFBFBD><DFB1><EFBFBD>,4) desc"
|
||||
Rs.Open query, adoConn, 1
|
||||
redim doc_year_list(Rs.recordCount)
|
||||
i=0
|
||||
do while not Rs.eof
|
||||
i = i + 1
|
||||
doc_year_list(i) = Rs("<22>߱<EFBFBD><DFB1><EFBFBD>")
|
||||
Rs.movenext
|
||||
loop
|
||||
Rs.close
|
||||
|
||||
sel_type = request("sel_type")
|
||||
if trim(sel_type) = "" then
|
||||
sel_type = "0"
|
||||
end if
|
||||
p_hotvalue = request("p_hotvalue")
|
||||
|
||||
if request("gotopage") <> "" then
|
||||
tmp_currentpage = request("gotopage")
|
||||
else
|
||||
@@ -349,9 +432,11 @@ end if
|
||||
<form name="ess" method="post">
|
||||
<input type="hidden" name="toState" value="" ><!-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> -->
|
||||
<%
|
||||
query = " SELECT * "
|
||||
query = " SELECT a.*, b.* "
|
||||
query = query & " FROM Document a WITH(NOLOCK) "
|
||||
query = query & " INNER JOIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> b WITH(NOLOCK) on a.d_no = b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ "
|
||||
query = query & " LEFT OUTER JOIN direct_costcode D1 WITH(NOLOCK) ON CONVERT(VARCHAR(5), b.target11) = CONVERT(VARCHAR(5), D1.id) "
|
||||
query = query & " LEFT OUTER JOIN direct_costcode D2 WITH(NOLOCK) ON CONVERT(VARCHAR(5), b.target12) = CONVERT(VARCHAR(5), D2.id) "
|
||||
if x <> "4" then '<27>ݷ<EFBFBD><DDB7><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۼ<EFBFBD><DBBC>ڸ<EFBFBD> <20>ȵ<EFBFBD><C8B5><EFBFBD><EFBFBD><EFBFBD>.
|
||||
query = query & "WHERE b.login_p_no = '" & Session("User_Number") & "' "
|
||||
else
|
||||
@@ -372,7 +457,56 @@ end if
|
||||
query = query & " AND b.del_yes_no = 'yes' "
|
||||
end if
|
||||
query = query & " AND a.d_view = 'Y' "
|
||||
query = query & " AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>' AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F1BAB8B0><EFBFBD>' "
|
||||
If sel_type <> "0" Then
|
||||
query = query & " AND a.d_name = '" & title(sel_type, 1) & "' "
|
||||
Else
|
||||
query = query & " AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27>μ<EFBFBD><CEBC><EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><C3BB>' AND b.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <> '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F1BAB8B0><EFBFBD>' "
|
||||
End If
|
||||
If sel_year <> "all" Then
|
||||
query = query & " AND a.d_no LIKE 'KRC-" & sel_year & "%' "
|
||||
End If
|
||||
If p_hotvalue <> "" Then
|
||||
query = query & " AND ( "
|
||||
query = query & " b.p_sn LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " a.d_write_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " D1.d_cost_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " D2.d_cost_name LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " a.d_no LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target8 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target9 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target20 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target21 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target22 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target23 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target24 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target25 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target26 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target27 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target28 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target29 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target30 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target31 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target32 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target33 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target34 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target35 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target36 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target37 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target38 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target39 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target40 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target41 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target42 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target43 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target44 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target45 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target46 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target47 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target48 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target49 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' OR "
|
||||
query = query & " b.target50 LIKE '%" & replace(p_hotvalue, "_", "[_]") & "%' "
|
||||
query = query & " ) "
|
||||
End If
|
||||
query = query & "ORDER BY a.d_sn DESC "
|
||||
|
||||
Rs.Open query, adoConn, 1
|
||||
@@ -381,7 +515,31 @@ end if
|
||||
<font color=red><%=xadmin_print%></font>
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td style="padding:5"><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD><EFBFBD><EFBFBD> : <20><> <b class="tahoma_orange"><%=tmp_count%></b><3E><><EFBFBD><EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.</td>
|
||||
<td style="padding:5">
|
||||
<09>߱<EFBFBD><DFB1><EFBFBD> :
|
||||
<select name="sel_year" onchange="javascript:subit(0);">
|
||||
<option value="all" <%if sel_year = "all" then %> selected <% end if %>><3E><>ü</option>
|
||||
<%
|
||||
for i=1 To ubound(doc_year_list)
|
||||
%>
|
||||
<option value="<%=doc_year_list(i) %>" <%if doc_year_list(i) = sel_year then %> selected <% end if %>><%=doc_year_list(i) %><3E><></option>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</select> <20><><EFBFBD>ϰ<EFBFBD><CFB0><EFBFBD> : <20><> <b class="tahoma_orange"><%=formatnumber(tmp_count,0)%></b><3E><><EFBFBD><EFBFBD> <20><EFBFBD><D7B8><EFBFBD> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.
|
||||
|
||||
<%if tmp_project_chk = "1" OR tmp_admin_chk = "1" then%>
|
||||
<09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
<select name="sel_type" onchange="subit('2')" >
|
||||
<%for i = 0 to ubound(title)%>
|
||||
<OPTION value='<%=i%>' <%if cint(sel_type) = cint(i) then%>selected<%end if%>><% if title(i,1) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><F1BAB8B0><EFBFBD>" then response.write "<22><><EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD>" else response.Write title(i,1) end if %></option>
|
||||
<%next%>
|
||||
</select>
|
||||
<%end if%>
|
||||
|
||||
<input type="text" name='p_hotvalue' style="width:120;text-align:center;" value="<%=p_hotvalue%>">
|
||||
<img src="/images/common/btn_smallsrch.gif" align="absmiddle" onClick="subit('1')" style="cursor:pointer;"> <b class="tahoma_orange"> <20>ۼ<EFBFBD><DBBC><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>, <20>ŷ<EFBFBD>ó, <20><EFBFBD>, <20><><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ, ǰ<>ǹ<EFBFBD><C7B9><EFBFBD><EFBFBD><EFBFBD> <20>˻<EFBFBD> <20><><EFBFBD><EFBFBD></b>
|
||||
</td>
|
||||
</tr>
|
||||
<%If x="1" Then %>
|
||||
<tr>
|
||||
@@ -397,6 +555,7 @@ end if
|
||||
<td align="center" height="24" ><3E>ŷ<EFBFBD>ó</td>
|
||||
<td align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td width="4%" align="center" height="24" ><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td width="10%" align="center" height="24" >ó<><C3B3></td>
|
||||
<td width="5%" align="center" height="24" ><3E><>û</td>
|
||||
<td width="10%" align="center" height="24" ><3E>μ<CEBC><E2BFA9></td>
|
||||
@@ -466,13 +625,7 @@ end if
|
||||
tmp_flag = "t2"
|
||||
end If
|
||||
|
||||
if (tmp_admin_chk = "1" OR Session("loginuser") = "<22>翵<EFBFBD><E7BFB5>") AND Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
|
||||
tmp_value = " - " & FormatNumber(Replace(Rs("target5"), ",", ""), 0)
|
||||
elseif (tmp_admin_chk = "1" OR Session("loginuser") = "<22>翵<EFBFBD><E7BFB5>") AND Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "ǰ<>Ǽ<EFBFBD>" then
|
||||
tmp_value = " - " & FormatNumber(Replace(Rs("target5"), ",", ""), 0) & " [" & LEFT(Rs("target9"),20) & "]"
|
||||
else
|
||||
tmp_value = ""
|
||||
end if
|
||||
tmp_value = ""
|
||||
if not (isnull(Rs("p_sn")) or trim(Rs("p_sn")) = "") or right(Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"), 7) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
|
||||
tmp_value = tmp_value & " <20><>("
|
||||
if right(Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"), 7) = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" then
|
||||
@@ -574,6 +727,7 @@ end if
|
||||
<% end if%>
|
||||
</td>
|
||||
<td align="center" height="24" ><%=Rs("d_write_date")%></td>
|
||||
<td align="center" height="24" class="k_darkorange"><%=Rs("login_<6E≯<EFBFBD>")%></td>
|
||||
<td align="center" height="24" class="k_darkorange"><%=tmp_txt%></td>
|
||||
<% if x <> 99 and x = 1 and (Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") <> "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" or (Rs("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ǽ<EFBFBD>" and Rs("target20") = "") ) then%>
|
||||
<td align="center" height="24">
|
||||
@@ -705,6 +859,11 @@ end if
|
||||
document.ess.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function subit(a){
|
||||
document.ess.action = "mainpage_2014.asp?x=<%=x%>";
|
||||
document.ess.submit();
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
|
||||
@@ -82,6 +82,21 @@
|
||||
%>
|
||||
<!-- #include file = "../approval/inc_payapproval.asp" -->
|
||||
<!-- #include file = "../approval/inc_payapproval_line.asp" -->
|
||||
<%
|
||||
'<27><>ȯ<EFBFBD><C8AF> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>ø<EFBFBD><C3B8><EFBFBD> <20>ٷ<EFBFBD> <20><>ǥ<EFBFBD><C7A5>(<28><><EFBFBD><EFBFBD>ö)<29><><EFBFBD><EFBFBD> <20><><EFBFBD>ο<EFBFBD>û <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
If CStr(Session("User_Number")) = "20150302" And CInt(d_order_cnt) = 4 And CStr(d_order3) = "20150302" And CStr(d_order4) = "20150302" And CStr(d_order5) = "<22><><EFBFBD><EFBFBD>" Then
|
||||
|
||||
'Move the writer signature to approval slot 4
|
||||
tmp_txt4 = tmp_txt3
|
||||
tmp_txt3 = "<22><><EFBFBD><EFBFBD>"
|
||||
tmp_txt9 = tmp_txt8
|
||||
tmp_txt8 = "/"
|
||||
|
||||
d_order3 = "<22><><EFBFBD><EFBFBD>"
|
||||
d_order5 = tmp_ess(0, 0)
|
||||
d_order_cnt = 5
|
||||
End If
|
||||
%>
|
||||
<!-- #include file = "../approval/inc_preapproval.asp" -->
|
||||
<%
|
||||
target99 = tmp_txt1 & "^^" & tmp_txt2 & "^^" & tmp_txt3 & "^^" & tmp_txt4 & "^^" & tmp_txt5
|
||||
|
||||
@@ -208,12 +208,13 @@
|
||||
perQuery = perQuery & " OR (p_depart_now = 'S' AND p_team_now IN ('101','201')) "
|
||||
End if
|
||||
if session("User_Number") = "20160205" Then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <20>ۺ<EFBFBD><DBBA><EFBFBD> <20><><EFBFBD><EFBFBD> 250121 jelee
|
||||
perQuery = perQuery & " OR (p_depart_now IN ('R') AND p_team_now IN ('601','602','603','604','606') AND p_position_now = 3) "
|
||||
perQuery = perQuery & " OR (p_depart_now IN ('R') AND p_team_now IN ('601','602','603','604') AND p_position_now = 3) "
|
||||
End if
|
||||
if session("User_Number") = "20210107" Then '<27>Ż<EFBFBD><C5BB><EFBFBD> - <20>ۺ<EFBFBD><DBBA><EFBFBD> R&D<><44><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'20260403 <20><><EFBFBD>ؼ<EFBFBD> <20>Ż<EFBFBD><C5BB><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'<27>ۺ<EFBFBD><DBBA><EFBFBD> R&D<><44><EFBFBD><EFBFBD> <20><>ȯ2, <20><>ȯ3 <20><><EFBFBD><EFBFBD><EFBFBD>ϰ<EFBFBD> <20><>ȸ
|
||||
perQuery = perQuery & " OR (p_depart_now IN ('R') AND p_team_now IN ('901') AND p_no NOT in ('20251003','20251004')) "
|
||||
perQuery = perQuery & " OR (p_depart_now IN ('R') AND p_team_now IN ('606') AND p_position_now = 3) "
|
||||
'<27>ش<EFBFBD><D8B4>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ۿ<EFBFBD> <20><><EFBFBD> <20>ش<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'perQuery = perQuery & " OR (p_depart_now IN ('R') AND p_team_now IN ('605') AND p_position_now = 3) "
|
||||
End if
|
||||
@@ -224,12 +225,12 @@
|
||||
perQuery = perQuery & " CASE WHEN p_rank_now = 10 THEN 24 WHEN p_rank_now = 16 THEN 0 WHEN p_rank_now = 11 THEN 31 ELSE p_rank_now END, krc_in_date "
|
||||
|
||||
if( Request.ServerVariables("REMOTE_ADDR") = "10.10.13.81" or Request.ServerVariables("REMOTE_ADDR") = "10.10.13.186" or Request.ServerVariables("REMOTE_ADDR") = "::1")then
|
||||
response.write "------ REMOTE_ADDR : "& Request.ServerVariables("REMOTE_ADDR") &"-------<br>"
|
||||
response.write "------ User_Number : "& Session("User_Number") &"-------<br>"
|
||||
response.write "------ teamplace : "& Session("teamplace") &"-------<br>"
|
||||
response.write "------ Depart_Code : "& Session("Depart_Code") &"-------<br>"
|
||||
response.write "------ N_depart : "& Session("N_depart") &"-------<br>"
|
||||
response.write "------ N_team : "& Session("N_team") &"-------<br>"
|
||||
'response.write "------ REMOTE_ADDR : "& Request.ServerVariables("REMOTE_ADDR") &"-------<br>"
|
||||
'response.write "------ User_Number : "& Session("User_Number") &"-------<br>"
|
||||
'response.write "------ teamplace : "& Session("teamplace") &"-------<br>"
|
||||
'response.write "------ Depart_Code : "& Session("Depart_Code") &"-------<br>"
|
||||
'response.write "------ N_depart : "& Session("N_depart") &"-------<br>"
|
||||
'response.write "------ N_team : "& Session("N_team") &"-------<br>"
|
||||
'response.write perQuery
|
||||
end if
|
||||
|
||||
@@ -250,7 +251,7 @@
|
||||
groupQuery = groupQuery & " FROM V_GROUP_COST_NEW VGC LEFT JOIN T_PROJECT_METHOD TPM ON VGC.txt_pjt = TPM.p_child_sn "
|
||||
groupQuery = groupQuery & " WHERE VGC.p_no IN (" & p_no_arr & ") "
|
||||
groupQuery = groupQuery & " AND VGC.cost_date LIKE '" & ym & "%' "
|
||||
response.write groupQuery
|
||||
'response.write groupQuery
|
||||
|
||||
jobQuery = ""
|
||||
jobQuery = jobQuery & " SELECT JL.p_no "
|
||||
@@ -270,7 +271,7 @@
|
||||
jobQuery = jobQuery & " LEFT JOIN Job_Code JC ON JL.j_contents = JC.j_code "
|
||||
jobQuery = jobQuery & " LEFT JOIN cost_category CC ON CA.cost_code = CC.cost_code "
|
||||
jobQuery = jobQuery & " WHERE p_no IN (" & p_no_arr & ") AND JL.j_date LIKE '" & ym & "%' "
|
||||
response.write "<br>"& jobquery
|
||||
'response.write "<br>"& jobquery
|
||||
|
||||
loginQuery = ""
|
||||
loginQuery = loginQuery & " SELECT p_no, ymd, login_time, logout_time, gap_time "
|
||||
@@ -850,11 +851,18 @@
|
||||
tmpHTML += "<td>" + obj.cost_date + "</td><td style='text-align:left;'>[" + obj.txt_pjt + "] " + obj.p_subject + "</td><td>" + obj.txt_hangmok + "</td><td>" + obj.contents + "</td><td>" + commify(obj.cost) + "</td>";
|
||||
tmpHTML += "</tr>";
|
||||
});
|
||||
var sumGroupfee = groupBySum(selWeekGroupfeeArr, ["weekNum"], ["cost"]);
|
||||
// var sumGroupfee = groupBySum(selWeekGroupfeeArr, ["weekNum"], ["cost"]);
|
||||
var totalGroupfee = 0;
|
||||
|
||||
$.each(selWeekGroupfeeArr, function(idx, obj) {
|
||||
totalGroupfee += Number(String(obj.cost).replace(/,/g, "")) || 0;
|
||||
});
|
||||
|
||||
tmpHTML += "</tbody>";
|
||||
tmpHTML += "<tfoot>";
|
||||
tmpHTML += "<tr>";
|
||||
tmpHTML += "<td colspan='4'><3E><><EFBFBD><EFBFBD> <20>հ<EFBFBD></td><td>" + commify(sumGroupfee[0].cost) + "</td>";
|
||||
// tmpHTML += "<td colspan='4'><3E><><EFBFBD><EFBFBD> <20>հ<EFBFBD></td><td>" + commify(sumGroupfee[0].cost) + "</td>";
|
||||
tmpHTML += "<td colspan='4'><3E><><EFBFBD><EFBFBD> <20>հ<EFBFBD></td><td>" + commify(totalGroupfee) + "</td>";
|
||||
tmpHTML += "</tr>";
|
||||
tmpHTML += "</tfoot>";
|
||||
tmpHTML += "</table>";
|
||||
|
||||
@@ -72,54 +72,49 @@ tmp_dcode(19, 2) = "4" '
|
||||
tmp_dcode(20, 1) = "3" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>COMM (3, 6) 3<><33> <20><>, 6<><36> <20><>
|
||||
tmp_dcode(20, 2) = "6" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>COMM (3, 6) 3<><33> <20><>, 6<><36> <20><>
|
||||
|
||||
tmp_dcode(61, 1) = "60" 'PSBU 1
|
||||
tmp_dcode(61, 2) = "1" 'PSBU 1
|
||||
tmp_dcode(62, 1) = "60" 'PSBU 2
|
||||
tmp_dcode(62, 2) = "2" 'PSBU 2
|
||||
tmp_dcode(63, 1) = "60" 'PSBU 3
|
||||
tmp_dcode(63, 2) = "3" 'PSBU 3
|
||||
tmp_dcode(65, 1) = "3" '<EFBFBD>ۺ<EFBFBD><EFBFBD><EFBFBD>KPC<EFBFBD><EFBFBD>
|
||||
tmp_dcode(65, 2) = "7" '<EFBFBD>ۺ<EFBFBD><EFBFBD><EFBFBD>KPC<EFBFBD><EFBFBD>
|
||||
|
||||
' tmp_dcode(64, 1) = "61" 'PSBU 4
|
||||
tmp_dcode(64, 1) = "60" 'PSBU 4
|
||||
tmp_dcode(64, 2) = "4" 'PSBU 4
|
||||
' tmp_dcode(65, 1) = "60" 'PSBU 5
|
||||
' tmp_dcode(65, 2) = "5" 'PSBU 5
|
||||
tmp_dcode(66, 1) = "60" 'PSBU 6
|
||||
tmp_dcode(66, 2) = "6" 'PSBU 6
|
||||
'=======================================================================
|
||||
'<27>μ<EFBFBD> <20><><EFBFBD><EFBFBD>(<28>ۺ<EFBFBD><DBBA><EFBFBD> : 60<36><30><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : 70<37><30><EFBFBD><EFBFBD>)
|
||||
'=======================================================================
|
||||
'<EFBFBD>ۺ<EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>ۺ<EFBFBD><DBBA><EFBFBD>2<EFBFBD><EFBFBD>,4<><EFBFBD>)
|
||||
tmp_dcode(62, 1) = "60" 'PSBU 2
|
||||
tmp_dcode(62, 2) = "2" 'PSBU 2
|
||||
tmp_dcode(64, 1) = "60" 'PSBU 4
|
||||
tmp_dcode(64, 2) = "4" 'PSBU 4
|
||||
|
||||
tmp_dcode(71, 1) = "70" 'MSBU 1
|
||||
tmp_dcode(71, 2) = "1" 'MSBU 1
|
||||
tmp_dcode(72, 1) = "70" 'MSBU 2
|
||||
tmp_dcode(72, 2) = "2" 'MSBU 2
|
||||
tmp_dcode(73, 1) = "70" 'MSBU 3
|
||||
tmp_dcode(73, 2) = "3" 'MSBU 3
|
||||
'<27>ۺ<EFBFBD><DBBA><EFBFBD>2<EFBFBD><32><EFBFBD><EFBFBD>(<28>ۺ<EFBFBD><DBBA><EFBFBD>6<EFBFBD><EFBFBD>,7<><EFBFBD>)
|
||||
tmp_dcode(66, 1) = "61" 'PSBU 6
|
||||
tmp_dcode(66, 2) = "6" 'PSBU 6
|
||||
tmp_dcode(91, 1) = "61" '<27>ۺ<EFBFBD><DBBA><EFBFBD>R&D <20><><EFBFBD><EFBFBD> <20>Ż<EFBFBD><C5BB><EFBFBD>
|
||||
tmp_dcode(91, 2) = "7" '<27>ۺ<EFBFBD><DBBA><EFBFBD>R&D <20><><EFBFBD><EFBFBD> <20>Ż<EFBFBD><C5BB><EFBFBD>
|
||||
|
||||
' tmp_dcode(74, 1) = "71" 'MSBU 4
|
||||
'<EFBFBD>ۺ<EFBFBD><EFBFBD><EFBFBD>KPC<EFBFBD><EFBFBD>
|
||||
tmp_dcode(65, 1) = "62" '<27>ۺ<EFBFBD><DBBA><EFBFBD>KPC<50><EFBFBD>
|
||||
tmp_dcode(65, 2) = "0" '<27>ۺ<EFBFBD><DBBA><EFBFBD>KPC<50><EFBFBD>
|
||||
|
||||
' tmp_dcode(81, 1) = "80" 'ABC
|
||||
' tmp_dcode(81, 2) = "1" 'ABC
|
||||
|
||||
' tmp_dcode(82, 1) = "82" 'DAO
|
||||
' tmp_dcode(82, 2) = "0" 'DAO
|
||||
|
||||
' tmp_dcode(90, 1) = "1" 'TF <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
' tmp_dcode(90, 2) = "0" 'TF <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
tmp_dcode(91, 1) = "91" '<27>ۺ<EFBFBD><DBBA><EFBFBD>R&D <20><><EFBFBD><EFBFBD> <20>Ż<EFBFBD><C5BB><EFBFBD>
|
||||
tmp_dcode(91, 2) = "0" '<27>ۺ<EFBFBD><DBBA><EFBFBD>R&D <20><><EFBFBD><EFBFBD> <20>Ż<EFBFBD><C5BB><EFBFBD>
|
||||
tmp_dcode(65, 1) = "91" 'PSBU 5
|
||||
tmp_dcode(65, 2) = "1" 'PSBU 5
|
||||
'<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>,2<><EFBFBD>,3<><EFBFBD>)
|
||||
tmp_dcode(71, 1) = "70" 'MSBU 1
|
||||
tmp_dcode(71, 2) = "1" 'MSBU 1
|
||||
tmp_dcode(72, 1) = "70" 'MSBU 2
|
||||
tmp_dcode(72, 2) = "2" 'MSBU 2
|
||||
tmp_dcode(73, 1) = "70" 'MSBU 3
|
||||
tmp_dcode(73, 2) = "3" 'MSBU 3
|
||||
|
||||
tmp_dcode(93, 1) = "93" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>缾<EFBFBD><E7BCBE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_dcode(93, 2) = "0" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>缾<EFBFBD><E7BCBE> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
'<27><><EFBFBD>μ<EFBFBD> <20>μ<EFBFBD><CEBC><EFBFBD> <20><> <20>ӿ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
Dim tmp_ess(99, 50)
|
||||
'tmp_ess(0, 0) = "20080101" 'ȸ<><C8B8> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <20><>ǥ<EFBFBD>̻<EFBFBD> <09><><EFBFBD>¿<EFBFBD>(2019<31><39> 1<><31> 2<><32><EFBFBD>ڷ<EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
tmp_ess(0, 0) = "20190301" 'ȸ<><C8B8> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> - <20><>ǥ<EFBFBD>̻<EFBFBD> <09><><EFBFBD><EFBFBD>ö(2023<32><33> 11<31><31> 28<32><38><EFBFBD>ڷ<EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
|
||||
tmp_ess(3, 0) = "<22><><EFBFBD><EFBFBD>" '<27><EFBFBD><EEBFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (<28><>ǥ<EFBFBD><C7A5> <20><><EFBFBD><EFBFBD>)
|
||||
'=======================================================================
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><EEBFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'=======================================================================
|
||||
|
||||
'================ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, DIN, <20>濵<EFBFBD><E6BFB5>ȭ<EFBFBD><C8AD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ================
|
||||
tmp_ess(3, 0) = "<22><><EFBFBD><EFBFBD>" '<27><EFBFBD><EEBFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> (<28><>ǥ<EFBFBD><C7A5> <20><><EFBFBD><EFBFBD>)
|
||||
'response.write Session("N_depart") &"________ "& Session("N_team")
|
||||
If Session("N_depart") = "S" AND Session("N_team") = "501" Then '501:Ű<><C5B0>
|
||||
tmp_ess(3, 0) = "20031102" ' ä<><C3A4><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
@@ -131,8 +126,6 @@ ELSEIF Session("N_depart") = "S" AND Session("N_team") = "601" Then'601:
|
||||
tmp_ess(3, 0) = "20031102" ' ä<><C3A4><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
ELSEIF Session("N_depart") = "S" AND (Session("N_team") = "101" OR Session("N_team") = "201") Then'DIN, DIN(QC)
|
||||
tmp_ess(3, 0) = "20210405" '//-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (2025<32><35>12<31><32> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD> <20><><EFBFBD>翡 <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><D7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
'tmp_ess(3, 0) = "20151203" '//-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
' tmp_ess(2, 0) = "20151203" '//-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
End If
|
||||
|
||||
tmp_ess(3, 1) = "20160203" '<27><><EFBFBD><EFBFBD><EFBFBD>ͺм<CDBA><D0BC><EFBFBD> <20>鼺<EFBFBD><E9BCBA>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
@@ -141,33 +134,25 @@ tmp_ess(3, 4) = "20210302" '
|
||||
tmp_ess(3, 6) = "20220901" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>COMM <20>̼<EFBFBD><CCBC><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
|
||||
tmp_ess(3, 2) = "20210405" 'DIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
' tmp_ess(3, 2) = "20151203" 'DIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
' tmp_ess(2, 1) = "20181009" 'FW<EFBFBD><EFBFBD> <20><><EFBFBD>ξ<EFBFBD>
|
||||
' tmp_ess(2, 2) = "20210405" '<27><><EFBFBD><EFBFBD><EFBFBD>Ͻ<EFBFBD><CFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
' tmp_ess(2, 3) = "20200103" 'QC<51><EFBFBD> <20><><EFBFBD>̾<EFBFBD>
|
||||
tmp_ess(3, 5) = "20191202" '<27>濵<EFBFBD><E6BFB5>ȭ<EFBFBD><C8AD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ü <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_ess(3, 5) = "20191202" '<EFBFBD>濵<EFBFBD><EFBFBD>ȭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_ess(3, 7) = "20150302" '<EFBFBD>ۺ<EFBFBD><EFBFBD><EFBFBD>KPC<EFBFBD><EFBFBD> <20><EFBFBD>ȯ
|
||||
|
||||
tmp_ess(4, 2) = "20191202" '<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><CEB4><EFBFBD> <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ü <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD>ݰ<EFBFBD><DDB0>꼭 ó<><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
tmp_ess(4, 3) = "20210403" '<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><CEB4><EFBFBD> <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28>ް<EFBFBD><DEB0><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ٺ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
tmp_ess(4, 4) = "20210403" '<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD>δ<EFBFBD><CEB4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ó<><C3B3>, <20><><EFBFBD><EFBFBD><EFBFBD>Է<EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
'================ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, DIN, <20>濵<EFBFBD><E6BFB5>ȭ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ================
|
||||
|
||||
|
||||
' -- 2025-07-21 jelee <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
' <20>ۺ<EFBFBD><DBBA><EFBFBD>
|
||||
'================ <20>ۺ<EFBFBD><DBBA><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ================
|
||||
'<EFBFBD>ۺ<EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_ess(60, 0) = "20160205" 'P1 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
' tmp_ess(60, 1) = "20160205" 'PSBU1 <09><><EFBFBD><EFBFBD>
|
||||
tmp_ess(60, 2) = "20140804" 'PSBU2 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
' tmp_ess(60, 3) = "20190101" 'PSBU3 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
tmp_ess(60, 4) = "20190102" 'PSBU4 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
' tmp_ess(60, 5) = "20230704" 'PSBU5 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
tmp_ess(60, 6) = "20191001" 'PSBU6 <09><>â<EFBFBD><C3A2>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
|
||||
'2<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>϶<EFBFBD> <20>츮<EFBFBD><EFBFBD> <EFBFBD><EFBFBD>.
|
||||
' tmp_ess(61, 0) = "20210107" 'P2 <20>Ż<EFBFBD><C5BB><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
' tmp_ess(61, 4) = "20190102" 'PSBU4 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
' tmp_ess(61, 5) = "20210107" 'PSBU5 <09>Ż<EFBFBD><C5BB><EFBFBD> PSBU5 <20><EFBFBD><D7B7><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ѱ<EFBFBD><D1B0><EFBFBD><D7B7><EFBFBD><EFBFBD><EFBFBD> <20>븮 <20><><EFBFBD><EFBFBD>
|
||||
' tmp_ess(61, 5) = "20230704" 'PSBU5 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
' tmp_ess(61, 6) = "20191001" 'PSBU6 <09><>â<EFBFBD><C3A2>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
'<EFBFBD>ۺ<EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_ess(61, 0) = "20210107" 'P2 <20>Ż<EFBFBD><C5BB><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
tmp_ess(61, 6) = "20191001" 'PSBU6 <09><>â<EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
tmp_ess(61, 7) = "20210107" 'PSBU7 <09>Ż<EFBFBD><C5BB><EFBFBD> PSBU7 <20><EFBFBD><D7B7><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ѱ<EFBFBD><D1B0><EFBFBD><D7B7><EFBFBD><EFBFBD><EFBFBD> <20>븮 <20><><EFBFBD><EFBFBD>
|
||||
|
||||
'<EFBFBD>ۺ<EFBFBD><EFBFBD><EFBFBD>KPC<EFBFBD><EFBFBD>
|
||||
tmp_ess(62, 0) = "20150302" '<27>ۺ<EFBFBD><DBBA><EFBFBD>KPC <20><>ȯ
|
||||
|
||||
' <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
tmp_ess(70, 0) = "20190601" 'M1 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
||||
@@ -175,29 +160,15 @@ tmp_ess(70, 1) = "20160301" 'MSBU1
|
||||
tmp_ess(70, 2) = "20190601" 'MSBU2 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> MSBU2 <20><EFBFBD><D7B7><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ѱ<EFBFBD><D1B0><EFBFBD><D7B7><EFBFBD><EFBFBD><EFBFBD> <20>븮 <20><><EFBFBD><EFBFBD>_2025-12-29
|
||||
tmp_ess(70, 3) = "20210701" 'MSBU2 <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><EFBFBD><D7B7><EFBFBD>)
|
||||
|
||||
'2<><32><EFBFBD><EFBFBD> <20>϶<EFBFBD> <20>츮<EFBFBD><EFBFBD> <EFBFBD><EFBFBD>.
|
||||
' tmp_ess(71, 0) = "20190301" 'M2 <20><><EFBFBD><EFBFBD>ö(<28><>ǥ) 2024-06-17 M2<4D><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ö<EFBFBD><EFBFBD>ǥ<EFBFBD><EFBFBD> <20>븮 <20><><EFBFBD><EFBFBD>
|
||||
' tmp_ess(71, 3) = "20210703" 'MSBU3 <09><><EFBFBD>ذ<EFBFBD>(<28>Ѱ<EFBFBD> <20><EFBFBD><D7B7><EFBFBD>)
|
||||
|
||||
' AIBD
|
||||
' tmp_ess(80, 0) = "20190301" 'AIBD <09><><EFBFBD><EFBFBD>ö(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
' tmp_ess(80, 1) = "20210907" 'AIBD <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28>Ѱ<EFBFBD> <20><EFBFBD><D7B7><EFBFBD>)
|
||||
|
||||
' TF <20><><EFBFBD><EFBFBD>ö<EFBFBD><C3B6><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD>ڵ<EFBFBD>
|
||||
' tmp_ess(90, 0) = "20000201" 'TF <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
tmp_ess(91, 0) = "20210107" '<27>ۺ<EFBFBD><DBBA><EFBFBD>R&D<><44><EFBFBD><EFBFBD> <09>Ż<EFBFBD><C5BB><EFBFBD>
|
||||
tmp_ess(91, 1) = "20150302" '<27>ۺ<EFBFBD><DBBA><EFBFBD>R&D<><44><EFBFBD><EFBFBD> - <20>ۺ<EFBFBD><DBBA><EFBFBD>5<EFBFBD><EFBFBD> <20><EFBFBD><D7B7><EFBFBD> <09><>ȯ
|
||||
tmp_ess(93, 0) = "20210801" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>缾<EFBFBD><E7BCBE> <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
'================ <20>ۺ<EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ================
|
||||
|
||||
If Session("N_depart") = "R" AND Session("N_team") = "605" Then '605:<3A>ۺ<EFBFBD><DBBA><EFBFBD>5<EFBFBD><EFBFBD>
|
||||
tmp_ess(91, 0) = "20190301" 'PSBU5 <20><><EFBFBD><EFBFBD>ö(<28><>ǥ) <20>ۺ<EFBFBD><DBBA><EFBFBD>5<EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ö<EFBFBD><C3B6>ǥ<EFBFBD><C7A5> <20>븮 <20><><EFBFBD><EFBFBD>_2025-12-29
|
||||
End If
|
||||
|
||||
tmp_ess(93, 0) = "20210801" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>缾<EFBFBD><E7BCBE> <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> üũ
|
||||
if replace(replace(Request.ServerVariables("REMOTE_ADDR"), "10.10.20.", "10.10.13."), "10.10.17.", "10.10.13.") = session("admin_ip") then
|
||||
if replace(replace(Request.ServerVariables("REMOTE_ADDR"), "10.10.20.", "10.10.13."), "10.10.17.", "10.10.13.") = session("admin_ip") or cstr(Session("User_Number")) = cstr(tmp_ess(3, 5)) then
|
||||
tmp_admin_chk = "1"
|
||||
else
|
||||
tmp_admin_chk = "0"
|
||||
@@ -239,8 +210,6 @@ tmp_res.close
|
||||
|
||||
set tmp_res = nothing
|
||||
|
||||
|
||||
|
||||
Dim my_pos
|
||||
'============================================================================
|
||||
'<27>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD><EFBFBD> <20><>ġ<EFBFBD><C4A1> <20>ľ<EFBFBD>(<28><><EFBFBD><EFBFBD> 0:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 1:<3A><><EFBFBD><EFBFBD>, 2:<3A><><EFBFBD><EFBFBD>, 3:<3A>μ<EFBFBD><CEBC><EFBFBD>, 4:<3A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, 5:<3A>ӿ<EFBFBD>, 6:<3A><><EFBFBD><EFBFBD>, 7:<3A><>ȸ<EFBFBD><C8B8>, 8:ȸ<><C8B8>)
|
||||
|
||||
@@ -418,9 +418,12 @@
|
||||
|
||||
if pay_Array_new(i,10) <> "" then
|
||||
act_sum = cdbl(act_sum) + cdbl(pay_Array_new(i,10)) '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
If i = 0 Then
|
||||
act_sum = cdbl(act_sum) + cdbl(pay_Array_new(i,17)) + cdbl(pay_Array_new(i,18))
|
||||
job_sum = cdbl(pay_Array_new(i,18))
|
||||
'<27>ǻ簡 <20>ƴѰ<C6B4><D1B0>쿡<EFBFBD><ECBFA1> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD><C3BA><EFBFBD> <20>߰<EFBFBD>
|
||||
If cost_type <> "field" Then
|
||||
If i = 0 Then
|
||||
act_sum = cdbl(act_sum) + cdbl(pay_Array_new(i,17)) + cdbl(pay_Array_new(i,18))
|
||||
job_sum = cdbl(pay_Array_new(i,18))
|
||||
End If
|
||||
End If
|
||||
end if
|
||||
|
||||
@@ -654,6 +657,8 @@
|
||||
<%
|
||||
NEXT
|
||||
%>
|
||||
'<27>ǻ簡 <20>ƴѰ<C6B4><D1B0>쿡<EFBFBD><ECBFA1> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD>ú<EFBFBD><C3BA><EFBFBD> <20>߰<EFBFBD>
|
||||
<%if cost_type <> "field" then%>
|
||||
<tr>
|
||||
<td class='align-middle text-center'><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class='align-middle text-center' colspan="9"></td>
|
||||
@@ -668,6 +673,7 @@
|
||||
<td class='align-middle text-center'>-</td>
|
||||
<td class='align-middle text-center'>-</td>
|
||||
</tr>
|
||||
<%end if%>
|
||||
<tr>
|
||||
<td class='align-middle text-center' rowspan="3"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class='align-middle text-center' rowspan="3"><b class="tahoma_orange"><%=formatnumber(p_cont_cost,0)%></b> <20><><br>(<28>ΰ<EFBFBD><CEB0><EFBFBD> <20><><EFBFBD><EFBFBD>)</td>
|
||||
|
||||
94
ess/doc_attach_add.asp
Normal file
94
ess/doc_attach_add.asp
Normal file
@@ -0,0 +1,94 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Response.CharSet = "euc-kr"
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.Expires = -1
|
||||
|
||||
Dim attachClientIp
|
||||
attachClientIp = Replace(Replace(Trim(Request.ServerVariables("REMOTE_ADDR")), "10.10.20.", "10.10.13."), "10.10.17.", "10.10.13.")
|
||||
|
||||
If attachClientIp <> "10.10.13.47" And _
|
||||
attachClientIp <> "10.10.13.105" And _
|
||||
attachClientIp <> "10.10.13.48" And _
|
||||
attachClientIp <> "10.10.13.6" And _
|
||||
attachClientIp <> "10.10.13.29" And _
|
||||
attachClientIp <> "10.10.13.186" Then
|
||||
Response.Write "{""result"":""denied""}"
|
||||
Response.End
|
||||
End If
|
||||
|
||||
Dim uploadform, fso, krc_no, folderPath, i, foundSlot, targetPath, fileName, ext
|
||||
Dim allowedExt, folderObj, oneFile, us, dt, idxPart
|
||||
Dim usedSlot(20)
|
||||
|
||||
' PDFs are rasterized into jpg on the client (pdf.js) before upload, same as the
|
||||
' registration page, so the server only ever needs to save the file as-is.
|
||||
allowedExt = "|jpg|jpeg|png|gif|zip|pdf|hwp|doc|docx|xls|xlsx|ppt|pptx|"
|
||||
|
||||
Set uploadform = Server.CreateObject("DEXT.FileUpload")
|
||||
uploadform.Codepage = 949
|
||||
|
||||
krc_no = uploadform("krc_no")
|
||||
|
||||
If krc_no = "" Or InStr(krc_no, "..") > 0 Or InStr(krc_no, "/") > 0 Or InStr(krc_no, "\") > 0 Then
|
||||
Response.Write "{""result"":""fail""}"
|
||||
Response.End
|
||||
End If
|
||||
|
||||
fileName = Trim(uploadform("attach_file")(1).FileName)
|
||||
|
||||
If fileName = "" Then
|
||||
Response.Write "{""result"":""fail""}"
|
||||
Response.End
|
||||
End If
|
||||
|
||||
ext = LCase(Trim(Mid(fileName, InStrRev(fileName, ".") + 1)))
|
||||
|
||||
If InStr(allowedExt, "|" & ext & "|") = 0 Then
|
||||
Response.Write "{""result"":""badtype""}"
|
||||
Response.End
|
||||
End If
|
||||
|
||||
Set fso = Server.CreateObject("Scripting.FileSystemObject")
|
||||
folderPath = Server.Mappath("/") & "/Upload/DOC_ATTACH/" & krc_no
|
||||
|
||||
If fso.FolderExists(folderPath) = False Then
|
||||
fso.CreateFolder folderPath
|
||||
End If
|
||||
|
||||
' find used index slots regardless of extension
|
||||
Set folderObj = fso.GetFolder(folderPath)
|
||||
For Each oneFile In folderObj.Files
|
||||
us = InStrRev(oneFile.Name, "_")
|
||||
dt = InStrRev(oneFile.Name, ".")
|
||||
If us > 0 And dt > us Then
|
||||
idxPart = Mid(oneFile.Name, us + 1, dt - us - 1)
|
||||
If IsNumeric(idxPart) Then
|
||||
If CInt(idxPart) >= 1 And CInt(idxPart) <= 20 Then
|
||||
usedSlot(CInt(idxPart)) = 1
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
|
||||
foundSlot = 0
|
||||
For i = 1 To 20
|
||||
If usedSlot(i) <> 1 Then
|
||||
foundSlot = i
|
||||
Exit For
|
||||
End If
|
||||
Next
|
||||
|
||||
If foundSlot = 0 Then
|
||||
Response.Write "{""result"":""full""}"
|
||||
Response.End
|
||||
End If
|
||||
|
||||
targetPath = folderPath & "/" & krc_no & "_" & CStr(foundSlot) & "." & ext
|
||||
uploadform("attach_file")(1).saveAs(targetPath)
|
||||
|
||||
Response.Write "{""result"":""ok""}"
|
||||
|
||||
Set fso = Nothing
|
||||
Set uploadform = Nothing
|
||||
%>
|
||||
84
ess/doc_attach_del.asp
Normal file
84
ess/doc_attach_del.asp
Normal file
@@ -0,0 +1,84 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Response.CharSet = "euc-kr"
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.Expires = -1
|
||||
|
||||
Dim attachClientIp
|
||||
attachClientIp = Replace(Replace(Trim(Request.ServerVariables("REMOTE_ADDR")), "10.10.20.", "10.10.13."), "10.10.17.", "10.10.13.")
|
||||
|
||||
If attachClientIp <> "10.10.13.47" And _
|
||||
attachClientIp <> "10.10.13.105" And _
|
||||
attachClientIp <> "10.10.13.48" And _
|
||||
attachClientIp <> "10.10.13.6" And _
|
||||
attachClientIp <> "10.10.13.29" And _
|
||||
attachClientIp <> "10.10.13.186" Then
|
||||
Response.Write "{""result"":""denied""}"
|
||||
Response.End
|
||||
End If
|
||||
|
||||
Dim fso, krc_no, delIdx, folderPath, i, writePos
|
||||
Dim folderObj, oneFile, us, dt, idxPart, srcName, extPart
|
||||
Dim fileMap(20)
|
||||
|
||||
krc_no = Request.Form("krc_no")
|
||||
|
||||
If krc_no = "" Or InStr(krc_no, "..") > 0 Or InStr(krc_no, "/") > 0 Or InStr(krc_no, "\") > 0 Then
|
||||
Response.Write "{""result"":""fail""}"
|
||||
Response.End
|
||||
End If
|
||||
|
||||
If Not IsNumeric(Request.Form("idx")) Then
|
||||
Response.Write "{""result"":""fail""}"
|
||||
Response.End
|
||||
End If
|
||||
|
||||
delIdx = CInt(Request.Form("idx"))
|
||||
|
||||
If delIdx < 1 Or delIdx > 20 Then
|
||||
Response.Write "{""result"":""fail""}"
|
||||
Response.End
|
||||
End If
|
||||
|
||||
Set fso = Server.CreateObject("Scripting.FileSystemObject")
|
||||
folderPath = Server.Mappath("/") & "/Upload/DOC_ATTACH/" & krc_no
|
||||
|
||||
If fso.FolderExists(folderPath) = False Then
|
||||
Response.Write "{""result"":""ok""}"
|
||||
Response.End
|
||||
End If
|
||||
|
||||
Set folderObj = fso.GetFolder(folderPath)
|
||||
For Each oneFile In folderObj.Files
|
||||
us = InStrRev(oneFile.Name, "_")
|
||||
dt = InStrRev(oneFile.Name, ".")
|
||||
If us > 0 And dt > us Then
|
||||
idxPart = Mid(oneFile.Name, us + 1, dt - us - 1)
|
||||
If IsNumeric(idxPart) Then
|
||||
If CInt(idxPart) >= 1 And CInt(idxPart) <= 20 Then
|
||||
fileMap(CInt(idxPart)) = oneFile.Name
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
|
||||
If fileMap(delIdx) <> "" Then
|
||||
fso.DeleteFile folderPath & "/" & fileMap(delIdx)
|
||||
fileMap(delIdx) = ""
|
||||
End If
|
||||
|
||||
' close the numbering gap, preserving each remaining file's own extension
|
||||
writePos = delIdx
|
||||
For i = delIdx + 1 To 20
|
||||
If fileMap(i) <> "" Then
|
||||
srcName = fileMap(i)
|
||||
extPart = Mid(srcName, InStrRev(srcName, "."))
|
||||
fso.MoveFile folderPath & "/" & srcName, folderPath & "/" & krc_no & "_" & CStr(writePos) & extPart
|
||||
writePos = writePos + 1
|
||||
End If
|
||||
Next
|
||||
|
||||
Response.Write "{""result"":""ok""}"
|
||||
|
||||
Set fso = Nothing
|
||||
%>
|
||||
@@ -30,6 +30,9 @@
|
||||
'--------------- <20>߰<EFBFBD>(20170306)<29><> ------------------------
|
||||
|
||||
dim xadmin : xadmin = request("xadmin") '-- <20><><EFBFBD><EFBFBD>(edit)
|
||||
dim attachClientIp, attachEditAllowed
|
||||
attachClientIp = Replace(Replace(Trim(Request.ServerVariables("REMOTE_ADDR")), "10.10.20.", "10.10.13."), "10.10.17.", "10.10.13.")
|
||||
attachEditAllowed = (attachClientIp = "10.10.13.47" Or attachClientIp = "10.10.13.105" Or attachClientIp = "10.10.13.48" Or attachClientIp = "10.10.13.6" Or attachClientIp = "10.10.13.29" Or attachClientIp = "10.10.13.186")
|
||||
'response.write "[" & xadmin & "]"
|
||||
|
||||
dim pay_type(4)
|
||||
@@ -322,6 +325,145 @@ if rsc.RecordCount > 0 then
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
.attach_modal_overlay{
|
||||
display:none;
|
||||
position:fixed;
|
||||
top:0;left:0;right:0;bottom:0;
|
||||
background:rgba(0,0,0,0.8);
|
||||
z-index:9999;
|
||||
justify-content:center;
|
||||
align-items:center;
|
||||
}
|
||||
.attach_modal_overlay.active{
|
||||
display:flex;
|
||||
}
|
||||
.attach_modal_img{
|
||||
max-width:85%;
|
||||
max-height:85%;
|
||||
}
|
||||
.attach_modal_nav{
|
||||
position:absolute;
|
||||
top:50%;
|
||||
transform:translateY(-50%);
|
||||
font-size:40px;
|
||||
color:#fff;
|
||||
cursor:pointer;
|
||||
user-select:none;
|
||||
padding:10px 20px;
|
||||
}
|
||||
.attach_modal_prev{ left:20px; }
|
||||
.attach_modal_next{ right:20px; }
|
||||
.attach_modal_close{
|
||||
position:absolute;
|
||||
top:20px;
|
||||
right:30px;
|
||||
font-size:30px;
|
||||
color:#fff;
|
||||
cursor:pointer;
|
||||
}
|
||||
.attach_modal_count{
|
||||
position:absolute;
|
||||
bottom:20px;
|
||||
left:50%;
|
||||
transform:translateX(-50%);
|
||||
color:#fff;
|
||||
font-size:14px;
|
||||
}
|
||||
.attach_preview{ position:relative; }
|
||||
.attach_add_btn{
|
||||
display:flex;
|
||||
width:15%;
|
||||
height:70px;
|
||||
border:1px dashed #ccc;
|
||||
justify-content:center;
|
||||
align-items:center;
|
||||
cursor:pointer;
|
||||
margin:4px;
|
||||
color:#888;
|
||||
font-size:13px;
|
||||
}
|
||||
.attach_del_btn{
|
||||
position:absolute;
|
||||
top:-6px;
|
||||
right:-6px;
|
||||
width:18px;
|
||||
height:18px;
|
||||
line-height:16px;
|
||||
text-align:center;
|
||||
background:#e74c3c;
|
||||
color:#fff;
|
||||
border-radius:50%;
|
||||
font-size:13px;
|
||||
cursor:pointer;
|
||||
z-index:2;
|
||||
}
|
||||
.attach_file_box{
|
||||
position:relative;
|
||||
display:flex;
|
||||
flex-direction:column;
|
||||
justify-content:center;
|
||||
align-items:center;
|
||||
width:15%;
|
||||
height:70px;
|
||||
border:1px solid #ccc;
|
||||
box-shadow: 1px 1px 2px 1px #b9b9b9;
|
||||
margin:4px;
|
||||
overflow:hidden;
|
||||
text-align:center;
|
||||
padding:4px;
|
||||
box-sizing:border-box;
|
||||
}
|
||||
.attach_file_link{
|
||||
text-decoration:none;
|
||||
display:flex;
|
||||
flex-direction:column;
|
||||
align-items:center;
|
||||
width:100%;
|
||||
}
|
||||
.attach_file_ext{
|
||||
font-weight:bold;
|
||||
color:#666;
|
||||
font-size:11px;
|
||||
}
|
||||
.attach_file_name{
|
||||
display:block;
|
||||
max-width:100%;
|
||||
overflow:hidden;
|
||||
text-overflow:ellipsis;
|
||||
white-space:nowrap;
|
||||
font-size:10px;
|
||||
color:#333;
|
||||
}
|
||||
.attach_upload_loading{
|
||||
display:none;
|
||||
position:fixed;
|
||||
top:0;left:0;right:0;bottom:0;
|
||||
background:rgba(255,255,255,0.7);
|
||||
z-index:10000;
|
||||
flex-direction:column;
|
||||
justify-content:center;
|
||||
align-items:center;
|
||||
}
|
||||
.attach_upload_loading.active{
|
||||
display:flex;
|
||||
}
|
||||
.attach_upload_spinner{
|
||||
width:50px;
|
||||
height:50px;
|
||||
border:5px solid #ccc;
|
||||
border-top:5px solid #333;
|
||||
border-radius:50%;
|
||||
animation:attach_spin 1s linear infinite;
|
||||
}
|
||||
@keyframes attach_spin{
|
||||
0%{ transform:rotate(0deg); }
|
||||
100%{ transform:rotate(360deg); }
|
||||
}
|
||||
.attach_upload_text{
|
||||
margin-top:10px;
|
||||
font-size:14px;
|
||||
color:#333;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
@@ -329,6 +471,8 @@ if rsc.RecordCount > 0 then
|
||||
<script src="/js/jquery.form.min.js"></script>
|
||||
<script src="/js/jquery-ui.min.js"></script>
|
||||
<script src="/js/common.js"></script>
|
||||
<script src="/js/pdf.js"></script>
|
||||
<script src="/js/pdf.worker.js"></script>
|
||||
<script language="javascript">
|
||||
|
||||
function win_close()
|
||||
@@ -741,7 +885,28 @@ if rsc.RecordCount > 0 then
|
||||
</tr>
|
||||
<%
|
||||
Set fso = Server.CreateObject("Scripting.FileSystemObject")
|
||||
If fso.FileExists(Server.Mappath("/") & "/Upload/DOC_ATTACH/" & krc_no & "/" & krc_no & "_1.jpg") = True Then
|
||||
Dim attachFolderPath, attachFolderObj, attachOneFile, attachUs, attachDt, attachIdxPart, attachExt
|
||||
Dim attachFileMap(20), attachIsImage(20)
|
||||
Dim imageExtList : imageExtList = "|jpg|jpeg|png|gif|"
|
||||
Dim attachCacheVersion : attachCacheVersion = CStr(CLng(Timer() * 1000))
|
||||
attachFolderPath = Server.Mappath("/") & "/Upload/DOC_ATTACH/" & krc_no
|
||||
If fso.FolderExists(attachFolderPath) Then
|
||||
Set attachFolderObj = fso.GetFolder(attachFolderPath)
|
||||
For Each attachOneFile In attachFolderObj.Files
|
||||
attachUs = InStrRev(attachOneFile.Name, "_")
|
||||
attachDt = InStrRev(attachOneFile.Name, ".")
|
||||
If attachUs > 0 And attachDt > attachUs Then
|
||||
attachIdxPart = Mid(attachOneFile.Name, attachUs + 1, attachDt - attachUs - 1)
|
||||
If IsNumeric(attachIdxPart) Then
|
||||
If CInt(attachIdxPart) >= 1 And CInt(attachIdxPart) <= 20 Then
|
||||
attachFileMap(CInt(attachIdxPart)) = attachOneFile.Name
|
||||
attachExt = LCase(Mid(attachOneFile.Name, attachDt + 1))
|
||||
If InStr(imageExtList, "|" & attachExt & "|") > 0 Then attachIsImage(CInt(attachIdxPart)) = True
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
End If
|
||||
%>
|
||||
<tr>
|
||||
<td class="tit2" align="center"><3E><><EFBFBD><EFBFBD>÷<EFBFBD><C3B7></td>
|
||||
@@ -749,19 +914,40 @@ if rsc.RecordCount > 0 then
|
||||
<div class="attach_div">
|
||||
<%
|
||||
For i=1 To 20
|
||||
if fso.FileExists(Server.Mappath("/") & "/Upload/DOC_ATTACH/" & krc_no & "/" & krc_no & "_" & cstr(i) & ".jpg") = True then
|
||||
%>
|
||||
<div class="attach_preview">
|
||||
<img src="<%="/Upload/DOC_ATTACH/" & krc_no & "/" & krc_no & "_" & cstr(i) & ".jpg"%>" />
|
||||
</div>
|
||||
<%
|
||||
If attachFileMap(i) <> "" Then
|
||||
If attachIsImage(i) Then
|
||||
%>
|
||||
<div class="attach_preview">
|
||||
<img src="<%="/Upload/DOC_ATTACH/" & krc_no & "/" & attachFileMap(i) & "?v=" & attachCacheVersion%>" />
|
||||
<% If xadmin = "edit" And attachEditAllowed Then %>
|
||||
<span class="attach_del_btn" data-idx="<%=i%>">×</span>
|
||||
<% End If %>
|
||||
</div>
|
||||
<%
|
||||
Else
|
||||
%>
|
||||
<div class="attach_file_box">
|
||||
<a href="<%="/Upload/DOC_ATTACH/" & krc_no & "/" & attachFileMap(i) & "?v=" & attachCacheVersion%>" target="_blank" class="attach_file_link">
|
||||
<span class="attach_file_ext"><%=Ucase(Mid(attachFileMap(i), InStrRev(attachFileMap(i),".")+1))%></span>
|
||||
<span class="attach_file_name"><%=attachFileMap(i)%></span>
|
||||
</a>
|
||||
<% If xadmin = "edit" And attachEditAllowed Then %>
|
||||
<span class="attach_del_btn" data-idx="<%=i%>">×</span>
|
||||
<% End If %>
|
||||
</div>
|
||||
<%
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
%>
|
||||
<% If xadmin = "edit" And attachEditAllowed Then %>
|
||||
<div class="attach_add_btn" id="attachAddBtn">+ <20>߰<EFBFBD></div>
|
||||
<input type="file" id="attachFileInput" accept="image/*,.zip,.pdf,.hwp,.doc,.docx,.xls,.xlsx,.ppt,.pptx" multiple style="display:none;" />
|
||||
<% End If %>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<% End If
|
||||
<%
|
||||
Set fso = Nothing
|
||||
%>
|
||||
</table>
|
||||
@@ -979,6 +1165,17 @@ if rsc.RecordCount > 0 then
|
||||
%>
|
||||
<% End If %>
|
||||
</form>
|
||||
<div class="attach_modal_overlay" id="attachModalOverlay">
|
||||
<span class="attach_modal_close" id="attachModalClose">×</span>
|
||||
<span class="attach_modal_nav attach_modal_prev" id="attachModalPrev">‹</span>
|
||||
<img class="attach_modal_img" id="attachModalImg" src="" />
|
||||
<span class="attach_modal_nav attach_modal_next" id="attachModalNext">›</span>
|
||||
<div class="attach_modal_count" id="attachModalCount"></div>
|
||||
</div>
|
||||
<div class="attach_upload_loading" id="attachUploadLoading">
|
||||
<div class="attach_upload_spinner"></div>
|
||||
<div class="attach_upload_text"><3E><><EFBFBD>ε<EFBFBD> <20><><EFBFBD>Դϴ<D4B4>...</div>
|
||||
</div>
|
||||
<script>
|
||||
var ntsUrl = "";
|
||||
$(document).ready(function () {
|
||||
@@ -998,10 +1195,177 @@ if rsc.RecordCount > 0 then
|
||||
ajaxCallJson("../approval/doc_expense2_ajax_sebu_2014.asp", { hangmok: $("#hangmok option:selected").val(), d_cost_type: document.ess.d_cost_type.value, cost_type: "2"}, null, "post", "sebureturnFunc()");
|
||||
});
|
||||
|
||||
$(".attach_preview").on("click", function(){
|
||||
window.open($(this).children("img").attr("src"), "_blank", "popup=1");
|
||||
var attachImgs = [];
|
||||
var attachIdx = 0;
|
||||
|
||||
$(".attach_preview img").each(function(){
|
||||
attachImgs.push($(this).attr("src"));
|
||||
});
|
||||
|
||||
function showAttachModal(idx){
|
||||
if(attachImgs.length == 0){ return; }
|
||||
if(idx < 0){ idx = attachImgs.length - 1; }
|
||||
if(idx >= attachImgs.length){ idx = 0; }
|
||||
attachIdx = idx;
|
||||
$("#attachModalImg").attr("src", attachImgs[attachIdx]);
|
||||
$("#attachModalCount").text((attachIdx+1) + " / " + attachImgs.length);
|
||||
$("#attachModalOverlay").addClass("active");
|
||||
}
|
||||
|
||||
$(".attach_preview").on("click", function(e){
|
||||
if($(e.target).hasClass("attach_del_btn")){ return; }
|
||||
var idx = $(".attach_preview").index(this);
|
||||
showAttachModal(idx);
|
||||
});
|
||||
|
||||
$("#attachModalPrev").on("click", function(){ showAttachModal(attachIdx - 1); });
|
||||
$("#attachModalNext").on("click", function(){ showAttachModal(attachIdx + 1); });
|
||||
$("#attachModalClose").on("click", function(){ $("#attachModalOverlay").removeClass("active"); });
|
||||
$("#attachModalOverlay").on("click", function(e){
|
||||
if(e.target.id == "attachModalOverlay"){ $("#attachModalOverlay").removeClass("active"); }
|
||||
});
|
||||
$(document).on("keydown", function(e){
|
||||
if($("#attachModalOverlay").hasClass("active")){
|
||||
if(e.keyCode == 37){ showAttachModal(attachIdx - 1); }
|
||||
else if(e.keyCode == 39){ showAttachModal(attachIdx + 1); }
|
||||
else if(e.keyCode == 27){ $("#attachModalOverlay").removeClass("active"); }
|
||||
}
|
||||
})
|
||||
|
||||
$("#attachAddBtn").on("click", function(){
|
||||
$("#attachFileInput").val("").trigger("click");
|
||||
});
|
||||
|
||||
$("#attachFileInput").on("change", function(){
|
||||
var files = this.files;
|
||||
if(!files || files.length == 0){ return; }
|
||||
$("#attachUploadLoading").addClass("active");
|
||||
expandPdfFiles(files, 0, [], function(expandedFiles){
|
||||
uploadAttachFiles(expandedFiles, 0);
|
||||
});
|
||||
});
|
||||
|
||||
function expandPdfFiles(files, idx, result, done){
|
||||
if(idx >= files.length){
|
||||
done(result);
|
||||
return;
|
||||
}
|
||||
var f = files[idx];
|
||||
if(f.type == "application/pdf"){
|
||||
pdfFileToImages(f, function(imgFiles){
|
||||
for(var i=0; i<imgFiles.length; i++){ result.push(imgFiles[i]); }
|
||||
expandPdfFiles(files, idx+1, result, done);
|
||||
});
|
||||
}else{
|
||||
result.push(f);
|
||||
expandPdfFiles(files, idx+1, result, done);
|
||||
}
|
||||
}
|
||||
|
||||
function pdfFileToImages(file, callback){
|
||||
var images = [];
|
||||
var pdf_url = URL.createObjectURL(file);
|
||||
var pdfTask = PDFJS.getDocument({ url: pdf_url });
|
||||
pdfTask.promise.then(function(pdf_doc){
|
||||
renderPdfPageToImg(pdf_doc, 1, pdf_doc.numPages, images, callback);
|
||||
}).catch(function(error){
|
||||
callback([file]);
|
||||
});
|
||||
}
|
||||
|
||||
function renderPdfPageToImg(pdf_doc, currentPage, maxPage, images, callback){
|
||||
pdf_doc.getPage(currentPage).then(function(page){
|
||||
var scale = 1.5;
|
||||
var viewport = page.getViewport(scale);
|
||||
var canvas = document.createElement("canvas");
|
||||
var context = canvas.getContext("2d");
|
||||
canvas.width = Math.floor(viewport.width);
|
||||
canvas.height = Math.floor(viewport.height);
|
||||
var renderContext = { canvasContext: context, viewport: viewport };
|
||||
page.render(renderContext).then(function(){
|
||||
var imgDataUrl = canvas.toDataURL("image/jpeg", 1.0);
|
||||
var blobBin = atob(imgDataUrl.split(",")[1]);
|
||||
var array = [];
|
||||
for(var i=0; i<blobBin.length; i++){ array.push(blobBin.charCodeAt(i)); }
|
||||
var imgFile = new File([new Uint8Array(array)], "pdfpage.jpg", {type: "image/jpeg"});
|
||||
images.push(imgFile);
|
||||
if(maxPage > currentPage){
|
||||
renderPdfPageToImg(pdf_doc, currentPage+1, maxPage, images, callback);
|
||||
}else{
|
||||
callback(images);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function uploadAttachFiles(files, idx){
|
||||
if(idx >= files.length){
|
||||
location.reload();
|
||||
return;
|
||||
}
|
||||
var fd = new FormData();
|
||||
var uploadName = "upload";
|
||||
var dotIdx = files[idx].name.lastIndexOf(".");
|
||||
if(dotIdx >= 0){
|
||||
uploadName += files[idx].name.substring(dotIdx).toLowerCase();
|
||||
}
|
||||
fd.append("attach_file", files[idx], uploadName);
|
||||
fd.append("krc_no", "<%=krc_no%>");
|
||||
$.ajax({
|
||||
url: "/ess/doc_attach_add.asp",
|
||||
type: "POST",
|
||||
data: fd,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
dataType: "json",
|
||||
success: function(ret){
|
||||
if(ret.result == "ok"){
|
||||
uploadAttachFiles(files, idx+1);
|
||||
}else if(ret.result == "full"){
|
||||
$("#attachUploadLoading").removeClass("active");
|
||||
alert("<22>ִ<EFBFBD> 20<32><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ÷<><C3B7><EFBFBD><EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.");
|
||||
}else if(ret.result == "denied"){
|
||||
$("#attachUploadLoading").removeClass("active");
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
}else if(ret.result == "badtype"){
|
||||
$("#attachUploadLoading").removeClass("active");
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.");
|
||||
}else{
|
||||
$("#attachUploadLoading").removeClass("active");
|
||||
alert("<22><><EFBFBD>ε忡 <20><><EFBFBD><EFBFBD><EFBFBD>߽<EFBFBD><DFBD>ϴ<EFBFBD>.");
|
||||
}
|
||||
},
|
||||
error: function(){
|
||||
$("#attachUploadLoading").removeClass("active");
|
||||
alert("<22><><EFBFBD>ε<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>߽<EFBFBD><DFBD>ϴ<EFBFBD>.");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on("click", ".attach_del_btn", function(e){
|
||||
e.stopPropagation();
|
||||
var idx = $(this).data("idx");
|
||||
if(!confirm("÷<><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){ return; }
|
||||
$.ajax({
|
||||
url: "/ess/doc_attach_del.asp",
|
||||
type: "POST",
|
||||
data: { krc_no: "<%=krc_no%>", idx: idx },
|
||||
dataType: "json",
|
||||
success: function(ret){
|
||||
if(ret.result == "ok"){
|
||||
location.reload();
|
||||
}else if(ret.result == "denied"){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>߽<EFBFBD><DFBD>ϴ<EFBFBD>.");
|
||||
}
|
||||
},
|
||||
error: function(){
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>߽<EFBFBD><DFBD>ϴ<EFBFBD>.");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
taxInvoicePopup();
|
||||
|
||||
var today = new Date().getMonth()+1 + " / " + new Date().getDate();
|
||||
@@ -1233,7 +1597,6 @@ if rsc.RecordCount > 0 then
|
||||
window.open(url,'','left=0,top=0,width=850,height=800,scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
|
||||
var mikExp = /[$\\@\\\#%\^\&\*\-\"\'\[\]\+\_\{\}\`\~\=\|]/;
|
||||
|
||||
function dodacheck(val){
|
||||
|
||||
@@ -10,8 +10,6 @@ Response.CharSet="euc-kr"
|
||||
''//=====================
|
||||
''//=====================
|
||||
|
||||
|
||||
|
||||
dim tmpstr
|
||||
dim Query
|
||||
dim i
|
||||
@@ -30,6 +28,9 @@ Response.CharSet="euc-kr"
|
||||
|
||||
'--------------- <20>߰<EFBFBD>(20170306)<29><> ------------------------
|
||||
dim xadmin : xadmin=request("xadmin") '-- <20><><EFBFBD><EFBFBD>(edit)
|
||||
dim attachClientIp, attachEditAllowed
|
||||
attachClientIp = Replace(Replace(Trim(Request.ServerVariables("REMOTE_ADDR")), "10.10.20.", "10.10.13."), "10.10.17.", "10.10.13.")
|
||||
attachEditAllowed = (attachClientIp = "10.10.13.47" Or attachClientIp = "10.10.13.105" Or attachClientIp = "10.10.13.48" Or attachClientIp = "10.10.13.6" Or attachClientIp = "10.10.13.29" Or attachClientIp = "10.10.13.186")
|
||||
dim pay_type(4)
|
||||
pay_type(1) = "ī<><C4AB>/<2F><><EFBFBD><EFBFBD>"
|
||||
pay_type(2) = "<22><><EFBFBD>ݰ<EFBFBD><DDB0>꼭"
|
||||
@@ -304,6 +305,145 @@ if rsc.RecordCount > 0 then
|
||||
max-width: 100%;
|
||||
max-height: 100%;
|
||||
}
|
||||
.attach_modal_overlay{
|
||||
display:none;
|
||||
position:fixed;
|
||||
top:0;left:0;right:0;bottom:0;
|
||||
background:rgba(0,0,0,0.8);
|
||||
z-index:9999;
|
||||
justify-content:center;
|
||||
align-items:center;
|
||||
}
|
||||
.attach_modal_overlay.active{
|
||||
display:flex;
|
||||
}
|
||||
.attach_modal_img{
|
||||
max-width:85%;
|
||||
max-height:85%;
|
||||
}
|
||||
.attach_modal_nav{
|
||||
position:absolute;
|
||||
top:50%;
|
||||
transform:translateY(-50%);
|
||||
font-size:40px;
|
||||
color:#fff;
|
||||
cursor:pointer;
|
||||
user-select:none;
|
||||
padding:10px 20px;
|
||||
}
|
||||
.attach_modal_prev{ left:20px; }
|
||||
.attach_modal_next{ right:20px; }
|
||||
.attach_modal_close{
|
||||
position:absolute;
|
||||
top:20px;
|
||||
right:30px;
|
||||
font-size:30px;
|
||||
color:#fff;
|
||||
cursor:pointer;
|
||||
}
|
||||
.attach_modal_count{
|
||||
position:absolute;
|
||||
bottom:20px;
|
||||
left:50%;
|
||||
transform:translateX(-50%);
|
||||
color:#fff;
|
||||
font-size:14px;
|
||||
}
|
||||
.attach_preview{ position:relative; }
|
||||
.attach_add_btn{
|
||||
display:flex;
|
||||
width:15%;
|
||||
height:70px;
|
||||
border:1px dashed #ccc;
|
||||
justify-content:center;
|
||||
align-items:center;
|
||||
cursor:pointer;
|
||||
margin:4px;
|
||||
color:#888;
|
||||
font-size:13px;
|
||||
}
|
||||
.attach_del_btn{
|
||||
position:absolute;
|
||||
top:-6px;
|
||||
right:-6px;
|
||||
width:18px;
|
||||
height:18px;
|
||||
line-height:16px;
|
||||
text-align:center;
|
||||
background:#e74c3c;
|
||||
color:#fff;
|
||||
border-radius:50%;
|
||||
font-size:13px;
|
||||
cursor:pointer;
|
||||
z-index:2;
|
||||
}
|
||||
.attach_file_box{
|
||||
position:relative;
|
||||
display:flex;
|
||||
flex-direction:column;
|
||||
justify-content:center;
|
||||
align-items:center;
|
||||
width:15%;
|
||||
height:70px;
|
||||
border:1px solid #ccc;
|
||||
box-shadow: 1px 1px 2px 1px #b9b9b9;
|
||||
margin:4px;
|
||||
overflow:hidden;
|
||||
text-align:center;
|
||||
padding:4px;
|
||||
box-sizing:border-box;
|
||||
}
|
||||
.attach_file_link{
|
||||
text-decoration:none;
|
||||
display:flex;
|
||||
flex-direction:column;
|
||||
align-items:center;
|
||||
width:100%;
|
||||
}
|
||||
.attach_file_ext{
|
||||
font-weight:bold;
|
||||
color:#666;
|
||||
font-size:11px;
|
||||
}
|
||||
.attach_file_name{
|
||||
display:block;
|
||||
max-width:100%;
|
||||
overflow:hidden;
|
||||
text-overflow:ellipsis;
|
||||
white-space:nowrap;
|
||||
font-size:10px;
|
||||
color:#333;
|
||||
}
|
||||
.attach_upload_loading{
|
||||
display:none;
|
||||
position:fixed;
|
||||
top:0;left:0;right:0;bottom:0;
|
||||
background:rgba(255,255,255,0.7);
|
||||
z-index:10000;
|
||||
flex-direction:column;
|
||||
justify-content:center;
|
||||
align-items:center;
|
||||
}
|
||||
.attach_upload_loading.active{
|
||||
display:flex;
|
||||
}
|
||||
.attach_upload_spinner{
|
||||
width:50px;
|
||||
height:50px;
|
||||
border:5px solid #ccc;
|
||||
border-top:5px solid #333;
|
||||
border-radius:50%;
|
||||
animation:attach_spin 1s linear infinite;
|
||||
}
|
||||
@keyframes attach_spin{
|
||||
0%{ transform:rotate(0deg); }
|
||||
100%{ transform:rotate(360deg); }
|
||||
}
|
||||
.attach_upload_text{
|
||||
margin-top:10px;
|
||||
font-size:14px;
|
||||
color:#333;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<script src="/js/jquery.min.js"></script>
|
||||
@@ -311,6 +451,8 @@ if rsc.RecordCount > 0 then
|
||||
<script src="/js/jquery.form.min.js"></script>
|
||||
<script src="/js/jquery-ui.min.js"></script>
|
||||
<script src="/js/common.js"></script>
|
||||
<script src="/js/pdf.js"></script>
|
||||
<script src="/js/pdf.worker.js"></script>
|
||||
<script language="javascript">
|
||||
$(function(){
|
||||
$("#delRewrite_btn").click(function(){
|
||||
@@ -775,7 +917,28 @@ if rsc.RecordCount > 0 then
|
||||
</tyr>
|
||||
<%
|
||||
Set fso = Server.CreateObject("Scripting.FileSystemObject")
|
||||
If fso.FileExists(Server.Mappath("/") & "/Upload/DOC_ATTACH/" & krc_no & "/" & krc_no & "_1.jpg") = True Then
|
||||
Dim attachFolderPath, attachFolderObj, attachOneFile, attachUs, attachDt, attachIdxPart, attachExt
|
||||
Dim attachFileMap(20), attachIsImage(20)
|
||||
Dim imageExtList : imageExtList = "|jpg|jpeg|png|gif|"
|
||||
Dim attachCacheVersion : attachCacheVersion = CStr(CLng(Timer() * 1000))
|
||||
attachFolderPath = Server.Mappath("/") & "/Upload/DOC_ATTACH/" & krc_no
|
||||
If fso.FolderExists(attachFolderPath) Then
|
||||
Set attachFolderObj = fso.GetFolder(attachFolderPath)
|
||||
For Each attachOneFile In attachFolderObj.Files
|
||||
attachUs = InStrRev(attachOneFile.Name, "_")
|
||||
attachDt = InStrRev(attachOneFile.Name, ".")
|
||||
If attachUs > 0 And attachDt > attachUs Then
|
||||
attachIdxPart = Mid(attachOneFile.Name, attachUs + 1, attachDt - attachUs - 1)
|
||||
If IsNumeric(attachIdxPart) Then
|
||||
If CInt(attachIdxPart) >= 1 And CInt(attachIdxPart) <= 20 Then
|
||||
attachFileMap(CInt(attachIdxPart)) = attachOneFile.Name
|
||||
attachExt = LCase(Mid(attachOneFile.Name, attachDt + 1))
|
||||
If InStr(imageExtList, "|" & attachExt & "|") > 0 Then attachIsImage(CInt(attachIdxPart)) = True
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
End If
|
||||
%>
|
||||
<tr>
|
||||
<td class="tit2" align="center"><3E><><EFBFBD><EFBFBD>÷<EFBFBD><C3B7></td>
|
||||
@@ -783,19 +946,40 @@ if rsc.RecordCount > 0 then
|
||||
<div class="attach_div">
|
||||
<%
|
||||
For i=1 To 20
|
||||
if fso.FileExists(Server.Mappath("/") & "/Upload/DOC_ATTACH/" & krc_no & "/" & krc_no & "_" & cstr(i) & ".jpg") = True then
|
||||
%>
|
||||
<div class="attach_preview">
|
||||
<img src="<%="/Upload/DOC_ATTACH/" & krc_no & "/" & krc_no & "_" & cstr(i) & ".jpg"%>" />
|
||||
</div>
|
||||
<%
|
||||
If attachFileMap(i) <> "" Then
|
||||
If attachIsImage(i) Then
|
||||
%>
|
||||
<div class="attach_preview">
|
||||
<img src="<%="/Upload/DOC_ATTACH/" & krc_no & "/" & attachFileMap(i) & "?v=" & attachCacheVersion%>" />
|
||||
<% If xadmin = "edit" And attachEditAllowed Then %>
|
||||
<span class="attach_del_btn" data-idx="<%=i%>">×</span>
|
||||
<% End If %>
|
||||
</div>
|
||||
<%
|
||||
Else
|
||||
%>
|
||||
<div class="attach_file_box">
|
||||
<a href="<%="/Upload/DOC_ATTACH/" & krc_no & "/" & attachFileMap(i) & "?v=" & attachCacheVersion%>" target="_blank" class="attach_file_link">
|
||||
<span class="attach_file_ext"><%=Ucase(Mid(attachFileMap(i), InStrRev(attachFileMap(i),".")+1))%></span>
|
||||
<span class="attach_file_name"><%=attachFileMap(i)%></span>
|
||||
</a>
|
||||
<% If xadmin = "edit" And attachEditAllowed Then %>
|
||||
<span class="attach_del_btn" data-idx="<%=i%>">×</span>
|
||||
<% End If %>
|
||||
</div>
|
||||
<%
|
||||
End If
|
||||
End If
|
||||
Next
|
||||
%>
|
||||
<% If xadmin = "edit" And attachEditAllowed Then %>
|
||||
<div class="attach_add_btn" id="attachAddBtn">+ <20>߰<EFBFBD></div>
|
||||
<input type="file" id="attachFileInput" accept="image/*,.zip,.pdf,.hwp,.doc,.docx,.xls,.xlsx,.ppt,.pptx" multiple style="display:none;" />
|
||||
<% End If %>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<% End If
|
||||
<%
|
||||
Set fso = Nothing
|
||||
%>
|
||||
</table>
|
||||
@@ -912,6 +1096,17 @@ if rsc.RecordCount > 0 then
|
||||
<% End If %>
|
||||
</form>
|
||||
|
||||
<div class="attach_modal_overlay" id="attachModalOverlay">
|
||||
<span class="attach_modal_close" id="attachModalClose">×</span>
|
||||
<span class="attach_modal_nav attach_modal_prev" id="attachModalPrev">‹</span>
|
||||
<img class="attach_modal_img" id="attachModalImg" src="" />
|
||||
<span class="attach_modal_nav attach_modal_next" id="attachModalNext">›</span>
|
||||
<div class="attach_modal_count" id="attachModalCount"></div>
|
||||
</div>
|
||||
<div class="attach_upload_loading" id="attachUploadLoading">
|
||||
<div class="attach_upload_spinner"></div>
|
||||
<div class="attach_upload_text"><3E><><EFBFBD>ε<EFBFBD> <20><><EFBFBD>Դϴ<D4B4>...</div>
|
||||
</div>
|
||||
<script>
|
||||
var ntsUrl = "";
|
||||
$(document).ready(function (){
|
||||
@@ -936,10 +1131,177 @@ if rsc.RecordCount > 0 then
|
||||
}
|
||||
});
|
||||
|
||||
$(".attach_preview").on("click", function(){
|
||||
window.open($(this).children("img").attr("src"), "_blank", "popup=1");
|
||||
var attachImgs = [];
|
||||
var attachIdx = 0;
|
||||
|
||||
$(".attach_preview img").each(function(){
|
||||
attachImgs.push($(this).attr("src"));
|
||||
});
|
||||
|
||||
function showAttachModal(idx){
|
||||
if(attachImgs.length == 0){ return; }
|
||||
if(idx < 0){ idx = attachImgs.length - 1; }
|
||||
if(idx >= attachImgs.length){ idx = 0; }
|
||||
attachIdx = idx;
|
||||
$("#attachModalImg").attr("src", attachImgs[attachIdx]);
|
||||
$("#attachModalCount").text((attachIdx+1) + " / " + attachImgs.length);
|
||||
$("#attachModalOverlay").addClass("active");
|
||||
}
|
||||
|
||||
$(".attach_preview").on("click", function(e){
|
||||
if($(e.target).hasClass("attach_del_btn")){ return; }
|
||||
var idx = $(".attach_preview").index(this);
|
||||
showAttachModal(idx);
|
||||
});
|
||||
|
||||
$("#attachModalPrev").on("click", function(){ showAttachModal(attachIdx - 1); });
|
||||
$("#attachModalNext").on("click", function(){ showAttachModal(attachIdx + 1); });
|
||||
$("#attachModalClose").on("click", function(){ $("#attachModalOverlay").removeClass("active"); });
|
||||
$("#attachModalOverlay").on("click", function(e){
|
||||
if(e.target.id == "attachModalOverlay"){ $("#attachModalOverlay").removeClass("active"); }
|
||||
});
|
||||
$(document).on("keydown", function(e){
|
||||
if($("#attachModalOverlay").hasClass("active")){
|
||||
if(e.keyCode == 37){ showAttachModal(attachIdx - 1); }
|
||||
else if(e.keyCode == 39){ showAttachModal(attachIdx + 1); }
|
||||
else if(e.keyCode == 27){ $("#attachModalOverlay").removeClass("active"); }
|
||||
}
|
||||
})
|
||||
|
||||
$("#attachAddBtn").on("click", function(){
|
||||
$("#attachFileInput").val("").trigger("click");
|
||||
});
|
||||
|
||||
$("#attachFileInput").on("change", function(){
|
||||
var files = this.files;
|
||||
if(!files || files.length == 0){ return; }
|
||||
$("#attachUploadLoading").addClass("active");
|
||||
expandPdfFiles(files, 0, [], function(expandedFiles){
|
||||
uploadAttachFiles(expandedFiles, 0);
|
||||
});
|
||||
});
|
||||
|
||||
function expandPdfFiles(files, idx, result, done){
|
||||
if(idx >= files.length){
|
||||
done(result);
|
||||
return;
|
||||
}
|
||||
var f = files[idx];
|
||||
if(f.type == "application/pdf"){
|
||||
pdfFileToImages(f, function(imgFiles){
|
||||
for(var i=0; i<imgFiles.length; i++){ result.push(imgFiles[i]); }
|
||||
expandPdfFiles(files, idx+1, result, done);
|
||||
});
|
||||
}else{
|
||||
result.push(f);
|
||||
expandPdfFiles(files, idx+1, result, done);
|
||||
}
|
||||
}
|
||||
|
||||
function pdfFileToImages(file, callback){
|
||||
var images = [];
|
||||
var pdf_url = URL.createObjectURL(file);
|
||||
var pdfTask = PDFJS.getDocument({ url: pdf_url });
|
||||
pdfTask.promise.then(function(pdf_doc){
|
||||
renderPdfPageToImg(pdf_doc, 1, pdf_doc.numPages, images, callback);
|
||||
}).catch(function(error){
|
||||
callback([file]);
|
||||
});
|
||||
}
|
||||
|
||||
function renderPdfPageToImg(pdf_doc, currentPage, maxPage, images, callback){
|
||||
pdf_doc.getPage(currentPage).then(function(page){
|
||||
var scale = 1.5;
|
||||
var viewport = page.getViewport(scale);
|
||||
var canvas = document.createElement("canvas");
|
||||
var context = canvas.getContext("2d");
|
||||
canvas.width = Math.floor(viewport.width);
|
||||
canvas.height = Math.floor(viewport.height);
|
||||
var renderContext = { canvasContext: context, viewport: viewport };
|
||||
page.render(renderContext).then(function(){
|
||||
var imgDataUrl = canvas.toDataURL("image/jpeg", 1.0);
|
||||
var blobBin = atob(imgDataUrl.split(",")[1]);
|
||||
var array = [];
|
||||
for(var i=0; i<blobBin.length; i++){ array.push(blobBin.charCodeAt(i)); }
|
||||
var imgFile = new File([new Uint8Array(array)], "pdfpage.jpg", {type: "image/jpeg"});
|
||||
images.push(imgFile);
|
||||
if(maxPage > currentPage){
|
||||
renderPdfPageToImg(pdf_doc, currentPage+1, maxPage, images, callback);
|
||||
}else{
|
||||
callback(images);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function uploadAttachFiles(files, idx){
|
||||
if(idx >= files.length){
|
||||
location.reload();
|
||||
return;
|
||||
}
|
||||
var fd = new FormData();
|
||||
var uploadName = "upload";
|
||||
var dotIdx = files[idx].name.lastIndexOf(".");
|
||||
if(dotIdx >= 0){
|
||||
uploadName += files[idx].name.substring(dotIdx).toLowerCase();
|
||||
}
|
||||
fd.append("attach_file", files[idx], uploadName);
|
||||
fd.append("krc_no", "<%=krc_no%>");
|
||||
$.ajax({
|
||||
url: "/ess/doc_attach_add.asp",
|
||||
type: "POST",
|
||||
data: fd,
|
||||
processData: false,
|
||||
contentType: false,
|
||||
dataType: "json",
|
||||
success: function(ret){
|
||||
if(ret.result == "ok"){
|
||||
uploadAttachFiles(files, idx+1);
|
||||
}else if(ret.result == "full"){
|
||||
$("#attachUploadLoading").removeClass("active");
|
||||
alert("<22>ִ<EFBFBD> 20<32><30><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ÷<><C3B7><EFBFBD><EFBFBD> <20><> <20>ֽ<EFBFBD><D6BD>ϴ<EFBFBD>.");
|
||||
}else if(ret.result == "denied"){
|
||||
$("#attachUploadLoading").removeClass("active");
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
}else if(ret.result == "badtype"){
|
||||
$("#attachUploadLoading").removeClass("active");
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ʴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Դϴ<D4B4>.");
|
||||
}else{
|
||||
$("#attachUploadLoading").removeClass("active");
|
||||
alert("<22><><EFBFBD>ε忡 <20><><EFBFBD><EFBFBD><EFBFBD>߽<EFBFBD><DFBD>ϴ<EFBFBD>.");
|
||||
}
|
||||
},
|
||||
error: function(){
|
||||
$("#attachUploadLoading").removeClass("active");
|
||||
alert("<22><><EFBFBD>ε<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>߽<EFBFBD><DFBD>ϴ<EFBFBD>.");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on("click", ".attach_del_btn", function(e){
|
||||
e.stopPropagation();
|
||||
var idx = $(this).data("idx");
|
||||
if(!confirm("÷<><C3B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){ return; }
|
||||
$.ajax({
|
||||
url: "/ess/doc_attach_del.asp",
|
||||
type: "POST",
|
||||
data: { krc_no: "<%=krc_no%>", idx: idx },
|
||||
dataType: "json",
|
||||
success: function(ret){
|
||||
if(ret.result == "ok"){
|
||||
location.reload();
|
||||
}else if(ret.result == "denied"){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>߽<EFBFBD><DFBD>ϴ<EFBFBD>.");
|
||||
}
|
||||
},
|
||||
error: function(){
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>߽<EFBFBD><DFBD>ϴ<EFBFBD>.");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
taxInvoicePopup();
|
||||
|
||||
var today = new Date().getMonth()+1 + " / " + new Date().getDate();
|
||||
|
||||
@@ -474,7 +474,7 @@ if rsc.RecordCount > 0 Then
|
||||
<table width="100%" cellpadding="5" cellspacing="0" border="0" style="border-collapse:collapse;">
|
||||
<tr>
|
||||
<td width="20%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ⱓ</td>
|
||||
<td width="35%" class="tit7" align="center"><font class="tahoma"><%=work_month%></font></td>
|
||||
<td width="35%" class="tit7" align="center"><font class="tahoma"><%if pay_type = "2" then%><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><%else%><%=work_month%><%end if%></font></td>
|
||||
<td width="15%" class="tit2" align="center"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="30%" class="tit7" align="center"><font class="tahoma"><%=pay_apply_username%></font></td>
|
||||
</tr>
|
||||
@@ -529,7 +529,7 @@ if rsc.RecordCount > 0 Then
|
||||
<tr>
|
||||
<td class="tit7"><font class="tahoma">[<%=tmp_p_child_sn%>]
|
||||
<%if session("depart_code") = "0" or session("depart_code") = "18" or (session("depart_code") = "12" ) then %>
|
||||
<img src="/images/common/btn_directcost_view.jpg" align="absmiddle" style="cursor:pointer; height: 14px;" onclick="direct_cost_detail('<%=tmp_p_child_sn%>', '<%=work_month%>', '<%=sv%>', 1, '<%="field"%>', '<%= d_no %>', '<%=replace(split(RIGHT(tmp_p_subject, 6), "(")(1), ")", "") %>')">
|
||||
<img src="/images/common/btn_directcost_view.jpg" align="absmiddle" style="cursor:pointer; height: 14px;" onclick="direct_cost_detail('<%=tmp_p_child_sn%>', '<%=work_month%>', '<%=sv%>', 1, '<%="field"%>', '<%= d_no %>', '<%= Replace(Split(tmp_p_subject, "(")(UBound(Split(tmp_p_subject, "("))), ")", "") %>')">
|
||||
<%end if %>
|
||||
<br><%=tmp_p_subject%></font></td>
|
||||
|
||||
|
||||
@@ -110,22 +110,40 @@ else
|
||||
end if
|
||||
adors.close
|
||||
'response.Write "d_order_cnt : " & d_order_cnt & "<BR>"
|
||||
Dim approval_is_marketing, approval_header_left, approval_header_right
|
||||
Dim approval_label_writer, approval_label_group, approval_label_division, approval_label_manager
|
||||
approval_is_marketing = (LCase(Request.ServerVariables("SCRIPT_NAME")) = "/ess/doc_entertainment_print.asp")
|
||||
If approval_is_marketing Then
|
||||
approval_header_left = "<22><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28>ҼӺμ<D3BA>)"
|
||||
approval_header_right = "<22><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>)"
|
||||
approval_label_writer = "<22><><EFBFBD><EFBFBD>"
|
||||
approval_label_group = "<22>μ<EFBFBD><CEBC><EFBFBD>"
|
||||
approval_label_division = "<22>ӿ<EFBFBD>"
|
||||
approval_label_manager = "<22><><EFBFBD><EFBFBD>"
|
||||
Else
|
||||
approval_header_left = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>"
|
||||
approval_header_right = "<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>"
|
||||
approval_label_writer = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
approval_label_group = "<22><EFBFBD><D7B7><EFBFBD>"
|
||||
approval_label_division = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
approval_label_manager = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
End If
|
||||
%>
|
||||
<div style="width:100%;">
|
||||
<table width="100%" align="right" cellpadding="0" cellspacing="1" border="1" style="border-collapse:collapse;" bgcolor="#d8d8d8" id="approval_tb">
|
||||
<tr>
|
||||
<td colspan="5" class="k_small" align="center" bgcolor="#F1F1F1"><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28>ҼӺμ<D3BA>)</td>
|
||||
<td colspan="4" class="k_small" align="center" bgcolor="#F1F1F1"><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD>)</td>
|
||||
<td colspan="5" class="k_small" align="center" bgcolor="#F1F1F1"><%=approval_header_left%></td>
|
||||
<td colspan="4" class="k_small" align="center" bgcolor="#F1F1F1"><%=approval_header_right%></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=approval_label_writer%></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1" style="display:none;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><EFBFBD>μ<EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><EFBFBD>ӿ<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=approval_label_group%></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=approval_label_division%></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1" colspan="2"><%=tmp_title%></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><EFBFBD>μ<EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><EFBFBD>ӿ<EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=approval_label_manager%></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=approval_label_group%></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=approval_label_division%></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=tmp_title%></td>
|
||||
</tr>
|
||||
<%
|
||||
|
||||
@@ -102,12 +102,12 @@ adors.close
|
||||
<td class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1" style="display: none;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD>/<2F><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><%=tmp_title%></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td width="11%" class="k_small" align="center" bgcolor="#F1F1F1"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
'd_order_cnt = 5
|
||||
|
||||
162
inspection/capi_device_current_status.asp
Normal file
162
inspection/capi_device_current_status.asp
Normal file
@@ -0,0 +1,162 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
Dim query1, query2
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<!-- Content Header (Page header) -->
|
||||
<div class="content-header">
|
||||
<h1>CAPI <20><><EFBFBD><EFBFBD> <20><>Ȳ</h1>
|
||||
</div>
|
||||
<!-- /.content-header -->
|
||||
<div class="content-body">
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h5><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>Ȳ</h5>
|
||||
<%
|
||||
query1 = ""
|
||||
query1 = query1 & " SELECT "
|
||||
query1 = query1 & " CONVERT(varchar(10), GETDATE(), 120) AS BASE_DT, "
|
||||
query1 = query1 & " COUNT(*) AS TOTAL_CNT, "
|
||||
query1 = query1 & " SUM(CASE WHEN USE_YN = 'Y' THEN 1 ELSE 0 END) AS USE_CNT, "
|
||||
query1 = query1 & " SUM(CASE WHEN USE_YN = 'N' THEN 1 ELSE 0 END) AS AVAIL_CNT, "
|
||||
query1 = query1 & " SUM(CASE WHEN USE_YN = 'X' AND DISUSE_RSN_CD = '01' THEN 1 ELSE 0 END) AS LOST_CNT, "
|
||||
query1 = query1 & " SUM(CASE WHEN USE_YN = 'X' AND DISUSE_RSN_CD = '02' THEN 1 ELSE 0 END) AS BROKEN_CNT, "
|
||||
query1 = query1 & " SUM(CASE WHEN USE_YN = 'X' AND DISUSE_RSN_CD = '03' THEN 1 ELSE 0 END) AS FAIL_CNT, "
|
||||
query1 = query1 & " SUM(CASE WHEN USE_YN = 'X' AND DISUSE_RSN_CD = '04' THEN 1 ELSE 0 END) AS STOP_CNT "
|
||||
query1 = query1 & " FROM project2.dbo.T_DEVICE_NEW "
|
||||
|
||||
adors.open query1, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors" style="width:600px;">
|
||||
<tr>
|
||||
<td rowspan="2" style="text-align:center; vertical-align:middle; font-weight:bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td rowspan="2" style="text-align:center; vertical-align:middle; font-weight:bold;"><3E>Ѽ<EFBFBD><D1BC><EFBFBD></td>
|
||||
<td rowspan="2" style="text-align:center; vertical-align:middle; font-weight:bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td rowspan="2" style="text-align:center; vertical-align:middle; font-weight:bold;"><3E>̻<EFBFBD><CCBB><EFBFBD></td>
|
||||
<td colspan="4" style="text-align:center; vertical-align:middle; font-weight:bold;"><3E>뿩<EFBFBD>Ұ<EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center; font-weight:bold;"><3E>н<EFBFBD></td>
|
||||
<td style="text-align:center; font-weight:bold;"><3E>ļ<EFBFBD></td>
|
||||
<td style="text-align:center; font-weight:bold;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center; font-weight:bold;"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center;"><%=adors("BASE_DT")%></td>
|
||||
<td style="text-align:center;"><%=adors("TOTAL_CNT")%></td>
|
||||
<td style="text-align:center;"><%=adors("USE_CNT")%></td>
|
||||
<td style="text-align:center;"><%=adors("AVAIL_CNT")%></td>
|
||||
<td style="text-align:center;"><%=adors("LOST_CNT")%></td>
|
||||
<td style="text-align:center;"><%=adors("BROKEN_CNT")%></td>
|
||||
<td style="text-align:center;"><%=adors("FAIL_CNT")%></td>
|
||||
<td style="text-align:center;"><%=adors("STOP_CNT")%></td>
|
||||
</tr>
|
||||
</table>
|
||||
<% adors.close %>
|
||||
|
||||
<br>
|
||||
<h5><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE> <20><><EFBFBD><EFBFBD> <20><>Ȳ</h5>
|
||||
<%
|
||||
query2 = ""
|
||||
query2 = query2 & " SELECT "
|
||||
query2 = query2 & " D.P_CHILD_SN, "
|
||||
query2 = query2 & " ISNULL(VPM.P_SUBJECT, '') AS P_SUBJECT, "
|
||||
query2 = query2 & " COUNT(*) AS OUT_CNT, "
|
||||
query2 = query2 & " SUM(CASE WHEN M.m_gubun = '53' THEN 1 ELSE 0 END) AS STAFF_CNT, "
|
||||
query2 = query2 & " SUM(CASE WHEN M.m_gubun IN ('10','21','31','41','42','43','44','45','46','51','52') THEN 1 ELSE 0 END) AS SEOUL_CNT, "
|
||||
query2 = query2 & " SUM(CASE WHEN M.m_gubun = '12' THEN 1 ELSE 0 END) AS BUSAN_CNT, "
|
||||
query2 = query2 & " SUM(CASE WHEN M.m_gubun = '13' THEN 1 ELSE 0 END) AS DAEGU_CNT, "
|
||||
query2 = query2 & " SUM(CASE WHEN M.m_gubun = '14' THEN 1 ELSE 0 END) AS DAEJEON_CNT, "
|
||||
query2 = query2 & " SUM(CASE WHEN M.m_gubun = '15' THEN 1 ELSE 0 END) AS GWANGJU_CNT, "
|
||||
query2 = query2 & " SUM(CASE WHEN M.m_gubun = '16' THEN 1 ELSE 0 END) AS GANGWON_CNT, "
|
||||
query2 = query2 & " SUM(CASE WHEN M.m_gubun = '17' THEN 1 ELSE 0 END) AS JEJU_CNT "
|
||||
query2 = query2 & " FROM project2.dbo.T_DEVICE_NEW D "
|
||||
query2 = query2 & " LEFT JOIN project2.dbo.man M ON D.MAN_ID = M.new_id "
|
||||
query2 = query2 & " LEFT JOIN project2.dbo.T_PROJECT_METHOD VPM ON D.P_CHILD_SN = VPM.p_child_sn "
|
||||
query2 = query2 & " WHERE D.P_CHILD_SN <> '' "
|
||||
query2 = query2 & " GROUP BY D.P_CHILD_SN, VPM.P_SUBJECT "
|
||||
query2 = query2 & " ORDER BY D.P_CHILD_SN "
|
||||
|
||||
adors.open query2, adoconn, adopenstatic, adlockreadonly
|
||||
|
||||
Dim rowNo : rowNo = 0
|
||||
Dim totalOut, totalStaff, totalSeoul, totalBusan, totalDaegu, totalDaejeon, totalGwangju, totalGangwon, totalJeju
|
||||
totalOut = 0 : totalStaff = 0 : totalSeoul = 0 : totalBusan = 0 : totalDaegu = 0 : totalDaejeon = 0 : totalGwangju = 0 : totalGangwon = 0 : totalJeju = 0
|
||||
%>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td rowspan="3" style="text-align:center; vertical-align:middle; font-weight:bold;">No</td>
|
||||
<td rowspan="3" style="text-align:center; vertical-align:middle; font-weight:bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></td>
|
||||
<td rowspan="3" style="text-align:center; vertical-align:middle; font-weight:bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td rowspan="3" style="text-align:center; vertical-align:middle; font-weight:bold;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td colspan="8" style="text-align:center; vertical-align:middle; font-weight:bold;"><3E><><EFBFBD><EFBFBD>ó</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="2" style="text-align:center; vertical-align:middle; font-weight:bold;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td rowspan="2" style="text-align:center; vertical-align:middle; font-weight:bold;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td colspan="6" style="text-align:center; vertical-align:middle; font-weight:bold;"><3E><><EFBFBD><EFBFBD><EFBFBD>ǻ<EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="text-align:center; font-weight:bold;"><3E>λ<EFBFBD></td>
|
||||
<td style="text-align:center; font-weight:bold;"><3E>뱸</td>
|
||||
<td style="text-align:center; font-weight:bold;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center; font-weight:bold;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center; font-weight:bold;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center; font-weight:bold;"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<% Do While Not adors.Eof
|
||||
rowNo = rowNo + 1
|
||||
%>
|
||||
<tr>
|
||||
<td style="text-align:center;"><%=rowNo%></td>
|
||||
<td style="text-align:center;"><%=adors("P_CHILD_SN")%></td>
|
||||
<td style="text-align:left;"><%=adors("P_SUBJECT")%></td>
|
||||
<td style="text-align:center;"><%=adors("OUT_CNT")%></td>
|
||||
<td style="text-align:center;"><%=adors("STAFF_CNT")%></td>
|
||||
<td style="text-align:center;"><%=adors("SEOUL_CNT")%></td>
|
||||
<td style="text-align:center;"><%=adors("BUSAN_CNT")%></td>
|
||||
<td style="text-align:center;"><%=adors("DAEGU_CNT")%></td>
|
||||
<td style="text-align:center;"><%=adors("DAEJEON_CNT")%></td>
|
||||
<td style="text-align:center;"><%=adors("GWANGJU_CNT")%></td>
|
||||
<td style="text-align:center;"><%=adors("GANGWON_CNT")%></td>
|
||||
<td style="text-align:center;"><%=adors("JEJU_CNT")%></td>
|
||||
</tr>
|
||||
<%
|
||||
totalOut = totalOut + adors("OUT_CNT")
|
||||
totalStaff = totalStaff + adors("STAFF_CNT")
|
||||
totalSeoul = totalSeoul + adors("SEOUL_CNT")
|
||||
totalBusan = totalBusan + adors("BUSAN_CNT")
|
||||
totalDaegu = totalDaegu + adors("DAEGU_CNT")
|
||||
totalDaejeon = totalDaejeon + adors("DAEJEON_CNT")
|
||||
totalGwangju = totalGwangju + adors("GWANGJU_CNT")
|
||||
totalGangwon = totalGangwon + adors("GANGWON_CNT")
|
||||
totalJeju = totalJeju + adors("JEJU_CNT")
|
||||
adors.MoveNext
|
||||
Loop
|
||||
adors.close
|
||||
%>
|
||||
<tr>
|
||||
<td colspan="3" style="text-align:center; font-weight:bold;"><3E>Ѱ<EFBFBD></td>
|
||||
<td style="text-align:center; font-weight:bold;"><%=totalOut%></td>
|
||||
<td style="text-align:center; font-weight:bold;"><%=totalStaff%></td>
|
||||
<td style="text-align:center; font-weight:bold;"><%=totalSeoul%></td>
|
||||
<td style="text-align:center; font-weight:bold;"><%=totalBusan%></td>
|
||||
<td style="text-align:center; font-weight:bold;"><%=totalDaegu%></td>
|
||||
<td style="text-align:center; font-weight:bold;"><%=totalDaejeon%></td>
|
||||
<td style="text-align:center; font-weight:bold;"><%=totalGwangju%></td>
|
||||
<td style="text-align:center; font-weight:bold;"><%=totalGangwon%></td>
|
||||
<td style="text-align:center; font-weight:bold;"><%=totalJeju%></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
<!-- #include virtual = "include/footer.asp" -->
|
||||
@@ -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>"
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " UPDATE project2.dbo.T_DEVICE_USE "
|
||||
query = query & " UPDATE project2.dbo.T_DEVICE_NEW "
|
||||
query = query & " SET MAN_ID = '" & man_id & "' "
|
||||
query = query & " WHERE DEVICE_ID = " & device_id & " AND USE_YN = 'Y' "
|
||||
query = query & " WHERE ID = " & device_id
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
|
||||
@@ -19,43 +19,20 @@
|
||||
Response.Expires = -1
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT ID "
|
||||
query = query & " FROM project2.dbo.T_DEVICE_USE "
|
||||
query = query & " WHERE DEVICE_ID = " & device_id & " AND USE_YN = 'Y' "
|
||||
query = query & " UPDATE T_DEVICE_NEW "
|
||||
query = query & " SET P_CHILD_SN = '" & p_child_sn & "', "
|
||||
query = query & " USE_YN = 'Y', "
|
||||
query = query & " MAN_ID = " & man_value & ", "
|
||||
query = query & " USE_ED_DT = '" & use_ed_dt & "'"
|
||||
query = query & " WHERE ID IN (" & device_id & ")"
|
||||
|
||||
Rs.Open Query, adoConn, 1
|
||||
if Rs.recordCount > 0 then
|
||||
row_id = Rs("ID")
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
dbin.Close
|
||||
|
||||
if i > 0 Then
|
||||
response.Write "1"
|
||||
else
|
||||
row_id = "0"
|
||||
end if
|
||||
Rs.close
|
||||
|
||||
if cint(row_id) > 0 then
|
||||
query = ""
|
||||
query = query & " UPDATE project2.dbo.T_DEVICE_USE "
|
||||
query = query & " SET USE_YN = 'N', MODIFY_DT = getdate() "
|
||||
query = query & " WHERE ID = " & row_id & " "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
dbin.Close
|
||||
|
||||
if i > 0 Then
|
||||
query = ""
|
||||
query = query & " INSERT INTO project2.dbo.T_DEVICE_USE "
|
||||
query = query & " (DEVICE_ID, P_CHILD_SN, USE_ST_DT, USE_ED_DT, MAN_ID, USE_YN, D_NO, MODIFY_DT, INSERT_DT, INSERT_USER) "
|
||||
query = query & " SELECT " & device_id & ", '" & p_child_sn & "', USE_ST_DT, '" & use_ed_dt & "', " & man_value & ", 'Y', D_NO, getdate(), getdate(), INSERT_USER "
|
||||
query = query & " FROM project2.dbo.T_DEVICE_USE "
|
||||
query = query & " WHERE ID = " & row_id & " "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
end if
|
||||
response.Write "0"
|
||||
end if
|
||||
%>
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
p_child_sn = URLDecode(request("p_child_sn"))
|
||||
p_child_sn = request("p_child_sn")
|
||||
use_st_dt = request("use_st_dt")
|
||||
use_ed_dt = request("use_ed_dt")
|
||||
use_device_cnt = request("use_device_cnt")
|
||||
@@ -19,46 +19,35 @@
|
||||
response.End
|
||||
END IF
|
||||
|
||||
'query = ""
|
||||
'query = query & " SELECT ID "
|
||||
'query = query & " FROM project2.dbo.V_DEVICE_STATUS "
|
||||
'query = query & " WHERE P_CHILD_SN = '' "
|
||||
'query = query & " AND ID IN (" & use_device_id & ")"
|
||||
|
||||
'Rs.Open Query, adoConn, 1
|
||||
|
||||
'if Rs.recordcount < cint(use_device_cnt) Then
|
||||
' Rs.Close
|
||||
' response.Write "2"
|
||||
' response.End
|
||||
'End if
|
||||
'Rs.close
|
||||
|
||||
query = ""
|
||||
query = query & " SELECT ID "
|
||||
query = query & " FROM project2.dbo.V_DEVICE_STATUS "
|
||||
query = query & " WHERE P_CHILD_SN = '' "
|
||||
query = query & " AND ID IN (" & use_device_id & ")"
|
||||
query = query & " UPDATE T_DEVICE_NEW "
|
||||
query = query & " SET P_CHILD_SN = '" & p_child_sn & "', "
|
||||
query = query & " USE_YN = 'Y', "
|
||||
query = query & " USE_ST_DT = '" & use_st_dt & "', "
|
||||
query = query & " USE_ED_DT = '" & use_ed_dt & "', "
|
||||
query = query & " INSERT_USER = '" & session("User_number") & "' "
|
||||
query = query & " WHERE ID IN (" & use_device_id & ")"
|
||||
|
||||
Rs.Open Query, adoConn, 1
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
dbin.Close
|
||||
|
||||
if Rs.recordcount < cint(use_device_cnt) Then
|
||||
Rs.Close
|
||||
response.Write "2"
|
||||
response.End
|
||||
End if
|
||||
insertCnt = 0
|
||||
|
||||
now_year = Right(left(now(),4),2)
|
||||
now_month = mid(now(),6,2)
|
||||
now_day = mid(now(),9,2)
|
||||
now_hour = right("0" & hour(now), 2)
|
||||
now_minute = right("0" & minute(now), 2)
|
||||
now_second = right("0" & second(now), 2)
|
||||
now_micro = right("000" & (timer * 1000) Mod 1000, 3)
|
||||
|
||||
d_no = "G" & now_year & now_month & now_day & now_hour & now_minute & now_second & now_micro ' <20><EFBFBD>ID
|
||||
|
||||
for k=1 To Rs.recordcount
|
||||
query = ""
|
||||
query = query & " INSERT INTO project2.dbo.T_DEVICE_USE "
|
||||
query = query & " (DEVICE_ID, P_CHILD_SN, USE_ST_DT, USE_ED_DT, D_NO, USE_YN, MODIFY_DT, INSERT_DT, INSERT_USER) VALUES "
|
||||
query = query & " (" & Rs("ID") & ", '" & p_child_sn & "', '" & use_st_dt & "', '" & use_ed_dt & "', '" & d_no & "', 'Y', getdate(), getdate(), '" & session("User_number") & "'); "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
insertCnt = insertCnt + 1
|
||||
|
||||
Rs.moveNext
|
||||
Next
|
||||
Rs.close
|
||||
if insertCnt = cint(use_device_cnt) Then
|
||||
if i > 0 Then
|
||||
response.Write "1"
|
||||
else
|
||||
response.Write "0"
|
||||
|
||||
@@ -4,16 +4,51 @@
|
||||
set dbin = server.CreateObject("ADODB.CONNECTION")
|
||||
|
||||
device_id = request("device_id")
|
||||
use_yn = request("use_yn")
|
||||
disuse_rsn_cd = request("disuse_rsn_cd")
|
||||
|
||||
Response.CharSet = "EUC-KR" '<27>ѱ<EFBFBD>
|
||||
Response.AddHeader "Pragma","no-cache"
|
||||
Response.AddHeader "cache-control", "no-staff"
|
||||
Response.Expires = -1
|
||||
|
||||
if disuse_rsn_cd = "" then
|
||||
disuse_value = "NULL"
|
||||
else
|
||||
disuse_value = "'" & disuse_rsn_cd & "'"
|
||||
end if
|
||||
|
||||
now_year = Right(left(now(),4),2)
|
||||
now_month = mid(now(),6,2)
|
||||
now_day = mid(now(),9,2)
|
||||
now_hour = right("0" & hour(now), 2)
|
||||
now_minute = right("0" & minute(now), 2)
|
||||
now_second = right("0" & second(now), 2)
|
||||
now_micro = right("000" & (timer * 1000) Mod 1000, 3)
|
||||
|
||||
d_no = "G" & now_year & now_month & now_day & now_hour & now_minute & now_second & now_micro ' <20><EFBFBD>ID
|
||||
|
||||
query = ""
|
||||
query = query & " UPDATE project2.dbo.T_DEVICE_USE "
|
||||
query = query & " SET USE_YN = 'N', MODIFY_DT = getdate() "
|
||||
query = query & " WHERE DEVICE_ID IN (" & device_id & ") AND USE_YN = 'Y' "
|
||||
query = query & " INSERT INTO project2.dbo.T_DEVICE_USE_NEW "
|
||||
query = query & " (DEVICE_ID, P_CHILD_SN, MAN_ID, USE_ST_DT, USE_ED_DT, USE_YN, D_NO, MODIFY_DT, INSERT_DT, INSERT_USER) "
|
||||
query = query & " SELECT ID, P_CHILD_SN, MAN_ID, ISNULL(USE_ST_DT, ''), ISNULL(USE_ED_DT, ''), '" & use_yn & "', '" & d_no & "', getdate(), getdate(), '" & session("User_number") & "' "
|
||||
query = query & " FROM project2.dbo.T_DEVICE_NEW "
|
||||
query = query & " WHERE ID IN (" & device_id & ") AND ISNULL(P_CHILD_SN, '') <> '' "
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query
|
||||
dbin.Close
|
||||
|
||||
query = ""
|
||||
query = query & " UPDATE project2.dbo.T_DEVICE_NEW "
|
||||
query = query & " SET USE_YN = '" & use_yn & "', "
|
||||
query = query & " DISUSE_RSN_CD = " & disuse_value & ", "
|
||||
query = query & " P_CHILD_SN = '', "
|
||||
query = query & " MAN_ID = NULL, "
|
||||
query = query & " USE_ST_DT = NULL, "
|
||||
query = query & " USE_ED_DT = NULL, "
|
||||
query = query & " INSERT_USER = NULL "
|
||||
query = query & " WHERE ID IN (" & device_id & ")"
|
||||
|
||||
dbin.Open adoConn
|
||||
dbin.Execute query, i
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
<%
|
||||
Dim query, p_no
|
||||
p_no = session("User_Number")
|
||||
Dim isAdminUser
|
||||
isAdminUser = (cstr(session("User_Number")) = "20210405" Or cstr(session("User_Number")) = "20191104" Or cstr(session("User_Number")) = "20250301" Or cstr(session("User_Number")) = "20251001")
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
@@ -83,6 +85,9 @@
|
||||
width: 120px;
|
||||
display: inline-block;
|
||||
}
|
||||
#device_status > tbody > tr.device-disuse > td{
|
||||
background-color:#fbdede;
|
||||
}
|
||||
|
||||
#deviceRegDialog table tr td {
|
||||
padding:4px;
|
||||
@@ -168,6 +173,7 @@
|
||||
<span><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ : <select id="selPrj"><option value=""><3E><>ü</option></select></span>
|
||||
<span><3E>뿩<EFBFBD><EBBFA9>û<EFBFBD><C3BB> : <select id="selUser"><option value=""><3E><>ü</option></select></span>
|
||||
<span><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> : <select id="selMan"><option value=""><3E><>ü</option></select></span>
|
||||
<span><3E><><EFBFBD><EFBFBD> : <select id="selStatus"><option value=""><3E><>ü</option><option value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></option><option value="<22>̻<EFBFBD><CCBB><EFBFBD>"><3E>̻<EFBFBD><CCBB><EFBFBD></option><option value="<22>뿩<EFBFBD>Ұ<EFBFBD>"><3E>뿩<EFBFBD>Ұ<EFBFBD></option></select></span>
|
||||
</div>
|
||||
<div><3E><>ȸ<EFBFBD><C8B8> <20><><EFBFBD><EFBFBD> <20><> : <span id="deviceCount"></span></div>
|
||||
<div>
|
||||
@@ -179,12 +185,40 @@
|
||||
dim availity_device_cnt, chk_user
|
||||
availity_device_cnt = 0
|
||||
query = ""
|
||||
query = query & " SELECT NO, ID, T_DEVICE_MODEL, T_NO, T_PHONE_NO, P_CHILD_SN, P_SUBJECT, "
|
||||
query = query & " MAN_ID, M_NAME, USE_ST_DT, USE_ED_DT, D_NO, INSERT_USER, INSERT_USER_NAME, "
|
||||
query = query & " (SELECT COUNT(*) FROM project2.dbo.T_DEVICE_USE WHERE USE_YN = 'N' AND DEVICE_ID = VDS.ID) AS LOG_CNT "
|
||||
query = query & " FROM project2.dbo.V_DEVICE_STATUS VDS "
|
||||
query = query & " WHERE P_CHILD_SN NOT LIKE '%<25>뿩<EFBFBD>Ұ<EFBFBD>%' "
|
||||
query = query & " ORDER BY NO "
|
||||
query = query & " select CASE WHEN CHARINDEX('-', REVERSE(D.NO)) > 0 THEN CAST(RIGHT(D.NO, CHARINDEX('-', REVERSE(D.NO)) - 1) AS INT) ELSE 0 END AS NO, "
|
||||
query = query & " D.ID, "
|
||||
query = query & " D.DEVICE_MODEL, "
|
||||
query = query & " D.NO AS T_NO, "
|
||||
query = query & " D.PHONE_NO,"
|
||||
query = query & " ISNULL(D.P_CHILD_SN, '') AS P_CHILD_SN, "
|
||||
query = query & " ISNULL(VPM.P_SUBJECT, '') AS P_SUBJECT, "
|
||||
query = query & " ISNULL(D.MAN_ID, '') AS MAN_ID, "
|
||||
query = query & " ISNULL(M.M_NAME, '') AS M_NAME, "
|
||||
query = query & " ISNULL(D.USE_ST_DT, '') AS USE_ST_DT, "
|
||||
query = query & " ISNULL(D.USE_ED_DT, '') AS USE_ED_DT, "
|
||||
query = query & " ISNULL(D.INSERT_USER, '') AS INSERT_USER, "
|
||||
query = query & " ISNULL(P.p_name, '') AS INSERT_USER_NAME, "
|
||||
query = query & " D.USE_YN AS USE_YN_CD, "
|
||||
query = query & " ISNULL(D.DISUSE_RSN_CD, '') AS DISUSE_RSN_CD, "
|
||||
query = query & " CASE D.USE_YN "
|
||||
query = query & " WHEN 'Y' THEN N'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' "
|
||||
query = query & " WHEN 'N' THEN N'<27>̻<EFBFBD><CCBB><EFBFBD>' "
|
||||
query = query & " WHEN 'X' THEN N'<27>뿩<EFBFBD>Ұ<EFBFBD>(' + "
|
||||
query = query & " CASE D.DISUSE_RSN_CD "
|
||||
query = query & " WHEN '01' THEN N'<27>н<EFBFBD>' "
|
||||
query = query & " WHEN '02' THEN N'<27>ļ<EFBFBD>' "
|
||||
query = query & " WHEN '03' THEN N'<27><><EFBFBD><EFBFBD>' "
|
||||
query = query & " WHEN '04' THEN N'<27><><EFBFBD><EFBFBD>' "
|
||||
query = query & " ELSE N'' "
|
||||
query = query & " END + N')' "
|
||||
query = query & " ELSE D.USE_YN "
|
||||
query = query & " END AS USE_YN, "
|
||||
query = query & " (SELECT COUNT(*) FROM project2.dbo.T_DEVICE_USE DU WHERE DU.USE_YN = 'N' AND DU.DEVICE_ID = D.ID) AS LOG_CNT "
|
||||
query = query & " FROM project2.dbo.T_DEVICE_NEW D "
|
||||
query = query & " LEFT JOIN project2.dbo.T_PROJECT_METHOD VPM ON D.P_CHILD_SN = VPM.p_child_sn "
|
||||
query = query & " LEFT JOIN project2.dbo.man M ON D.MAN_ID = M.new_id "
|
||||
query = query & " LEFT JOIN project2.dbo.person P ON D.INSERT_USER = P.p_no "
|
||||
query = query & " ORDER BY D.NO "
|
||||
|
||||
adors.open query, adoconn, adopenstatic, adlockreadonly
|
||||
%>
|
||||
@@ -195,6 +229,7 @@
|
||||
<td style="width:9%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ</td>
|
||||
<td style="width:9%;"><3E>ڵ<EFBFBD><DAB5><EFBFBD><EFBFBD><EFBFBD>ȣ</td>
|
||||
<td style="width:33%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ</td>
|
||||
<td style="width:5%;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td style="width:13%;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="width:7%;"><3E>뿩<EFBFBD><EBBFA9><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="width:7%;"><3E>ݳ<EFBFBD><DDB3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
@@ -208,16 +243,17 @@
|
||||
Do While Not adors.Eof
|
||||
chk_user = iif(adors("INSERT_USER") = cstr(session("User_Number")), true, false) ' insert_user<65><72> <20>α<EFBFBD><CEB1><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> true
|
||||
|
||||
if adors("P_CHILD_SN") = "" then '<27>뿩 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>϶<EFBFBD>
|
||||
if adors("P_CHILD_SN") = "" AND adors("USE_YN_CD") = "N" then '<27>뿩 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>϶<EFBFBD>
|
||||
availity_device_cnt = availity_device_cnt + 1
|
||||
end if
|
||||
%>
|
||||
<tr>
|
||||
<tr <%=iif(adors("USE_YN_CD") = "X", "class=""device-disuse""", "")%>>
|
||||
<td ><%=adors("NO")%><input type="hidden" value="<%=adors("ID")%>" name="DEVICE_ID"/></td>
|
||||
<td ><%=adors("T_DEVICE_MODEL")%></td>
|
||||
<td ><%=adors("DEVICE_MODEL")%></td>
|
||||
<td ><%=adors("T_NO")%></td>
|
||||
<td ><%=adors("T_PHONE_NO")%></td>
|
||||
<td ><%=adors("PHONE_NO")%></td>
|
||||
<td ><span><%=iif(adors("P_CHILD_SN") = "", "", "[" & adors("P_CHILD_SN") & "] ")%><%=adors("P_SUBJECT")%></span></td>
|
||||
<td ><%=adors("USE_YN")%></td>
|
||||
<td ><%
|
||||
if adors("P_CHILD_SN") <> "" Then
|
||||
if adors("MAN_ID") = "" Then
|
||||
@@ -233,10 +269,21 @@
|
||||
<td ><%=adors("USE_ED_DT")%></td>
|
||||
<td ><%
|
||||
if adors("P_CHILD_SN") <> "" Then
|
||||
if chk_user = true Then
|
||||
if chk_user = true Or isAdminUser = true Then
|
||||
%>
|
||||
<input type="button" value="<22><><EFBFBD><EFBFBD>" class="mod_device_btn" data-device_id="<%=adors("ID")%>"/>
|
||||
<input type="button" value="<22>ݳ<EFBFBD>" class="ret_device_btn" data-device_id="<%=adors("ID")%>"/><%
|
||||
<input type="button" value="<22><><EFBFBD><EFBFBD>" class="mod_device_btn" data-device_id="<%=adors("ID")%>"/> <%
|
||||
if isAdminUser = true Then
|
||||
%>
|
||||
<input type="button" value="<22><><EFBFBD>º<EFBFBD><C2BA><EFBFBD>" class="ret_device_btn<% if chk_user = true Then Response.Write " my_ret_btn" %>" data-device_id="<%=adors("ID")%>" data-use_yn="<%=adors("USE_YN_CD")%>" data-disuse_rsn_cd="<%=adors("DISUSE_RSN_CD")%>"/><%
|
||||
Else
|
||||
%>
|
||||
<input type="button" value="<22>ݳ<EFBFBD>" class="simple_ret_btn my_ret_btn" data-device_id="<%=adors("ID")%>"/><%
|
||||
End if
|
||||
End if
|
||||
ElseIf adors("USE_YN_CD") = "X" Or adors("USE_YN_CD") = "N" Then
|
||||
If isAdminUser = true Then
|
||||
%>
|
||||
<input type="button" value="<22><><EFBFBD>º<EFBFBD><C2BA><EFBFBD>" class="ret_device_btn" data-device_id="<%=adors("ID")%>" data-use_yn="<%=adors("USE_YN_CD")%>" data-disuse_rsn_cd="<%=adors("DISUSE_RSN_CD")%>"/><%
|
||||
End if
|
||||
end if
|
||||
%></td>
|
||||
@@ -279,7 +326,7 @@
|
||||
<%
|
||||
adors.moveFirst
|
||||
Do While Not adors.Eof
|
||||
if adors("P_CHILD_SN") = "" then
|
||||
if adors("P_CHILD_SN") = "" AND adors("USE_YN_CD") = "N" then
|
||||
%>
|
||||
<option value="<%=adors("ID")%>"><%=adors("T_NO")%></option>
|
||||
<%
|
||||
@@ -296,7 +343,7 @@
|
||||
<%
|
||||
adors.moveFirst
|
||||
Do While Not adors.Eof
|
||||
if adors("P_CHILD_SN") = "" then
|
||||
if adors("P_CHILD_SN") = "" AND adors("USE_YN_CD") = "N" then
|
||||
%>
|
||||
<option value="<%=adors("ID")%>"><%=adors("T_NO")%></option>
|
||||
<%
|
||||
@@ -377,6 +424,29 @@
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" id="mod_beforeValue" value="" />
|
||||
</div>
|
||||
<div id="deviceReturnDialog">
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors mb-0">
|
||||
<tr>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
<td>
|
||||
<input type="hidden" id="ret_device_id" />
|
||||
<label><input type="radio" name="ret_use_yn" value="N" /> <20>̻<EFBFBD><CCBB><EFBFBD></label>
|
||||
<label><input type="radio" name="ret_use_yn" value="X" /> <20>뿩<EFBFBD>Ұ<EFBFBD></label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="ret_disuse_rsn_row" style="display:none;">
|
||||
<td><3E>ҿ<EFBFBD><D2BF><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td>
|
||||
<select id="ret_disuse_rsn_cd">
|
||||
<option value="01"><3E>н<EFBFBD></option>
|
||||
<option value="02"><3E>ļ<EFBFBD></option>
|
||||
<option value="03"><3E><><EFBFBD><EFBFBD></option>
|
||||
<option value="04"><3E><><EFBFBD><EFBFBD></option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -420,16 +490,19 @@
|
||||
});
|
||||
|
||||
$(".all_ret_device_btn").click(function(){
|
||||
var deviceIDs = $("#device_status > tbody > tr:nth-child(n+2):visible > td:nth-child(9) > input.ret_device_btn").map(function(idx, obj){ return $(obj).data("device_id") }).toArray().join(",");
|
||||
var deviceIDs = $("#device_status > tbody > tr:nth-child(n+2):visible > td:nth-child(10) > input.my_ret_btn").map(function(idx, obj){ return $(obj).data("device_id") }).toArray().join(",");
|
||||
if(deviceIDs == ""){
|
||||
alert("<22><><EFBFBD>̴<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20>뿩<EFBFBD><EBBFA9>û<EFBFBD>ڰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ⱑ <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
|
||||
if(confirm("ȭ<>鿡 <20><><EFBFBD>̴<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>⸦ <20>ݳ<EFBFBD><DDB3>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?\n(<28>뿩<EFBFBD><EBBFA9>û<EFBFBD>ڰ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)")){
|
||||
$.ajax({
|
||||
url: './capi_device_return.asp',
|
||||
data: {
|
||||
'device_id' : deviceIDs
|
||||
'device_id' : deviceIDs,
|
||||
'use_yn' : 'N',
|
||||
'disuse_rsn_cd' : ''
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
@@ -517,11 +590,33 @@
|
||||
});
|
||||
|
||||
$(".ret_device_btn").click(function () {
|
||||
if(confirm("<22>ݳ<EFBFBD>ó<EFBFBD><C3B3><EFBFBD>ϰڽ<CFB0><DABD>ϱ<EFBFBD>?")){
|
||||
$("#ret_device_id").val($(this).data("device_id"));
|
||||
|
||||
var curUseYn = $(this).data("use_yn");
|
||||
var curDisuseRsnCd = $(this).data("disuse_rsn_cd");
|
||||
|
||||
$("input[name=ret_use_yn]").prop("checked", false);
|
||||
$("input[name=ret_use_yn][value='" + curUseYn + "']").prop("checked", true);
|
||||
|
||||
if(curUseYn == "X"){
|
||||
$("#ret_disuse_rsn_row").show();
|
||||
$("#ret_disuse_rsn_cd").val(curDisuseRsnCd);
|
||||
}else{
|
||||
$("#ret_disuse_rsn_row").hide();
|
||||
}
|
||||
|
||||
deviceReturnDialog.dialog("open");
|
||||
});
|
||||
|
||||
$(".simple_ret_btn").click(function () {
|
||||
var device_id = $(this).data("device_id");
|
||||
if(confirm("<22>ݳ<EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
$.ajax({
|
||||
url: './capi_device_return.asp',
|
||||
data: {
|
||||
'device_id' : $(this).data("device_id")
|
||||
'device_id' : device_id,
|
||||
'use_yn' : 'N',
|
||||
'disuse_rsn_cd' : ''
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
@@ -554,6 +649,34 @@
|
||||
of: window
|
||||
});
|
||||
|
||||
deviceReturnDialog = $("#deviceReturnDialog").dialog({
|
||||
autoOpen: false,
|
||||
modal: true,
|
||||
resizable: false,
|
||||
height: 220,
|
||||
width: 400,
|
||||
title: '<27><><EFBFBD>º<EFBFBD><C2BA><EFBFBD>',
|
||||
close: function(){ clearDeviceReturnValue(); },
|
||||
buttons: {
|
||||
"<22><><EFBFBD><EFBFBD>": deviceReturnSave,
|
||||
"<22><><EFBFBD><EFBFBD>": deviceReturnCancel
|
||||
}
|
||||
});
|
||||
|
||||
deviceReturnDialog.dialog("option", "position", {
|
||||
my: 'center',
|
||||
at: 'center',
|
||||
of: window
|
||||
});
|
||||
|
||||
$("input[name=ret_use_yn]").change(function(){
|
||||
if($(this).val() == "X"){
|
||||
$("#ret_disuse_rsn_row").show();
|
||||
}else{
|
||||
$("#ret_disuse_rsn_row").hide();
|
||||
}
|
||||
});
|
||||
|
||||
$(".mod_device_btn").click(function () {
|
||||
deviceModDialog.dialog("open");
|
||||
|
||||
@@ -564,10 +687,10 @@
|
||||
$("#mod_p_subject").val(projectStr);
|
||||
$("#mod_p_child_sn").val(p_child_sn);
|
||||
|
||||
var use_ed_dt = $("input[name=DEVICE_ID][VALUE='" + $(this).data("device_id") + "']").parents("tr").eq(0).find("td").eq(7).html();
|
||||
var use_ed_dt = $("input[name=DEVICE_ID][VALUE='" + $(this).data("device_id") + "']").parents("tr").eq(0).find("td").eq(8).html();
|
||||
$("#mod_use_ed_dt").val(use_ed_dt);
|
||||
|
||||
var m_name = $("input[name=DEVICE_ID][VALUE='" + $(this).data("device_id") + "']").parents("tr").eq(0).find("td").eq(5).text();
|
||||
var m_name = $("input[name=DEVICE_ID][VALUE='" + $(this).data("device_id") + "']").parents("tr").eq(0).find("td").eq(6).text();
|
||||
$("#mod_ori_m_name").text(m_name);
|
||||
|
||||
$("#mod_beforeValue").val(p_child_sn+"||"+use_ed_dt+"||"+m_name);
|
||||
@@ -607,16 +730,20 @@
|
||||
var selPrjVal = $("#selPrj").val();
|
||||
var selUserVal = $("#selUser").val();
|
||||
var selManVal = $("#selMan").val();
|
||||
var selStatusVal = $("#selStatus").val();
|
||||
|
||||
$("#device_status > tbody > tr:nth-child(n+2)").css("display", "");
|
||||
$.each($("#device_status > tbody > tr:nth-child(n+2)"), function(idx, obj){
|
||||
if($(this).children("td").eq(4).text() != selPrjVal && selPrjVal != ""){
|
||||
$(this).css("display", "none");
|
||||
}
|
||||
if($(this).children("td").eq(9).text() != selUserVal && selUserVal != ""){
|
||||
if($(this).children("td").eq(10).text() != selUserVal && selUserVal != ""){
|
||||
$(this).css("display", "none");
|
||||
}
|
||||
if($(this).children("td").eq(5).text() != selManVal && selManVal != ""){
|
||||
if($(this).children("td").eq(6).text() != selManVal && selManVal != ""){
|
||||
$(this).css("display", "none");
|
||||
}
|
||||
if($(this).children("td").eq(5).text().indexOf(selStatusVal) == -1 && selStatusVal != ""){
|
||||
$(this).css("display", "none");
|
||||
}
|
||||
if(idx > 0 && $(this).children("td").length == 1){
|
||||
@@ -670,18 +797,16 @@
|
||||
$("#selMan").html(baseOption);
|
||||
$.each($("#device_status > tbody > tr:nth-child(n+2)"), function(idx, obj){
|
||||
// $(obj).children("td").eq(4).text() - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ
|
||||
// $(obj).children("td").eq(9).text() - <20>뿩<EFBFBD><EBBFA9>û<EFBFBD><C3BB>
|
||||
// $(obj).children("td").eq(5).text() - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if($(obj).css("display") != "none"){
|
||||
if($("#selPrj").find("option[value='" + $(obj).children("td").eq(4).text() + "']").length == 0 && $(obj).children("td").eq(4).text() != ""){
|
||||
$("#selPrj").append("<option value='" + $(obj).children("td").eq(4).text() + "'>" + $(obj).children("td").eq(4).text() + "</option>");
|
||||
}
|
||||
if($("#selUser").find("option[value='" + $(obj).children("td").eq(9).text() + "']").length == 0 && $(obj).children("td").eq(9).text() != ""){
|
||||
$("#selUser").append("<option value='" + $(obj).children("td").eq(9).text() + "'>" + $(obj).children("td").eq(9).text() + "</option>");
|
||||
}
|
||||
if($("#selMan").find("option[value='" + $(obj).children("td").eq(5).text() + "']").length == 0 && $(obj).children("td").eq(5).text() != ""){
|
||||
$("#selMan").append("<option value='" + $(obj).children("td").eq(5).text() + "'>" + $(obj).children("td").eq(5).text() + "</option>");
|
||||
}
|
||||
// $(obj).children("td").eq(10).text() - <20>뿩<EFBFBD><EBBFA9>û<EFBFBD><C3BB>
|
||||
// $(obj).children("td").eq(6).text() - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
if($("#selPrj").find("option[value='" + $(obj).children("td").eq(4).text() + "']").length == 0 && $(obj).children("td").eq(4).text() != ""){
|
||||
$("#selPrj").append("<option value='" + $(obj).children("td").eq(4).text() + "'>" + $(obj).children("td").eq(4).text() + "</option>");
|
||||
}
|
||||
if($("#selUser").find("option[value='" + $(obj).children("td").eq(10).text() + "']").length == 0 && $(obj).children("td").eq(10).text() != ""){
|
||||
$("#selUser").append("<option value='" + $(obj).children("td").eq(10).text() + "'>" + $(obj).children("td").eq(10).text() + "</option>");
|
||||
}
|
||||
if($("#selMan").find("option[value='" + $(obj).children("td").eq(6).text() + "']").length == 0 && $(obj).children("td").eq(6).text() != ""){
|
||||
$("#selMan").append("<option value='" + $(obj).children("td").eq(6).text() + "'>" + $(obj).children("td").eq(6).text() + "</option>");
|
||||
}
|
||||
});
|
||||
sortSelect("selPrj", prevPrjVal);
|
||||
@@ -809,6 +934,13 @@
|
||||
$("#mod_id").val("");
|
||||
}
|
||||
|
||||
function clearDeviceReturnValue(){
|
||||
$("#ret_device_id").val("");
|
||||
$("input[name=ret_use_yn]").prop("checked", false);
|
||||
$("#ret_disuse_rsn_row").hide();
|
||||
$("#ret_disuse_rsn_cd").val("01");
|
||||
}
|
||||
|
||||
function deviceMod(){
|
||||
var mod_val = $("#mod_p_child_sn").val()+"||"+$("#mod_use_ed_dt").val()+"||"+($("#mod_t_m_name").text() == "" ? $("#mod_ori_m_name").text() : $("#mod_t_m_name").text());
|
||||
if(mod_val == $("#mod_beforeValue").val()){
|
||||
@@ -845,6 +977,45 @@
|
||||
deviceModDialog.dialog("close");
|
||||
}
|
||||
|
||||
function deviceReturnSave(){
|
||||
var use_yn = $("input[name=ret_use_yn]:checked").val();
|
||||
if(!use_yn){
|
||||
alert("<22><><EFBFBD>¸<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
var disuse_rsn_cd = "";
|
||||
if(use_yn == "X"){
|
||||
disuse_rsn_cd = $("#ret_disuse_rsn_cd").val();
|
||||
if(!disuse_rsn_cd){
|
||||
alert("<22>뿩<EFBFBD>Ұ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ּ<EFBFBD><D6BC><EFBFBD>.");
|
||||
return;
|
||||
}
|
||||
}
|
||||
if(!confirm("<22><><EFBFBD>¸<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
url: './capi_device_return.asp',
|
||||
data: {
|
||||
'device_id' : $("#ret_device_id").val(),
|
||||
'use_yn' : use_yn,
|
||||
'disuse_rsn_cd' : disuse_rsn_cd
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
deviceReturnDialog.dialog("close");
|
||||
location.reload();
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function deviceReturnCancel(){
|
||||
deviceReturnDialog.dialog("close");
|
||||
}
|
||||
|
||||
function deviceCancel3(){
|
||||
clearDeviceSelect();
|
||||
deviceSelectDialog.dialog("close");
|
||||
@@ -883,8 +1054,7 @@
|
||||
},
|
||||
success: function(result){
|
||||
if(result == "1"){ // <20><><EFBFBD><EFBFBD>
|
||||
//location.reload();
|
||||
createSelect();
|
||||
location.reload();
|
||||
}else{
|
||||
alert("Web Service Error !!");
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
query = ""
|
||||
query = query & " select sebu, est_danga FROM direct_cost where p_child_sn = '"& request("p_child_sn") &"' "
|
||||
query = query & " and del_yes_no = 'no' "
|
||||
query = query & " and sebu IN ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', '<27>Ұ<EFBFBD><D2B0><EFBFBD>','<27>ص<EFBFBD><D8B5><EFBFBD>', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>3','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>4','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>5') "
|
||||
query = query & " and sebu IN ('<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>', '<27>Ұ<EFBFBD><D2B0><EFBFBD>','<27>ص<EFBFBD><D8B5><EFBFBD>', '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>1','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>3','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>4','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>5','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߰<EFBFBD>(TS)1','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߰<EFBFBD>(TS)2','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߰<EFBFBD>(TS)3','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߰<EFBFBD>(TS)4','<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߰<EFBFBD>(TS)5') "
|
||||
'response.Write query
|
||||
Rs.Open query, adoConn, 1
|
||||
%>
|
||||
|
||||
@@ -519,13 +519,13 @@
|
||||
showHideLayersAll(bank);
|
||||
}
|
||||
function select_activity(xname, xcode){
|
||||
if (!(('<%= session("Depart_Code")%>' == '12' && '<%= session("teamplace")%>' == '5') || '<%= session("Depart_Code")%>' == '18')) {
|
||||
if (document.frm_man.txt_activity.value == "<22>ҷ<EFBFBD>" || document.frm_man.txt_activity.value == "<22><><EFBFBD><EFBFBD>") {
|
||||
alert("<22><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20>ҷ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȱ<><C8B0> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ο<EFBFBD><CEBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>. (DIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> or <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/HR)");
|
||||
showHideLayersAll(activity);
|
||||
return;
|
||||
}
|
||||
}
|
||||
// if (!(('<%= session("Depart_Code")%>' == '12' && '<%= session("teamplace")%>' == '5') || '<%= session("Depart_Code")%>' == '18')) {
|
||||
// if (document.frm_man.txt_activity.value == "<22>ҷ<EFBFBD>" || document.frm_man.txt_activity.value == "<22><><EFBFBD><EFBFBD>") {
|
||||
// alert("<22><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20>ҷ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȱ<><C8B0> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n<><6E><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ο<EFBFBD><CEBF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>. (DIN <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> or <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/HR)");
|
||||
// showHideLayersAll(activity);
|
||||
// return;
|
||||
// }
|
||||
// }
|
||||
document.frm_man.txt_activity.value = xname;
|
||||
document.frm_man.txt_activity_code.value = xcode;
|
||||
showHideLayersAll(activity);
|
||||
|
||||
@@ -179,9 +179,6 @@ for i=1 to request("cnt")
|
||||
lunch_alr = true
|
||||
rsa.open query, adoConn, adopenstatic, adlockreadonly
|
||||
|
||||
if cstr(rsa("m_lunch_cost")) = cstr(lunch_cost) then
|
||||
lunch_alr = false
|
||||
end if
|
||||
|
||||
If lunch_alr = true Then
|
||||
query = " insert into t_neakeun_pay (p_sn, m_name, m_jumin, work_dt, s_ot, s_gubun, s_pay_unit, s_wan, s_sum, s_time_style, pay_type, pay_month, insert_dt, insert_user, attribute01) "
|
||||
|
||||
@@ -3,16 +3,6 @@
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
.file_btn input[type="file"]{
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip:rect(0,0,0,0);
|
||||
border: 0;
|
||||
}
|
||||
|
||||
td{
|
||||
text-align:center;
|
||||
@@ -48,101 +38,18 @@
|
||||
<td>
|
||||
<table class="information_p table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td rowspan="5" style='width:120px;'>
|
||||
<input type='file' name='img_up' id='img_up' accept="image/jpeg" style="display:none"/>
|
||||
<div class="file_btn" style='display:inline;'>
|
||||
<img src='/images/management/img_up.png' id="p_img" style='width:100%;cursor:pointer;' title="<22>̹<EFBFBD><CCB9><EFBFBD> <20><><EFBFBD>ε<EFBFBD>(click)" onclick="document.all.img_up.click();">
|
||||
</div>
|
||||
</td>
|
||||
<td colspan="4" ><b style="font-size:24px;"><3E><> <20><> <20><> <20><> ī <20><></b> (<28><><EFBFBD>ܺ<EFBFBD>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD>(<28>ѱ<EFBFBD>)</td>
|
||||
<td class="nocenter">
|
||||
<td width="120px" style="text-align:center;vertical-align:middle;"><3E><><EFBFBD><EFBFBD>(<28>ѱ<EFBFBD>)</td>
|
||||
<td class="nocenter" colspan="3">
|
||||
<input type="text" name="p_name" id="p_name" value="" />
|
||||
<img src="/images/common/btn_smallsrch2.gif" id="p_search" align="absmiddle" style="CURSOR:pointer;"/>
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ="p_name_eng" id="p_name_eng" value="" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E>ֹι<D6B9>ȣ</td>
|
||||
<td class="nocenter">
|
||||
<input type="number" name = 'p_jumin1' id="p_jumin1" value="" style="width:80px;" > -
|
||||
<input type="password" name = 'p_jumin2' id="p_jumin2" value="" style="width:80px;" >
|
||||
<input type="hidden" name="jumin_ok" id="jumin_ok" value="1" />
|
||||
<button type="button" name="jumin_chk" id="jumin_chk" class="btn btn-sm btn-secondary"><3E><><EFBFBD><EFBFBD></button>
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td> <img src="" />
|
||||
<td class="nocenter">
|
||||
<input type="text" class="date_picker" name="p_birthday" id="p_birthday" value="" style="width:150px" />
|
||||
<input type="radio" class="none" name = 'p_sun_moon' value='<27><>' > <20><><EFBFBD><EFBFBD>
|
||||
<input type="radio" class="none" name = 'p_sun_moon' value='<27><>' > <20><><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD></td>
|
||||
<td class="nocenter">
|
||||
<input type="radio" class="none" name = 'p_marriage' value='<27><>ȥ' > <20><>ȥ
|
||||
<input type="radio" class="none" name = 'p_marriage' value='<27><>ȥ' > <20><>ȥ
|
||||
</td>
|
||||
<td ><3E><>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class="nocenter">
|
||||
<input type="text" class="date_picker" name="p_marriage_date" id="p_marriage_date" value="" style="width:150px;" readonly="readonly" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ</td>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_tel1' value="" style="width:50px" > -
|
||||
<input type="text" name ='p_tel2' value="" style="width:50px" > -
|
||||
<input type="text" name ='p_tel3' value="" style="width:50px" >
|
||||
</td>
|
||||
<td ><3E><EFBFBD><DEB4><EFBFBD>ȭ</td>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_move_tel1' value="" style="width:50px" > -
|
||||
<input type="text" name ='p_move_tel2' value="" style="width:50px" > -
|
||||
<input type="text" name ='p_move_tel3' value="" style="width:50px" >
|
||||
</td>
|
||||
</tr>
|
||||
</table><br>
|
||||
<table class="address table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="6" ><3E>ּ<EFBFBD></td>
|
||||
<td width="120px" rowspan="2" ><3E><><EFBFBD><EFBFBD><br>(<28>ֹε<D6B9><CEB5>ϻ<EFBFBD>)</td>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_zip_code1' id="p_zip_code1" value='' style="width:80px" readonly="readonly" />
|
||||
<a href="javascript:win_open('1')"><img src="/images/common/btn_post.gif" align="absmiddle"></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_address1_1' id="p_address1_1" value='' style="width:300px" readonly="readonly" />-
|
||||
<input type="text" name ='p_address1_2' id="p_address1_2" value='' style="width:250px" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="2" ><3E><><EFBFBD><EFBFBD><br>(<28>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD>)</td>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_zip_code2' id="p_zip_code2" value='' style="width:80px" readonly="readonly" />
|
||||
<a href="javascript:win_open('2')"><img src="/images/common/btn_post.gif" align="absmiddle"></a>
|
||||
<img src="/images/common/btn_same.gif" align="absmiddle" id="add_img" style="CURSOR:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_address2_1' id="p_address2_1" value='' style="width:300px" readonly="readonly" />-
|
||||
<input type="text" name ='p_address2_2' id="p_address2_2" value='' style="width:250px" >
|
||||
</td>
|
||||
</tr>
|
||||
</table><br>
|
||||
<table class="general table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="4" ><3E>Ϲݻ<CFB9><DDBB><EFBFBD></td>
|
||||
<td colspan="2">ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (ID<49><44> <20>ۼ<EFBFBD>)</td>
|
||||
<td colspan="4"><3E><><EFBFBD>θ<EFBFBD><CEB8><EFBFBD>(<28>ִ<EFBFBD> <font class="tahoma">30</font><3E><>)</td>
|
||||
<td style="text-align:center;" colspan="2">ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (ID<49><44> <20>ۼ<EFBFBD>)</td>
|
||||
<td colspan="4"><3E><><EFBFBD>θ<EFBFBD><CEB8><EFBFBD>(<28>ִ<EFBFBD> <font class="tahoma">30</font><3E><>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
@@ -179,170 +86,32 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="120px" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ</td>
|
||||
<td width="120px" style="text-align:center;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ</td>
|
||||
<td >
|
||||
<input type="text" name ='p_krc_tel' id="p_krc_tel" value="" readonly="readonly" />
|
||||
<input type="hidden" name="p_krc_tel3" id="p_krc_tel3" value="" />
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD> IP</td>
|
||||
<td width="120px" style="text-align:center;"><3E><><EFBFBD><EFBFBD> IP</td>
|
||||
<td >
|
||||
<input type="text" name ='p_krc_ip' id="p_krc_ip" value="" readonly="readonly" />
|
||||
</td>
|
||||
<td ><3E><>ȭ<EFBFBD><C8AD> IP</td>
|
||||
<td width="120px" style="text-align:center;"><3E><>ȭ<EFBFBD><C8AD> IP</td>
|
||||
<td >
|
||||
<input type="text" name ='p_krc_tel_ip' id="p_krc_tel_ip" value="" readonly="readonly" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<div style="text-align:left">
|
||||
<label><input type="checkbox" name="military_x" id="military_x" value="1" /><3E>ش<EFBFBD> <20><><EFBFBD><EFBFBD></label>
|
||||
</div>
|
||||
<table class="military table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="3" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br> <br>
|
||||
<input type="checkbox" name="military_exmption" id="military_exmption" value="1" /><3E><><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD>Ⱓ</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<tr class="military_tr1">
|
||||
<td>
|
||||
<input type="text" class="date_picker" name ='p_military_service_st' id="p_military_service_st" value='' style="width:150px;" readonly="readonly" > -
|
||||
<input type="text" class="date_picker" name ='p_military_service_end' id="p_military_service_end" value='' style="width:150px;" readonly="readonly" >
|
||||
</td>
|
||||
<td ><input type="text" name="p_military_1" id="p_military_1" value='' style="width:100%;"></td>
|
||||
<td ><input type="text" name="p_military_grade" id="p_military_grade" value='' style="width:100%;"></td>
|
||||
<td ><input type="text" name="p_military_type" id="p_military_type" value='' style="width:100%;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td colspan="4"><input type="text" name="p_military_2" id="p_military_2" value='' style="width:100%;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="4" ><3E><><EFBFBD><EFBFBD>/<2F>ڰ<EFBFBD><br><3E><><EFBFBD><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td ><3E>ڰݸ<DAB0></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD>û</td>
|
||||
</tr>
|
||||
<%
|
||||
for i=1 to 3
|
||||
%>
|
||||
<tr class="license">
|
||||
<td >
|
||||
<img src="/images/common/btn_reply_del.jpg" align="absmiddle" onclick="txt_clear('license','<%=i%>');" style='CURSOR:pointer;'>
|
||||
<input type="text" class="date_picker" name="p_license_date" id="p_license_date_<%=i %>" value='' style="width:150px;" readonly="readonly" >
|
||||
</td>
|
||||
<td ><input type="text" name='p_license_name' value='' style="width:250px;" ></td>
|
||||
<td ><input type="text" name='p_license_grade' value='' style="width:80px;" ></td>
|
||||
<td ><input type="text" name='p_license_class' value='' style="width:150px;" ></td>
|
||||
</tr>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="6" ><3E>з»<D0B7><C2BB><EFBFBD></td>
|
||||
<td ><3E>з±<D0B7><C2B1><EFBFBD></td>
|
||||
<td ><3E>Ⱓ(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td ><3E>б<EFBFBD><D0B1><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
dim edu_date
|
||||
for i=1 to 5
|
||||
%>
|
||||
<tr class="education">
|
||||
<td width="120px">
|
||||
<%if i=1 then
|
||||
Response.Write "<22><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>"
|
||||
elseif i = 2 then
|
||||
Response.Write "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
elseif i = 3 then
|
||||
Response.Write "<22><><EFBFBD>б<EFBFBD>"
|
||||
elseif i = 4 then
|
||||
Response.Write "<22><><EFBFBD>п<EFBFBD>(<28><>)"
|
||||
elseif i = 5 then
|
||||
Response.Write "<22><><EFBFBD>п<EFBFBD>(<28><>)"
|
||||
end if%>
|
||||
</td>
|
||||
<td >
|
||||
<img src="/images/common/btn_reply_del.jpg" align="absmiddle" onclick="txt_clear('edu','<%=i%>');" style='CURSOR:pointer;'>
|
||||
<input type="text" class="date_picker" name="p_edu_st_date" id="p_edu_st_date_<%=i %>" value='' style="width:150px;" readonly="readonly" /> -
|
||||
<input type="text" class="date_picker" name="p_edu_end_date" id="p_edu_end_date_<%=i %>" value='' style="width:150px;" readonly="readonly" />
|
||||
</td>
|
||||
<td ><input type="text" name='p_edu_name' value='' style="width:140px;" ></td>
|
||||
<td ><input type="text" name='p_edu_study' value='' style="width:110px;" ></td>
|
||||
<td ><input type="text" name='p_edu_end_chk' value='' style="width:60px;" onclick="showHideLayersAll(edu_end,'<%=i%>');" style='CURSOR:pointer;'></td>
|
||||
<td ><input type="text" name='p_edu_point' value='' style="width:50px;" ></td>
|
||||
</tr>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="7" ><3E><><EFBFBD>»<EFBFBD><C2BB><EFBFBD></td>
|
||||
<td colspan="6" width="120px" >
|
||||
<20><> <20><><EFBFBD>³<EFBFBD><C2B3><EFBFBD>
|
||||
<input type="text" name='p_career_year_sum' value='' style="text-align:right;width:50px" readonly="readonly" > <20><><!-- readonly -->
|
||||
<input type="text" name='p_career_month_sum' value='' style="text-align:right;width:50px" readonly="readonly" > <20><><EFBFBD><EFBFBD> <!-- readonly -->
|
||||
<b class="k_darkorange">(ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ؾ߸<D8BE> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>˴ϴ<CBB4>.)</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD>³<EFBFBD><C2B3><EFBFBD></td>
|
||||
<td ><3E>Ⱓ(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td >ȸ<><C8B8><EFBFBD><EFBFBD></td>
|
||||
<td ><3E>μ<EFBFBD><CEBC><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
Dim career_date
|
||||
for i=1 to 5
|
||||
%>
|
||||
<tr class="career">
|
||||
<td >
|
||||
<input type="text" name='p_career_year' id="p_career_year_<%=i %>" value='' style="width:20px;" readonly="readonly" >
|
||||
<input type="text" name='p_career_month' id="p_career_month_<%=i %>" value='' style="width:20px;" readonly="readonly" >
|
||||
</td>
|
||||
<td >
|
||||
<img src="/images/common/btn_reply_del.jpg" align="absmiddle" onclick="txt_clear('career','<%=i%>');" style='CURSOR:pointer;'>
|
||||
<input type="text" class="date_picker" name="p_career_st_date" id="p_career_st_date_<%=i %>" value='' style="width:150px;" readonly="readonly" /> -
|
||||
<input type="text" class="date_picker" name="p_career_end_date" id="p_career_end_date_<%=i %>" value='' style="width:150px;" readonly="readonly" />
|
||||
</td>
|
||||
<td ><input type="text" name='p_company_name' value='' style="width:150px;" ></td>
|
||||
<td ><input type="text" name='p_company_part' value='' style="width:100px;" ></td>
|
||||
<td ><input type="text" name='p_company_part_job' value='' style="width:100px;" ></td>
|
||||
<td ><input type="text" name='p_company_part_grade' value='' style="width:60px;" ></td>
|
||||
</tr>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="4" ><3E>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td ><3E>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<td><3E>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td>
|
||||
<input type="text" class="date_picker" name="p_krc_in_date" id="p_krc_in_date" value="" style="width:150px;text-align:right" readonly="readonly" />
|
||||
</td>
|
||||
<td width="10%" rowspan="4" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td>
|
||||
<input type="text" class="date_picker" name="p_krc_out_date" id="p_krc_out_date" value="" style="width:150px;text-align:right" readonly="readonly" />
|
||||
</td>
|
||||
</tr>
|
||||
@@ -363,7 +132,7 @@
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
<td >
|
||||
<select name="sel_p_depart_last" id="sel_p_depart_last" >
|
||||
<option value='' >= <20><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> =</option>
|
||||
@@ -387,7 +156,7 @@
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<select name="sel_p_pos_last" id="sel_p_pos_last" >
|
||||
<option value='' >= <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> =</option>
|
||||
@@ -421,7 +190,7 @@
|
||||
|
||||
</select>
|
||||
</td>
|
||||
<td ><3E><></td>
|
||||
<td style="text-align:center;"><3E><></td>
|
||||
<td >
|
||||
<select name="sel_p_team" id="sel_p_team"><!--'<27><><EFBFBD><EFBFBD>-->
|
||||
<option value='' >= <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> =</option>
|
||||
@@ -448,7 +217,7 @@
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td ><3E><>å</td>
|
||||
<td style="text-align:center;"><3E><>å</td>
|
||||
<td >
|
||||
<select name='sel_p_team_place'><!--'<27><><EFBFBD>忩<EFBFBD><E5BFA9>-->
|
||||
<option value='' >= ȸ<><C8B8> <20><> <20><>å =</option>
|
||||
@@ -466,7 +235,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<select name="sel_p_krc_job_part" id="sel_p_krc_job_part" ><!--'<27><><EFBFBD><EFBFBD>-->
|
||||
<option value='' >= ȸ<>系 <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> =</option>
|
||||
@@ -497,7 +266,6 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<script src="http://dmaps.daum.net/map_js_init/postcode.v2.js"></script>
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function chkLen(str){//<2F>ֹι<D6B9>ȣ <20><><EFBFBD><EFBFBD> Ȯ<><C8AE>
|
||||
@@ -505,91 +273,22 @@
|
||||
document.frmmember.txt_jumin2.focus();
|
||||
}
|
||||
}
|
||||
function img_ajax(data){
|
||||
var chk
|
||||
$.ajax({
|
||||
url:"personnel_card_img_ajax.asp",
|
||||
enctype:'multipart/form-data',
|
||||
type:"POST",
|
||||
data:data,
|
||||
cache: false,
|
||||
async: false,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
success:function(res){
|
||||
chk = res;
|
||||
},
|
||||
error:function(res){
|
||||
chk = '9';
|
||||
}
|
||||
});
|
||||
return chk;
|
||||
}
|
||||
|
||||
function gap_save(){
|
||||
//<2F>̹<EFBFBD><CCB9><EFBFBD> <20><><EFBFBD>ε<EFBFBD>
|
||||
var birth = $("#p_jumin1").val();
|
||||
var sex = $("#p_jumin2").val().charAt(0);
|
||||
var name = $("#p_name").val();
|
||||
|
||||
var img_name = birth+"_"+sex+"_"+name;
|
||||
|
||||
var formData = new FormData();
|
||||
formData.append("img_file", $("#img_up")[0].files[0]);
|
||||
formData.append("img_name", img_name);
|
||||
formData.append("ImgChk", "1");
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>
|
||||
if(chk_data() == true){
|
||||
if($("#img_up")[0].files[0] == undefined){
|
||||
alert("<22>̹<EFBFBD><CCB9><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ε<EFBFBD> <20>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false
|
||||
}else{
|
||||
if(img_ajax(formData) == "9"){
|
||||
alert("Error");
|
||||
return false;
|
||||
}else{
|
||||
document.frmmember.action="personnel_card_ok.asp";
|
||||
document.frmmember.submit();
|
||||
}
|
||||
}
|
||||
document.frmmember.action="personnel_card_ok.asp";
|
||||
document.frmmember.submit();
|
||||
}
|
||||
}
|
||||
|
||||
function chk_data() {
|
||||
var information_p;
|
||||
$(".information_p input").each(function () {
|
||||
if($(this).prop("type") != "file"){
|
||||
if ($(this).prop("disabled") == false) {
|
||||
if ($(this).val() == "") {
|
||||
information_p = false;
|
||||
return false;
|
||||
} else {
|
||||
information_p = true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
if (information_p == false) {
|
||||
alert("<22>⺻ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.(<28><><EFBFBD><EFBFBD>, <20>ֹι<D6B9>ȣ, <20><>ȭ <20><><EFBFBD><EFBFBD>)");
|
||||
if ($("#p_name").val() == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD>(<28>ѱ<EFBFBD>)<29><> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
$("#p_name").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#p_jumin1").val().toString().length != 6) {
|
||||
alert("<22>ֹι<D6B9>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٽ<EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#p_jumin2").val().toString().length != 7) {
|
||||
alert("<22>ֹι<D6B9>ȣ<EFBFBD><C8A3> <20><> 7<>ڸ<EFBFBD><DAB8><EFBFBD> <20>ٽ<EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
if ($(".address input").val() == "") {
|
||||
alert("<22>ּҸ<D6BC> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($(".general input").val() == "") {
|
||||
alert("<22>Ϲ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
@@ -601,69 +300,6 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#military_x").is(":checked") == false) {
|
||||
if ($("#military_exmption").is(":checked") == true && $("#p_military_2").val() == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
if ($("#military_exmption").is(":checked") == false && $(".military_tr1 input").val() == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
var lincense;
|
||||
$(".license").each(function (i) {
|
||||
if ($("input[name=p_license_date]:eq(" + i + ")").val() != "") {
|
||||
if ($("input[name=p_license_name]:eq(" + i + ")").val() == "" || $("input[name=p_license_grade]:eq(" + i + ")").val() == "" || $("input[name=p_license_class]:eq(" + i + ")").val() == "") {
|
||||
lincense = false;
|
||||
return false;
|
||||
} else {
|
||||
lincense = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if(lincense == false){
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var education;
|
||||
$(".education").each(function (i) {
|
||||
if ($("input[name=p_edu_st_date]:eq(" + i + ")").val() != "") {
|
||||
if ($("input[name=p_edu_end_date]:eq(" + i + ")").val() == "" || $("input[name=p_edu_name]:eq(" + i + ")").val() == "" || $("input[name=p_edu_study]:eq(" + i + ")").val() == "" || $("input[name=p_edu_end_chk]:eq(" + i + ")").val() == "" || $("input[name=p_edu_point]:eq(" + i + ")").val() == "") {
|
||||
education = false;
|
||||
return false;
|
||||
} else {
|
||||
education = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (education == false) {
|
||||
alert("<22>з<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
var career;
|
||||
$(".career").each(function (i) {
|
||||
if ($("input[name=p_career_st_date]:eq(" + i + ")").val() != "") {
|
||||
if ($("input[name=p_career_end_date]:eq(" + i + ")").val() == "" || $("input[name=p_company_name]:eq(" + i + ")").val() == "" || $("input[name=p_company_part]:eq(" + i + ")").val() == "" || $("input[name=p_company_part_job]:eq(" + i + ")").val() == "" || $("input[name=p_company_part_grade]:eq(" + i + ")").val() == "") {
|
||||
career = false;
|
||||
return false;
|
||||
} else {
|
||||
career = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (career == false) {
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#p_krc_in_date").val() == "" || $("#sel_p_depart_first").val() == "" || $("#sel_p_pos_first").val() == "") {
|
||||
alert("<22>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
@@ -694,163 +330,19 @@
|
||||
}
|
||||
|
||||
//##### <20>ּ<EFBFBD> <20>˻<EFBFBD>
|
||||
function win_open(x) {
|
||||
new daum.Postcode({
|
||||
oncomplete: function (data) {
|
||||
$("input[name=p_zip_code" + x + "]").val((data.postcode != "" ? data.postcode.replace('-', '') : data.zonecode));
|
||||
if (data.userSelectedType == 'R') {
|
||||
$("input[name=p_address" + x + "_1]").val(data.roadAddress + " " + data.buildingName + "");
|
||||
} else {
|
||||
$("input[name=p_address" + x + "_1]").val(data.jibunAddress + " " + data.buildingName + "");
|
||||
}
|
||||
//console.log(data);
|
||||
}
|
||||
}).open();
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> ÷<><C3B7>
|
||||
function img_attach(e){
|
||||
$(".file_btn").empty();
|
||||
var files = this.files[0];
|
||||
var reader = new FileReader();
|
||||
reader.onload = function(f){
|
||||
var img = new Image();
|
||||
img.src = f.target.result;
|
||||
img.width = 120;
|
||||
img.height = 150;
|
||||
$(".file_btn").append("<a href=\"javascript:void(0);\" onclick=\"img_delete(\'" + files.name + "\')\" id=\"file_id\" class=\"file_id\"><img src=\'"+ f.target.result + "\' dtata-file = '" + files.name + "' class='sel_file' title='<27><><EFBFBD><EFBFBD>' style='width:100%;'></a>");
|
||||
}
|
||||
|
||||
reader.readAsDataURL(files);
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
function img_delete(index){
|
||||
var agent = navigator.userAgent.toLowerCase();
|
||||
|
||||
if(confirm(index+"<22><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
$(".file_btn").empty();
|
||||
|
||||
$(".file_btn").append("<img src=\"/images/management/img_up.png\" id=\"p_img\" style=\"width:100%;cursor:pointer;\" title=\"<22>̹<EFBFBD><CCB9><EFBFBD> <20><><EFBFBD>ε<EFBFBD>(click)\" onclick=\"document.all.img_up.click();\">");
|
||||
|
||||
if (agent.indexOf("msie") != -1) { // ie <20>϶<EFBFBD>
|
||||
$("#img_up").replaceWith( $("#img_up").clone(true) );
|
||||
} else { // <20><EFBFBD>
|
||||
$("#img_up").val("");
|
||||
}
|
||||
|
||||
alert("<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>");
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//<2F>ֹι<D6B9>ȣ <20><>ȿ<EFBFBD><C8BF> üũ
|
||||
function JuminChk(jumin){
|
||||
var fmt = RegExp(/^\d{6}[1234]\d{6}$/);
|
||||
var buf = new Array(13);
|
||||
|
||||
if(!fmt.test(jumin)){
|
||||
alert("<22>ֹι<D6B9>ȣ <20><><EFBFBD>Ŀ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
for (var i=0; i< buf.length; i++){
|
||||
buf[i] = parseInt(jumin.charAt(i));
|
||||
}
|
||||
var multiple = [2,3,4,5,6,7,8,9,2,3,4,5];
|
||||
var sum = 0;
|
||||
|
||||
for (var i=0; i<12; i++){
|
||||
sum += (buf[i] *= multiple[i]);
|
||||
}
|
||||
|
||||
if ((11-(sum % 11)) % 10 != buf[12]){
|
||||
alert("<22>߸<EFBFBD><DFB8><EFBFBD> <20>ֹε<D6B9><CEB5>Ϲ<EFBFBD>ȣ <20>Դϴ<D4B4>.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
$(function () {
|
||||
$("#p_military_2").prop('disabled', true);
|
||||
$("#p_military_2").css('background', "gray");
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> <20><><EFBFBD>ε<EFBFBD>
|
||||
$("#img_up").click(function(e){
|
||||
if($("#p_jumin1").val() == "" || $("#p_jumin2").val() == ""){
|
||||
alert("<22><><EFBFBD><EFBFBD>, <20>ֹι<D6B9>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD> <20><> <20>Ϸ<EFBFBD> <20><><EFBFBD>ֽʽÿ<CABD>..");
|
||||
return false;
|
||||
}else{
|
||||
$("#img_up").off().on("change", img_attach);
|
||||
}
|
||||
});
|
||||
|
||||
//<2F>ѱ<EFBFBD><D1B1>Է<EFBFBD> <20>ȵǰ<C8B5> ó<><C3B3>
|
||||
$(".en_num_cls").keydown(function (event) {
|
||||
var inputVal = $(this).val();
|
||||
$(this).css('ime-mode', 'disabled');
|
||||
$(this).val(inputVal.replace(/[<EFBFBD><EFBFBD>-<2D><>|<7C><>-<2D><>|<7C><>-Þ]/gi, ''));
|
||||
});
|
||||
|
||||
//<2F>ֹε<D6B9><CEB5><EFBFBD> <20><>Ŀ<EFBFBD><C4BF> <20>̵<EFBFBD>
|
||||
$("#p_jumin1").off().on("keyup",function(){
|
||||
if($(this).val().length == 6){
|
||||
$("#p_jumin1").blur();
|
||||
$("#p_jumin2").focus();
|
||||
}
|
||||
});
|
||||
|
||||
$("#jumin_chk").on("click", function(){
|
||||
var jumin1 = $("#p_jumin1").val();
|
||||
var jumin2 = $("#p_jumin2").val();
|
||||
|
||||
if(jumin1 == "" || jumin2 == ""){
|
||||
alert("<22>ֹι<D6B9>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
jumin1 == "" ? $("#p_jumin1").focus() : $("#p_jumin2").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(JuminChk(jumin1+jumin2) == false){
|
||||
$("#jumin_ok").val("0");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#p_jumin1").after("<span>"+$("#p_jumin1").val()+"</span>");
|
||||
|
||||
var pattern = /.{6}$/;;
|
||||
jumin2 = jumin2.replace(pattern, '******');
|
||||
$("#p_jumin2").after("<span>"+jumin2+"</span>");
|
||||
$("#p_jumin1").attr("type","hidden");
|
||||
$("#p_jumin2").attr("type","hidden");
|
||||
$("#jumin_ok").val("1");
|
||||
$("#jumin_chk").replaceWith("<i class='ui-icon ui-icon-check'></i><i style=\"color:red;\"><3E><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD></i>");
|
||||
});
|
||||
|
||||
//<2F><>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD>
|
||||
$("input[name=p_marriage]").click(function () {
|
||||
var p_marriage = $(this).val();
|
||||
if (p_marriage == "<22><>ȥ") {
|
||||
$("input[name=p_marriage_date]").prop("disabled", true);
|
||||
$("input[name=p_marriage_date]").css("background", "gray");
|
||||
$("input[name=p_marriage_date]").val("");
|
||||
} else {
|
||||
$("input[name=p_marriage_date]").prop("disabled", false);
|
||||
$("input[name=p_marriage_date]").css("background", "");
|
||||
}
|
||||
});
|
||||
|
||||
//<2F>ּ<EFBFBD>
|
||||
$("#add_img").click(function () {
|
||||
if ($("#p_zip_code1").val() != "") {
|
||||
$("#p_zip_code2").val($("#p_zip_code1").val());
|
||||
$("#p_address2_1").val($("#p_address1_1").val());
|
||||
$("#p_address2_2").val($("#p_address1_2").val());
|
||||
} else {
|
||||
alert("<22>ֹε<D6B9><CEB5>ϻ<EFBFBD><CFBB><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
inputVal.replace(/[\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]/g, '')
|
||||
});
|
||||
|
||||
$("#p_name").keypress(function(e){
|
||||
@@ -986,167 +478,12 @@
|
||||
eamil_check($("#sel_mail").val());
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
$("#military_x").click(function () {
|
||||
var military_x = $(this);
|
||||
if (military_x.prop('checked')) {
|
||||
$(".military input").each(function () {
|
||||
if ($(this).prop("name") != "p_military_type") {
|
||||
$(this).prop('disabled', true);
|
||||
$(".military input:checkbox").prop('checked', false);
|
||||
$(this).css('background', "gray");
|
||||
$(this).val("");
|
||||
}
|
||||
$("#p_military_type").val("<22>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD>");
|
||||
$("#p_military_type").prop("readonly", true);
|
||||
});
|
||||
} else {
|
||||
$("#p_military_type").prop("readonly", false);
|
||||
$("#military_exmption").prop("disabled", false);
|
||||
$(".military_tr1 input").prop('disabled', false);
|
||||
$(".military_tr1 input").css('background', "");
|
||||
$(".military_tr1 input").val("");
|
||||
}
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)
|
||||
$("#military_exmption").click(function () {
|
||||
var military_exmption = $(this);
|
||||
if (military_exmption.prop('checked')) {
|
||||
$("#p_military_2").prop('disabled', false);
|
||||
$("#p_military_2").css('background', "");
|
||||
|
||||
$(".military_tr1 input").each(function () {
|
||||
if ($(this).prop("name") != "p_military_type") {
|
||||
$(this).prop('disabled', true);
|
||||
$(this).css('background', "gray");
|
||||
$(this).val("");
|
||||
}
|
||||
$("#p_military_type").val("<22><><EFBFBD><EFBFBD>");
|
||||
$("#p_military_type").prop("readonly", true);
|
||||
});
|
||||
} else {
|
||||
$("#p_military_type").prop("readonly", false);
|
||||
$("#p_military_2").prop('disabled', true);
|
||||
$("#p_military_2").css('background', "gray");
|
||||
$("#p_military_2").val("");
|
||||
|
||||
$(".military_tr1 input").prop('disabled', false);
|
||||
$(".military_tr1 input").css('background', "");
|
||||
$(".military_tr1 input").val("");
|
||||
}
|
||||
});
|
||||
|
||||
$("input[name=p_military_1]").click(function () {
|
||||
var st_date = $("input[name=military_service_st]").val().split('-');
|
||||
var end_date = $("input[name=military_service_end]").val().split('-');
|
||||
|
||||
var date1 = new Date(st_date[0], st_date[1], st_date[2]);
|
||||
var date2 = new Date(end_date[0], end_date[1], end_date[2]);
|
||||
|
||||
if (date1 > date2) {
|
||||
alert("<22>Ⱓ <20>Է<EFBFBD><D4B7><EFBFBD> <20>߸<EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
var end_date = $("input[name=military_service_end]").val("");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
//<2F>з<EFBFBD> <20>Ⱓ
|
||||
$("input[name=p_edu_end_date]").each(function (i) {
|
||||
$("input[name=p_edu_name]:Eq(" + i + ")").click(function () {
|
||||
var st_date = $("input[name=p_edu_st_date]:Eq(" + i + ")").val().split('-');
|
||||
var end_date = $("input[name=p_edu_end_date]:Eq(" + i + ")").val().split('-');
|
||||
|
||||
var date1 = new Date(st_date[0], st_date[1]);
|
||||
var date2 = new Date(end_date[0], end_date[1]);
|
||||
|
||||
if (date1 > date2) {
|
||||
alert("<22>Ⱓ <20>Է<EFBFBD><D4B7><EFBFBD> <20>߸<EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
var end_date = $("input[name=p_edu_end_date]:Eq(" + i + ")").val("");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD>º<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
$("input[name=p_career_end_date]").each(function (i) {
|
||||
$(this).on("change",function(){
|
||||
if ($("input[name=p_career_st_date]:Eq(" + i + ")").val() == "" || $("input[name=p_career_end_date]:Eq(" + i + ")") == "") {
|
||||
alert("<22>Ⱓ<EFBFBD><E2B0A3> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("input[name=p_career_year_sum]").val("0");
|
||||
$("input[name=p_career_month_sum]").val("0");
|
||||
|
||||
var st_date = $("input[name=p_career_st_date]:Eq(" + i + ")").val().split('-');
|
||||
var end_date = $("input[name=p_career_end_date]:Eq(" + i + ")").val().split('-');
|
||||
|
||||
var date1 = new Date(st_date[0], st_date[1]);
|
||||
var date2 = new Date(end_date[0], end_date[1]);
|
||||
|
||||
if (date1 > date2) {
|
||||
alert("<22>Ⱓ <20>Է<EFBFBD><D4B7><EFBFBD> <20>߸<EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
var end_date = $("input[name=p_career_end_date]:Eq(" + i + ")").val("");
|
||||
return false;
|
||||
}
|
||||
|
||||
var diff1 = end_date[0] - st_date[0];
|
||||
var diff2 = (diff1 * 12 + end_date[1] * 1) - st_date[1];
|
||||
|
||||
var diff_year = parseInt(diff2 / 12);
|
||||
var diff_month = parseInt(diff2 % 12);
|
||||
|
||||
if (st_date = "" || end_date == "") {
|
||||
$("input[name=p_career_year]:eq(" + i + ")").val("");
|
||||
$("input[name=p_career_month]:eq(" + i + ")").val("");
|
||||
}
|
||||
|
||||
$("input[name=p_career_year]:eq(" + i + ")").val(diff_year);
|
||||
$("input[name=p_career_month]:eq(" + i + ")").val(diff_month);
|
||||
|
||||
var a = 0;
|
||||
var b = 0;
|
||||
$("input[name=p_career_year]").each(function (e) {
|
||||
if ($(this).val() != "") {
|
||||
a += parseInt($(this).val());
|
||||
b += parseInt($("input[name=p_career_month]").eq(e).val());
|
||||
}
|
||||
});
|
||||
|
||||
y_m_sum(a, b);
|
||||
});
|
||||
});
|
||||
|
||||
//<2F><> <20><>,<2C><><EFBFBD><EFBFBD>
|
||||
function y_m_sum(yy, mm) {
|
||||
var yy = parseInt(yy);
|
||||
var mm = parseInt(mm);
|
||||
var y_sum = parseInt($("input[name=p_career_year_sum]").val()) || 0;
|
||||
var m_sum = parseInt($("input[name=p_career_month_sum]").val()) || 0;
|
||||
|
||||
y_sum = y_sum + yy;
|
||||
m_sum = m_sum + mm;
|
||||
|
||||
if (m_sum > 11) {
|
||||
y_sum =y_sum + (parseInt(m_sum / 12));
|
||||
m_sum = m_sum - ((parseInt(m_sum / 12)) * 12);
|
||||
}
|
||||
|
||||
$("input[name=p_career_year_sum]").val(y_sum);
|
||||
$("input[name=p_career_month_sum]").val(m_sum);
|
||||
}
|
||||
|
||||
//<2F><EFBFBD>
|
||||
$(".date_picker").addClass("text-center");
|
||||
$(".date_picker").addClass("text-center");
|
||||
$(".date_picker").addClass("text-center");
|
||||
$(".date_picker").addClass("text-center");
|
||||
$(".date_picker").each(function () {
|
||||
var tag_name = $(this).prop("name");
|
||||
var d_format;
|
||||
if (tag_name == "p_military_service_st" || tag_name == "p_military_service_end" || tag_name == "p_license_date" || tag_name == "p_edu_st_date" || tag_name == "p_edu_end_date" || tag_name == "p_career_st_date" || tag_name == "p_career_end_date") {
|
||||
d_format = "yy-mm";
|
||||
} else {
|
||||
d_format = "yy-mm-dd";
|
||||
}
|
||||
$(this).datepicker();
|
||||
});
|
||||
|
||||
|
||||
@@ -32,23 +32,10 @@
|
||||
D_Code = Rs("p_depart_now")
|
||||
T_Code = Rs("p_team_now")
|
||||
|
||||
jumin = split(Rs("jumin"),"-")
|
||||
jumin_1 = jumin(0)
|
||||
jumin_2 = jumin(1)
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
<style>
|
||||
.file_btn input[type="file"]{
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip:rect(0,0,0,0);
|
||||
border: 0;
|
||||
}
|
||||
|
||||
td{
|
||||
text-align:center;
|
||||
@@ -85,143 +72,17 @@
|
||||
<td>
|
||||
<table class="information_p table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td rowspan="5" style='width:120px;'>
|
||||
<input type='file' name='img_up' id='img_up' accept="image/jpeg" style="display:none"/>
|
||||
<div class="file_btn" style='display:inline;'>
|
||||
<img src='' id="p_img" style='width:100%;cursor:pointer;' title="<22>̹<EFBFBD><CCB9><EFBFBD> <20><><EFBFBD>ε<EFBFBD>(click)" onclick="document.all.img_up.click();">
|
||||
</div>
|
||||
</td>
|
||||
<td colspan="4" ><b style="font-size:24px;"><3E><> <20><> <20><> <20><> ī <20><></b> (<28><><EFBFBD>ܺ<EFBFBD>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E><><EFBFBD><EFBFBD>(<28>ѱ<EFBFBD>)</td>
|
||||
<td class="nocenter">
|
||||
<td width="120px" style="text-align:center;vertical-align:middle;"><3E><><EFBFBD><EFBFBD>(<28>ѱ<EFBFBD>)</td>
|
||||
<td class="nocenter" colspan="3">
|
||||
<input type="text" name="p_name" id="p_name" value="<%=Rs("p_name") %>" />
|
||||
<img src="/images/common/btn_smallsrch2.gif" id="p_search" align="absmiddle" style="CURSOR:pointer;"/>
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ="p_name_eng" id="p_name_eng" value="<%=Rs("p_name_eng") %>" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td ><3E>ֹι<D6B9>ȣ</td>
|
||||
<td class="nocenter">
|
||||
<input type="number" name = 'p_jumin1' id="p_jumin1" value="<%=jumin_1 %>" style="width:80px;" > -
|
||||
<input type="password" name = 'p_jumin2' id="p_jumin2" value="<%=jumin_2 %>" style="width:80px;" >
|
||||
<input type="hidden" name="jumin_ok" id="jumin_ok" value="1" />
|
||||
<button type="button" name="jumin_chk" id="jumin_chk" class="btn btn-sm btn-secondary"><3E><><EFBFBD><EFBFBD></button>
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td> <img src="" />
|
||||
<td class="nocenter">
|
||||
<input type="text" class="date_picker" name="p_birthday" id="p_birthday" value="<%=mid(Rs("birthday"),1,10)%>" style="width:150px" />
|
||||
<%
|
||||
if Rs("birthday") <> "" then
|
||||
if cstr(mid(Rs("birthday"),12,1)) = "<22><>" then
|
||||
tmp_radio = "<22><>"
|
||||
elseif cstr(mid(Rs("birthday"),12,1)) = "<22><>" then
|
||||
tmp_radio = "<22><>"
|
||||
end if
|
||||
end if
|
||||
%>
|
||||
<input type="radio" class="none" name = 'p_sun_moon' value='<27><>' <% if tmp_radio = "<22><>" then %> checked <% end if %>> <20><><EFBFBD><EFBFBD>
|
||||
<input type="radio" class="none" name = 'p_sun_moon' value='<27><>' <% if tmp_radio = "<22><>" then %> checked <% end if %>> <20><><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><3E><>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD></td>
|
||||
<td class="nocenter">
|
||||
<%
|
||||
if Rs("marriage") <> "" then
|
||||
if Rs("marriage") = "<22><>ȥ" then
|
||||
tmp_radio = "<22><>ȥ"
|
||||
elseif Rs("marriage") = "<22><>ȥ" then
|
||||
tmp_radio = "<22><>ȥ"
|
||||
end if
|
||||
end if
|
||||
%>
|
||||
<input type="radio" class="none" name = 'p_marriage' value='<27><>ȥ' <% if tmp_radio = "<22><>ȥ" then %> checked <% end if %>> <20><>ȥ
|
||||
<input type="radio" class="none" name = 'p_marriage' value='<27><>ȥ' <% if tmp_radio = "<22><>ȥ" then %> checked <% end if %>> <20><>ȥ
|
||||
</td>
|
||||
<td><3E><>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td class="nocenter">
|
||||
<input type="text" class="date_picker" name="p_marriage_date" id="p_marriage_date" value="<%=Rs("marriage_date")%>" style="width:150px;" <%if tmp_radio = "<22><>ȥ" Then Response.Write "disabled='disabled'" End If%> readonly="readonly">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȭ</td>
|
||||
<%
|
||||
|
||||
if Rs("p_tel") <> "" then
|
||||
tmpstr=split(Rs("p_tel"),"-")
|
||||
tmp_value1 = tmpstr(0)
|
||||
tmp_value2 = tmpstr(1)
|
||||
tmp_value3 = tmpstr(2)
|
||||
else
|
||||
tmp_value1 = ""
|
||||
tmp_value2 = ""
|
||||
tmp_value3 = ""
|
||||
end if
|
||||
%>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_tel1' value="<%=tmp_value1%>" style="width:50px" > -
|
||||
<input type="text" name ='p_tel2' value="<%=tmp_value2%>" style="width:50px" > -
|
||||
<input type="text" name ='p_tel3' value="<%=tmp_value3%>" style="width:50px" >
|
||||
</td>
|
||||
<td><3E><EFBFBD><DEB4><EFBFBD>ȭ</td>
|
||||
<%
|
||||
if Rs("p_tel2") <> "" then
|
||||
tmpstr=split(Rs("p_tel2"),"-")
|
||||
tmp_value1 = tmpstr(0)
|
||||
tmp_value2 = tmpstr(1)
|
||||
tmp_value3 = tmpstr(2)
|
||||
else
|
||||
tmp_value1 = ""
|
||||
tmp_value2 = ""
|
||||
tmp_value3 = ""
|
||||
end if
|
||||
%>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_move_tel1' value="<%=tmp_value1%>" style="width:50px" > -
|
||||
<input type="text" name ='p_move_tel2' value="<%=tmp_value2%>" style="width:50px" > -
|
||||
<input type="text" name ='p_move_tel3' value="<%=tmp_value3%>" style="width:50px" >
|
||||
</td>
|
||||
</tr>
|
||||
</table><br>
|
||||
<table class="address table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="6"><3E>ּ<EFBFBD></td>
|
||||
<td width="120px" rowspan="2"><3E><><EFBFBD><EFBFBD><br>(<28>ֹε<D6B9><CEB5>ϻ<EFBFBD>)</td>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_zip_code1' id="p_zip_code1" value='<%=Rs("zip_code1") %>' style="width:80px" readonly="readonly" />
|
||||
<a href="javascript:win_open('1')"><img src="/images/common/btn_post.gif" align="absmiddle"></a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_address1_1' id="p_address1_1" value='<%=Rs("address1_1") %>' style="width:300px" readonly="readonly" />-
|
||||
<input type="text" name ='p_address1_2' id="p_address1_2" value='<%=Rs("address1_2") %>' style="width:250px" >
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td rowspan="2"><3E><><EFBFBD><EFBFBD><br>(<28>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD>)</td>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_zip_code2' id="p_zip_code2" value='<%=Rs("zip_code2") %>' style="width:80px" readonly="readonly" />
|
||||
<a href="javascript:win_open('2')"><img src="/images/common/btn_post.gif" align="absmiddle"></a>
|
||||
<img src="/images/common/btn_same.gif" align="absmiddle" id="add_img" style="CURSOR:pointer;">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="nocenter">
|
||||
<input type="text" name ='p_address2_1' id="p_address2_1" value='<%=Rs("address2_1") %>' style="width:300px" readonly="readonly" />-
|
||||
<input type="text" name ='p_address2_2' id="p_address2_2" value='<%=Rs("address2_2") %>' style="width:250px" >
|
||||
</td>
|
||||
</tr>
|
||||
</table><br>
|
||||
<table class="general table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="4"><3E>Ϲݻ<CFB9><DDBB><EFBFBD></td>
|
||||
<td colspan="2">ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (ID<49><44> <20>ۼ<EFBFBD>)</td>
|
||||
<td style="text-align:center;" colspan="2">ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (ID<49><44> <20>ۼ<EFBFBD>)</td>
|
||||
<td colspan="4"><3E><><EFBFBD>θ<EFBFBD><CEB8><EFBFBD>(<28>ִ<EFBFBD> <font class="tahoma">30</font><3E><>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -283,172 +144,18 @@
|
||||
<input type="hidden" name="p_krc_tel3" id="p_krc_tel3" value="<%=Rs("p_tel3") %>" />
|
||||
<button type="button" name='tel_edit' id='tel_edit'><3E><><EFBFBD><EFBFBD></button>
|
||||
</td>
|
||||
<td ><3E><><EFBFBD><EFBFBD> IP</td>
|
||||
<td width="120px" style="text-align:center;"><3E><><EFBFBD><EFBFBD> IP</td>
|
||||
<td >
|
||||
<input type="text" name ='p_krc_ip' id="p_krc_ip" value="<%=Rs("p_ip")%>" readonly="readonly" />
|
||||
<button type="button" name='ip_edit' id='ip_edit'><3E><><EFBFBD><EFBFBD></button>
|
||||
</td>
|
||||
<td ><3E><>ȭ<EFBFBD><C8AD> IP</td>
|
||||
<td width="120px" style="text-align:center;"><3E><>ȭ<EFBFBD><C8AD> IP</td>
|
||||
<td >
|
||||
<input type="text" name ='p_krc_tel_ip' id="p_krc_tel_ip" value="<%=replace(Rs("p_ip"),".13.",".14.")%>" readonly="readonly" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<div style="text-align:left">
|
||||
<label><input type="checkbox" name="military_x" id="military_x" value="1" <%If Rs("military_type")="<22>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD>" Then response.write "checked='checked'" End If %>/><3E>ش<EFBFBD> <20><><EFBFBD><EFBFBD></label>
|
||||
</div>
|
||||
<table class="military table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="3"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br />
|
||||
<input type="checkbox" name="military_exmption" id="military_exmption" value="1" <%If Rs("military_type")="<22><><EFBFBD><EFBFBD>" Then response.write "checked='checked'" End If %>/><3E><><EFBFBD><EFBFBD>
|
||||
</td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD>Ⱓ</td>
|
||||
<td><3E><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<tr class="military_tr1">
|
||||
<td >
|
||||
<input type="text" class="date_picker" name ='p_military_service_st' id="p_military_service_st" value='<%=Rs("military_service_st_date") %>' style="width:150px;" readonly="readonly" > -
|
||||
<input type="text" class="date_picker" name ='p_military_service_end' id="p_military_service_end" value='<%=Rs("military_service_end_date") %>' style="width:150px;" readonly="readonly" >
|
||||
</td>
|
||||
<td ><input type="text" name="p_military_1" id="p_military_1" value='<%=Rs("military_1") %>' style="width:100%;"></td>
|
||||
<td ><input type="text" name="p_military_grade" id="p_military_grade" value='<%=Rs("military_grade") %>' style="width:100%;"></td>
|
||||
<td ><input type="text" name="p_military_type" id="p_military_type" value='<%=Rs("military_type") %>' style="width:100%;"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td colspan="4"><input type="text" name="p_military_2" id="p_military_2" value='<%=Rs("military_2")%>' style="width:100%;"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="70" rowspan="4"><3E><><EFBFBD><EFBFBD>/<2F>ڰ<EFBFBD><br><3E><><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td><3E>ڰݸ<DAB0></td>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD>û</td>
|
||||
</tr>
|
||||
<%
|
||||
x_position = x_position + 47
|
||||
for i=1 to 3
|
||||
%>
|
||||
<tr class="license">
|
||||
<td>
|
||||
<img src="/images/common/btn_reply_del.jpg" align="absmiddle" onclick="txt_clear('license','<%=i%>');" style='CURSOR:pointer;'>
|
||||
<input type="text" class="date_picker" name="p_license_date" id="p_license_date_<%=i %>" value='<%=Rs("license_date_"&i) %>' style="width:70px;" readonly="readonly" >
|
||||
</td>
|
||||
<td ><input type="text" name='p_license_name' value='<%=Rs("license_name_"&i) %>' style="width:250px;" ></td>
|
||||
<td ><input type="text" name='p_license_grade' value='<%=Rs("license_grage_"&i) %>' style="width:80px;" ></td>
|
||||
<td ><input type="text" name='p_license_class' value='<%=Rs("license_class_"&i) %>' style="width:150px;" ></td>
|
||||
</tr>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="6"><3E>з»<D0B7><C2BB><EFBFBD></td>
|
||||
<td><3E>з±<D0B7><C2B1><EFBFBD></td>
|
||||
<td><3E>Ⱓ(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td><3E>б<EFBFBD><D0B1><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
dim edu_date
|
||||
for i=1 to 5
|
||||
if Rs("edu_date_"&i)<>"" Then
|
||||
edu_date = split(Rs("edu_date_"&i),",")
|
||||
Else
|
||||
Redim edu_date(1)
|
||||
edu_date(0)=""
|
||||
edu_date(1)=""
|
||||
End If
|
||||
%>
|
||||
<tr class="education">
|
||||
<td>
|
||||
<%if i=1 then
|
||||
Response.Write "<22><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>"
|
||||
elseif i = 2 then
|
||||
Response.Write "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
elseif i = 3 then
|
||||
Response.Write "<22><><EFBFBD>б<EFBFBD>"
|
||||
elseif i = 4 then
|
||||
Response.Write "<22><><EFBFBD>п<EFBFBD>(<28><>)"
|
||||
elseif i = 5 then
|
||||
Response.Write "<22><><EFBFBD>п<EFBFBD>(<28><>)"
|
||||
end if%>
|
||||
</td>
|
||||
<td>
|
||||
<img src="/images/common/btn_reply_del.jpg" align="absmiddle" onclick="txt_clear('edu','<%=i%>');" style='CURSOR:pointer;'>
|
||||
<input type="text" class="date_picker" name="p_edu_st_date" id="p_edu_st_date_<%=i %>" value='<%=edu_date(0) %>' style="width:150px;" readonly="readonly" /> -
|
||||
<input type="text" class="date_picker" name="p_edu_end_date" id="p_edu_end_date_<%=i %>" value='<%=edu_date(1) %>' style="width:150px;" readonly="readonly" />
|
||||
</td>
|
||||
<td ><input type="text" name='p_edu_name' value='<%=Rs("edu_name_"&i) %>' style="width:140px;" ></td>
|
||||
<td ><input type="text" name='p_edu_study' value='<%=Rs("edu_study_"&i) %>' style="width:110px;" ></td>
|
||||
<td ><input type="text" name='p_edu_end_chk' value='<%=Rs("edu_end_chk_"&i) %>' style="width:60px;" onclick="showHideLayersAll(edu_end,'<%=i%>');" style='CURSOR:pointer;'></td>
|
||||
<td ><input type="text" name='p_edu_point' value='<%=Rs("edu_point_"&i) %>' style="width:50px;" ></td>
|
||||
</tr>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="120px" rowspan="7"><3E><><EFBFBD>»<EFBFBD><C2BB><EFBFBD></td>
|
||||
<td colspan="6">
|
||||
<20><> <20><><EFBFBD>³<EFBFBD><C2B3><EFBFBD>
|
||||
<input type="text" name='p_career_year_sum' value='<%=Rs("career_year_sum") %>' style="text-align:right;width:50px" readonly="readonly" > <20><><!-- readonly -->
|
||||
<input type="text" name='p_career_month_sum' value='<%=Rs("career_month_sum") %>' style="text-align:right;width:50px" readonly="readonly" > <20><><EFBFBD><EFBFBD> <!-- readonly -->
|
||||
<b class="k_darkorange">(ȸ<><C8B8><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>ؾ߸<D8BE> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>˴ϴ<CBB4>.)</b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><3E><><EFBFBD>³<EFBFBD><C2B3><EFBFBD></td>
|
||||
<td><3E>Ⱓ(<28><><EFBFBD><EFBFBD>)</td>
|
||||
<td>ȸ<><C8B8><EFBFBD><EFBFBD></td>
|
||||
<td><3E>μ<EFBFBD><CEBC><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
<%
|
||||
x_position = x_position + 34
|
||||
Dim career_date
|
||||
for i=1 to 5
|
||||
if Rs("career_date_"&i)<>"" Then
|
||||
career_date = split(Rs("career_date_"&i),",")
|
||||
Else
|
||||
ReDim career_date(1)
|
||||
career_date(0)=""
|
||||
career_date(1)=""
|
||||
End If
|
||||
%>
|
||||
<tr class="career">
|
||||
<td>
|
||||
<input type="text" name='p_career_year' id="p_career_year_<%=i %>" value='<%=Rs("career_year_"&i) %>' style="width:20px;" readonly="readonly" >
|
||||
<input type="text" name='p_career_month' id="p_career_month_<%=i %>" value='<%=Rs("career_month_"&i) %>' style="width:20px;" readonly="readonly" >
|
||||
</td>
|
||||
<td>
|
||||
<img src="/images/common/btn_reply_del.jpg" align="absmiddle" onclick="txt_clear('career','<%=i%>');" style='CURSOR:pointer;'>
|
||||
<input type="text" class="date_picker" name="p_career_st_date" id="p_career_st_date_<%=i %>" value='<%=career_date(0) %>' style="width:150px;" readonly="readonly" /> -
|
||||
<input type="text" class="date_picker" name="p_career_end_date" id="p_career_end_date_<%=i %>" value='<%=career_date(1) %>' style="width:150px;" readonly="readonly" />
|
||||
</td>
|
||||
<td><input type="text" name='p_company_name' value='<%=Rs("career_company_name_"&i) %>' style="width:150px;" ></td>
|
||||
<td><input type="text" name='p_company_part' value='<%=Rs("career_company_part_"&i) %>' style="width:100px;" ></td>
|
||||
<td><input type="text" name='p_company_part_job' value='<%=Rs("career_company_part_job_"&i) %>' style="width:100px;" ></td>
|
||||
<td><input type="text" name='p_company_part_grade' value='<%=Rs("career_company_part_grade_"&i) %>' style="width:60px;" ></td>
|
||||
</tr>
|
||||
<%
|
||||
next
|
||||
%>
|
||||
</table>
|
||||
<br>
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors">
|
||||
<tr>
|
||||
<td width="10%" rowspan="4"><3E>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
@@ -457,7 +164,7 @@
|
||||
<input type="text" class="date_picker" name="p_krc_in_date" id="p_krc_in_date" value="<%=Rs("krc_in_date") %>" style="width:150px;text-align:right" readonly="readonly" />
|
||||
</td>
|
||||
<td width="10%" rowspan="4"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<input type="text" class="date_picker" name="p_krc_out_date" id="p_krc_out_date" value="<%=Rs("krc_out_date") %>" style="width:150px;text-align:right" readonly="readonly" />
|
||||
</td>
|
||||
@@ -482,7 +189,7 @@
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD></td>
|
||||
<td >
|
||||
<select name="sel_p_depart_last" id="sel_p_depart_last" >
|
||||
<option value='' >= <20><><EFBFBD><EFBFBD><EFBFBD>μ<EFBFBD> =</option>
|
||||
@@ -522,7 +229,7 @@
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<select name="sel_p_pos_last" id="sel_p_pos_last" >
|
||||
<option value='' >= <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> =</option>
|
||||
@@ -571,7 +278,7 @@
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td><3E><></td>
|
||||
<td style="text-align:center;"><3E><></td>
|
||||
<td >
|
||||
<select name="sel_p_team" id="sel_p_team"><!--'<27><><EFBFBD><EFBFBD>-->
|
||||
<option value='' >= <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> =</option>
|
||||
@@ -619,7 +326,7 @@
|
||||
%>
|
||||
</select>
|
||||
</td>
|
||||
<td><3E><>å</td>
|
||||
<td style="text-align:center;"><3E><>å</td>
|
||||
<td >
|
||||
<select name='sel_p_team_place'><!--'<27><><EFBFBD>忩<EFBFBD><E5BFA9>-->
|
||||
<option value='' >= ȸ<><C8B8> <20><> <20><>å =</option>
|
||||
@@ -640,7 +347,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><3E><><EFBFBD><EFBFBD></td>
|
||||
<td style="text-align:center;"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td >
|
||||
<select name="sel_p_krc_job_part" id="sel_p_krc_job_part" ><!--'<27><><EFBFBD><EFBFBD>-->
|
||||
<option value='' >= ȸ<>系 <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> =</option>
|
||||
@@ -675,96 +382,24 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.content -->
|
||||
<script src="http://dmaps.daum.net/map_js_init/postcode.v2.js"></script>
|
||||
<!-- REQUIRED SCRIPTS -->
|
||||
<script>
|
||||
function JuminChk(jumin){
|
||||
|
||||
var fmt = RegExp(/^\d{6}[1234]\d{6}$/);
|
||||
var buf = new Array(13);
|
||||
|
||||
if(!fmt.test(jumin)){
|
||||
alert("<22>ֹι<D6B9>ȣ <20><><EFBFBD>Ŀ<EFBFBD> <20><><EFBFBD><EFBFBD> <20>ʽ<EFBFBD><CABD>ϴ<EFBFBD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
for (var i=0; i< buf.length; i++){
|
||||
buf[i] = parseInt(jumin.charAt(i));
|
||||
}
|
||||
var multiple = [2,3,4,5,6,7,8,9,2,3,4,5];
|
||||
var sum = 0;
|
||||
|
||||
for (var i=0; i<12; i++){
|
||||
sum += (buf[i] *= multiple[i]);
|
||||
}
|
||||
|
||||
if ((11-(sum % 11)) % 10 != buf[12]){
|
||||
alert("<22>߸<EFBFBD><DFB8><EFBFBD> <20>ֹε<D6B9><CEB5>Ϲ<EFBFBD>ȣ <20>Դϴ<D4B4>.");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
function gap_save() {
|
||||
//<2F>̹<EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ε<EFBFBD>
|
||||
//<2F><><EFBFBD><EFBFBD>
|
||||
if (chk_data() == true) {
|
||||
if($("#img_up").length > 0){
|
||||
var birth = $("#p_jumin1").val();
|
||||
var sex = $("#p_jumin2").val().charAt(0);
|
||||
var name = $("#p_name").val();
|
||||
|
||||
var img_name = birth+"_"+sex+"_"+name;
|
||||
|
||||
var formData = new FormData();
|
||||
formData.append("img_file", $("#img_up")[0].files[0]);
|
||||
formData.append("img_name", img_name);
|
||||
formData.append("ImgChk", "1");
|
||||
|
||||
img_ajax(formData);
|
||||
}
|
||||
document.frmmember.action = "personnel_card_ok.asp";
|
||||
document.frmmember.submit();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function chkLen(str) {//<2F>ֹι<D6B9>ȣ <20><><EFBFBD><EFBFBD> Ȯ<><C8AE>
|
||||
if (allTrim(str).length == 6) {
|
||||
document.frmmember.txt_jumin2.focus();
|
||||
}
|
||||
}
|
||||
|
||||
function chk_data() {
|
||||
var information_p;
|
||||
$(".information_p input:not(#img_up)").each(function () {
|
||||
if ($(this).prop("disabled") == false) {
|
||||
if ($(this).val() == "") {
|
||||
information_p = false;
|
||||
return false;
|
||||
} else {
|
||||
information_p = true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
})
|
||||
if (information_p == false) {
|
||||
alert("<22>⺻ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.(<28><><EFBFBD><EFBFBD>, <20>ֹι<D6B9>ȣ, <20><>ȭ <20><><EFBFBD><EFBFBD>)");
|
||||
if ($("#p_name").val() == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD>(<28>ѱ<EFBFBD>)<29><> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
$("#p_name").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#p_jumin1").val().toString().length != 6) {
|
||||
alert("<22>ֹι<D6B9>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ٽ<EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#p_jumin2").val().toString().length != 7) {
|
||||
alert("<22>ֹι<D6B9>ȣ<EFBFBD><C8A3> <20><> 7<>ڸ<EFBFBD><DAB8><EFBFBD> <20>ٽ<EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($(".address input").val() == "") {
|
||||
alert("<22>ּҸ<D6BC> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (($("#p_krc_tel").val() == "" ) || ($("#p_krc_ip").val() == "" ) || ($("#p_krc_tel_ip").val() == "" ) ){
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD>ý<EFBFBD><C3BD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
@@ -776,50 +411,6 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#military_x").is(":checked") == false) {
|
||||
if ($("#military_exmption").is(":checked") == true && $("#p_military_2").val() == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
if ($("#military_exmption").is(":checked") == false && $(".military_tr1 input").val() == "") {
|
||||
alert("<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
var lincense;
|
||||
$(".license").each(function (i) {
|
||||
if ($("input[name=p_license_date]:eq(" + i + ")").val() != "") {
|
||||
if ($("input[name=p_license_name]:eq(" + i + ")").val() == "") {
|
||||
lincense = false;
|
||||
return false;
|
||||
} else {
|
||||
lincense = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
if (lincense == false) {
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
var career;
|
||||
$(".career").each(function (i) {
|
||||
if ($("input[name=p_career_st_date]:eq(" + i + ")").val() != "") {
|
||||
if ($("input[name=p_career_end_date]:eq(" + i + ")").val() == "" ) {
|
||||
career = false;
|
||||
return false;
|
||||
} else {
|
||||
career = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (career == false) {
|
||||
alert("<22><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($("#p_krc_in_date").val() == "" || $("#sel_p_depart_first").val() == "" || $("#sel_p_pos_first").val() == "") {
|
||||
alert("<22>Ի<EFBFBD><D4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
@@ -850,149 +441,22 @@
|
||||
return true;
|
||||
}
|
||||
//##### <20>ּ<EFBFBD> <20>˻<EFBFBD>
|
||||
function win_open(x) {
|
||||
new daum.Postcode({
|
||||
oncomplete: function (data) {
|
||||
$("input[name=p_zip_code" + x + "]").val((data.postcode != "" ? data.postcode.replace('-', '') : data.zonecode));
|
||||
if (data.userSelectedType == 'R') {
|
||||
$("input[name=p_address" + x + "_1]").val(data.roadAddress + " " + data.buildingName + "");
|
||||
} else {
|
||||
$("input[name=p_address" + x + "_1]").val(data.jibunAddress + " " + data.buildingName + "");
|
||||
}
|
||||
//console.log(data);
|
||||
}
|
||||
}).open();
|
||||
}
|
||||
|
||||
//img check
|
||||
function img_chk(){
|
||||
var img = new Image();
|
||||
|
||||
var url = '/images/management/img/<%=jumin(0)%>_<%=left(jumin(1),1) %>_<%=Rs("p_name")%>.jpg';
|
||||
img.src = url
|
||||
|
||||
img.onload = function(){
|
||||
$("#p_img").attr("src", url);
|
||||
}
|
||||
|
||||
img.onerror = function(){
|
||||
$("#p_img").attr("src", '/images/management/img_up.png');
|
||||
}
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> ÷<><C3B7>
|
||||
function img_attach(e){
|
||||
|
||||
$(".file_btn").empty();
|
||||
|
||||
var files = this.files[0];
|
||||
|
||||
var reader = new FileReader();
|
||||
|
||||
reader.onload = function(f){
|
||||
var img = new Image();
|
||||
img.src = f.target.result;
|
||||
img.width = 120;
|
||||
img.height = 150;
|
||||
$(".file_btn").append("<a href=\"javascript:void(0);\" onclick=\"img_delete(\'" + files.name + "\')\" id=\"file_id\" class=\"file_id\"><img src=\'"+ f.target.result + "\' dtata-file = '" + files.name + "' class='sel_file' title='<27><><EFBFBD><EFBFBD>' style='width:100%;'></a>");
|
||||
|
||||
}
|
||||
|
||||
reader.readAsDataURL(files);
|
||||
|
||||
}
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
function img_delete(index){
|
||||
var agent = navigator.userAgent.toLowerCase();
|
||||
|
||||
if(confirm(index+"<22><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ͻðڽ<C3B0><DABD>ϱ<EFBFBD>?")){
|
||||
$(".file_btn").empty();
|
||||
|
||||
$(".file_btn").append("<img src=\"/images/management/img_up.png\" id=\"p_img\" style=\"width:100%;cursor:pointer;\" title=\"<22>̹<EFBFBD><CCB9><EFBFBD> <20><><EFBFBD>ε<EFBFBD>(click)\" onclick=\"document.all.img_up.click();\">");
|
||||
|
||||
if (agent.indexOf("msie") != -1) { // ie <20>϶<EFBFBD>
|
||||
$("#img_up").replaceWith( $("#img_up").clone(true) );
|
||||
} else { // <20><EFBFBD>
|
||||
$("#img_up").val("");
|
||||
}
|
||||
|
||||
alert("<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>");
|
||||
}else{
|
||||
alert("<22><><EFBFBD><EFBFBD> <20>Ϸ<EFBFBD>");
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function img_ajax(data){
|
||||
var chk
|
||||
$.ajax({
|
||||
url:"personnel_card_img_ajax.asp",
|
||||
enctype:'multipart/form-data',
|
||||
type:"POST",
|
||||
data:data,
|
||||
cache: false,
|
||||
async: false,
|
||||
contentType: false,
|
||||
processData: false,
|
||||
success:function(res){
|
||||
chk = res;
|
||||
},
|
||||
error:function(res){
|
||||
chk = '9';
|
||||
}
|
||||
});
|
||||
return chk;
|
||||
}
|
||||
|
||||
$(function () {
|
||||
img_chk();
|
||||
|
||||
$("#img_up").click(function(e){
|
||||
if($("#p_jumin1").val() == "" || $("#p_jumin2").val() == ""){
|
||||
alert("<22><><EFBFBD><EFBFBD>, <20>ֹι<D6B9>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD> <20><> <20>Ϸ<EFBFBD> <20><><EFBFBD>ֽʽÿ<CABD>..");
|
||||
return false;
|
||||
}else{
|
||||
$("#img_up").off().on("change", img_attach);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$("#p_military_2").prop('disabled', true);
|
||||
$("#p_military_2").css('background', "gray");
|
||||
|
||||
//<2F>ѱ<EFBFBD><D1B1>Է<EFBFBD> <20>ȵǰ<C8B5> ó<><C3B3>
|
||||
$(".en_num_cls").keydown(function (event) {
|
||||
var inputVal = $(this).val();
|
||||
$(this).css('ime-mode', 'disabled');
|
||||
$(this).val(inputVal.replace(/[<EFBFBD><EFBFBD>-<2D><>|<7C><>-<2D><>|<7C><>-ȹ]/gi, ''));
|
||||
inputVal.replace(/[\u3131-\u314E\u314F-\u3163\uAC00-\uD7A3]/g, '')
|
||||
});
|
||||
|
||||
//<2F><>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD>
|
||||
$("input[name=p_marriage]").click(function () {
|
||||
var p_marriage = $(this).val();
|
||||
if (p_marriage == "<22><>ȥ") {
|
||||
$("input[name=p_marriage_date]").prop("disabled", true);
|
||||
$("input[name=p_marriage_date]").css("background", "gray");
|
||||
$("input[name=p_marriage_date]").val("");
|
||||
} else {
|
||||
$("input[name=p_marriage_date]").prop("disabled", false);
|
||||
$("input[name=p_marriage_date]").css("background", "");
|
||||
}
|
||||
});
|
||||
|
||||
//<2F>ּ<EFBFBD>
|
||||
$("#add_img").click(function () {
|
||||
if ($("#p_zip_code1").val() != "") {
|
||||
$("#p_zip_code2").val($("#p_zip_code1").val());
|
||||
$("#p_address2_1").val($("#p_address1_1").val());
|
||||
$("#p_address2_2").val($("#p_address1_2").val());
|
||||
} else {
|
||||
alert("<22>ֹε<D6B9><CEB5>ϻ<EFBFBD><CFBB><EFBFBD> <20>ּ<EFBFBD><D6BC><EFBFBD><EFBFBD><EFBFBD> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
//Jquery Dialog(Modal)
|
||||
$("#p_search").click(function () {
|
||||
@@ -1132,248 +596,16 @@
|
||||
eamil_check($("#sel_mail").val());
|
||||
});
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
$("#military_x").click(function () {
|
||||
var military_x = $(this);
|
||||
if (military_x.prop('checked')) {
|
||||
$(".military input").each(function () {
|
||||
if ($(this).prop("name") != "p_military_type") {
|
||||
$(this).prop('disabled', true);
|
||||
$(".military input:checkbox").prop('checked', false);
|
||||
$(this).css('background', "gray");
|
||||
$(this).val("");
|
||||
}
|
||||
$("#p_military_type").val("<22>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD>");
|
||||
$("#p_military_type").prop("readonly", true);
|
||||
});
|
||||
} else {
|
||||
$("#p_military_type").prop("readonly", false);
|
||||
$("#military_exmption").prop("disabled", false);
|
||||
$(".military_tr1 input").prop('disabled', false);
|
||||
$(".military_tr1 input").css('background', "");
|
||||
$(".military_tr1 input").val("");
|
||||
}
|
||||
});
|
||||
|
||||
<%If Rs("military_type")="<22>ش<EFBFBD><D8B4><EFBFBD><EFBFBD><EFBFBD>" Then %>
|
||||
$(".military input").each(function () {
|
||||
if ($(this).prop("name") != "p_military_type") {
|
||||
$(this).prop('disabled', true);
|
||||
$(".military input:checkbox").prop('checked', false);
|
||||
$(this).css('background', "gray");
|
||||
$(this).val("");
|
||||
}
|
||||
$("#p_military_type").prop("readonly", true);
|
||||
});
|
||||
<%End If%>
|
||||
|
||||
//<2F><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)
|
||||
$("#military_exmption").click(function () {
|
||||
var military_exmption = $(this);
|
||||
if (military_exmption.prop('checked')) {
|
||||
$("#p_military_2").prop('disabled', false);
|
||||
$("#p_military_2").css('background', "");
|
||||
|
||||
$(".military_tr1 input").each(function () {
|
||||
if ($(this).prop("name") != "p_military_type") {
|
||||
$(this).prop('disabled', true);
|
||||
$(this).css('background', "gray");
|
||||
$(this).val("");
|
||||
}
|
||||
$("#p_military_type").val("<22><><EFBFBD><EFBFBD>");
|
||||
$("#p_military_type").prop("readonly", true);
|
||||
});
|
||||
} else {
|
||||
$("#p_military_type").prop("readonly", false);
|
||||
$("#p_military_2").prop('disabled', true);
|
||||
$("#p_military_2").css('background', "gray");
|
||||
$("#p_military_2").val("");
|
||||
|
||||
$(".military_tr1 input").prop('disabled', false);
|
||||
$(".military_tr1 input").css('background', "");
|
||||
$(".military_tr1 input").val("");
|
||||
}
|
||||
});
|
||||
|
||||
<%If Rs("military_type")="<22><><EFBFBD><EFBFBD>" Then %>
|
||||
$("#p_military_2").prop('disabled', false);
|
||||
$("#p_military_2").css('background', "");
|
||||
|
||||
$(".military_tr1 input").each(function () {
|
||||
if ($(this).prop("name") != "p_military_type") {
|
||||
$(this).prop('disabled', true);
|
||||
$(this).css('background', "gray");
|
||||
$(this).val("");
|
||||
}
|
||||
$("#p_military_type").prop("readonly", true);
|
||||
});
|
||||
<%End If%>
|
||||
|
||||
|
||||
$("input[name=p_military_1]").click(function () {
|
||||
var st_date = $("input[name=military_service_st]").val().split('-');
|
||||
var end_date = $("input[name=military_service_end]").val().split('-');
|
||||
|
||||
var date1 = new Date(st_date[0], st_date[1]);
|
||||
var date2 = new Date(end_date[0], end_date[1]);
|
||||
|
||||
if (date1 > date2) {
|
||||
alert("<22>Ⱓ <20>Է<EFBFBD><D4B7><EFBFBD> <20>߸<EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
var end_date = $("input[name=military_service_end]").val("");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
//<2F>з<EFBFBD> <20>Ⱓ
|
||||
$("input[name=p_edu_end_date]").each(function (i) {
|
||||
$("input[name=p_edu_name]:Eq(" + i + ")").click(function () {
|
||||
var st_date = $("input[name=p_edu_st_date]:Eq(" + i + ")").val().split('-');
|
||||
var end_date = $("input[name=p_edu_end_date]:Eq(" + i + ")").val().split('-');
|
||||
|
||||
var date1 = new Date(st_date[0], st_date[1]);
|
||||
var date2 = new Date(end_date[0], end_date[1]);
|
||||
|
||||
if (date1 > date2) {
|
||||
alert("<22>Ⱓ <20>Է<EFBFBD><D4B7><EFBFBD> <20>߸<EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
var end_date = $("input[name=p_edu_end_date]:Eq(" + i + ")").val("");
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$("#p_jumin1").off().on("keyup",function(){
|
||||
if($(this).val().length == 6)
|
||||
{
|
||||
$("#p_jumin1").blur();
|
||||
$("#p_jumin2").focus();
|
||||
}
|
||||
});
|
||||
|
||||
$("#jumin_chk").on("click", function(){
|
||||
var jumin1 = $("#p_jumin1").val();
|
||||
var jumin2 = $("#p_jumin2").val();
|
||||
|
||||
if(jumin1 == "" || jumin2 == ""){
|
||||
alert("<22>ֹι<D6B9>ȣ<EFBFBD><C8A3> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
jumin1 == "" ? $("#p_jumin1").focus() : $("#p_jumin2").focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(JuminChk(jumin1+jumin2) == false){
|
||||
$("#jumin_ok").val("0");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("#p_jumin1").after("<span>"+$("#p_jumin1").val()+"</span>");
|
||||
//var pattern = /(?<=.{1})./gi;
|
||||
var pattern = /.{6}$/;;
|
||||
jumin2 = jumin2.replace(pattern, '******');
|
||||
$("#p_jumin2").after("<span>"+jumin2+"</span>");
|
||||
$("#p_jumin1").attr("type","hidden");
|
||||
$("#p_jumin2").attr("type","hidden");
|
||||
$("#jumin_ok").val("1");
|
||||
$("#jumin_chk").replaceWith("<i class='ui-icon ui-icon-check'></i><i style=\"color:red;\"><3E><><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD></i>");
|
||||
});
|
||||
|
||||
|
||||
//<2F><><EFBFBD>º<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
$("input[name=p_career_end_date]").each(function (i) {
|
||||
$(this).on("change",function(){
|
||||
//$("input[name=p_company_name]:Eq(" + i + ")").click(function () {
|
||||
|
||||
if ($("input[name=p_career_st_date]:Eq(" + i + ")").val() == "" || $("input[name=p_career_end_date]:Eq(" + i + ")") == "") {
|
||||
alert("<22>Ⱓ<EFBFBD><E2B0A3> <20>Է<EFBFBD><D4B7>Ͽ<EFBFBD> <20>ֽʽÿ<CABD>.");
|
||||
return false;
|
||||
}
|
||||
|
||||
$("input[name=p_career_year_sum]").val("0");
|
||||
$("input[name=p_career_month_sum]").val("0");
|
||||
|
||||
var st_date = $("input[name=p_career_st_date]:Eq(" + i + ")").val().split('-');
|
||||
var end_date = $("input[name=p_career_end_date]:Eq(" + i + ")").val().split('-');
|
||||
|
||||
var date1 = new Date(st_date[0], st_date[1]);
|
||||
var date2 = new Date(end_date[0], end_date[1]);
|
||||
|
||||
if (date1 > date2) {
|
||||
alert("<22>Ⱓ <20>Է<EFBFBD><D4B7><EFBFBD> <20>߸<EFBFBD> <20>Ǿ<EFBFBD><C7BE><EFBFBD><EFBFBD>ϴ<EFBFBD>.");
|
||||
var end_date = $("input[name=p_career_end_date]:Eq(" + i + ")").val("");
|
||||
return false;
|
||||
}
|
||||
|
||||
var diff1 = end_date[0] - st_date[0];
|
||||
var diff2 = (diff1 * 12 + end_date[1] * 1) - st_date[1];
|
||||
|
||||
var diff_year = parseInt(diff2 / 12);
|
||||
var diff_month = parseInt(diff2 % 12);
|
||||
|
||||
if (st_date = "" || end_date == "") {
|
||||
$("input[name=p_career_year]:eq(" + i + ")").val("");
|
||||
$("input[name=p_career_month]:eq(" + i + ")").val("");
|
||||
}
|
||||
|
||||
$("input[name=p_career_year]:eq(" + i + ")").val(diff_year);
|
||||
$("input[name=p_career_month]:eq(" + i + ")").val(diff_month);
|
||||
|
||||
var a=0;
|
||||
var b=0;
|
||||
$("input[name=p_career_year]").each(function(e){
|
||||
if($(this).val() != ""){
|
||||
a += parseInt($(this).val());
|
||||
b += parseInt($("input[name=p_career_month]").eq(e).val());
|
||||
}
|
||||
});
|
||||
y_m_sum(a, b);
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
//<2F><> <20><>,<2C><><EFBFBD><EFBFBD>
|
||||
function y_m_sum(yy, mm) {
|
||||
var yy = parseInt(yy);
|
||||
var mm = parseInt(mm);
|
||||
var y_sum = parseInt($("input[name=p_career_year_sum]").val()) || 0;
|
||||
var m_sum = parseInt($("input[name=p_career_month_sum]").val()) || 0;
|
||||
|
||||
y_sum = y_sum + yy;
|
||||
m_sum = m_sum + mm;
|
||||
|
||||
if (m_sum > 11) {
|
||||
y_sum = y_sum + (parseInt(m_sum / 12));
|
||||
m_sum = m_sum - ((parseInt(m_sum / 12)) * 12);
|
||||
}
|
||||
|
||||
$("input[name=p_career_year_sum]").val(y_sum);
|
||||
$("input[name=p_career_month_sum]").val(m_sum);
|
||||
}
|
||||
|
||||
//<2F><EFBFBD>
|
||||
$(".date_picker").addClass("text-center");
|
||||
$(".date_picker").addClass("text-center");
|
||||
$(".date_picker").each(function () {
|
||||
var tag_name = $(this).prop("name");
|
||||
var d_format;
|
||||
if (tag_name == "p_military_service_st" || tag_name == "p_military_service_end" || tag_name == "p_license_date" || tag_name == "p_edu_st_date" || tag_name == "p_edu_end_date" || tag_name == "p_career_st_date" || tag_name == "p_career_end_date") {
|
||||
d_format = "yy-mm";
|
||||
} else {
|
||||
d_format = "yy-mm-dd";
|
||||
}
|
||||
$(this).
|
||||
changeYear: true,
|
||||
changeMonth: true,
|
||||
prevText: '<27><><EFBFBD><EFBFBD> <20><>',
|
||||
nextText: '<27><><EFBFBD><EFBFBD> <20><>',
|
||||
yearRange: '1900:+10',
|
||||
dateFormat: d_format,
|
||||
monthNames: ['1<><31>', '2<><32>', '3<><33>', '4<><34>', '5<><35>', '6<><36>', '7<><37>', '8<><38>', '9<><39>', '10<31><30>', '11<31><31>', '12<31><32>'],
|
||||
monthNamesShort: ['1<><31>', '2<><32>', '3<><33>', '4<><34>', '5<><35>', '6<><36>', '7<><37>', '8<><38>', '9<><39>', '10<31><30>', '11<31><31>', '12<31><32>'],
|
||||
showMonthAfterYear: true,
|
||||
yearSuffix: '<27><>'
|
||||
});
|
||||
$(this).datepicker();
|
||||
});
|
||||
|
||||
$("#sel_p_depart").change(function(){
|
||||
var d_code = $(this).val();
|
||||
var txt2 = "<option value='' >= <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> =</option>";
|
||||
var sel_html = $(this).html();
|
||||
$("#sel_p_depart_last").val($(this).val());
|
||||
$.ajax({
|
||||
|
||||
@@ -124,28 +124,28 @@
|
||||
|
||||
gap(4) = ""'request("sel_p_pos_ho")
|
||||
gap(5) = request("p_name")
|
||||
gap(6) = request("p_name_eng")
|
||||
gap(7) = request("p_jumin1") & "-" & request("p_jumin2")
|
||||
gap(6) = ""
|
||||
gap(7) = ""
|
||||
gap(7) = encode(gap(7), 0)
|
||||
gap(8) = request("p_birthday") & "(" & request("p_sun_moon") & ")"
|
||||
gap(9) = request("p_marriage")
|
||||
gap(10) = request("p_marriage_date")
|
||||
gap(8) = ""
|
||||
gap(9) = ""
|
||||
gap(10) = ""
|
||||
gap(11) = request("p_user_mail")
|
||||
gap(12) = request("p_user_mail2")
|
||||
gap(13) = request("p_tel1") & "-" & request("p_tel2") & "-" & request("p_tel3")
|
||||
gap(14) = request("p_move_tel1") & "-" & request("p_move_tel2") & "-" & request("p_move_tel3")
|
||||
gap(13) = ""
|
||||
gap(14) = ""
|
||||
gap(15) = ""'request("txt_interest")
|
||||
gap(16) = ""'request("txt_religion")
|
||||
gap(17) = request("p_zip_code1")
|
||||
gap(18) = request("p_address1_1")
|
||||
gap(19) = request("p_address1_2")
|
||||
gap(20) = request("p_zip_code2")
|
||||
gap(21) = request("p_address2_1")
|
||||
gap(22) = request("p_address2_2")
|
||||
gap(23) = request("p_military_service_st")
|
||||
gap(24) = request("p_military_service_end")
|
||||
gap(25) = request("p_military_type")
|
||||
gap(26) = request("p_military_grade")
|
||||
gap(17) = ""'request("p_zip_code1")
|
||||
gap(18) = ""'request("p_address1_1")
|
||||
gap(19) = ""'request("p_address1_2")
|
||||
gap(20) = ""'request("p_zip_code2")
|
||||
gap(21) = ""'request("p_address2_1")
|
||||
gap(22) = ""'request("p_address2_2")
|
||||
gap(23) = ""
|
||||
gap(24) = ""
|
||||
gap(25) = ""
|
||||
gap(26) = ""
|
||||
gap(27) = ""'request("txt_height")
|
||||
gap(28) = ""'request("txt_weight")
|
||||
gap(29) = ""'request("txt_eyesight_left")
|
||||
@@ -257,42 +257,32 @@
|
||||
|
||||
'<27><><EFBFBD><EFBFBD>/<2F>ڰ<EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
for i=1 to 3
|
||||
gap(62 + (i-1) * 4) = request("p_license_date")(i)
|
||||
gap(63 + (i-1) * 4) = request("p_license_name")(i)
|
||||
gap(64 + (i-1) * 4) = request("p_license_grade")(i)
|
||||
gap(65 + (i-1) * 4) = request("p_license_class")(i)
|
||||
gap(62 + (i-1) * 4) = ""
|
||||
gap(63 + (i-1) * 4) = ""
|
||||
gap(64 + (i-1) * 4) = ""
|
||||
gap(65 + (i-1) * 4) = ""
|
||||
next
|
||||
|
||||
'<27>з»<D0B7><C2BB><EFBFBD>
|
||||
for i=1 to 5
|
||||
gap(74 + (i-1) * 5) = request("p_edu_st_date")(i) & "," & request("p_edu_end_date")(i)
|
||||
if trim(gap(74 + (i-1) * 5)) = "," then
|
||||
gap(74 + (i-1) * 5) = ""
|
||||
end if
|
||||
gap(75 + (i-1) * 5) = request("p_edu_name")(i)
|
||||
gap(76 + (i-1) * 5) = request("p_edu_study")(i)
|
||||
gap(77 + (i-1) * 5) = request("p_edu_end_chk")(i)
|
||||
gap(78 + (i-1) * 5) = request("p_edu_point")(i)
|
||||
gap(74 + (i-1) * 5) = ""
|
||||
gap(75 + (i-1) * 5) = ""
|
||||
gap(76 + (i-1) * 5) = ""
|
||||
gap(77 + (i-1) * 5) = ""
|
||||
gap(78 + (i-1) * 5) = ""
|
||||
next
|
||||
|
||||
'<27><><EFBFBD>»<EFBFBD><C2BB><EFBFBD>
|
||||
gap(99) = request("p_career_year_sum")
|
||||
if gap(99) = "" then
|
||||
gap(99) = ""
|
||||
end if
|
||||
gap(100) = request("p_career_month_sum")
|
||||
gap(99) = ""
|
||||
gap(100) = ""
|
||||
for i=1 to 5
|
||||
gap(101 + (i-1) * 7) = request("p_career_year")(i)
|
||||
gap(102 + (i-1) * 7) = request("p_career_month")(i)
|
||||
gap(103 + (i-1) * 7) = request("p_career_st_date")(i) & "," & request("p_career_end_date")(i)
|
||||
if trim(gap(103 + (i-1) * 7)) = "," then
|
||||
gap(103 + (i-1) * 7) = ""
|
||||
end if
|
||||
|
||||
gap(104 + (i-1) * 7) = request("p_company_name")(i)
|
||||
gap(105 + (i-1) * 7) = request("p_company_part")(i)
|
||||
gap(106 + (i-1) * 7) = request("p_company_part_job")(i)
|
||||
gap(107 + (i-1) * 7) = request("p_company_part_grade")(i)
|
||||
gap(101 + (i-1) * 7) = ""
|
||||
gap(102 + (i-1) * 7) = ""
|
||||
gap(103 + (i-1) * 7) = ""
|
||||
gap(104 + (i-1) * 7) = ""
|
||||
gap(105 + (i-1) * 7) = ""
|
||||
gap(106 + (i-1) * 7) = ""
|
||||
gap(107 + (i-1) * 7) = ""
|
||||
next
|
||||
|
||||
|
||||
@@ -327,8 +317,8 @@
|
||||
gap(166) = ""'request("txt_address3_2")
|
||||
gap(167) = ""'request("txt_special")
|
||||
gap(168) = ""'request("txt_medical_history")
|
||||
gap(169) = request("p_military_1")'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>,
|
||||
gap(170) = request("p_military_2")'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
gap(169) = ""'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD>,
|
||||
gap(170) = ""'<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
gap(171) = ""'request("opt_krc_in_type_1")'<27>Ի籸<D4BB><E7B1B8>
|
||||
if instr(1,gap(171) ,"<22><><EFBFBD><EFBFBD>") > 0 then
|
||||
gap(172) = ""'request("txt_krc_in_type_1_etc_1") '<27>Ի籸<D4BB><E7B1B8> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
||||
205
new-contact-api.asp
Normal file
205
new-contact-api.asp
Normal file
@@ -0,0 +1,205 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Response.Buffer = True
|
||||
Response.ContentType = "application/json"
|
||||
Response.Charset = "utf-8"
|
||||
|
||||
Response.AddHeader "Access-Control-Allow-Origin", "*"
|
||||
Response.AddHeader "Access-Control-Allow-Methods", "GET, POST, OPTIONS"
|
||||
Response.AddHeader "Access-Control-Allow-Headers", "Content-Type, Authorization, X-Requested-With"
|
||||
Response.AddHeader "Access-Control-Max-Age", "86400"
|
||||
|
||||
If Request.ServerVariables("REQUEST_METHOD") = "OPTIONS" Then
|
||||
Response.Status = "200 OK"
|
||||
Response.End
|
||||
End If
|
||||
|
||||
|
||||
Dim remoteIp
|
||||
Dim clientId
|
||||
Dim requestMethod
|
||||
Dim cmd
|
||||
Dim rs
|
||||
Dim returnString
|
||||
|
||||
remoteIp = Trim(Request.ServerVariables("REMOTE_ADDR"))
|
||||
clientId = Trim(Request("clientId"))
|
||||
requestMethod = UCase(Request.ServerVariables("REQUEST_METHOD"))
|
||||
|
||||
|
||||
' ============================================================
|
||||
' POST : clientId<49><64> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> IP <20>Ҵ<EFBFBD>(<28><><EFBFBD>輺<EFBFBD><E8BCBA> <20>־<EFBFBD> <20><><EFBFBD><EFBFBD>)
|
||||
' ============================================================
|
||||
'If requestMethod = "POST" Then
|
||||
'
|
||||
' If clientId = "" Then
|
||||
' Response.Status = "400 Bad Request"
|
||||
' Response.Write "{""success"":false,""message"":""clientId<49><64> <20>ʿ<EFBFBD><CABF>մϴ<D5B4>.""}"
|
||||
' Response.End
|
||||
' End If
|
||||
'
|
||||
'
|
||||
' On Error Resume Next
|
||||
'
|
||||
' adoconn.BeginTrans
|
||||
'
|
||||
'
|
||||
' ' --------------------------------------------------------
|
||||
' ' 1. <20><><EFBFBD><EFBFBD> IP<49><50> <20>̹<EFBFBD> <20>ٸ<EFBFBD> client<6E><74> <20>Ҵ<EFBFBD><D2B4>Ǿ<EFBFBD> <20>ִٸ<D6B4> <20><><EFBFBD><EFBFBD>
|
||||
' ' --------------------------------------------------------
|
||||
' Set cmd = Server.CreateObject("ADODB.Command")
|
||||
'
|
||||
' With cmd
|
||||
' .ActiveConnection = adoconn
|
||||
' .CommandType = 1 ' adCmdText
|
||||
'
|
||||
' .CommandText = _
|
||||
' "UPDATE [new_cati].[dbo].[client] " & _
|
||||
' "SET [client_ip] = NULL " & _
|
||||
' "WHERE [client_ip] = ? " & _
|
||||
' "AND [client_id] <> ?"
|
||||
'
|
||||
' .Parameters.Append .CreateParameter("@clientIp", 200, 1, 50, remoteIp)
|
||||
' .Parameters.Append .CreateParameter("@clientId", 200, 1, 50, clientId)
|
||||
'
|
||||
' .Execute
|
||||
' End With
|
||||
'
|
||||
' Set cmd = Nothing
|
||||
'
|
||||
'
|
||||
' If Err.Number <> 0 Then
|
||||
' adoconn.RollbackTrans
|
||||
'
|
||||
' Response.Status = "500 Internal Server Error"
|
||||
' Response.Write _
|
||||
' "{""success"":false,""message"":""<22><><EFBFBD><EFBFBD> IP <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>߽<EFBFBD><DFBD>ϴ<EFBFBD>.""}"
|
||||
'
|
||||
' Response.End
|
||||
' End If
|
||||
'
|
||||
'
|
||||
' ' --------------------------------------------------------
|
||||
' ' 2. <20><><EFBFBD><EFBFBD><DEB9><EFBFBD> clientId<49><64> <20><><EFBFBD><EFBFBD> IP <20>Ҵ<EFBFBD>
|
||||
' ' --------------------------------------------------------
|
||||
' Set cmd = Server.CreateObject("ADODB.Command")
|
||||
'
|
||||
' With cmd
|
||||
' .ActiveConnection = adoconn
|
||||
' .CommandType = 1
|
||||
'
|
||||
' .CommandText = _
|
||||
' "UPDATE [new_cati].[dbo].[client] " & _
|
||||
' "SET [client_ip] = ? " & _
|
||||
' "WHERE [client_id] = ?"
|
||||
'
|
||||
' .Parameters.Append .CreateParameter("@clientIp", 200, 1, 50, remoteIp)
|
||||
' .Parameters.Append .CreateParameter("@clientId", 200, 1, 50, clientId)
|
||||
'
|
||||
' .Execute
|
||||
' End With
|
||||
'
|
||||
' Set cmd = Nothing
|
||||
'
|
||||
'
|
||||
' If Err.Number <> 0 Then
|
||||
' adoconn.RollbackTrans
|
||||
'
|
||||
' Response.Status = "500 Internal Server Error"
|
||||
' Response.Write _
|
||||
' "{""success"":false,""message"":""IP <20>Ҵ<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><DFBB>߽<EFBFBD><DFBD>ϴ<EFBFBD>.""}"
|
||||
'
|
||||
' Response.End
|
||||
' End If
|
||||
'
|
||||
'
|
||||
' adoconn.CommitTrans
|
||||
'
|
||||
' On Error GoTo 0
|
||||
'
|
||||
'End If
|
||||
|
||||
|
||||
' ============================================================
|
||||
' GET / POST <20><><EFBFBD><EFBFBD>
|
||||
' <20><><EFBFBD><EFBFBD> IP<49><50> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> client <20><>ȸ
|
||||
' ============================================================
|
||||
|
||||
Set cmd = Server.CreateObject("ADODB.Command")
|
||||
|
||||
With cmd
|
||||
.ActiveConnection = adoconn
|
||||
.CommandType = 1
|
||||
|
||||
.CommandText = _
|
||||
"SELECT " & _
|
||||
" [client_id], " & _
|
||||
" [internal_no], " & _
|
||||
" [external_no], " & _
|
||||
" [client_ip] " & _
|
||||
"FROM [new_cati].[dbo].[client] WITH(NOLOCK) " & _
|
||||
"WHERE [client_ip] = ?"
|
||||
|
||||
.Parameters.Append .CreateParameter("@clientIp", 200, 1, 50, remoteIp)
|
||||
|
||||
Set rs = .Execute
|
||||
End With
|
||||
|
||||
|
||||
If Not rs.EOF Then
|
||||
|
||||
returnString = "{"
|
||||
returnString = returnString & """success"":true,"
|
||||
returnString = returnString & """clientId"":""" & JsonEscape(rs("client_id")) & ""","
|
||||
returnString = returnString & """internalNo"":""" & JsonEscape(rs("internal_no")) & ""","
|
||||
returnString = returnString & """externalNo"":""" & JsonEscape(rs("external_no")) & ""","
|
||||
returnString = returnString & """clientIp"":""" & JsonEscape(rs("client_ip")) & """"
|
||||
returnString = returnString & "}"
|
||||
|
||||
Else
|
||||
|
||||
returnString = "{"
|
||||
returnString = returnString & """success"":true,"
|
||||
returnString = returnString & """clientId"":"""","
|
||||
returnString = returnString & """internalNo"":"""","
|
||||
returnString = returnString & """externalNo"":"""","
|
||||
returnString = returnString & """clientIp"":""" & remoteIp & """"
|
||||
returnString = returnString & "}"
|
||||
|
||||
End If
|
||||
|
||||
|
||||
rs.Close
|
||||
Set rs = Nothing
|
||||
Set cmd = Nothing
|
||||
|
||||
Response.Write returnString
|
||||
Response.End
|
||||
|
||||
|
||||
|
||||
' ============================================================
|
||||
' JSON <20><><EFBFBD>ڿ<EFBFBD> Escape
|
||||
' ============================================================
|
||||
Function JsonEscape(value)
|
||||
|
||||
Dim str
|
||||
|
||||
If IsNull(value) Then
|
||||
JsonEscape = ""
|
||||
Exit Function
|
||||
End If
|
||||
|
||||
str = CStr(value)
|
||||
|
||||
str = Replace(str, "\", "\\")
|
||||
str = Replace(str, """", "\""")
|
||||
str = Replace(str, vbCrLf, "\n")
|
||||
str = Replace(str, vbCr, "\n")
|
||||
str = Replace(str, vbLf, "\n")
|
||||
str = Replace(str, vbTab, "\t")
|
||||
|
||||
JsonEscape = str
|
||||
|
||||
End Function
|
||||
%>
|
||||
@@ -1,49 +0,0 @@
|
||||
<!-- #include virtual = "lib/config.asp" -->
|
||||
<%
|
||||
Response.Buffer = True
|
||||
|
||||
Response.AddHeader "Access-Control-Allow-Origin", "*"
|
||||
Response.AddHeader "Access-Control-Allow-Methods", "*"
|
||||
Response.AddHeader "Access-Control-Allow-Headers", "Content-Type, Authorization, X-Requested-With"
|
||||
Response.AddHeader "Access-Control-Max-Age", "86400"
|
||||
|
||||
If Request.ServerVariables("REQUEST_METHOD") = "OPTIONS" Then
|
||||
Response.Status = "200 OK"
|
||||
Response.Write ""
|
||||
Response.End
|
||||
End If
|
||||
%>
|
||||
<%
|
||||
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''20260428 <20><><EFBFBD>ؼ<EFBFBD>'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
|
||||
'''''''''''''''''''''''''''New Contact<63><74><EFBFBD><EFBFBD> <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> IP<49><50> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Page'''''''''''''''''''''''''''
|
||||
dim remoteIp : remoteIp = Request.ServerVariables("REMOTE_ADDR")
|
||||
dim query : query = ""
|
||||
dim returnString : returnString = ""
|
||||
|
||||
query = query & " SELECT [client_id], [internal_no], [external_no], [client_ip] " & VbCrlf
|
||||
query = query & " FROM [new_cati].[dbo].[client] WITH(NOLOCK) " & VbCrlf
|
||||
query = query & " WHERE client_ip = '" & remoteIp & "' " & VbCrlf
|
||||
|
||||
adoRs.open query, adoconn, 1,1
|
||||
IF Not adoRs.EOF Then
|
||||
returnString = "{"
|
||||
returnString = returnString & """clientId"":""" & adoRs("client_id") & ""","
|
||||
returnString = returnString & """internalNo"":""" & adoRs("internal_no") & ""","
|
||||
returnString = returnString & """externalNo"":""" & adoRs("external_no") & ""","
|
||||
returnString = returnString & """clientIp"":""" & adoRs("client_ip") & """"
|
||||
returnString = returnString & "}"
|
||||
ELSE
|
||||
returnString = "{"
|
||||
returnString = returnString & """clientId"":"""","
|
||||
returnString = returnString & """internalNo"":"""","
|
||||
returnString = returnString & """externalNo"":"""","
|
||||
returnString = returnString & """clientIp"":"""""
|
||||
returnString = returnString & "}"
|
||||
END IF
|
||||
|
||||
Response.ContentType = "application/json"
|
||||
Response.Charset = "utf-8"
|
||||
Response.write returnString
|
||||
'''''''''''''''''''''''''''New Contact<63><74><EFBFBD><EFBFBD> <20><>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> IP<49><50> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ<EFBFBD><C8A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> Page'''''''''''''''''''''''''''
|
||||
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''20260428 <20><><EFBFBD>ؼ<EFBFBD>'''''''''''''''''''''''''''''''''''''''''''''''''''''''''
|
||||
%>
|
||||
@@ -157,12 +157,12 @@ Case "ContactList"
|
||||
query = query &" isnull(PCode,'') PCode, isnull(PTeam,'') PTeam, p_sn, p_subject, p_cli_company_nm, '' as p_method, ''as p_sample ,"&VbCrlf
|
||||
query = query &" p_cont_cost, isnull(p_total_cost,0) as p_total_cost, '' as pc_con_cost, '' as sum_est, '' as rate_est, '' as sum_act, '' as rate_act, "&VbCrlf
|
||||
query = query &" '' as r_est, '' as r_act, '' as f_est, '' as f_act, convert(varchar(10), p_decide_date,23) p_decide_date,"&VbCrlf
|
||||
query = query &" '' as p_con_date_st, '' as p_con_date_end, p_state, '' as r_user, '' as f_user, p_input_user, p_name, convert(varchar(10), p_input_dt,23) p_input_dt, '' as p_input_progress from"&VbCrlf
|
||||
query = query &" '' as p_con_date_st, '' as p_con_date_end, p_state, '' as r_user, '' as f_user, p_input_user, p_name, convert(varchar(10), p_input_dt,23) p_input_dt, '' as p_input_progress, p_project_type_cd from"&VbCrlf
|
||||
query = query &" ("&VbCrlf
|
||||
query = query &" select f.Code as PCode, f.T_Name as PTeam,T.* from"&VbCrlf
|
||||
query = query &" ("&VbCrlf
|
||||
query = query &" select p_sn, p_subject, a.p_cli_company_cd, b.p_cli_company_nm, p_total_cost, p_obtain_cost,"&VbCrlf
|
||||
query = query &" p_cont_cost, p_decide_date, a.p_input_dt, a.p_input_user, e.p_name,"&VbCrlf
|
||||
query = query &" p_cont_cost, p_decide_date, a.p_input_dt, a.p_input_user, e.p_name, a.p_project_type_cd,"&VbCrlf
|
||||
query = query &" case p_state"&VbCrlf
|
||||
query = query &" when 'E' then '<27><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)'"&VbCrlf
|
||||
query = query &" when 'K' then '<27><><EFBFBD><EFBFBD>'"&VbCrlf
|
||||
@@ -205,7 +205,7 @@ Case "ContactList"
|
||||
query = query &" END "&VbCrLf
|
||||
query = query &" ELSE '' "&VbCrLf
|
||||
query = query &" END + "&VbCrLf
|
||||
query = query &" CASE WHEN left(p_input_complete, 1) = 'x' OR substring(p_input_complete, 2, 1) = 'x' THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Է<EFBFBD>' ELSE '' END AS p_input_progress "&VbCrLf
|
||||
query = query &" CASE WHEN left(p_input_complete, 1) = 'x' OR substring(p_input_complete, 2, 1) = 'x' THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Է<EFBFBD>' ELSE '' END AS p_input_progress, p_project_type_cd "&VbCrLf
|
||||
query = query &" from"&VbCrlf
|
||||
query = query &" ("&VbCrlf
|
||||
query = query &" SELECT p_field_dept, p_is_dept,"&VbCrlf
|
||||
@@ -235,7 +235,7 @@ Case "ContactList"
|
||||
query = query &" ISNULL(TPM.p_research_complete, 0) AS p_research_complete,"&VbCrlf
|
||||
query = query &" ISNULL(TPM.p_field_complete, 0) AS p_field_complete,"&VbCrlf
|
||||
query = query &" ISNULL(TPM.p_dp_complete, 0) AS p_dp_complete,"&VbCrlf
|
||||
query = query &" TPM.p_sn, RU.p_name as r_user, FU.p_name as f_user, VP.p_name, TPB.p_input_user, TPM.p_input_dt,"&VbCrlf
|
||||
query = query &" TPM.p_sn, RU.p_name as r_user, FU.p_name as f_user, VP.p_name, TPB.p_input_user, TPM.p_input_dt, TPB.p_project_type_cd,"&VbCrlf
|
||||
query = query &" case p_progress_status when '008' then case when p_research_complete='1' and p_field_complete='1' and p_dp_complete='1' then '<27>Ϸ<EFBFBD>' else '<27><><EFBFBD><EFBFBD>' end else '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' end p_state"&VbCrlf
|
||||
query = query &" FROM project2.dbo.T_PROJECT_METHOD TPM LEFT JOIN"&VbCrlf
|
||||
query = query &" project2.dbo.T_PROJECT_BASE TPB on TPM.p_sn = TPB.p_sn LEFT JOIN"&VbCrlf
|
||||
@@ -370,6 +370,7 @@ Case "ContactList"
|
||||
Contact("p_con_date_st") = rsc("p_con_date_st")
|
||||
Contact("p_con_date_end") = rsc("p_con_date_end")
|
||||
Contact("p_state") = rsc("p_state")
|
||||
Contact("p_project_type_cd") = rsc("p_project_type_cd")
|
||||
If rsc("p_name") = "" then
|
||||
Contact("p_input_user") = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"
|
||||
Else
|
||||
|
||||
@@ -69,6 +69,7 @@
|
||||
<tr>
|
||||
<th class="t_label select-filter"><3E>μ<EFBFBD></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></th>
|
||||
<th class="t_label select-filter">ȸ<><C8B8></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><></th>
|
||||
<th class="t_label select-filter">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><></th>
|
||||
@@ -171,7 +172,7 @@
|
||||
return commify(data);
|
||||
};
|
||||
var colNumCost = function(data, type, row, meta){
|
||||
return type !== "sort" ? commify(data) + (data != "" ? " <20><>": "") : data;
|
||||
return type !== "sort" ? commify(data) : data;
|
||||
};
|
||||
var colNumRate = function(data, type, row, meta){
|
||||
return commify(data, true) + (data != "" ? " %": "");
|
||||
@@ -181,6 +182,7 @@
|
||||
ajax:{
|
||||
"type": "POST",
|
||||
"url": "project_AjaxSelect.asp",
|
||||
|
||||
"dataType": "JSON",
|
||||
"data":{
|
||||
"Flag":"ContactList",
|
||||
@@ -192,6 +194,7 @@
|
||||
columns:[
|
||||
{"data": "Team", "class":"txt dt-body-center details-control"},
|
||||
{"data": "p_state", "class":"txt dt-body-center"},
|
||||
{"data": "p_project_type_cd", "class":"txt dt-body-center", "render":function(data){ return data == null ? data : String(data).toUpperCase(); }},
|
||||
{"data": "p_sn", "class":"txt dt-body-center"},
|
||||
{"data": "p_subject", "class":"txt dt-body-left"},
|
||||
{"data": "p_cli_company_nm", "class":"txt dt-body-center"},
|
||||
@@ -226,7 +229,7 @@
|
||||
$(row).addClass('hov');
|
||||
},
|
||||
fixedColumns: {
|
||||
leftColumns: 3
|
||||
leftColumns: 4
|
||||
},
|
||||
dom:'lBfrtip',
|
||||
scrollX: true,
|
||||
@@ -235,7 +238,7 @@
|
||||
language:lang_kor,
|
||||
paging:false,
|
||||
pageLength: 50,
|
||||
order: [[ 2, "asc" ]],
|
||||
order: [[ 3, "asc" ]],
|
||||
cache: false,
|
||||
buttons: [
|
||||
{
|
||||
@@ -262,7 +265,7 @@
|
||||
idx: 1
|
||||
},
|
||||
{
|
||||
idx: 5
|
||||
idx: 6
|
||||
}
|
||||
],
|
||||
},
|
||||
@@ -370,7 +373,7 @@
|
||||
function TableFilter(){
|
||||
$("#ContactList_filterSelect0").empty();
|
||||
$("#ContactList_filterSelect1").empty();
|
||||
$("#ContactList_filterSelect5").empty();
|
||||
$("#ContactList_filterSelect6").empty();
|
||||
|
||||
$("#ContactList_filterSelect0").append("<option value=''><3E>μ<EFBFBD></option>");
|
||||
$.each(unique($.map(table.ajax.json().data, function(o){ return o.Team; })).sort(), function(i, o){
|
||||
@@ -382,9 +385,9 @@
|
||||
$("#ContactList_filterSelect1").append("<option value='"+o+"'>"+o+"</option>");
|
||||
});
|
||||
|
||||
$("#ContactList_filterSelect5").append("<option value=''><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></option>");
|
||||
$("#ContactList_filterSelect6").append("<option value=''><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD></option>");
|
||||
$.each(unique($.map(table.ajax.json().data, function(o){ return o.p_method; })).sort(), function(i, o){
|
||||
$("#ContactList_filterSelect5").append("<option value='"+o+"'>"+o+"</option>");
|
||||
$("#ContactList_filterSelect6").append("<option value='"+o+"'>"+o+"</option>");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -180,6 +180,16 @@ Response.ContentType="text/html;charset=euc-kr"
|
||||
<th class="t_label select-filter"><3E>ǻ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></th>
|
||||
<th class="t_label select-filter">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD></th>
|
||||
<th class="t_label select-filter">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>μ<EFBFBD></th>
|
||||
<th class="t_label select-filter">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD></th>
|
||||
<th class="t_label select-filter">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ ȸ<><C8B8><EFBFBD><EFBFBD>ȣ</th>
|
||||
<th class="t_label select-filter">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20><EFBFBD><DEB4><EFBFBD><EFBFBD><EFBFBD>ȣ</th>
|
||||
<th class="t_label select-filter">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20≯<EFBFBD><CCB8><EFBFBD></th>
|
||||
<th class="t_label select-filter">Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ <20>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD><EFBFBD>ȸ<EFBFBD><C8B8></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD>籹<EFBFBD><E7B1B9></th>
|
||||
<th class="t_label select-filter"><3E><><EFBFBD>系<EFBFBD><E7B3BB></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<%
|
||||
@@ -196,12 +206,18 @@ Response.ContentType="text/html;charset=euc-kr"
|
||||
query = query &" isnull(PCode,'') PCode, isnull(PTeam,'') PTeam, p_sn, p_subject, p_cli_company_nm, '' as p_method, ''as p_sample ,"&VbCrlf
|
||||
query = query &" p_cont_cost, isnull(p_total_cost,0) as p_total_cost, '' as pc_con_cost, '' as sum_est, '' as rate_est, '' as sum_act, '' as rate_act, "&VbCrlf
|
||||
query = query &" '' as r_est, '' as r_act, '' as f_est, '' as f_act, convert(varchar(10), p_decide_date,23) p_decide_date,"&VbCrlf
|
||||
query = query &" '' as p_con_date_st, '' as p_con_date_end, p_state, '' as r_user, '' as f_user, p_input_user, p_name, convert(varchar(10), p_input_dt,23) p_input_dt, '' as p_input_progress from"&VbCrlf
|
||||
query = query &" '' as p_con_date_st, '' as p_con_date_end, p_state, '' as r_user, '' as f_user, p_input_user, p_name, convert(varchar(10), p_input_dt,23) p_input_dt, '' as p_input_progress,"&VbCrlf
|
||||
query = query &" p_cli_depart, p_client_type_nm, p_cli_per_nm, p_cli_per_com_tel, p_cli_per_tel, p_cli_per_email, p_export_range, p_project_type_cd, p_project_nation_cd, '' as category_name "&VbCrlf
|
||||
query = query &" from"&VbCrlf
|
||||
query = query &" ("&VbCrlf
|
||||
query = query &" select f.Code as PCode, f.T_Name as PTeam,T.* from"&VbCrlf
|
||||
query = query &" ("&VbCrlf
|
||||
query = query &" select p_sn, p_subject, a.p_cli_company_cd, b.p_cli_company_nm, p_total_cost, p_obtain_cost,"&VbCrlf
|
||||
query = query &" p_cont_cost, p_decide_date, a.p_input_dt, a.p_input_user, e.p_name,"&VbCrlf
|
||||
query = query &" CP.p_cli_depart,CTC.p_client_type_nm,CP.p_cli_per_nm,CP.p_cli_per_com_tel,CP.p_cli_per_tel, CP.p_cli_per_email, "&VbCrlf
|
||||
query = query &" (SELECT CD.c_code_name FROM T_COMMON_CODE_DETAIL CD WHERE CD.c_kind_code = '011' AND CD.c_common_code = A.p_export_range) AS p_export_range, "&VbCrlf
|
||||
query = query &" a.p_project_type_cd, "&VbCrlf
|
||||
query = query &" case a.p_project_nation_cd when 'ko' then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' else '<27>ؿ<EFBFBD><D8BF><EFBFBD><EFBFBD><EFBFBD>' end p_project_nation_cd, "&VbCrlf
|
||||
query = query &" case p_state"&VbCrlf
|
||||
query = query &" when 'E' then '<27><><EFBFBD><EFBFBD>(<28><><EFBFBD><EFBFBD>)'"&VbCrlf
|
||||
query = query &" when 'K' then '<27><><EFBFBD><EFBFBD>'"&VbCrlf
|
||||
@@ -217,6 +233,8 @@ Response.ContentType="text/html;charset=euc-kr"
|
||||
query = query &" from project2.dbo.T_PROJECT_BASE a with(nolock) "&VbCrlf
|
||||
query = query &" left join project2.dbo.V_CLIENT_COMP b with(nolock) on a.p_cli_company_cd=b.p_cli_company_cd"&VbCrlf
|
||||
query = query &" left join project2.dbo.V_Person e with(nolock) on a.p_input_user = e.p_no"&VbCrlf
|
||||
query = query & " left join V_CLIENT_PERSON CP ON a.p_cli_company_cd = CP.p_cli_company_cd AND a.P_CLI_PER_CD = CP.P_CLI_PER_CD"&VbCrlf
|
||||
query = query & " left join T_CLIENT_TYPE_CD CTC ON a.p_client_type_cd = CTC.p_client_type_cd "&VbCrlf
|
||||
query = query &" ) T"&VbCrlf
|
||||
query = query &" left join project2.dbo.v_Department f with(nolock) on T.Team=f.Code or T.Team=f.before_t_cd1"&VbCrlf
|
||||
query = query &" ) as A"&VbCrlf
|
||||
@@ -226,7 +244,7 @@ Response.ContentType="text/html;charset=euc-kr"
|
||||
query = query &" isnull(Tcode,'') Tcode, isnull(depart_name,'') depart_name, p_child_sn as p_sn, p_subject, p_cli_company_nm, p_method_nm, isnull(p_sample,'') p_sample, p_cont_cost, p_total_cost, isnull(pc_cont_cost,0) pc_cont_cost,"&VbCrlf
|
||||
query = query &" sum_est, case when pc_cont_cost = 0 or isnull(pc_cont_cost,0) = 0 then 0 else (isnull(sum_est,0)*100)/pc_cont_cost end as rate_est,"&VbCrlf
|
||||
query = query &" sum_act, case when pc_cont_cost = 0 or isnull(pc_cont_cost,0) = 0 then 0 else (isnull(sum_act,0)*100)/pc_cont_cost end as rate_act,"&VbCrlf
|
||||
query = query &" r_est, r_act, f_est, f_act, '', "&VbCrlf
|
||||
query = query &" r_est, r_act, f_est, f_act, p_decide_date, "&VbCrlf
|
||||
query = query &" isnull(p_con_date_st,'') p_con_date_st, isnull(p_con_date_end,'') p_con_date_end, p_state, isnull(r_user, '') as r_user, isnull(f_user, '') as f_user, p_input_user, isnull(p_name,'') p_name, convert(varchar(10), p_input_dt,23) p_input_dt, "&VbCrlf
|
||||
query = query &" CASE WHEN left(p_input_complete, 1) = 'x' THEN '<27><><EFBFBD><EFBFBD> ' ELSE '' END + "&VbCrLf
|
||||
query = query &" CASE WHEN substring(p_input_complete, 2, 1) = 'x' THEN '<27>ǻ<EFBFBD>' + "&VbCrLf
|
||||
@@ -244,7 +262,8 @@ Response.ContentType="text/html;charset=euc-kr"
|
||||
query = query &" END "&VbCrLf
|
||||
query = query &" ELSE '' "&VbCrLf
|
||||
query = query &" END + "&VbCrLf
|
||||
query = query &" CASE WHEN left(p_input_complete, 1) = 'x' OR substring(p_input_complete, 2, 1) = 'x' THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Է<EFBFBD>' ELSE '' END AS p_input_progress "&VbCrLf
|
||||
query = query &" CASE WHEN left(p_input_complete, 1) = 'x' OR substring(p_input_complete, 2, 1) = 'x' THEN '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Է<EFBFBD>' ELSE '' END AS p_input_progress, "&VbCrLf
|
||||
query = query &" p_cli_depart, p_client_type_nm, p_cli_per_nm,p_cli_per_com_tel,p_cli_per_tel,p_cli_per_email,p_export_range, p_project_type_cd, p_project_nation_cd, category_name "&VbCrLf
|
||||
query = query &" from"&VbCrlf
|
||||
query = query &" ("&VbCrlf
|
||||
query = query &" SELECT p_field_dept, p_is_dept,"&VbCrlf
|
||||
@@ -275,14 +294,51 @@ Response.ContentType="text/html;charset=euc-kr"
|
||||
query = query &" ISNULL(TPM.p_field_complete, 0) AS p_field_complete,"&VbCrlf
|
||||
query = query &" ISNULL(TPM.p_dp_complete, 0) AS p_dp_complete,"&VbCrlf
|
||||
query = query &" TPM.p_sn, RU.p_name as r_user, FU.p_name as f_user, VP.p_name, TPB.p_input_user, TPM.p_input_dt,"&VbCrlf
|
||||
query = query &" case p_progress_status when '008' then case when p_research_complete='1' and p_field_complete='1' and p_dp_complete='1' then '<27>Ϸ<EFBFBD>' else '<27><><EFBFBD><EFBFBD>' end else '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' end p_state"&VbCrlf
|
||||
query = query &" FROM project2.dbo.T_PROJECT_METHOD TPM with(nolock) LEFT JOIN"&VbCrlf
|
||||
query = query &" case p_progress_status when '008' then case when p_research_complete='1' and p_field_complete='1' and p_dp_complete='1' then '<27>Ϸ<EFBFBD>' else '<27><><EFBFBD><EFBFBD>' end else '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' end p_state,"&VbCrlf
|
||||
query = query &" TPM.p_decide_date, CP.p_cli_depart,CTC.p_client_type_nm, CP.p_cli_per_nm,CP.p_cli_per_com_tel,CP.p_cli_per_tel, CP.p_cli_per_email, "&VbCrlf
|
||||
query = query &" (SELECT CD.c_code_name FROM T_COMMON_CODE_DETAIL CD WHERE CD.c_kind_code = '011' AND CD.c_common_code = TPM.p_export_range) AS p_export_range, "&VbCrlf
|
||||
query = query &" TPB.p_project_type_cd, "&VbCrlf
|
||||
query = query &" case TPB.p_project_nation_cd when 'ko' then '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>' else '<27>ؿ<EFBFBD><D8BF><EFBFBD><EFBFBD><EFBFBD>' end p_project_nation_cd, CAT.category_name "&VbCrlf
|
||||
query = query &" FROM project2.dbo.T_PROJECT_METHOD TPM with(nolock) "&VbCrlf
|
||||
query = query &" OUTER APPLY (" & VbCrLf
|
||||
query = query &" SELECT " & VbCrLf
|
||||
query = query &" STRING_AGG(" & VbCrLf
|
||||
query = query &" CAST(" & VbCrLf
|
||||
query = query &" CASE TRIM(S.value)" & VbCrLf
|
||||
query = query &" WHEN '1' THEN N'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'" & VbCrLf
|
||||
query = query &" WHEN '2' THEN N'A&U/<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'" & VbCrLf
|
||||
query = query &" WHEN '3' THEN N'<27><><EFBFBD><EFBFBD>ȿ<EFBFBD><C8BF>'" & VbCrLf
|
||||
query = query &" WHEN '4' THEN N'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ'" & VbCrLf
|
||||
query = query &" WHEN '5' THEN N'<27><>ǰ<EFBFBD><C7B0>'" & VbCrLf
|
||||
query = query &" WHEN '6' THEN N'<27><><EFBFBD>俹<EFBFBD><E4BFB9>'" & VbCrLf
|
||||
query = query &" WHEN '7' THEN N'<27><><EFBFBD><EFBFBD><EFBFBD>̹<EFBFBD><CCB9><EFBFBD>'" & VbCrLf
|
||||
query = query &" WHEN '8' THEN N'<27>Ǹ<EFBFBD>/<2F><><EFBFBD><EFBFBD>'" & VbCrLf
|
||||
query = query &" WHEN '9' THEN N'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'" & VbCrLf
|
||||
query = query &" WHEN '10' THEN N'<27><>ġ/<2F><>ȸ<EFBFBD><C8B8><EFBFBD><EFBFBD>'" & VbCrLf
|
||||
query = query &" WHEN '11' THEN N'<27><><EFBFBD>ſ<EFBFBD><C5BF><EFBFBD>'" & VbCrLf
|
||||
query = query &" WHEN '12' THEN N'<27><>å<EFBFBD><C3A5><EFBFBD><EFBFBD>'" & VbCrLf
|
||||
query = query &" WHEN '13' THEN N'û<>ŵ<EFBFBD>'" & VbCrLf
|
||||
query = query &" WHEN '14' THEN N'<27>귣<EFBFBD><EAB7A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>'" & VbCrLf
|
||||
query = query &" WHEN '15' THEN N'Segmentation'" & VbCrLf
|
||||
query = query &" WHEN '16' THEN N'Positioning'" & VbCrLf
|
||||
query = query &" WHEN '17' THEN N'<27><><EFBFBD><EFBFBD>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD>'" & VbCrLf
|
||||
query = query &" WHEN '18' THEN N'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/UI<55><EFBFBD>Ʈ'" & VbCrLf
|
||||
query = query &" WHEN '19' THEN N'<27><>Ÿ'" & VbCrLf
|
||||
query = query &" END AS NVARCHAR(MAX)" & VbCrLf
|
||||
query = query &" )," & VbCrLf
|
||||
query = query &" N', '" & VbCrLf
|
||||
query = query &" ) AS category_name" & VbCrLf
|
||||
query = query &" FROM STRING_SPLIT(TPM.p_category, ',') S" & VbCrLf
|
||||
query = query &" ) CAT " & VbCrLf
|
||||
query = query &" LEFT JOIN"&VbCrlf
|
||||
query = query &" project2.dbo.T_PROJECT_BASE TPB with(nolock) on TPM.p_sn = TPB.p_sn LEFT JOIN"&VbCrlf
|
||||
query = query &" project2.dbo.T_PROJECT_METHOD_CD TPMC with(nolock) ON TPM.p_method_cd = TPMC.p_method_cd LEFT JOIN"&VbCrlf
|
||||
query = query &" project2.dbo.V_Person VP with(nolock) ON TPB.p_input_user = VP.p_no LEFT JOIN"&VbCrlf
|
||||
query = query &" project2.dbo.V_Person RU with(nolock) ON TPM.p_rsch_1_a = RU.p_no LEFT JOIN"&VbCrlf
|
||||
query = query &" project2.dbo.V_Person FU with(nolock) ON TPM.p_sv_1 = FU.p_no LEFT JOIN"&VbCrlf
|
||||
query = query &" project2.dbo.V_CLIENT_COMP VCC with(nolock) ON TPM.p_cli_company_cd = VCC.p_cli_company_cd LEFT JOIN"&VbCrlf
|
||||
query = query &" project2.dbo.V_CLIENT_PERSON CP ON TPB.p_cli_company_cd = CP.p_cli_company_cd AND TPB.P_CLI_PER_CD = CP.P_CLI_PER_CD LEFT JOIN"&VbCrlf
|
||||
query = query &" project2.dbo.T_CLIENT_TYPE_CD CTC ON TPB.p_client_type_cd = CTC.p_client_type_cd LEFT JOIN"&VbCrlf
|
||||
query = query &" project2.dbo.direct_cost_field DCF with(nolock) ON TPM.p_child_sn = DCF.p_child_sn AND DCF.del_yn = 'n' LEFT JOIN"&VbCrlf
|
||||
query = query &" ("&VbCrlf
|
||||
query = query &" SELECT DISTINCT LEFT(CASE WHEN D_Code = 'S' AND before_t_cd1 IN (17, 18, 19) THEN 'DCO' ELSE T_Name END, 8) AS depart_name, "&VbCrlf
|
||||
@@ -353,7 +409,7 @@ Response.ContentType="text/html;charset=euc-kr"
|
||||
End IF
|
||||
End If
|
||||
query = query&" ORDER BY p_sn"&VbCrlf
|
||||
'response.write query
|
||||
response.write query
|
||||
rsc.Open query, adoConn, 1
|
||||
|
||||
|
||||
@@ -439,6 +495,16 @@ Response.ContentType="text/html;charset=euc-kr"
|
||||
response.write "<td >"&rsc("f_user") &"</td>"
|
||||
response.write "<td >"&rsc("p_input_user") &"</td>"
|
||||
response.write "<td >"&rsc("p_input_dt") &"</td>"
|
||||
response.write "<td >"&rsc("p_client_type_nm") &"</td>"
|
||||
response.write "<td >"&rsc("p_cli_depart") &"</td>"
|
||||
response.write "<td >"&rsc("p_cli_per_nm") &"</td>"
|
||||
response.write "<td >"&rsc("p_cli_per_com_tel") &"</td>"
|
||||
response.write "<td >"&rsc("p_cli_per_tel") &"</td>"
|
||||
response.write "<td >"&rsc("p_cli_per_email") &"</td>"
|
||||
response.write "<td >"&rsc("p_export_range") &"</td>"
|
||||
response.write "<td >"&rsc("p_project_type_cd") &"</td>"
|
||||
response.write "<td >"&rsc("p_project_nation_cd") &"</td>"
|
||||
response.write "<td >"&rsc("category_name") &"</td>"
|
||||
|
||||
response.write "</tr>"
|
||||
|
||||
@@ -471,13 +537,9 @@ Response.ContentType="text/html;charset=euc-kr"
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
|
||||
|
||||
$(".main-header").remove(); //-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
$("#ContactList_filterWrapper").remove() //-- <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
@@ -17,24 +17,42 @@
|
||||
<table class="table table-sm table-bordered" style="font-size:13px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<td align="center"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
|
||||
<td align="center" width="430px"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td align="center"><3E>ۼ<EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center"><3E>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" onclick="gwanshic(tbody01,0);" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD>ڵ<EFBFBD></td>
|
||||
<td align="center" width="410px" onclick="gwanshic(tbody01,1);" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE></td>
|
||||
<td align="center" width="60px" onclick="gwanshic(tbody01,2);" style="cursor:pointer"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="90px" onclick="gwanshic(tbody01,3);" style="cursor:pointer"><3E>μ<EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="50px" onclick="gwanshic(tbody01,4);" style="cursor:pointer"><3E>ۼ<EFBFBD><DBBC><EFBFBD></td>
|
||||
<td align="center" width="90px" onclick="gwanshic(tbody01,5);" style="cursor:pointer"><3E>ۼ<EFBFBD><DBBC><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" colspan='2'><3E><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" colspan='2'><3E><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="430px"><3E><><EFBFBD><EFBFBD></td>
|
||||
<td align="center" width="350px" onclick="gwanshic(tbody01,10);" style="cursor:pointer"><3E><><EFBFBD><EFBFBD></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tbody01">
|
||||
<%
|
||||
Function GetLastApprovalDate(target100)
|
||||
Dim arr, i, result
|
||||
result = ""
|
||||
If target100 <> "" Then
|
||||
arr = Split(target100, "^^")
|
||||
For i = UBound(arr) To 0 Step -1
|
||||
If Trim(arr(i)) <> "" And Trim(arr(i)) <> "/" Then
|
||||
result = Trim(arr(i))
|
||||
Exit For
|
||||
End If
|
||||
Next
|
||||
End If
|
||||
GetLastApprovalDate = result
|
||||
End Function
|
||||
sql=""&VbCrlf
|
||||
sql=sql&" SELECT M.p_sn, p_subject, p_method_cd, d_write_name AS p_name, d_write_date, "&VbCrlf
|
||||
sql=sql&" SELECT M.p_sn, p.p_subject, VD.T_name AS dept_name, p_method_cd, d_write_name AS p_name, d_write_date, "&VbCrlf
|
||||
sql=sql&" target3 AS o_child_cost, target1 AS c_child_cost, "&VbCrlf
|
||||
sql=sql&" target4 AS o_cost, target5 AS c_cost, "&VbCrlf
|
||||
sql=sql&" target2 AS reason "&VbCrlf
|
||||
sql=sql&" target2 AS reason, target100 "&VbCrlf
|
||||
sql=sql&" FROM <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> M LEFT JOIN Document D ON M.<2E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȣ = D.d_no "&VbCrlf
|
||||
sql=sql&" LEFT JOIN T_PROJECT_METHOD P ON M.p_sn = P.p_child_sn "&VbCrlf
|
||||
sql=sql&" LEFT JOIN T_PROJECT_BASE TPB ON P.p_sn = TPB.p_sn "&VbCrlf
|
||||
sql=sql&" LEFT JOIN V_Department VD ON ((ISNULL(TPB.p_depart_dep, '') = '0' AND ISNULL(TPB.p_Depart_N, '') = 'E' AND ISNULL(TPB.p_Team_N, '') = '101' AND P.p_rsch_dept = VD.before_t_cd1) OR (NOT (ISNULL(TPB.p_depart_dep, '') = '0' AND ISNULL(TPB.p_Depart_N, '') = 'E' AND ISNULL(TPB.p_Team_N, '') = '101') AND (((ISNULL(TPB.p_Depart_N, '') + ISNULL(TPB.p_Team_N, '')) <> '' AND (ISNULL(TPB.p_Depart_N, '') + ISNULL(TPB.p_Team_N, '')) = VD.Code) OR ((ISNULL(TPB.p_Depart_N, '') + ISNULL(TPB.p_Team_N, '')) = '' AND TPB.p_depart_dep = VD.before_t_cd1)))) "&VbCrlf
|
||||
sql=sql&" WHERE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> = '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ<EFBFBD><C6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><D7BC><EFBFBD>' "&VbCrlf
|
||||
sql=sql&" AND d_order_cnt = '77' AND del_yes_no = 'no' "&VbCrlf
|
||||
sql=sql&" AND d_write_date >= CONVERT(varchar(10), DATEADD(MONTH, -3, getdate()), 120) "&VbCrlf
|
||||
@@ -46,6 +64,8 @@
|
||||
<tr style="height:25px;">
|
||||
<td style="text-align:center;" ><a href="javascript:openit('','<%=left(Rs("p_sn"),7)%>','<%=mid(Rs("p_sn"),9,1)%>','<%=Rs("p_method_cd")%>','<%=Rs("p_sn")%>');"><%=Rs("p_sn")%></a></td>
|
||||
<td style="text-align:left;word-break:keep-all;" ><a href="javascript:openit('','<%=left(Rs("p_sn"),7)%>','<%=mid(Rs("p_sn"),9,1)%>','<%=Rs("p_method_cd")%>','<%=Rs("p_sn")%>');"><%=Rs("p_subject")%></a></td>
|
||||
<td style="text-align:center;" ><%=GetLastApprovalDate(Rs("target100"))%></td>
|
||||
<td style="text-align:center;" ><%=Rs("dept_name")%></td>
|
||||
<td style="text-align:center;" ><%=Rs("p_name")%></td>
|
||||
<td style="text-align:center;" ><%=Rs("d_write_date")%></td>
|
||||
<td style="text-align:center;" ><%if Rs("o_child_cost") <> Rs("c_child_cost") then %><%=formatnumber(Rs("o_child_cost"), 0)%><% end if %></td>
|
||||
@@ -82,6 +102,41 @@
|
||||
}
|
||||
winObj=window.open(url, '', 'left=0,top=0,width=' + tmp_width + ',height=' + tmp_height + ',scrollbars=yes,resizable=yes')
|
||||
}
|
||||
|
||||
var index;
|
||||
var toggleBool;
|
||||
function gwanshic(tbody, index){
|
||||
this.index = index;
|
||||
if(toggleBool){toggleBool = false;}
|
||||
else{toggleBool = true;}
|
||||
|
||||
var datas= new Array();
|
||||
var tbodyLength = tbody.rows.length;
|
||||
for(var i=0; i<tbodyLength; i++){datas[i] = tbody.rows[i];}
|
||||
datas.sort(compareCells);
|
||||
for(var i=0; i<tbody.rows.length; i++){tbody.appendChild(datas[i]);}
|
||||
}
|
||||
|
||||
function compareCells(a,b) {
|
||||
var aVal = a.cells[index].innerText;
|
||||
var bVal = b.cells[index].innerText;
|
||||
aVal = aVal.replace(/\,/g, '');
|
||||
bVal = bVal.replace(/\,/g, '');
|
||||
|
||||
if(toggleBool){
|
||||
var temp = aVal;
|
||||
aVal = bVal;
|
||||
bVal = temp;
|
||||
}
|
||||
|
||||
if(aVal.match(/^[0-9]+$/) && bVal.match(/^[0-9]+$/)){
|
||||
return parseFloat(aVal) - parseFloat(bVal);
|
||||
}else{
|
||||
if (aVal < bVal){ return -1;}
|
||||
else if (aVal > bVal){ return 1;}
|
||||
else{return 0;}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
<!-- /.content-wrapper -->
|
||||
|
||||
@@ -2604,7 +2604,7 @@
|
||||
<span style="position:absolute; top: 1px; left: 27px; font-size: 12pt; font-weight:bold;">÷<>ι<EFBFBD><CEB9><EFBFBD></span></div>
|
||||
<div style="float: left;" ><span style="color:red;" >
|
||||
* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD> <20><>ü<EFBFBD><C3BC> <20>ڷ<EFBFBD>(<28><><EFBFBD>ȼ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>)<29><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ե<EFBFBD> ȸ<><C8B8><EFBFBD><EFBFBD> <20>ڻ<EFBFBD><DABB>Դϴ<D4B4>.
|
||||
<br> <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϰų<CFB0> <20>ܺη<DCBA> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>.
|
||||
<br> <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϰų<CFB0> <20>ܺη<DCBA> <20><><EFBFBD><EFBFBD><EFBFBD>ϴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>. <strong style="font-weight:600;">(<28>ٿ<EFBFBD><D9BF>ε<EFBFBD> <20>α<EFBFBD> <20><><EFBFBD><EFBFBD>/<2F><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><CDB8><EFBFBD>)</strong>
|
||||
</span>
|
||||
</div>
|
||||
<div><img src="/images/project/btn_cost3.jpg" onClick="fileadd()" style='cursor:hand; position:absolute; top: 1px; right: 0px;' align="absmiddle"></div>
|
||||
@@ -2632,7 +2632,7 @@
|
||||
query = query & " WHERE f_p_sn = '"&p_sn& "' "
|
||||
query = query & " AND f_use_yn = 'Y' "
|
||||
query = query & " AND f_work_type = '001' and f_kind <> '099' "
|
||||
query = query & " order by f_kind, f_id "
|
||||
query = query & " order by CASE WHEN f_kind = '010' THEN 0 ELSE 1 END, f_kind, f_id "
|
||||
|
||||
Rs.Open query, adoConn, 1
|
||||
|
||||
@@ -2649,10 +2649,14 @@
|
||||
default_kind_code_flag = false
|
||||
kind_code = ""
|
||||
|
||||
i = 1
|
||||
i = 0
|
||||
row_cnt = 1
|
||||
Do While i < 10
|
||||
kind_code = "00" & CStr(i)
|
||||
If i = 0 Then
|
||||
kind_code = "010"
|
||||
Else
|
||||
kind_code = "00" & CStr(i)
|
||||
End If
|
||||
|
||||
If attach_file_count > 0 then
|
||||
If default_kind_code_flag Then
|
||||
@@ -2680,23 +2684,35 @@
|
||||
<tr>
|
||||
<td align="center" ><%=row_cnt%></td>
|
||||
<td align="center" >
|
||||
<input type="hidden" name="f_id[<%=row_cnt-1%>]" value="" class="file_id"/>
|
||||
<select name="f_kind[<%=row_cnt-1%>]">
|
||||
<option value=""><3E><><EFBFBD><EFBFBD></option>
|
||||
<% query = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '001' and c_common_code <> '099' "
|
||||
rsa.Open query, adoConn, 1
|
||||
if rsa.RecordCount > 0 then
|
||||
for j = 1 to rsa.RecordCount %>
|
||||
<option value="<%=rsa("c_common_code")%>" <% if rsa("c_common_code") = kind_code then %> selected <% end if %>> <%=rsa("c_code_name")%></option>
|
||||
<% rsa.MoveNext
|
||||
next
|
||||
end if
|
||||
rsa.Close
|
||||
%>
|
||||
</select>
|
||||
<input type="hidden" name="f_id[<%=row_cnt-1%>]" value="" class="file_id"/>
|
||||
<% If kind_code = "010" Then %>
|
||||
<input type="hidden" name="f_kind[<%=row_cnt-1%>]" value="010"/>
|
||||
<input type="text" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭" readonly style="border: 0px none0; text-align: center;"/>
|
||||
<% Else %>
|
||||
<select name="f_kind[<%=row_cnt-1%>]">
|
||||
<option value=""><3E><><EFBFBD><EFBFBD></option>
|
||||
<% query = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '001' and c_common_code <> '099' "
|
||||
rsa.Open query, adoConn, 1
|
||||
if rsa.RecordCount > 0 then
|
||||
for j = 1 to rsa.RecordCount %>
|
||||
<option value="<%=rsa("c_common_code")%>" <% if rsa("c_common_code") = kind_code then %> selected <% end if %>> <%=rsa("c_code_name")%></option>
|
||||
<% rsa.MoveNext
|
||||
next
|
||||
end if
|
||||
rsa.Close
|
||||
%>
|
||||
</select>
|
||||
<% End If %>
|
||||
</td>
|
||||
<td align="left" >
|
||||
<input type="file" class="uploadFile_btn " name="ATTACH_FILENAME[<%=row_cnt-1%>]" maxlength="1" style="width:100%;" />
|
||||
<% If kind_code = "010" Then %>
|
||||
<div style="padding-top:4px; color:#000000; line-height:1.5;">
|
||||
<span style="color:#cc0000;">* '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭', '<27>Ϲݿ뿪<DDBF><EBBFAA><EFBFBD>༭' <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>κ<EFBFBD> ÷<><C3B7></span>
|
||||
<br><3E><>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ Ư<><C6AF><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>Ǿ<EFBFBD><C7BE>ٴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ե<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20><><EFBFBD><EFBFBD> ĸ<>ĺ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ü <20><><EFBFBD><EFBFBD>
|
||||
<br>(Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD>缳<EFBFBD>谳<EFBFBD><E8B0B3>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20>ֿ䳻<D6BF><E4B3BB> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20><><EFBFBD>ԵǾ<D4B5> <20>־<EFBFBD><D6BE><EFBFBD> <20>ԡ<EFBFBD>)
|
||||
</div>
|
||||
<% End If %>
|
||||
</td>
|
||||
<td align="center" ></td>
|
||||
<td align="center" ></td>
|
||||
@@ -2732,6 +2748,13 @@
|
||||
</td>
|
||||
<td align="left" >
|
||||
<input type="file" class="uploadFile_btn" name="ATTACH_FILENAME[<%=row_cnt-1%>]" maxlength="1" style="width:200px;" />
|
||||
<% If kind_code = "010" Then %>
|
||||
<div style="padding-top:4px; color:#000000; line-height:1.5;">
|
||||
<span style="color:#cc0000;">* '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭', '<27>Ϲݿ뿪<DDBF><EBBFAA><EFBFBD>༭' <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>κ<EFBFBD> ÷<><C3B7></span>
|
||||
<br><3E><>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ Ư<><C6AF><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>Ǿ<EFBFBD><C7BE>ٴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ե<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20><><EFBFBD><EFBFBD> ĸ<>ĺ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ü <20><><EFBFBD><EFBFBD>
|
||||
<br>(Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD>缳<EFBFBD>谳<EFBFBD><E8B0B3>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20>ֿ䳻<D6BF><E4B3BB> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20><><EFBFBD>ԵǾ<D4B5> <20>־<EFBFBD><D6BE><EFBFBD> <20>ԡ<EFBFBD>)
|
||||
</div>
|
||||
<% End If %>
|
||||
<input type="text" class='align-middle' <% If Session("teamplace") <> 10 Then %> onclick="download(<%=f_attach_info(f_attach_index, 0)%>)" <% end if %>
|
||||
<% If CInt(p_research_complete)+CInt(p_field_complete)+CInt(p_dp_complete) < 3 Then %>style="width:480px; color:blue; cursor:pointer;"<%Else %>style="width:540px; color:blue; cursor:pointer;"<%End If %> value = "<%=f_attach_info(f_attach_index, 2)%>" readonly/>
|
||||
<% If CInt(p_research_complete)+CInt(p_field_complete)+CInt(p_dp_complete) < 3 Then %>
|
||||
@@ -2760,23 +2783,35 @@
|
||||
<tr>
|
||||
<td align="center" ><%=row_cnt%></td>
|
||||
<td align="center" >
|
||||
<input type="hidden" name="f_id[<%=row_cnt-1%>]" value="" class="file_id"/>
|
||||
<select name="f_kind[<%=row_cnt-1%>]" >
|
||||
<option value=""><3E><><EFBFBD><EFBFBD></option>
|
||||
<% query = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '001' and c_common_code <> '099' "
|
||||
rsa.Open query, adoConn, 1
|
||||
if rsa.RecordCount > 0 then
|
||||
for j = 1 to rsa.RecordCount %>
|
||||
<option value="<%=rsa("c_common_code")%>" <% if rsa("c_common_code") = ("00"&CStr(row_cnt)) then %> selected <% end if %>> <%=rsa("c_code_name")%></option>
|
||||
<% rsa.MoveNext
|
||||
next
|
||||
end if
|
||||
rsa.Close
|
||||
%>
|
||||
</select>
|
||||
<input type="hidden" name="f_id[<%=row_cnt-1%>]" value="" class="file_id"/>
|
||||
<% If kind_code = "010" Then %>
|
||||
<input type="hidden" name="f_kind[<%=row_cnt-1%>]" value="010"/>
|
||||
<input type="text" value="<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭" readonly style="border: 0px none0; text-align: center;"/>
|
||||
<% Else %>
|
||||
<select name="f_kind[<%=row_cnt-1%>]" >
|
||||
<option value=""><3E><><EFBFBD><EFBFBD></option>
|
||||
<% query = "select c_common_code, c_code_name from T_COMMON_CODE_DETAIL where c_kind_code = '001' and c_common_code <> '099' "
|
||||
rsa.Open query, adoConn, 1
|
||||
if rsa.RecordCount > 0 then
|
||||
for j = 1 to rsa.RecordCount %>
|
||||
<option value="<%=rsa("c_common_code")%>" <% if rsa("c_common_code") = kind_code then %> selected <% end if %>> <%=rsa("c_code_name")%></option>
|
||||
<% rsa.MoveNext
|
||||
next
|
||||
end if
|
||||
rsa.Close
|
||||
%>
|
||||
</select>
|
||||
<% End If %>
|
||||
</td>
|
||||
<td align="left" >
|
||||
<input type="file" class="uploadFile_btn" name="ATTACH_FILENAME[<%=row_cnt-1%>]" maxlength="1" style="width:565;" />
|
||||
<% If kind_code = "010" Then %>
|
||||
<div style="padding-top:4px; color:#000000; line-height:1.5;">
|
||||
<span style="color:#cc0000;">* '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭', '<27>Ϲݿ뿪<DDBF><EBBFAA><EFBFBD>༭' <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>κ<EFBFBD> ÷<><C3B7></span>
|
||||
<br><3E><>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ Ư<><C6AF><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>༭<EFBFBD><E0BCAD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>, <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> Ȯ<><C8AE><EFBFBD>Ǿ<EFBFBD><C7BE>ٴ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>Ե<EFBFBD> <20><><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20≯<EFBFBD><CCB8><EFBFBD> <20><><EFBFBD><EFBFBD> ĸ<>ĺ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ü <20><><EFBFBD><EFBFBD>
|
||||
<br>(Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ<EFBFBD><C6AE>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD>缳<EFBFBD>谳<EFBFBD><E8B0B3>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20>ֿ䳻<D6BF><E4B3BB> <20>ݵ<EFBFBD><DDB5><EFBFBD> <20><><EFBFBD>ԵǾ<D4B5> <20>־<EFBFBD><D6BE><EFBFBD> <20>ԡ<EFBFBD>)
|
||||
</div>
|
||||
<% End If %>
|
||||
</td>
|
||||
<td align="center" ></td>
|
||||
<td align="center" ></td>
|
||||
@@ -3561,6 +3596,7 @@
|
||||
var upload_Flag = true;
|
||||
var depart_no = document.pms.depart_no.value;
|
||||
|
||||
|
||||
$("input:file").each(function (index) {
|
||||
var uploadpath = $(this).val();
|
||||
fileCount++;
|
||||
|
||||
@@ -2292,7 +2292,11 @@ end if
|
||||
if (ajaxResponse == "1") {
|
||||
complete(type, p_child_sn);
|
||||
} else {
|
||||
alert("<22><><EFBFBD><EFBFBD> File Upload<61><64> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>. Ȯ<><C8AE><EFBFBD>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.\n <20>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD>-<2D><><EFBFBD>̺<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<5B><><EFBFBD>ȼ<EFBFBD>or<6F><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD>(DP)]\n <20>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> [<5B><><EFBFBD>ȼ<EFBFBD>or<6F><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD>(DP)]");
|
||||
if (type == "1") {
|
||||
alert("<22><><EFBFBD><EFBFBD> File Upload<61><64> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>. Ȯ<><C8AE><EFBFBD>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.\n <20>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD>-<2D><><EFBFBD>̺<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭+<2B><><EFBFBD>ȼ<EFBFBD>or<6F><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD>(DP)]\n <20>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> [<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD>༭+<2B><><EFBFBD>ȼ<EFBFBD>or<6F><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD>(DP)]");
|
||||
} else {
|
||||
alert("<22><><EFBFBD><EFBFBD> File Upload<61><64> <20><><EFBFBD><EFBFBD><EFBFBD>մϴ<D5B4>. Ȯ<><C8AE><EFBFBD>Ͻñ<CFBD> <20>ٶ<EFBFBD><D9B6>ϴ<EFBFBD>.\n <20>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD>-<2D><><EFBFBD>̺<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [<5B><><EFBFBD>ȼ<EFBFBD>or<6F><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD>(DP)]\n <20>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD>-<2D><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> [<5B><><EFBFBD>ȼ<EFBFBD>or<6F><72><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<2B><><EFBFBD><EFBFBD>(DP)]");
|
||||
}
|
||||
}
|
||||
}
|
||||
function complete(type, p_child_sn) {
|
||||
|
||||
@@ -19,7 +19,8 @@
|
||||
end if
|
||||
|
||||
query = "" ' export_range <- <20>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD>, a_cnt <- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD>ȼ<EFBFBD>, b_cnt <- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, c_cnt <- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, d_cnt <- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(DP)
|
||||
query = query & " SELECT isnull(isnull(isnull(a.p_export_range, b.p_export_range), c.p_export_range), d.p_export_range) as export_range , isnull(a.a_CNT, 0) as a_cnt, isnull(b.b_CNT, 0) as b_cnt, isnull(c.c_CNT, 0) as c_cnt, isnull(d.d_CNT, 0) as d_cnt FROM "
|
||||
query = query & " SELECT isnull(isnull(isnull(a.p_export_range, b.p_export_range), c.p_export_range), d.p_export_range) as export_range , isnull(a.a_CNT, 0) as a_cnt, isnull(b.b_CNT, 0) as b_cnt, isnull(c.c_CNT, 0) as c_cnt, isnull(d.d_CNT, 0) as d_cnt, "
|
||||
query = query & " (SELECT COUNT(*) FROM T_SYSTEM_ATTACH WHERE f_p_sn = '" & LEFT(p_child_sn, 7) & "' AND f_use_yn = 'Y' AND f_kind = '010') as contract_cnt FROM "
|
||||
query = query & " ( "
|
||||
query = query & " SELECT p_export_range, count(*) as a_CNT FROM "
|
||||
query = query & " (SELECT p_export_range FROM V_PROJECT_METHOD WHERE p_child_sn = '" & p_child_sn & "') A, "
|
||||
@@ -52,11 +53,11 @@
|
||||
if rsp.recordCount > 0 then
|
||||
if depart_type = "1" then
|
||||
if rsp("export_range") = "001" then '<27>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD> - <20><><EFBFBD>̺<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD><EFBFBD>
|
||||
if cint(rsp("a_cnt")) >= 1 and cint(rsp("c_cnt")) >= 1 then ' <20><><EFBFBD>ȼ<EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ְ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
|
||||
if cint(rsp("contract_cnt")) >= 1 and cint(rsp("a_cnt")) >= 1 and cint(rsp("c_cnt")) >= 1 then ' <20><><EFBFBD>ȼ<EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ְ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
|
||||
ret_val = "1"
|
||||
end if
|
||||
else '<27>뿪<EFBFBD><EBBFAA><EFBFBD><EFBFBD> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, Top-line/Brief <20><><EFBFBD><EFBFBD>
|
||||
if cint(rsp("a_cnt")) >= 1 and cint(rsp("b_cnt")) >= 1 and cint(rsp("c_cnt")) >= 1 then ' <20><><EFBFBD>ȼ<EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ְ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>,
|
||||
if cint(rsp("contract_cnt")) >= 1 and cint(rsp("a_cnt")) >= 1 and cint(rsp("b_cnt")) >= 1 and cint(rsp("c_cnt")) >= 1 then ' <20><><EFBFBD>ȼ<EFBFBD> <20>Ǵ<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ְ<EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>,
|
||||
ret_val = "1"
|
||||
end if
|
||||
end if
|
||||
|
||||
@@ -145,7 +145,7 @@ if command = "excel" then
|
||||
end if
|
||||
'======================================================
|
||||
%>
|
||||
<form name="pms" method="post">
|
||||
<form name="pms" method="post" onsubmit="chkit('1'); return false;">
|
||||
<input type="hidden" name="project_old_new_check" id= "project_old_new_check" value="<%=project_old_new %>">
|
||||
<input type="hidden" name="p_types1_check" id= "p_types1_check" value="<%=p_types1%>">
|
||||
<input type="hidden" name="p_types2_check" id= "p_types2_check" value="<%=p_types2%>">
|
||||
@@ -521,7 +521,7 @@ end if
|
||||
<tr>
|
||||
<td width="50" align=right> </td>
|
||||
<td align=center>
|
||||
<img src="/images/common/btn_search.jpg" align="absmiddle" style="cursor:pointer" onClick="chkit('1')">
|
||||
<input type="image" src="/images/common/btn_search.jpg" align="absmiddle" style="cursor:pointer" alt="Search">
|
||||
<!-- <img src="/images/common/btn_cancel.jpg" align="absmiddle" style="cursor:pointer" onClick="reloadit()"> -->
|
||||
</td>
|
||||
<td width="30" align=right><img src="/images/common/excel_down.png" width="40px" onclick='javascript:{excel_export();}' style='CURSOR:pointer;' title ='<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ޱ<EFBFBD>'></td>
|
||||
@@ -547,23 +547,23 @@ end if
|
||||
query = query & " ( "
|
||||
query = query & " select p_sn, p_subject, isnull(p_depart,'') as p_depart, p_method, p_cli_company, p_conv_date, c_code_name, "
|
||||
query = query & " count(f_id) as f_id, convert(varchar(10),count(f_file_name))+'<27><>' as f_file_name, "
|
||||
query = query & " '' as p_name, "
|
||||
query = query & " isnull(p_name, '') as p_name, "
|
||||
query = query & " '' as f_attach_date, p_sub_type, p_method_cd, p_child_sn, p_con_date_end, p_total_cost, p_cont_cost, p_sample "
|
||||
query = query & " FROM ( "
|
||||
query = query & " SELECT TPB.p_sn as p_sn, ISNULL(TPM.p_subject, TPB.p_subject) as p_subject, "
|
||||
query = query & " isnull(D.T_name, '') as p_depart, "
|
||||
query = query & " TPMC.p_method_nm as p_method, TCC.p_cli_company_nm as p_cli_company, "
|
||||
query = query & " TPM.p_decide_date as p_conv_date, '' as c_code_name, TSA.f_id as f_id, TSA.f_file_name as f_file_name, TSA.f_input_user as f_input_user, "
|
||||
query = query & " TPM.p_con_date_st as p_conv_date, '' as c_code_name, TSA.f_id as f_id, TSA.f_file_name as f_file_name, TSA.f_input_user as f_input_user, "
|
||||
query = query & " per.p_name as p_name, "
|
||||
query = query & " TSA.f_attach_date as f_attach_date, TPM.p_sub_type, TPM.p_method_cd, isnull(TPM.p_child_sn,tpb.p_sn) as p_child_sn, TPM.p_con_date_end, isnull(TPB.p_total_cost, '0') as p_total_cost, isnull(TPM.p_cont_cost, '0') as p_cont_cost, ISNULL(TPM.p_sample, '0') as p_sample "
|
||||
query = query & " FROM T_PROJECT_BASE TPB "
|
||||
query = query & " LEFT OUTER JOIN T_PROJECT_METHOD TPM ON TPM.p_sn = TPB.p_sn /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN T_PROJECT_METHOD_CD TPMC ON TPM.p_method_cd = TPMC.p_method_cd /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20≯<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN V_Department D ON TPM.p_rsch_dept = D.before_t_cd1 /* <20>μ<EFBFBD><CEBC>ڵ<EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN V_Department D ON ((ISNULL(TPB.p_depart_dep, '') = '0' AND ISNULL(TPB.p_Depart_N, '') = 'E' AND ISNULL(TPB.p_Team_N, '') = '101' AND TPM.p_rsch_dept = D.before_t_cd1) OR (NOT (ISNULL(TPB.p_depart_dep, '') = '0' AND ISNULL(TPB.p_Depart_N, '') = 'E' AND ISNULL(TPB.p_Team_N, '') = '101') AND (((ISNULL(TPB.p_Depart_N, '') + ISNULL(TPB.p_Team_N, '')) <> '' AND (ISNULL(TPB.p_Depart_N, '') + ISNULL(TPB.p_Team_N, '')) = D.Code) OR ((ISNULL(TPB.p_Depart_N, '') + ISNULL(TPB.p_Team_N, '')) = '' AND TPB.p_depart_dep = D.before_t_cd1)))) /* <20>μ<EFBFBD><CEBC>ڵ<EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN V_CLIENT_COMP TCC ON TPB.p_cli_company_cd = TCC.p_cli_company_cd /* ȸ<><C8B8><EFBFBD>ڵ<EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN T_SYSTEM_ATTACH TSA ON TPB.p_sn = TSA.f_p_sn AND f_use_yn = 'y' "
|
||||
query = query & " LEFT OUTER JOIN T_COMMON_CODE_DETAIL TCCD ON TSA.f_work_type = TCCD.c_kind_code AND TSA.f_kind = TCCD.c_common_code /* <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> */ "
|
||||
query = query & " LEFT OUTER JOIN person PER ON TSA.f_input_user = PER.P_NO "
|
||||
query = query & " LEFT OUTER JOIN person PER ON TPB.p_input_user = PER.P_NO "
|
||||
query = query & " WHERE TPB.p_sn <> '' "
|
||||
'<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20>ڵ<EFBFBD>--------------------------------------------------
|
||||
if p_sn <> "" then
|
||||
@@ -659,7 +659,7 @@ end if
|
||||
query = query & " SELECT p.p_sn as p_sn, p.p_subject as p_subject, "
|
||||
query = query & " isnull(d.T_Name, '') as p_depart, "
|
||||
query = query & " pm.name1 as p_method, C.c_name as p_cli_company, "
|
||||
query = query & " p.p_conv_date as p_conv_date, TCCD.c_code_name as c_code_name, TSA.f_id as f_id, TSA.f_file_name as f_file_name, "
|
||||
query = query & " p.p_convdate_st as p_conv_date, TCCD.c_code_name as c_code_name, TSA.f_id as f_id, TSA.f_file_name as f_file_name, "
|
||||
query = query & " TSA.f_input_user as f_input_user, "
|
||||
query = query & " '' as p_name, "
|
||||
query = query & " TSA.f_attach_date as f_attach_date, '' as p_sub_type, '' as p_method_cd, '' as p_child_sn ,p.p_convdate_end as p_con_date_end, '' as p_total_cost, p.p_budget as p_cont_cost, ISNULL(P.p_sample, '0') as p_sample "
|
||||
@@ -809,7 +809,7 @@ end if
|
||||
query = query & " AND p_sn = '' "
|
||||
end if
|
||||
query = query & " ) T "
|
||||
query = query & " group by p_sn, p_subject, p_depart, p_method, p_cli_company, p_conv_date, c_code_name, p_sub_type, p_method_cd, p_child_sn, p_con_date_end, "
|
||||
query = query & " group by p_sn, p_subject, p_depart, p_method, p_cli_company, p_conv_date, c_code_name, p_name, p_sub_type, p_method_cd, p_child_sn, p_con_date_end, "
|
||||
query = query & " p_total_cost, p_cont_cost, p_sample"
|
||||
query = query & " ) A1 "
|
||||
query = query & " left join " '-- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȹ<EFBFBD><C8B9>
|
||||
@@ -883,7 +883,7 @@ end if
|
||||
psql=psql&" left outer join V_CLIENT_COMP as E on PB.p_cli_company_cd = E.p_cli_company_cd "
|
||||
psql=psql&" left outer join V_CLIENT_PERSON as CP on PB.p_cli_company_cd = CP.p_cli_company_cd AND PB.p_cli_per_cd = CP.p_cli_per_cd "
|
||||
psql=psql&" left outer join T_CLIENT_TYPE_CD as CT on PB.p_client_type_cd = CT.p_client_type_cd "
|
||||
psql=psql&" INNER JOIN V_Department D ON PB.p_depart_dep = d.before_t_cd1 "
|
||||
psql=psql&" INNER JOIN V_Department D ON ((ISNULL(PB.p_Depart_N, '') + ISNULL(PB.p_Team_N, '')) <> '' AND (ISNULL(PB.p_Depart_N, '') + ISNULL(PB.p_Team_N, '')) = D.Code) OR ((ISNULL(PB.p_Depart_N, '') + ISNULL(PB.p_Team_N, '')) = '' AND PB.p_depart_dep = D.before_t_cd1) "
|
||||
psql=psql&" WHERE p_sn in ( "
|
||||
psql=psql&" select AA.p_sn from ("&query&") AA group by AA.p_sn "
|
||||
psql=psql&" ) "
|
||||
@@ -1019,7 +1019,7 @@ end if
|
||||
<td width="50" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="100" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="120" align="center" height="24" >Ŭ<><C5AC><EFBFBD>̾<EFBFBD>Ʈ</td>
|
||||
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
<td width="65" align="center" height="24" ><3E><>ü<EFBFBD><C3BC><EFBFBD>ֱݾ<D6B1></td>
|
||||
<td width="65" align="center" height="24" ><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
||||
|
||||
@@ -92,34 +92,75 @@ End if
|
||||
<tr>
|
||||
<td colspan = "6">
|
||||
<table width="100%" height="37" cellpadding="0" cellspacing="1" border="0">
|
||||
<tr>
|
||||
<td class="tit7" align="center" colspan="<%=Max_Col%>" style="cursor:pointer" onclick="openit('99999','<27>Ϲݾ<CFB9><DDBE><EFBFBD>','','','')"><3E>Ϲݾ<CFB9><DDBE><EFBFBD></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tit7" align="center" colspan="<%=Max_Col%>" style="cursor:pointer"
|
||||
<%if (cint(Session("Depart_Code")) > 0 and cint(Session("Depart_Code")) <= 40) or cint(Session("Depart_Code")) >= 50 or Session("N_depart") = "S" AND Session("N_team") = "401" then
|
||||
query = "select * from v_project where p_sn = '9999" & ZeroFormat(Session("Depart_Code"), 3) & "'"
|
||||
'response.write query & "<br>"
|
||||
adors.Open Query,adoconn,adOpenStatic,adLockReadOnly
|
||||
%> onclick="openit('<%=adors("p_sn")%>','<%=adors("p_subject")%>')"><%=adors("p_subject")%>
|
||||
<% adors.close
|
||||
end if%>
|
||||
</td>
|
||||
</tr>
|
||||
<% If (Session("N_depart") = "M" And Session("N_team") = "101") Or (Session("N_depart") = "S" And Session("N_team") = "601") Or (Session("User_Number") = "20250301") Then %>
|
||||
<tr>
|
||||
<td class="tit7" align="center" colspan="<%=Max_Col%>" style="cursor:pointer" onclick="openit('99999','<27>Ϲݾ<CFB9><DDBE><EFBFBD>','','','')"><3E>Ϲݾ<CFB9><DDBE><EFBFBD></td>
|
||||
</tr>
|
||||
<% End If %>
|
||||
|
||||
<% If (Session("N_depart") = "E" And Session("N_team") = "101") or Session("User_Number") = "20150302" or Session("User_Number") = "20031102" or Session("User_Number") = "20210405" Then '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ں<EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ʈ <20><><EFBFBD><EFBFBD>
|
||||
Select Case Session("User_Number")
|
||||
Case "20160205" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
p_sn_list = "'9999010','9999061','9999062','9999063','9999064'"
|
||||
Case "20210107" '<27>Ż<EFBFBD><C5BB><EFBFBD>
|
||||
p_sn_list = "'9999002','9999066','9999091'"
|
||||
Case "20190601" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
p_sn_list = "'9999007','9999071','9999072','9999073'"
|
||||
Case "20210801" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
p_sn_list = "'9999093'"
|
||||
Case "20150302" '<27><>ȯ
|
||||
p_sn_list = "'9999065'"
|
||||
Case "20031102" 'ä<><C3A4><EFBFBD><EFBFBD>
|
||||
p_sn_list = "'9999017','9999019','9999020','9999013','9999016'"
|
||||
Case "20210405" '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
p_sn_list = "'9999012'"
|
||||
Case Else
|
||||
p_sn_list = ""
|
||||
End Select
|
||||
|
||||
If p_sn_list <> "" Then
|
||||
query = "select * from v_project where p_sn like '9999%' and p_sn != '99999' and p_content is not null and p_sn IN (" & p_sn_list & ")"
|
||||
rsc.Open query, adoConn, 1
|
||||
for i = 1 to rsc.RecordCount
|
||||
%>
|
||||
<tr>
|
||||
<td class="tit7" align="center" colspan="<%=Max_Col%>" style="cursor:pointer"
|
||||
onclick="openit('<%=rsc("p_sn")%>','<%=rsc("p_subject")%>')"><%=rsc("p_subject")%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
rsc.MoveNext
|
||||
Next
|
||||
rsc.close
|
||||
End If
|
||||
Else
|
||||
%>
|
||||
<tr>
|
||||
<td class="tit7" align="center" colspan="<%=Max_Col%>" style="cursor:pointer"
|
||||
<%if (cint(Session("Depart_Code")) > 0 and cint(Session("Depart_Code")) <= 40) or cint(Session("Depart_Code")) >= 50 or Session("N_depart") = "S" AND Session("N_team") = "401" then
|
||||
query = "select * from v_project where p_sn = '9999" & ZeroFormat(Session("Depart_Code"), 3) & "'"
|
||||
'response.write query & "<br>"
|
||||
adors.Open Query,adoconn,adOpenStatic,adLockReadOnly
|
||||
%> onclick="openit('<%=adors("p_sn")%>','<%=adors("p_subject")%>')"><%=adors("p_subject")%>
|
||||
<% adors.close
|
||||
end if%>
|
||||
</td>
|
||||
</tr>
|
||||
<% End If %>
|
||||
<%if cint(Session("Depart_Code")) = 18 then '<27>濵<EFBFBD><E6BFB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
||||
|
||||
query = "select * from v_project where p_sn like '9999%' and p_sn != '99999' and p_content is not null"
|
||||
query = "select * from v_project where p_sn like '9999%' and p_sn != '99999' and p_content is not null and p_content != 'M999'"
|
||||
'response.write query & "<br>"
|
||||
'adors.Open Query,adoconn,adOpenStatic,adLockReadOnly
|
||||
rsc.Open query, adoConn, 1
|
||||
|
||||
for i = 1 to rsc.RecordCount
|
||||
%>
|
||||
<tr>
|
||||
<td class="tit7" align="center" colspan="<%=Max_Col%>" style="cursor:pointer"
|
||||
onclick="openit('<%=rsc("p_sn")%>','<%=rsc("p_subject")%>')"><%=rsc("p_subject")%>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="tit7" align="center" colspan="<%=Max_Col%>" style="cursor:pointer"
|
||||
onclick="openit('<%=rsc("p_sn")%>','<%=rsc("p_subject")%>')"><%=rsc("p_subject")%>
|
||||
</td>
|
||||
</tr>
|
||||
<%
|
||||
rsc.MoveNext
|
||||
Next
|
||||
|
||||
@@ -1,14 +1,25 @@
|
||||
<!-- #include virtual = "include/header.asp" -->
|
||||
<!-- #include virtual = "include/left.asp" -->
|
||||
<%
|
||||
p_statistics = request("p_statistics")
|
||||
If p_statistics = "" Then
|
||||
p_statistics = year(date)
|
||||
p_statistics_start = request("p_statistics_start")
|
||||
p_statistics_end = request("p_statistics_end")
|
||||
If p_statistics_start = "" Then
|
||||
p_statistics_start = year(date)
|
||||
If cint(month(date)) <= 3 Then
|
||||
p_statistics = p_statistics - 1 ' 4<><34> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>̰<EFBFBD>
|
||||
p_statistics_start = p_statistics_start - 1 ' 4<><34> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>̰<EFBFBD>
|
||||
End If
|
||||
End If
|
||||
If p_statistics_end = "" Then
|
||||
p_statistics_end = p_statistics_start
|
||||
End If
|
||||
If cint(p_statistics_start) > cint(p_statistics_end) Then
|
||||
tmpYear = p_statistics_start
|
||||
p_statistics_start = p_statistics_end
|
||||
p_statistics_end = tmpYear
|
||||
End If
|
||||
nowDate = now()
|
||||
|
||||
p_costType = request("p_costType")
|
||||
%>
|
||||
<!-- Content Wrapper. Contains page content -->
|
||||
<div class="content-wrapper">
|
||||
@@ -89,7 +100,14 @@ nowDate = now()
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Filter <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.
|
||||
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
||||
<tr>
|
||||
<td>Filter <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ϼ<EFBFBD><CFBC><EFBFBD>.</td>
|
||||
<td align="right">
|
||||
<input type="button" id="btnExport" value="Excel Download"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -97,14 +115,26 @@ nowDate = now()
|
||||
<table class="table table-sm table-sm2 table-bordered table-head tr-colors" style="font-size:12px;">
|
||||
<tr>
|
||||
<td bgcolor="#DFDFDF" style="padding-left:10px;">
|
||||
<select id="p_statistics">
|
||||
<select id="p_statistics_start">
|
||||
<% For i=2018 To year(date) %>
|
||||
<option value="<%=i%>" <%= iif(cint(i) = cint(p_statistics), " selected ", "") %>><%=cstr(i)%>~<%=RIGHT(cstr(i+1), 2)%></option>
|
||||
<option value="<%=i%>" <%= iif(cint(i) = cint(p_statistics_start), " selected ", "") %>><%=cstr(i)%></option>
|
||||
<% Next %>
|
||||
</select>
|
||||
~
|
||||
<select id="p_statistics_end">
|
||||
<% For i=2018 To year(date)+1 %>
|
||||
<option value="<%=i%>" <%= iif(cint(i) = cint(p_statistics_end), " selected ", "") %>><%=cstr(i)%></option>
|
||||
<% Next %>
|
||||
</select>
|
||||
</td>
|
||||
<td bgcolor="#DFDFDF" class="tbFilter tahoma_blk" style="padding-left:10px;"></td>
|
||||
<td bgcolor="#DFDFDF" style="padding-left:10px;">
|
||||
<select id="p_costType">
|
||||
<option value="all"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(<28><>ü)</option>
|
||||
<option value="field" <% If p_costType = "field" Then Response.Write "selected" %>><3E>ǻ<EFBFBD></option>
|
||||
</select>
|
||||
</td>
|
||||
<td bgcolor="#DFDFDF" style="padding-left:10px;">
|
||||
<span>
|
||||
<b><3E><><EFBFBD><EFBFBD></b> - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
65-75% : <span class="rate_legend" style="background-color:#ffdb9c;"></span>
|
||||
@@ -113,9 +143,6 @@ nowDate = now()
|
||||
95% <20><> : <span class="rate_legend" style="background-color:#e85e5e;"></span>
|
||||
</span>
|
||||
</td>
|
||||
<td bgcolor="#DFDFDF" align="right" style="padding-right:10px;">
|
||||
<input type="button" id="btnExport" value="Excel Download"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
@@ -172,7 +199,11 @@ nowDate = now()
|
||||
query = query & " TPM.p_child_sn, TPM.p_subject, VCC.p_cli_company_nm, " & vbCrLf
|
||||
query = query & " TPM.p_method_cd, TPMC.p_method_nm, ISNULL(TPM.p_sample, 0) as p_sample, " & vbCrLf
|
||||
query = query & " TPM.p_cont_cost, ISNULL(DC.sum_est, 0) AS sum_est, " & vbCrLf
|
||||
query = query & " (ISNULL(DC.sum_act, 0) + ISNULL(MC.marketing_cost, 0) + ISNULL(JC.job_money, 0)) AS sum_act, " & vbCrLf
|
||||
If LCase(Trim(p_costType)) = "field" Then
|
||||
query = query & " ISNULL(DC.sum_act, 0) AS sum_act, " & vbCrLf
|
||||
Else
|
||||
query = query & " (ISNULL(DC.sum_act, 0) + ISNULL(MC.marketing_cost, 0) + ISNULL(JC.job_money, 0)) AS sum_act, " & vbCrLf
|
||||
End If
|
||||
query = query & " ISNULL(DC.sum_act, 0) AS sum_act_tmp, " & vbCrLf
|
||||
query = query & " TPM.p_con_date_st, TPM.p_con_date_end, " & vbCrLf
|
||||
query = query & " TPM.p_progress_status, TPM.p_input_complete, " & vbCrLf
|
||||
@@ -194,6 +225,9 @@ nowDate = now()
|
||||
query = query & " sum(CONVERT(money, act_money)) AS sum_act " & vbCrLf
|
||||
query = query & " FROM project2.dbo.direct_cost " & vbCrLf
|
||||
query = query & " WHERE p_child_sn > '17' AND del_yes_no = 'no' " & vbCrLf
|
||||
If LCase(Trim(p_costType)) = "field" Then
|
||||
query = query & " AND (cost_type = 'field' OR sebu IN ('<27>μ<EFBFBD><CEBC><EFBFBD>(<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)', '<27><><EFBFBD>ź<EFBFBD>')) " & vbCrLf
|
||||
End If
|
||||
query = query & " GROUP BY p_child_sn " & vbCrLf
|
||||
query = query & " ) DC ON TPM.p_child_sn = DC.p_child_sn LEFT JOIN " & vbCrLf
|
||||
query = query & " ( " & vbCrLf
|
||||
@@ -209,7 +243,7 @@ nowDate = now()
|
||||
query = query & " WHERE CA.cost_money > 0 " & vbCrLf
|
||||
query = query & " GROUP BY CA.p_sn " & vbCrLf
|
||||
query = query & " ) JC ON TPM.p_child_sn = JC.p_sn " & vbCrLf
|
||||
query = query & " WHERE TPM.p_statistics in ('" & p_statistics & "','" & p_statistics+1 & "') " & vbCrLf
|
||||
query = query & " WHERE TPM.p_statistics BETWEEN '" & CInt(p_statistics_start) & "' AND '" & CInt(p_statistics_end) & "' " & vbCrLf
|
||||
if cint(session("Depart_Code")) >= 20 Then
|
||||
query = query & " AND (p_rsch_dept = '" & session("Depart_Code") & "' " & vbCrLf
|
||||
' if session("User_Number") = "20180701" Then '<27><>ȿ<EFBFBD><C8BF>
|
||||
@@ -440,8 +474,8 @@ nowDate = now()
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$("#p_statistics").on("change", function(){
|
||||
location.href="./projectlist_cost.asp?p_statistics=" + $("#p_statistics option:selected").val();
|
||||
$("#p_statistics_start, #p_statistics_end, #p_costType").on("change", function(){
|
||||
location.href="./projectlist_cost.asp?p_statistics_start=" + $("#p_statistics_start option:selected").val()+"&p_statistics_end="+$("#p_statistics_end option:selected").val()+"&p_costType="+$("#p_costType option:selected").val();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user