checkAdmin("index.php"); //echo "[$mode]";exit(); /* for($i=0; $i"; } } else echo "[$key][$value]
"; //print_r($_POST); } exit; */ if($c_uid == "") { echo 0; exit(); } if ($_SESSION['ss_LEVEL'] == 10) { echo -1; exit(); } $c_comment_riSTR = str_replace("\\", "", trim($c_comment_ri)); $c_locationSTR = str_replace("\\", "", trim($c_location)); $qry_customer = "UPDATE tbl_customer SET c_comment_ri = '".addslashes($c_comment_riSTR)."', c_location = '".addslashes($c_locationSTR)."', c_is_transfer = 'N' WHERE c_uid = '$c_uid' "; //echo "[$qry_customer]
"; $jdb->nQuery($qry_customer, "update error"); // ==================== // Integration to ERP // ==================== $erp = new ErpApi(); try { $columns = array(); $values = array(); $columns[] = "c_accountno"; $columns[] = "c_comment_ri"; $columns[] = "c_location"; $values[] = $c_accountno; $values[] = addslashes($c_comment_riSTR); $values[] = addslashes($c_locationSTR); $lguserid = $_SESSION['ss_UID']; $erp->updateCustomerFromMis($columns, $values, $lguserid); // 성공 시 c_is_transfer='Y' $jdb->uQuery("tbl_customer", ["c_is_transfer"], ["Y"], " WHERE c_uid = ".(int)$_POST['id']); } catch (Exception $e) { // 여기서는 아무것도 안함. } addLog ("add", "SHORT INFO", "UPDATE", $lguserid, $qry_customer, $c_uid); echo 1; exit(); ?>