Exemplo n.º 1
0
        /// <summary>
        /// Crea una solicitud. No establece IsApproved = true
        /// </summary>
        /// <param name="registrationRequest"></param>
        public static void CreateRegistrationRequest(RegistrationRequest registrationRequest)
        {
            using (Health.Entities.HealthLinQDataContext dc = new Health.Entities.HealthLinQDataContext(Common.CnnString))
            {
            
                registrationRequest.RequetsTime = System.DateTime.Now;

                dc.RegistrationRequests.InsertOnSubmit(registrationRequest);
                dc.SubmitChanges();
                
            }
        }
Exemplo n.º 2
0
 partial void DeleteRegistrationRequest(RegistrationRequest instance);
Exemplo n.º 3
0
 partial void InsertRegistrationRequest(RegistrationRequest instance);
Exemplo n.º 4
0
 partial void UpdateRegistrationRequest(RegistrationRequest instance);
Exemplo n.º 5
0
        /// <summary>
        /// Metodo que solo genera una solicitud de registro .- Esta solicitud debe ser aprovada despues .-
        /// </summary>
        /// <param name="username"></param>
        /// <param name="nombre"></param>
        /// <param name="apellido"></param>
        /// <param name="nroDocumento"></param>
        /// <param name="matricula"></param>
        /// <param name="password"></param>
        /// <param name="email"></param>
        /// <param name="passwordQuestion"></param>
        /// <param name="passwordAnswer"></param>
        public void RegistrationRequest(RegistrationRequest registrationRequest)
        {
            var Profesional_FullView = ProfesionalesDAC.Get_ByParams(registrationRequest.NroDocumento, registrationRequest.Matricula);
            if (Profesional_FullView != null)
                throw new Fwk.Exceptions.TechnicalException(
               string.Format("Ya existe registrado un profecional con Nro Documento: {0} .-",
               registrationRequest.NroDocumento));

            string registrationCode = Common.getMd5Hash(string.Concat(registrationRequest.UserName, registrationRequest.mail)                );

            //RegistrationRequest registrationRequest = new RegistrationRequest();
            //registrationRequest.Nombre = txtNombre.Text.Trim();
            //registrationRequest.Apellido = txtApellido.Text.Trim();
            //registrationRequest.UserName = txtUserName.Text;
            //registrationRequest.NroDocumento = txtNrodocumento.Text.Trim();
            //registrationRequest.Matricula = txtMatricula.Text.Trim();
            //registrationRequest.mail = txtEmail.Text.Trim();
            registrationRequest.RegistrationCode = registrationCode;

            WebRegistrationDAC.CreateRegistrationRequest(registrationRequest);
        }