diff --git a/wms/wipwhole-rec-invoice-edit-fileupload.php b/wms/wipwhole-rec-invoice-edit-fileupload.php index 30da7a85..f62a3132 100644 --- a/wms/wipwhole-rec-invoice-edit-fileupload.php +++ b/wms/wipwhole-rec-invoice-edit-fileupload.php @@ -34,5 +34,6 @@ $desin_leader_verify_file = fileIUpload("desin_leader_verify_file"); // 工務 $building_heigh_verify_file = fileIUpload("building_heigh_verify_file"); $site_survey_contact_verify_file = fileIUpload("site_survey_contact_verify_file"); +$plan_diagram_file = fileIUpload("plan_diagram_file"); // 生管 $shengguanok_status_file = fileIUpload("shengguanok_status_file"); diff --git a/wms/wipwhole-rec-invoice-edit-submit.php b/wms/wipwhole-rec-invoice-edit-submit.php index c41aa812..f15f83af 100644 --- a/wms/wipwhole-rec-invoice-edit-submit.php +++ b/wms/wipwhole-rec-invoice-edit-submit.php @@ -153,6 +153,25 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { $delivery_date = $_POST['delivery_date'] ?: $row['delivery_date']; $delivery_date_owner = $_POST['delivery_date_owner'] ?: $row['delivery_date_owner']; + // 工務助理 + $install_outsourcer = $_POST['install_outsourcer']; + $install_outsourcer_owner = $_POST['install_outsourcer_owner']; + $install_outsourcer_date = $_POST['install_outsourcer_date']; + $install_outsourcer_date_owner = $_POST['install_outsourcer_date_owner']; + $estimate_install_start_date = $_POST['estimate_install_start_date']; + $estimate_install_start_date_owner = $_POST['estimate_install_start_date_owner']; + $estimate_install_end_date = $_POST['estimate_install_end_date']; + $estimate_install_end_date_owner = $_POST['estimate_install_end_date_owner']; + $tryrun_outsourcer = $_POST['tryrun_outsourcer']; + $tryrun_outsourcer_owner = $_POST['tryrun_outsourcer_owner']; + $tryrun_outsourcer_date = $_POST['tryrun_outsourcer_date']; + $tryrun_outsourcer_date_owner = $_POST['tryrun_outsourcer_date_owner']; + $estimate_tryrun_start_date = $_POST['estimate_tryrun_start_date']; + $estimate_tryrun_start_date_owner = $_POST['estimate_tryrun_start_date_owner']; + $estimate_tryrun_end_date = $_POST['estimate_tryrun_end_date']; + $estimate_tryrun_end_date_owner = $_POST['estimate_tryrun_end_date_owner']; + $warehouse_assistant_remark = $_POST['warehouse_assistant_remark']; + $creater = $_POST['creater']; $create_at = $_POST['create_at']; @@ -468,6 +487,30 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { echo "暫無權限"; exit(); } + + // 工務助理 + $updatesql .= " + install_outsourcer = '$install_outsourcer', + install_outsourcer_owner = '$install_outsourcer_owner', + install_outsourcer_date = '$install_outsourcer_date', + install_outsourcer_date_owner = '$install_outsourcer_date_owner', + estimate_install_start_date = '$estimate_install_start_date', + estimate_install_start_date_owner = '$estimate_install_start_date_owner', + estimate_install_end_date = '$estimate_install_end_date', + estimate_install_end_date_owner = '$estimate_install_end_date_owner', + tryrun_outsourcer = '$tryrun_outsourcer', + tryrun_outsourcer_owner = '$tryrun_outsourcer_owner', + tryrun_outsourcer_date = '$tryrun_outsourcer_date', + tryrun_outsourcer_date_owner = '$tryrun_outsourcer_date_owner', + estimate_tryrun_start_date = '$estimate_tryrun_start_date', + estimate_tryrun_start_date_owner = '$estimate_tryrun_start_date_owner', + estimate_tryrun_end_date = '$estimate_tryrun_end_date', + estimate_tryrun_end_date_owner = '$estimate_tryrun_end_date_owner', + warehouse_assistant_remark = '$warehouse_assistant_remark', + "; + if (!empty($plan_diagram_file)) + $updatesql .= "plan_diagram_file = '$plan_diagram_file', "; + $updatesql .= " creater = '$creater', create_at = '$create_at' @@ -714,62 +757,6 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") { } } -if ($_SERVER["REQUEST_METHOD"] == "POST") { - if ($_POST['form_name'] == 'update_estimate_install_date_form') { - foreach ($_POST as $k => $v) - $$k = htmlspecialchars(stripslashes(trim($v))); - - $install_outsourcer = $_POST['install_outsourcer']; - $install_outsourcer_owner = $_POST['install_outsourcer_owner']; - $install_outsourcer_date = $_POST['install_outsourcer_date']; - $install_outsourcer_date_owner = $_POST['install_outsourcer_date_owner']; - $estimate_install_start_date = $_POST['estimate_install_start_date']; - $estimate_install_start_date_owner = $_POST['estimate_install_start_date_owner']; - $estimate_install_end_date = $_POST['estimate_install_end_date']; - $estimate_install_end_date_owner = $_POST['estimate_install_end_date_owner']; - $tryrun_outsourcer = $_POST['tryrun_outsourcer']; - $tryrun_outsourcer_owner = $_POST['tryrun_outsourcer_owner']; - $tryrun_outsourcer_date = $_POST['tryrun_outsourcer_date']; - $tryrun_outsourcer_date_owner = $_POST['tryrun_outsourcer_date_owner']; - $estimate_tryrun_start_date = $_POST['estimate_tryrun_start_date']; - $estimate_tryrun_start_date_owner = $_POST['estimate_tryrun_start_date_owner']; - $estimate_tryrun_end_date = $_POST['estimate_tryrun_end_date']; - $estimate_tryrun_end_date_owner = $_POST['estimate_tryrun_end_date_owner']; - $warehouse_assistant_remark = $_POST['warehouse_assistant_remark']; - - $updatesql = " - UPDATE wipwholestatus - SET - install_outsourcer = '$install_outsourcer', - install_outsourcer_owner = '$install_outsourcer_owner', - install_outsourcer_date = '$install_outsourcer_date', - install_outsourcer_date_owner = '$install_outsourcer_date_owner', - estimate_install_start_date = '$estimate_install_start_date', - estimate_install_start_date_owner = '$estimate_install_start_date_owner', - estimate_install_end_date = '$estimate_install_end_date', - estimate_install_end_date_owner = '$estimate_install_end_date_owner', - tryrun_outsourcer = '$tryrun_outsourcer', - tryrun_outsourcer_owner = '$tryrun_outsourcer_owner', - tryrun_outsourcer_date = '$tryrun_outsourcer_date', - tryrun_outsourcer_date_owner = '$tryrun_outsourcer_date_owner', - estimate_tryrun_start_date = '$estimate_tryrun_start_date', - estimate_tryrun_start_date_owner = '$estimate_tryrun_start_date_owner', - estimate_tryrun_end_date = '$estimate_tryrun_end_date', - estimate_tryrun_end_date_owner = '$estimate_tryrun_end_date_owner', - warehouse_assistant_remark = '$warehouse_assistant_remark' - WHERE id = '$id' - "; - // echo $updatesql; - // exit; - mysqli_query($link, $updatesql); - - echo ""; - } -} - if ($_SERVER["REQUEST_METHOD"] == "POST") { if ($_POST['form_name'] == 'update_install_date_form') { foreach ($_POST as $k => $v) diff --git a/wms/wipwhole-rec-invoice-edit.php b/wms/wipwhole-rec-invoice-edit.php index 6fba7b73..8f6080b8 100644 --- a/wms/wipwhole-rec-invoice-edit.php +++ b/wms/wipwhole-rec-invoice-edit.php @@ -1,5 +1,5 @@ options 開門方式 @@ -264,6 +264,7 @@ include "wipwhole-rec-invoice-edit-submit.php";
附件 | > @@ -834,162 +835,6 @@ include "wipwhole-rec-invoice-edit-submit.php"; ?> | -||||
- 預計安裝及試車日程
- - (工務助理項目) - |
- |||||
安裝發包廠商 | -- /> - | -確認人 | -- - | -||
安裝發包日 | -
-
- >
-
-
-
-
- |
- 確認人 | -- - | -||
預計安裝開工日 | -
-
- >
-
-
-
-
- |
- 確認人 | -- - | -||
預計安裝完工日 | -
-
- >
-
-
-
-
- |
- 確認人 | -- - | -||
試車發包廠商 | -- /> - | -確認人 | -- - | -||
試車發包日 | -
-
- >
-
-
-
-
- |
- 確認人 | -- - | -||
預計試車開工日 | -
-
- >
-
-
-
-
- |
- 確認人 | -- - | -||
預計試車完工日 | -
-
- >
-
-
-
-
- |
- 確認人 | -- - | -||
備註 | -- - | -||||
- 存檔"; - ?> - | -|||||
實際安裝及試車日程 @@ -1350,7 +1195,7 @@ include "wipwhole-rec-invoice-edit-submit.php"; | |||||
實際出貨日(到工地) | - > + > | @@ -1439,6 +1284,174 @@ include "wipwhole-rec-invoice-edit-submit.php"; |
+ 預計安裝及試車日程
+ + (工務助理項目) + |
+ |||||
安裝發包廠商 | ++ /> + | +確認人 | ++ + | +||
安裝發包日 | +
+
+ >
+
+
+
+
+ |
+ 確認人 | ++ + | +||
預計安裝開工日 | +
+
+ >
+
+
+
+
+ |
+ 確認人 | ++ + | +||
預計安裝完工日 | +
+
+ >
+
+
+
+
+ |
+ 確認人 | ++ + | +||
試車發包廠商 | ++ /> + | +確認人 | ++ + | +||
試車發包日 | +
+
+ >
+
+
+
+
+ |
+ 確認人 | ++ + | +||
預計試車開工日 | +
+
+ >
+
+
+
+
+ |
+ 確認人 | ++ + | +||
預計試車完工日 | +
+
+ >
+
+
+
+
+ |
+ 確認人 | ++ + | +||
備註 | ++ + | +||||
計劃圖附件 | ++ > + 下載附件" : ""; + ?> + | +||||
+ 存檔"; + ?> + | +