コード例 #1
0
        private void OcultarColumnas()
        {
            if (DataListado.Rows.Count != 0)
            {
                DataListado.Columns["Eliminar"].Visible       = false;
                DataListado.Columns["cod_cuentasie"].Visible  = true;
                DataListado.Columns["desc_cuentasie"].Visible = true;
                DataListado.Columns["campo1"].Visible         = false;
                DataListado.Columns["campo2"].Visible         = false;
                DataListado.Columns["campo3"].Visible         = false;
                DataListado.Columns["campo4"].Visible         = false;
                DataListado.Columns["campo5"].Visible         = false;
                DataListado.Columns["campo6"].Visible         = false;
                DataListado.Columns["cod_cuentasie"].Width    = 100;
                DataListado.Columns["desc_cuentasie"].Width   = 350;
                LbInexistente.Visible = false;

                LbTotalReg.Text = Convert.ToString(DataListado.Rows.Count);
            }
            else
            {
                FCuentasIE mForm = FCuentasIE.GetForm();
                mForm.Listar();
                Close();
            }

            DataListado.Columns["cod_cuentasie"].HeaderText     = "Codigo";
            DataListado.Columns["desc_cuentasie"].HeaderText    = "Descripcion";
            DataListado.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
        }
コード例 #2
0
        private void TSCuentasIE_Click(object sender, EventArgs e)
        {
            FCuentasIE fCuentasIE = FCuentasIE.GetForm();

            fCuentasIE.MdiParent = this;
            fCuentasIE.Show();
        }
コード例 #3
0
ファイル: FCuentasIE.cs プロジェクト: salamandrait/SyepOneV20
 public static FCuentasIE GetForm()
 {
     if (_Instancia == null)
     {
         _Instancia = new FCuentasIE();
     }
     return(_Instancia);
 }
コード例 #4
0
 private void DataListado_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (TxtFlag == 0.ToString())
     {
         FCuentasIE mForm = FCuentasIE.GetForm();
         string     cod_cuentasie, desc_cuentasie, campo1, campo2, campo3, campo4, campo5, campo6;
         cod_cuentasie  = Convert.ToString(DataListado.CurrentRow.Cells["cod_cuentasie"].Value);
         desc_cuentasie = Convert.ToString(DataListado.CurrentRow.Cells["desc_cuentasie"].Value);
         campo1         = Convert.ToString(DataListado.CurrentRow.Cells["campo1"].Value);
         campo2         = Convert.ToString(DataListado.CurrentRow.Cells["campo2"].Value);
         campo3         = Convert.ToString(DataListado.CurrentRow.Cells["campo3"].Value);
         campo4         = Convert.ToString(DataListado.CurrentRow.Cells["campo4"].Value);
         campo5         = Convert.ToString(DataListado.CurrentRow.Cells["campo5"].Value);
         campo6         = Convert.ToString(DataListado.CurrentRow.Cells["campo6"].Value);
         mForm.SetCuentasIE(cod_cuentasie, desc_cuentasie, campo1, campo2, campo3, campo4, campo5, campo6);
         mForm.TxtEditar.Text = "Listar";
     }
     if (TxtFlag == "MovBanco")
     {
         FMovBanco mForm = FMovBanco.GetForm();
         string    cod_cuentasie, desc_cuentasie;
         cod_cuentasie  = Convert.ToString(DataListado.CurrentRow.Cells["cod_cuentasie"].Value);
         desc_cuentasie = Convert.ToString(DataListado.CurrentRow.Cells["desc_cuentasie"].Value);
         mForm.SetCuentasIE(cod_cuentasie, desc_cuentasie);
     }
     if (TxtFlag == "MovCaja")
     {
         FMovCaja mForm = FMovCaja.GetForm();
         string   cod_cuentasie, desc_cuentasie;
         cod_cuentasie  = Convert.ToString(DataListado.CurrentRow.Cells["cod_cuentasie"].Value);
         desc_cuentasie = Convert.ToString(DataListado.CurrentRow.Cells["desc_cuentasie"].Value);
         mForm.SetCuentasIE(cod_cuentasie, desc_cuentasie);
     }
     if (TxtFlag == "Prov")
     {
         FProveedor mForm = FProveedor.GetForm();
         string     cod_cuentasie, desc_cuentasie;
         cod_cuentasie  = Convert.ToString(DataListado.CurrentRow.Cells["cod_cuentasie"].Value);
         desc_cuentasie = Convert.ToString(DataListado.CurrentRow.Cells["desc_cuentasie"].Value);
         mForm.SetCuentasIE(cod_cuentasie, desc_cuentasie);
     }
     Close();
 }
コード例 #5
0
ファイル: FCuentasIE.cs プロジェクト: salamandrait/SyepOneV20
 private void FCuentasIE_FormClosed(object sender, FormClosedEventArgs e)
 {
     _Instancia = null;
 }