Ejemplo n.º 1
0
        private void gestionarTurnoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmTurno oFrmTurno = new FrmTurno();

            oFrmTurno.MdiParent = this;
            oFrmTurno.Show();
        }
Ejemplo n.º 2
0
        public FrmPrincipal()
        {
            InitializeComponent();
            this.WindowState     = FormWindowState.Maximized;
            this.ControlBox      = true;
            this.FormBorderStyle = FormBorderStyle.FixedSingle;

            FrmTurno oFrmTurno = new FrmTurno();

            oFrmTurno.MdiParent = this;
            oFrmTurno.Show();
        }
Ejemplo n.º 3
0
        public FrmTurnoCaptura(FrmTurno p_oFrm, int p_oid, int p_come_oid_come, string p_val_desc_come, string p_val_desc_tipo_serv, string p_val_fech)
            : this()
        {
            this.oFrm          = p_oFrm;
            this.oid_turn      = p_oid;
            this.come_oid_come = p_come_oid_come;

            CHelper oCHelper = new CHelper();

            oCHelper.FormatearFormularioMantenimientoAdd(this);
            oCHelper.FormatearDGVMantenimiento(dgv);


            txtComedor.Text      = p_val_desc_come;
            txtTipoServicio.Text = p_val_desc_tipo_serv;
            dtpFecha.Text        = p_val_fech;

            CargarDGV();

            txtIdentificacion.Focus();
        }
Ejemplo n.º 4
0
        /*
         * public FrmTurnoAdd(FrmTurno p_oFrm): this()
         * {
         *  this.oFrm = p_oFrm;
         *  txtOid.Visible = false;
         *
         *  txtOid.ReadOnly = false;
         *  txtDescripcion.ReadOnly = false;
         *
         *  this.mod = "C";
         * }
         */

        public FrmTurnoAdd(FrmTurno p_oFrm, int p_oid, string mod)
            : this()
        {
            this.oFrm = p_oFrm;
            this.oid  = p_oid;
            this.mod  = mod;

            CHelper oCHelper = new CHelper();

            oCHelper.FormatearFormularioMantenimientoAdd(this);

            txtProyecto.Text = Global.des_proy;

            switch (this.mod)
            {
            case "C":

                txtOid.Visible = true;

                txtOid.ReadOnly = true;
                //dtpFecha.ReadOnly = false;

                ComedorAtencionBR oBRComedorAtencion = new ComedorAtencionBR();

                DataTable dt = new DataTable();

                dt = oBRComedorAtencion.ObtenerListadoPorProyecto(Global.oid_proy);
                cboComedor.DataSource    = dt;
                cboComedor.DisplayMember = "Descripcion";


                break;

            case "U":

                txtOid.Visible = true;

                txtOid.ReadOnly = true;
                //dtpFecha.ReadOnly = false;

                ClienteBE oBE = new ClienteBE();
                ClienteBR oBR = new ClienteBR();

                TipoDocumentoIdentidadBE oBETipoDocumento = new TipoDocumentoIdentidadBE();
                TipoDocumentoIdentidadBR oBRTipoDocumento = new TipoDocumentoIdentidadBR();

                oBE = oBR.obtenerClienteByOid(oid);

                /*
                 * txtOid.Text = oBE.oid_clie.ToString();
                 * txtDenoSoci.Text = oBE.val_deno_soci;
                 * txtNumDocuIden.Text = oBE.val_nume_docu_iden;
                 * txtNom1.Text = oBE.val_nom1;
                 * txtNom2.Text = oBE.val_nom2;
                 * txtApe1.Text = oBE.val_ape1;
                 * txtApe2.Text = oBE.val_ape2;
                 *
                 * oBETipoDocumento = oBRTipoDocumento.obtenerTipoDocumentoIdentidadByCod(oBE.tipo_cod_tipo_docu_iden);
                 * cboTipoDocuIden.SelectedIndex = cboTipoDocuIden.FindStringExact(oBETipoDocumento.val_desc);
                 */
                break;


            case "R":

                txtOid.Visible = true;

                txtOid.ReadOnly = true;
                //txtDescripcion.ReadOnly = true;
                break;
            }
        }