コード例 #1
0
        public STR_MSG Service(STR_MSG oMsg)
        {
            if (this.SecuriteAccesPlateforme(oMsg.P_security)) // si la clé de sécurité est OK
            {

                if (oMsg.Invoke == "Connexion")
                {
                    CL_PROCESS_CLIENT process = new CL_PROCESS_CLIENT();
                    this.oMsg = process.Connexion(oMsg);
                }
                else if (oMsg.Invoke == "PrevisionCA")
                {
                    CL_PROCESS_PHARMACIEN process = new CL_PROCESS_PHARMACIEN();
                    this.oMsg = process.Calcul(oMsg);
                }

            }

            return this.oMsg;
        }
コード例 #2
0
        public void Service(object obj)
        {
            STR_MSG oMsg = (STR_MSG)obj;

            if (this.SecuriteAccesPlateforme(oMsg.P_security)) // si la clé de sécurité est OK
            {

                if (oMsg.Invoke == "Connexion")
                {
                    CL_PROCESS_CLIENT process = new CL_PROCESS_CLIENT();
                    this.iMsg = process.Connexion(oMsg);
                }
                else if (oMsg.Invoke == "createUser")
                {
                    CL_PROCESS_CLIENT process = new CL_PROCESS_CLIENT();
                    this.iMsg = process.CreerUtilisateur(oMsg);
                }

                else if (oMsg.Invoke == "PrevisionCA")
                {
                    CL_PROCESS_PHARMACIEN process = new CL_PROCESS_PHARMACIEN();
                    this.iMsg = process.Calcul(oMsg);
                }

                else if (oMsg.Invoke == "ListerMedics")
                {
                    CL_PROCESS_CLIENT process = new CL_PROCESS_CLIENT();
                    this.iMsg = process.ListerMedics(oMsg);
                }
                else if (oMsg.Invoke == "CommandeClient")
                {
                    CL_PROCESS_CLIENT process = new CL_PROCESS_CLIENT();
                    this.iMsg = process.PasserCommande(oMsg);
                }

            }
        }