recette2
cherif 2024-06-04 22:44:00 +02:00
parent b5d47bf4c6
commit a4b31aa161
6 changed files with 198 additions and 40 deletions

3
.env
View File

@ -8,4 +8,5 @@ REACT_APP_API_URL=http://localhost:5001/
REACT_APP_BASE_URL=http://localhost:3009/recherche-formation
REACT_APP_FRONT_URL=http://localhost:3009/
REACT_APP_ENV=DEV
GENERATE_SOURCEMAP=false
GENERATE_SOURCEMAP=false
REACT_APP_MAINTENANCE=1

View File

@ -52,6 +52,8 @@ import UpdateAttendeeList from "./pages/updateattendeelist";
import AutomaticQuotation from "./pages/automaticquotation";
import Maintenance from "./pages/maintenance_page"
function App() {
const [screenSizeh, getDimension] = useState({
@ -66,13 +68,18 @@ function App() {
API REC = {process.env.REACT_APP_API_URL_REC}<br/>
API URL = {process.env.REACT_APP_API_URL}<br/>
*/}
<div className="main_haut">
<BrowserRouter>
<scrollToTop />
<Switch>
<Route path="/" exact component={Recherche_new_v2} />
<Route path="/acceuil" exact component={Acceuil} />
<Route path="/maintenance" exact component={Maintenance} />
<Route path="/contact" exact component={Contact} />
<Route path="/mysy-user-account" exact component={Account} />
<Route path="/create_account" exact component={CreateAccount} />
@ -135,6 +142,7 @@ function App() {
</Switch>
</BrowserRouter>
</div>
</div>

View File

@ -131,7 +131,7 @@ const Apprenant = (props) => {
<div className="gest_content">
{' '}
En confirmant cette opération, la session de formation sera <i><font color="red"> définitivement supprimée</font></i>. <br />
En confirmant cette opération, l'apprenant sera <i><font color="red"> définitivement supprimé</font></i>. <br />
</div>
<div className="gest_actions">
@ -1764,6 +1764,7 @@ const Apprenant = (props) => {
if (String(res.data) === String("false")) {
alert("Impossible d'exporter les apprenants (2) ");
} else {
setSelectionModel([]);
fileDownload(res.data, nom_fichier_cmd)
}
@ -2998,6 +2999,8 @@ const Apprenant = (props) => {
setDelete_Apprenant_Data_api("true");
setDelete_Apprenant_Data_result(res.data.message);
setSelectionModel([]);
setadd_One_Apprenant('');
setdisplay_detail_apprenant('');
Clear_Detail_Apprenant_Fields();
@ -3054,6 +3057,8 @@ const Apprenant = (props) => {
setDelete_LIST_Apprenant_api("true");
setDelete_LIST_Apprenant_result(res.data.message);
setSelectionModel([]);
setadd_One_Apprenant('');
setdisplay_detail_apprenant('');
Clear_Detail_Apprenant_Fields();
@ -4790,23 +4795,7 @@ const Apprenant = (props) => {
/>
}
/>
{/*<TextField
select
InputLabelProps={{
shrink: true,
}}
inputProps={{ min: "0", max: "1", step: "1" }}
disabled={false}
className="block_en_mass_select"
value={actionmass_ftion_val}
onChange={actionmass_ftion}
>
<MenuItem value="n/a" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Action &nbsp;&nbsp;</MenuItem>
<MenuItem value="supprimer" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Supprimer &nbsp;</MenuItem>
<MenuItem value="inscription" style={{ "paddingLeft": "5px", "textAlign": "left", "width": "100%" }}>Inscrire &nbsp;</MenuItem>
</TextField>*/}
{actionmass_ftion_val && <nav className='block_en_mass_bton_action'>

View File

@ -1034,20 +1034,45 @@ const Partner_Commande = (props) => {
//document.getElementsByName("detail_header_status")[0].value = "";
if (mylocal_order.order_header_status) {
setp_detail_header_statut(mylocal_order.order_header_status);
if (String(mylocal_order.order_header_status) === "0") {
setp_detail_header_statut_label("Brouillon");
if (mylocal_order.order_header_type === "commande") {
if (String(mylocal_order.order_header_status) === "0") {
setp_detail_header_statut_label("Brouillon");
}
else if (String(mylocal_order.order_header_status) === "1") {
setp_detail_header_statut_label("En cours");
}
else if (String(mylocal_order.order_header_status) === "2") {
setp_detail_header_statut_label("Traité");
}
else if (String(mylocal_order.order_header_status) === "3") {
setp_detail_header_statut_label("Facturé");
}
else if (String(mylocal_order.order_header_status) === "-1") {
setp_detail_header_statut_label("Annulé");
}
}
else if (String(mylocal_order.order_header_status) === "1") {
setp_detail_header_statut_label("En cours");
}
else if (String(mylocal_order.order_header_status) === "2") {
setp_detail_header_statut_label("Traité");
}
else if (String(mylocal_order.order_header_status) === "3") {
setp_detail_header_statut_label("Facturé");
}
else if (String(mylocal_order.order_header_status) === "-1") {
setp_detail_header_statut_label("Annulé");
if (mylocal_order.order_header_type === "devis") {
if (String(mylocal_order.order_header_status) === "0") {
setp_detail_header_statut_label("Brouillon");
}
else if (String(mylocal_order.order_header_status) === "1") {
setp_detail_header_statut_label("En cours");
}
else if (String(mylocal_order.order_header_status) === "2") {
setp_detail_header_statut_label("Fermé");
}
else if (String(mylocal_order.order_header_status) === "3") {
setp_detail_header_statut_label("Gagné");
}
else if (String(mylocal_order.order_header_status) === "4") {
setp_detail_header_statut_label("Perdu");
}
else if (String(mylocal_order.order_header_status) === "-1") {
setp_detail_header_statut_label("Annulé");
}
}
}
@ -1068,6 +1093,13 @@ const Partner_Commande = (props) => {
setp_detail_header_devis_date_envoi("");
}
if (mylocal_order.related_order_internal_ref) {
setp_detail_header_order_header_ref_interne(mylocal_order.related_order_internal_ref);
console.log(" ### mylocal_order.related_order_internal_ref = ", mylocal_order.related_order_internal_ref);
} else {
setp_detail_header_order_header_ref_interne("");
}
//document.getElementsByName("detail_header_ref_interne")[0].value = "";
if (mylocal_order.order_header_ref_interne) {
setp_detail_header_ref_interne(mylocal_order.order_header_ref_interne);
@ -1468,7 +1500,7 @@ const Partner_Commande = (props) => {
if (new_data2.length > 0) {
setNew_Getall_TrainingSession_result(new_data2);
console.log(" ### setNew_Getall_TrainingSession_result = ", new_data2);
//console.log(" ### setNew_Getall_TrainingSession_result = ", new_data2);
}
@ -1854,6 +1886,9 @@ const Partner_Commande = (props) => {
const [p_detail_header_client_id, setp_detail_header_client_id] = useState();
const [p_detail_header_statut_label, setp_detail_header_statut_label] = useState();
const [p_detail_header_order_header_ref_interne, setp_detail_header_order_header_ref_interne] = useState();
const [p_detail_header_date_cmd_val, setp_detail_header_date_cmd_val] = useState(new Date().toLocaleDateString('fr-FR'));
const [p_detail_header_date_expiration_val, setp_detail_header_date_expiration_val] = useState(date_today_90j.toLocaleDateString('fr-FR'));
const [p_detail_header_fact_adr, setp_detail_header_fact_adr] = useState();
@ -3923,8 +3958,8 @@ const Partner_Commande = (props) => {
{New_GetCurrentPartnerClass_result && New_GetCurrentPartnerClass_result.length > 0 &&
(p_add_line_item || String(p_add_line_item) === "") && String(p_detail_header_statut_label).toLowerCase() !== "facturé" && <div className="session_caract_Dialog" > Formation
<Autocomplete
disablePortal
name="ref_article"
@ -3963,7 +3998,7 @@ const Partner_Commande = (props) => {
{(p_add_line_item || String(p_add_line_item) === "") && String(p_detail_header_statut_label).toLowerCase() !== "facturé"
&& New_Getall_TrainingSession_result && New_Getall_TrainingSession_result.length > 0 && <div className="session_caract_Dialog" > Session
<Autocomplete
disablePortal
@ -4281,7 +4316,7 @@ const Partner_Commande = (props) => {
</div>
</DialogContent>
@ -5122,7 +5157,15 @@ const Partner_Commande = (props) => {
/>
</div>
{String(order_data_edit_mode) !== "1" && <div className="session_caract"> Statut<br />
{String(order_data_edit_mode) !== "1" && <div className="session_caract"> Statut
{p_detail_header_order_header_ref_interne && String(p_detail_header_order_header_ref_interne).length > 2 &&
<a data-tooltip-id="ref_converted_order_1" data-tooltip-html={" La réf de la commande : " + `${p_detail_header_order_header_ref_interne}`}>
&nbsp; <FcInfo />
</a>
}
<br />
<Tooltip className="tooltip_css" id="ref_converted_order_1" style={{ "fontSize": "12px" }} />
<TextField
sx={{ '& legend': { display: 'none' }, '& fieldset': { top: 0 }, }}
required
@ -5140,8 +5183,8 @@ const Partner_Commande = (props) => {
setOrder_data_changed("1");
}
}
/>
</div>}
{String(order_data_edit_mode) === "1" && String(p_detail_header_type) === "commande" && <div className="session_caract"> Statut<br />

Binary file not shown.

After

Width:  |  Height:  |  Size: 486 KiB

View File

@ -0,0 +1,117 @@
import React from "react";
import Navigation from "../components/Navigation";
import bannerimg2 from "./../mysy_img/MYSY-LOGO-BLUE.png";
import maintenance_img from "./../mysy_img/mysy_maintenance_img.png";
import logowhite from "../mysy_img/MYSY-LOGO-WHITE.png";
import { Helmet } from "react-helmet";
import Footer from "../components/Fotter";
import Header from "../components/Header";
const Maintenance_Page = () => {
return (
<div className="notfound">
<div>
<Navigation />
</div>
<Helmet>
<title>MySy Training, Maintenance</title>
<meta name="description" content="Nous sommes une base de données uniquement dediée aux formations et tutoriels" />
<meta name="robots" content="index,follow" />
<meta name="title" content="Trouver des Formations.Acces libre.Qualité top" />
</Helmet>
<div className="header">
<div className="header_div_row2">
<div className="header_div_row_bas">
<div className="header_div_001">
<div className="header_div_002">
<h1 className="header_h1_transparent">Connexion MySy Training Technogy </h1>
<div className="vvv" >
<a href={process.env.REACT_APP_BASE_URL}> <img class="img-responsive header_img_logo22" src={logowhite} alt="MySy Training Technology" /> </a>
</div>
<div className="header_menuPrincipal_left" >
&nbsp;
</div>
</div>
<div className="header_div_003">
<h1 className="header_h1_transparent">Connexion MySy Training Technogy </h1>
<div className="header_menuPrincipal_bton" >
<div style={{ "textAlign": "left" }}>
</div>
</div>
{/* <div className="header_menuPrincipal" onClick={handleBlogMenu}>
Le blog
</div> */}
<div className="header_menuPrincipal"
>
&nbsp;
</div>
</div>
</div>
<div className="header_text_head">
<hr className="header_div_004" />
<font style={{ "color": "#81BC3A", "fontWeight": "bold" }}>Recherche </font> de Formations & Tutoriels
</div>
</div>
</div>
</div>
<div className="div_mobile">
<div className="nom_prenom" style={{ "marginTop": "4rem" }}> Nous revenons dans 5 min ! <br /><br />
<p>
Nous sommes désolés pour le désagrément, mais nous effectuons actuellement des travaux de maintenance. <br />
<br />
</p>
<br />
<p>
- L'équipe MySy Training Technology
</p>
<img src={maintenance_img} className="img_ok" style={{ "maxWidth": '20%' }} />
</div>
</div>
<div className="pieddepage">
<Footer />
</div>
</div>
)
}
export default Maintenance_Page;