Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Controllers\Api;
|
|
|
|
|
|
|
|
|
|
use App\Controllers\BaseController;
|
|
|
|
|
use App\Models\DictControlModel;
|
|
|
|
|
use App\Models\ControlTestModel;
|
2026-01-16 16:47:45 +07:00
|
|
|
use App\Models\DailyResultModel;
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
use App\Models\ResultModel;
|
|
|
|
|
use App\Models\ResultCommentModel;
|
|
|
|
|
|
|
|
|
|
class EntryApiController extends BaseController
|
|
|
|
|
{
|
|
|
|
|
protected $dictControlModel;
|
|
|
|
|
protected $controlTestModel;
|
2026-01-16 16:47:45 +07:00
|
|
|
protected $dailyResultModel;
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
protected $resultModel;
|
|
|
|
|
protected $commentModel;
|
|
|
|
|
|
|
|
|
|
public function __construct()
|
|
|
|
|
{
|
|
|
|
|
$this->dictControlModel = new \App\Models\DictControlModel();
|
|
|
|
|
$this->controlTestModel = new \App\Models\ControlTestModel();
|
2026-01-16 16:47:45 +07:00
|
|
|
$this->dailyResultModel = new \App\Models\DailyResultModel();
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
$this->resultModel = new \App\Models\ResultModel();
|
|
|
|
|
$this->commentModel = new \App\Models\ResultCommentModel();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getControls()
|
|
|
|
|
{
|
2026-01-15 10:44:09 +07:00
|
|
|
try {
|
|
|
|
|
$date = $this->request->getGet('date');
|
|
|
|
|
$deptId = $this->request->getGet('deptId');
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
2026-01-15 10:44:09 +07:00
|
|
|
$rows = $this->dictControlModel->getActiveByDate($date, $deptId);
|
|
|
|
|
return $this->respond([
|
|
|
|
|
'status' => 'success',
|
|
|
|
|
'message' => 'fetch success',
|
|
|
|
|
'data' => $rows
|
|
|
|
|
], 200);
|
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
|
return $this->failServerError('Something went wrong: ' . $e->getMessage());
|
|
|
|
|
}
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function getTests()
|
|
|
|
|
{
|
2026-01-15 10:44:09 +07:00
|
|
|
try {
|
|
|
|
|
$controlId = $this->request->getGet('controlId');
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
|
2026-01-15 10:44:09 +07:00
|
|
|
$rows = $this->controlTestModel->getByControl($controlId);
|
|
|
|
|
return $this->respond([
|
|
|
|
|
'status' => 'success',
|
|
|
|
|
'message' => 'fetch success',
|
|
|
|
|
'data' => $rows
|
|
|
|
|
], 200);
|
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
|
return $this->failServerError('Something went wrong: ' . $e->getMessage());
|
|
|
|
|
}
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function saveDaily()
|
|
|
|
|
{
|
2026-01-15 10:44:09 +07:00
|
|
|
$input = $this->request->getJSON(true);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
$resultData = [
|
|
|
|
|
'control_ref_id' => $input['controlId'] ?? 0,
|
|
|
|
|
'test_ref_id' => $input['testId'] ?? 0,
|
|
|
|
|
'resdate' => $input['resdate'] ?? date('Y-m-d'),
|
|
|
|
|
'resvalue' => $input['resvalue'] ?? '',
|
|
|
|
|
'rescomment' => $input['rescomment'] ?? '',
|
|
|
|
|
];
|
|
|
|
|
|
2026-01-16 16:47:45 +07:00
|
|
|
$this->dailyResultModel->saveResult($resultData);
|
2026-01-15 10:44:09 +07:00
|
|
|
return $this->respond([
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
'status' => 'success',
|
2026-01-15 10:44:09 +07:00
|
|
|
'message' => 'save success'
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
]);
|
2026-01-15 10:44:09 +07:00
|
|
|
} catch (\Exception $e) {
|
|
|
|
|
return $this->failServerError('Something went wrong: ' . $e->getMessage());
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function saveMonthly()
|
|
|
|
|
{
|
2026-01-15 10:44:09 +07:00
|
|
|
$input = $this->request->getJSON(true);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
$controlId = $input['controlId'] ?? 0;
|
2026-01-16 17:18:10 +07:00
|
|
|
$yearMonth = $input['yearMonth'] ?? '';
|
|
|
|
|
$operation = $input['operation'] ?? 'replace';
|
|
|
|
|
$tests = $input['tests'] ?? [];
|
|
|
|
|
$results = [];
|
|
|
|
|
$statistics = [];
|
|
|
|
|
$validations = [];
|
|
|
|
|
|
|
|
|
|
foreach ($tests as $testData) {
|
|
|
|
|
$testId = $testData['testId'] ?? 0;
|
|
|
|
|
$resvalues = $testData['resvalue'] ?? [];
|
2026-01-16 17:22:40 +07:00
|
|
|
$rescomments = $testData['rescomment'] ?? [];
|
2026-01-16 17:18:10 +07:00
|
|
|
|
|
|
|
|
$controlTest = $this->controlTestModel->getByControlAndTest($controlId, $testId);
|
|
|
|
|
$mean = $controlTest['mean'] ?? 0;
|
|
|
|
|
$sd = $controlTest['sd'] ?? 0;
|
|
|
|
|
$sdLimit = $sd > 0 ? $sd * 2 : 0;
|
|
|
|
|
|
|
|
|
|
$testValues = [];
|
|
|
|
|
$validCount = 0;
|
|
|
|
|
$validSum = 0;
|
|
|
|
|
$validSqSum = 0;
|
|
|
|
|
|
|
|
|
|
foreach ($resvalues as $day => $value) {
|
|
|
|
|
if (!empty($value)) {
|
2026-01-16 17:22:40 +07:00
|
|
|
$resdate = $yearMonth . '-' . str_pad($day, 2, '0', STR_PAD_LEFT);
|
|
|
|
|
$rescomment = $rescomments[$day] ?? '';
|
|
|
|
|
|
2026-01-16 17:18:10 +07:00
|
|
|
$resultData = [
|
|
|
|
|
'control_ref_id' => $controlId,
|
|
|
|
|
'test_ref_id' => $testId,
|
2026-01-16 17:22:40 +07:00
|
|
|
'resdate' => $resdate,
|
2026-01-16 17:18:10 +07:00
|
|
|
'resvalue' => $value,
|
2026-01-16 17:22:40 +07:00
|
|
|
'rescomment' => $rescomment,
|
2026-01-16 17:18:10 +07:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
if ($operation === 'replace') {
|
|
|
|
|
$this->resultModel->saveResult($resultData);
|
|
|
|
|
} else {
|
|
|
|
|
$existing = $this->resultModel->checkExisting($controlId, $testId, $resultData['resdate']);
|
|
|
|
|
if (!$existing) {
|
|
|
|
|
$this->resultModel->saveResult($resultData);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$numValue = (float) $value;
|
|
|
|
|
$testValues[] = $numValue;
|
|
|
|
|
$validCount++;
|
|
|
|
|
$validSum += $numValue;
|
|
|
|
|
$validSqSum += $numValue * $numValue;
|
|
|
|
|
|
|
|
|
|
$withinLimit = true;
|
|
|
|
|
if ($sdLimit > 0) {
|
|
|
|
|
$withinLimit = abs($numValue - $mean) <= $sdLimit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!$withinLimit) {
|
|
|
|
|
$validations[] = [
|
|
|
|
|
'testId' => $testId,
|
|
|
|
|
'day' => $day,
|
|
|
|
|
'value' => $value,
|
|
|
|
|
'mean' => $mean,
|
|
|
|
|
'sd' => $sd,
|
|
|
|
|
'status' => 'out_of_range'
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($validCount > 0) {
|
|
|
|
|
$calcMean = $validSum / $validCount;
|
|
|
|
|
$calcSd = 0;
|
|
|
|
|
if ($validCount > 1) {
|
|
|
|
|
$variance = ($validSqSum - ($validSum * $validSum) / $validCount) / ($validCount - 1);
|
|
|
|
|
$calcSd = $variance > 0 ? sqrt($variance) : 0;
|
|
|
|
|
}
|
|
|
|
|
$cv = $calcMean > 0 ? ($calcSd / $calcMean) * 100 : 0;
|
|
|
|
|
|
|
|
|
|
$statistics[] = [
|
|
|
|
|
'testId' => $testId,
|
|
|
|
|
'n' => $validCount,
|
|
|
|
|
'mean' => round($calcMean, 3),
|
|
|
|
|
'sd' => round($calcSd, 3),
|
|
|
|
|
'cv' => round($cv, 2)
|
2026-01-15 10:44:09 +07:00
|
|
|
];
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
}
|
2026-01-16 17:18:10 +07:00
|
|
|
|
|
|
|
|
$results[] = [
|
|
|
|
|
'testId' => $testId,
|
|
|
|
|
'saved' => count($resvalues)
|
|
|
|
|
];
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
}
|
|
|
|
|
|
2026-01-15 10:44:09 +07:00
|
|
|
return $this->respond([
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
'status' => 'success',
|
2026-01-16 17:18:10 +07:00
|
|
|
'message' => 'save success',
|
|
|
|
|
'data' => [
|
|
|
|
|
'results' => $results,
|
|
|
|
|
'statistics' => $statistics,
|
|
|
|
|
'validations' => $validations
|
|
|
|
|
]
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
]);
|
2026-01-15 10:44:09 +07:00
|
|
|
} catch (\Exception $e) {
|
|
|
|
|
return $this->failServerError('Something went wrong: ' . $e->getMessage());
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function saveComment()
|
|
|
|
|
{
|
2026-01-15 10:44:09 +07:00
|
|
|
$input = $this->request->getJSON(true);
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
$commentData = [
|
|
|
|
|
'control_ref_id' => $input['controlId'] ?? 0,
|
|
|
|
|
'test_ref_id' => $input['testId'] ?? 0,
|
|
|
|
|
'commonth' => $input['commonth'] ?? '',
|
|
|
|
|
'comtext' => $input['comtext'] ?? '',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
$this->commentModel->saveComment($commentData);
|
|
|
|
|
return $this->respond([
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
'status' => 'success',
|
2026-01-15 10:44:09 +07:00
|
|
|
'message' => 'save success'
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
]);
|
2026-01-15 10:44:09 +07:00
|
|
|
} catch (\Exception $e) {
|
|
|
|
|
return $this->failServerError('Something went wrong: ' . $e->getMessage());
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
}
|
|
|
|
|
}
|
2026-01-16 16:51:34 +07:00
|
|
|
|
|
|
|
|
public function getMonthlyData()
|
|
|
|
|
{
|
|
|
|
|
$controlId = $this->request->getGet('controlId');
|
|
|
|
|
$testId = $this->request->getGet('testId');
|
|
|
|
|
$yearMonth = $this->request->getGet('yearMonth');
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
$results = $this->resultModel->getByMonth($controlId, $testId, $yearMonth);
|
|
|
|
|
$comment = $this->commentModel->getByControlTestMonth($controlId, $testId, $yearMonth);
|
|
|
|
|
|
|
|
|
|
$formValues = [];
|
2026-01-16 17:22:40 +07:00
|
|
|
$comments = [];
|
2026-01-16 16:51:34 +07:00
|
|
|
foreach ($results as $row) {
|
|
|
|
|
$day = (int)date('j', strtotime($row['resdate']));
|
|
|
|
|
$formValues[$day] = $row['resvalue'];
|
2026-01-16 17:22:40 +07:00
|
|
|
if (!empty($row['rescomment'])) {
|
|
|
|
|
$comments[$day] = $row['rescomment'];
|
|
|
|
|
}
|
2026-01-16 16:51:34 +07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return $this->respond([
|
|
|
|
|
'status' => 'success',
|
|
|
|
|
'message' => 'fetch success',
|
|
|
|
|
'data' => [
|
|
|
|
|
'formValues' => $formValues,
|
2026-01-16 17:22:40 +07:00
|
|
|
'comments' => $comments,
|
2026-01-16 16:51:34 +07:00
|
|
|
'comment' => $comment ? $comment['comtext'] : ''
|
|
|
|
|
]
|
|
|
|
|
], 200);
|
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
|
return $this->failServerError('Something went wrong: ' . $e->getMessage());
|
|
|
|
|
}
|
|
|
|
|
}
|
Initial commit: Add CodeIgniter 4 QC application with full MVC structure
- CodeIgniter 4 framework setup with SQL Server database config
- Models: Control, Test, Dept, Result, Daily/ Monthly entry models
- Controllers: Dashboard, Control, Test, Dept, Entry, Report, API endpoints
- Views: CRUD pages with modal dialogs, dashboard, reports
- Database: Migrations for control test and daily/monthly result tables
- Legacy v1 PHP application preserved in /v1 directory
- Documentation: AGENTS.md, VIEWS_RULES.md for development guidelines
2026-01-14 16:49:27 +07:00
|
|
|
}
|