コード例 #1
0
        private Activacion clienteLocalizado(Activacion activacion)
        {
            activacion.cod_plan_mig = plan;
            activacion.preg_3       = hdf_approvePlan.Value;
            switch (hdf_approvePlan.Value)
            {
            case "Si":
                activacion = clienteApruebaPlan(activacion);
                break;

            case "No":
                activacion.Estatus = hdf_approvePlanSelect.Value;
                statusDn           = "No Activacion";
                activacion.Motivos_No_Aceptacion = hdf_approvePlanSelect.Value;
                break;

            case "Llamar despues":
                activacion.Estatus               = hdf_approvePlan.Value;
                activacion.preg_3_Dia            = hdf_preg_2_Dia.Value;
                activacion.preg_3_Hora           = hdf_preg_2_hora.Value;
                activacion.Motivos_No_Aceptacion = hdf_approvePlan.Value;
                break;
            }
            return(activacion);
        }
コード例 #2
0
        private Activacion clienteApruebaPlan(Activacion activacion)
        {
            activacion.Nombre_Completo  = hdf_NombreCompleto.Value;
            activacion.Fecha_Nacimiento = Convert.ToDateTime(hdf_fech_nac.Value);
            activacion.Sexo             = hdf_ddl_Sexo.Value;
            activacion.Calle            = hdf_txt_Calle.Value;
            activacion.Colonia          = hdf_txt_Colonia.Value;
            activacion.Num_Externo      = hdf_txt_Num_Externo.Value;
            activacion.Num_Interno      = hdf_txt_Num_Interno.Value;
            activacion.CP                    = hdf_txt_CP.Value;
            activacion.Ciudad                = hdf_txt_Ciudad.Value;
            activacion.Correo_Elctronico     = hdf_txt_Mail.Value;
            activacion.RFC                   = hdf_txt_RFC.Value;
            activacion.Equipo                = hdf_ddl_equipo.Value;
            activacion.Municipio             = hdf_txt_Municipio.Value;
            activacion.TelefonoFijo          = hdf_txt_Tel_Fijo.Value;
            activacion.TelefonoMovil         = hdf_txt_Tel_Movil.Value;
            activacion.Se_realizaron_cambios = hdf_cambio.Value;
            activacion.preg_5                = activacion.Se_realizaron_cambios != "" ? "Si" : "No";
            switch (hdf_customerType.Value)
            {
            case "Moroso":
                activacion.preg_6  = hdf_customerType.Value;
                activacion.Estatus = "Cliente Moroso";
                //statusDn = "No Activacion";
                activacion.Motivos_No_Aceptacion = activacion.Estatus;
                break;

            case "Vetado":
                activacion.preg_6  = hdf_customerType.Value;
                activacion.Estatus = "Cliente Vetado";
                statusDn           = "No Activacion";
                activacion.Motivos_No_Aceptacion = activacion.Estatus;
                break;

            case "Cliente cumple requisitos":
                activacion.preg_6  = hdf_customerType.Value;
                activacion.preg_7  = hdf_tipoActivacion.Value;
                activacion.Estatus = hdf_estadoMigration.Value;
                statusDn           = "Primera Factura";
                break;
            }

            return(activacion);
        }
コード例 #3
0
        protected void submitRecord(object sender, EventArgs e)
        {
            Helper     help       = new Helper();
            Activacion activacion = new Activacion();

            activacion.dn             = Convert.ToDecimal(hdf_phone.Value.Replace(" ", ""));
            activacion.usuario        = Session["mysession"].ToString();
            activacion.Fecha_Encuesta = DateTime.Now;
            activacion.preg_1         = hdf_q1.Value;
            switch (hdf_q1.Value)
            {
            case "Si":
                activacion = clienteLocalizado(activacion);
                break;

            case "No":
                activacion.Estatus = hdf_reasonq1.Value;
                activacion.Motivos_No_Aceptacion = hdf_reasonq1.Value;
                break;
            }

            help.addActivacion(activacion);
            help.updateDn(statusDn, activacion.dn.ToString());
        }