示例#1
0
        private void CargarRepresentantes(string IdTipo_tt)
        {
            try
            {
                SolicitudRepresentanteBE oEntity = new SolicitudRepresentanteBE();
                oEntity.OPCION      = 1;
                oEntity.USUARIO     = General.General.GetCodigoUsuario;
                oEntity.IdSolicitud = txtIdSolicitud.Text;
                oEntity.IdTipo_tt   = IdTipo_tt;
                DataSet ds = new SolicitudRepresentanteBL().ProcesarSolicitudRepresentante(oEntity);

                if (IdTipo_tt.Equals("00321")) // Socio
                {
                    dgvRepresentantesSocio.DataSource = ds.Tables[0];
                }
                else
                {
                    dgvRepresentantesPagador.DataSource = ds.Tables[0];
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        private void LlenarCombos()
        {
            try
            {
                String      Table_Id    = "00323"; // Facultades
                TableBaseBE TableBaseBE = new TableBaseBE()
                {
                    OPCION          = 1,
                    USUARIO         = General.General.GetCodigoUsuario,
                    Table_Parent_Id = Table_Id
                };
                General.General.LlenarCombobox(cboIdFacultad_tt, "Table_Name", "Table_Id", new TableBaseBL().ProcesarTableBase(TableBaseBE).Tables[0]);

                TableBaseBE.Table_Parent_Id = "00035"; //Moneda
                General.General.LlenarCombobox(cboIdMoneda_tt, "Table_Name", "Table_Id", new TableBaseBL().ProcesarTableBase(TableBaseBE).Tables[0]);

                SolicitudRepresentanteBE oEntity = new SolicitudRepresentanteBE();
                oEntity.OPCION      = 1;
                oEntity.USUARIO     = General.General.GetCodigoUsuario;
                oEntity.IdSolicitud = Codigo;
                oEntity.IdTipo_tt   = _IdTipo_tt;
                DataSet ds  = new SolicitudRepresentanteBL().ProcesarSolicitudRepresentante(oEntity);
                DataSet ds1 = new SolicitudRepresentanteBL().ProcesarSolicitudRepresentante(oEntity);

                General.General.LlenarCombobox(cboIdRepresentanteF1, "vNombreRepresentante", "IdRepresentante", ds.Tables[0]);
                General.General.LlenarCombobox(cboIdRepresentanteF2, "vNombreRepresentante", "IdRepresentante", ds1.Tables[0]);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
示例#3
0
        private void CargarDatos()
        {
            try
            {
                SolicitudRepresentanteBE oEntity = new SolicitudRepresentanteBE();
                oEntity.OPCION          = 1;
                oEntity.IdSolicitud     = Codigo;
                oEntity.IdTipo_tt       = _IdTipo_tt;
                oEntity.IdRepresentante = _IdRepresentante;
                DataSet ds = new SolicitudRepresentanteBL().ProcesarSolicitudRepresentante(oEntity);

                if (ds.Tables[0].Rows.Count > 0)
                {
                    txtIdRepresentante.Text             = ds.Tables[0].Rows[0]["IdRepresentante"].ToString();
                    txtvNombreRepresentante.Text        = ds.Tables[0].Rows[0]["vNombreRepresentante"].ToString();
                    cboIdCargo_tt.SelectedValue         = ds.Tables[0].Rows[0]["IdCargo_tt"].ToString();
                    cboIdTipoDocumento_tt.SelectedValue = ds.Tables[0].Rows[0]["IdTipoDocumento_tt"].ToString();
                    txtvNroDocumento.Text             = ds.Tables[0].Rows[0]["vNroDocumento"].ToString();
                    cboIdEstadoCivil_tt.SelectedValue = ds.Tables[0].Rows[0]["IdEstadoCivil_tt"].ToString();
                    txtvObjetoSocial.Text             = ds.Tables[0].Rows[0]["vObjetoSocial"].ToString();
                    txtvDomicilio.Text = ds.Tables[0].Rows[0]["vDomicilio"].ToString();
                    cboIdTipoDocumentoApoderado_tt.SelectedValue = ds.Tables[0].Rows[0]["IdTipoDocumentoApoderado_tt"].ToString();
                    txtvNroDocApoderado.Text                      = ds.Tables[0].Rows[0]["vNroDocApoderado"].ToString();
                    txtvNombreApoderado.Text                      = ds.Tables[0].Rows[0]["vNombreApoderado"].ToString();
                    txtvDomicilioApoderado.Text                   = ds.Tables[0].Rows[0]["vDomicilioApoderado"].ToString();
                    cboIdCargoApoderado_tt.SelectedValue          = ds.Tables[0].Rows[0]["IdCargoApoderado_tt"].ToString();
                    cboIdTipoDocumentoApoderado1_tt.SelectedValue = ds.Tables[0].Rows[0]["IdTipoDocumentoApoderado1_tt"].ToString();
                    txtvNroDocApoderado1.Text                     = ds.Tables[0].Rows[0]["vNroDocApoderado1"].ToString();
                    txtvNombreApoderado1.Text                     = ds.Tables[0].Rows[0]["vNombreApoderado1"].ToString();
                    txtvDomicilioApoderado1.Text                  = ds.Tables[0].Rows[0]["vDomicilioApoderado1"].ToString();
                    cboIdCargoApoderado1_tt.SelectedValue         = ds.Tables[0].Rows[0]["IdCargoApoderado1_tt"].ToString();
                    cboIdTipoDocumentoConyuge_tt.SelectedValue    = ds.Tables[0].Rows[0]["IdTipoDocumentoConyuge_tt"].ToString();
                    txtvNroDocConguge.Text    = ds.Tables[0].Rows[0]["vNroDocConguge"].ToString();
                    txtvNombreConyuge.Text    = ds.Tables[0].Rows[0]["vNombreConyuge"].ToString();
                    txtvDomicilioConyuge.Text = ds.Tables[0].Rows[0]["vDomicilioConyuge"].ToString();

                    //txtvDomicilioApoderado.Text = ds.Tables[0].Rows[0]["vDomicilioApoderado"].ToString();

                    txtvDomicilio.Text     = ds.Tables[0].Rows[0]["vDomicilio"].ToString();
                    dtVigencia.Value       = string.IsNullOrEmpty(ds.Tables[0].Rows[0]["dtVigencia"].ToString()) ? DateTime.MinValue : DateTime.Parse(ds.Tables[0].Rows[0]["dtVigencia"].ToString());
                    chkSinVigencia.Checked = string.IsNullOrEmpty(ds.Tables[0].Rows[0]["dtVigencia"].ToString()) ? true : false;
                    txtvFirmaAdjunta.Text  = ds.Tables[0].Rows[0]["vFirmaAdjunta"].ToString();
                    txtvFirmaAdjunta1.Text = ds.Tables[0].Rows[0]["vFirmaAdjunta1"].ToString();
                    txtvFirmaAdjunta2.Text = ds.Tables[0].Rows[0]["vFirmaAdjunta2"].ToString();
                    txtvObservacion.Text   = ds.Tables[0].Rows[0]["vObservacion"].ToString();

                    if (!string.IsNullOrEmpty(txtvFirmaAdjunta.Text))
                    {
                        string filepath = ConfigurationManager.AppSettings["RutaImageFisical"].ToString() + "//LegalSistemas//" + _NroIdentidadEntidad + "//Firmas//";
                        pictureBox1.Image = Image.FromFile(filepath + txtvFirmaAdjunta.Text.Trim());
                    }

                    if (!string.IsNullOrEmpty(txtvFirmaAdjunta1.Text))
                    {
                        string filepath = ConfigurationManager.AppSettings["RutaImageFisical"].ToString() + "//LegalSistemas//" + _NroIdentidadEntidad + "//Firmas//";
                        pictureBox2.Image = Image.FromFile(filepath + txtvFirmaAdjunta1.Text.Trim());
                    }

                    if (!string.IsNullOrEmpty(txtvFirmaAdjunta2.Text))
                    {
                        string filepath = ConfigurationManager.AppSettings["RutaImageFisical"].ToString() + "//LegalSistemas//" + _NroIdentidadEntidad + "//Firmas//";
                        pictureBox3.Image = Image.FromFile(filepath + txtvFirmaAdjunta2.Text.Trim());
                    }
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }