Example #1
0
 private void Frm_Constantes_Activated(object sender, EventArgs e)
 {
     CONTROLES._Ctrl_Buscar._frm_Formulario = this;
     CONTROLES._Ctrl_Buscar._Tb_Tab         = _Tb_Tab;
     //-------------------------------------------------------
     _Ctrl_Controles[0] = _Txt_cconst_id;
     _Ctrl_Controles[1] = _Txt_cnombre;
     _Ctrl_Controles[2] = _Txt_valor;
     // CONTROLES._Ctrl_Buscar._Er_Control_Error = _Er_Error;
     CONTROLES._Ctrl_Buscar._Bl_Especial        = true;
     CONTROLES._Ctrl_Buscar._txt_ExistForm.Text = "";
     CONTROLES._Ctrl_Buscar._txt_ExistForm.Text = "Abierto";
     CONTROLES._Ctrl_Buscar._Txt_BotonCtrl.Text = "";
     if (_Str_MyProceso == "M")
     {
         CONTROLES._Ctrl_Buscar._Bl_Modifi = true;
     }
     else
     {
         CONTROLES._Ctrl_Buscar._Bl_Modifi = false;
         if (_Str_MyProceso == "A")
         {
             _Txt_cconst_id.Focus();
         }
     }
     CLASES._Cls_Varios_Metodos _Cls_CL = new CLASES._Cls_Varios_Metodos(_Ctrl_Controles);
     _Cls_CL._Mtd_Foco();
     _Mtd_BotonesMenu();
 }
Example #2
0
 private void Frm_ISLR_Activated(object sender, EventArgs e)
 {
     CONTROLES._Ctrl_Buscar._frm_Formulario = this;
     CONTROLES._Ctrl_Buscar._Tb_Tab         = _Tb_Tab;
     //-------------------------------------------------------
     _Ctrl_Controles[0] = _Txt_ISLR;
     _Ctrl_Controles[1] = _Txt_Concepto;
     _Ctrl_Controles[2] = _Txt_Pagador;
     _Ctrl_Controles[3] = _Cb_CatProve;
     _Ctrl_Controles[4] = _Txt_PNR;
     _Ctrl_Controles[5] = _Txt_PNNR;
     _Ctrl_Controles[6] = _Txt_PJD;
     _Ctrl_Controles[7] = _Txt_PJND;
     CONTROLES._Ctrl_Buscar._Bl_Especial        = true;
     CONTROLES._Ctrl_Buscar._txt_ExistForm.Text = "";
     CONTROLES._Ctrl_Buscar._txt_ExistForm.Text = "Abierto";
     CONTROLES._Ctrl_Buscar._Txt_BotonCtrl.Text = "";
     if (_Str_MyProceso == "M")
     {
         CONTROLES._Ctrl_Buscar._Bl_Modifi = true;
     }
     else
     {
         CONTROLES._Ctrl_Buscar._Bl_Modifi = false;
         if (_Str_MyProceso == "A")
         {
             _Txt_Concepto.Focus();
         }
     }
     CLASES._Cls_Varios_Metodos _Cls_CL = new CLASES._Cls_Varios_Metodos(_Ctrl_Controles);
     _Cls_CL._Mtd_Foco();
     _Mtd_BotonesMenu();
 }
 private void Frm_ConsolidaObligaciones_Activated(object sender, EventArgs e)
 {
     _Ctrl_Controles[0] = _Cmb_TipoProv;
     _Ctrl_Controles[1] = _Cmb_CategProv;
     _Ctrl_Controles[2] = _Cmb_Proveedor;
     CLASES._Cls_Varios_Metodos _Cls_CL = new CLASES._Cls_Varios_Metodos(_Ctrl_Controles);
     _Cls_CL._Mtd_Foco();
     CONTROLES._Ctrl_Buscar._txt_text.Text      = "";
     CONTROLES._Ctrl_Buscar._txt_ExistForm.Text = "Cerrado";
 }
Example #4
0
 private void Frm_COMPROBANTE_Activated(object sender, EventArgs e)
 {
     _Er_Error.Dispose();
     CONTROLES._Ctrl_Buscar._frm_Formulario = this;
     CONTROLES._Ctrl_Buscar._Str_Cadena_Consulta_Formato = "Select ctypcompro as [Código],cname as [Tipo de Documento] from TTCOMPROBAN";
     CONTROLES._Ctrl_Buscar._Str_Cadena_Consulta         = "Select ctypcompro,cname from TTCOMPROBAN";
     CONTROLES._Ctrl_Buscar._Str_Tabla            = "TTCOMPROBAN";
     CONTROLES._Ctrl_Buscar._Str_Where_Vista_Grid = "0=0";
     //-------------------------------------------------------
     _Ctrl_Controles[0] = _Txt_Id;
     _Ctrl_Controles[1] = _Txt_Name;
     //-------------------------------------------------------
     _Str_Campos[0] = "ctypcompro";
     _Str_Campos[1] = "cname";
     //------------------------------------------------------
     _Str_Where[0] = "ctypcompro";
     _Str_Where[1] = "cname";
     //-------------------------------------------------------
     _Str_NoRep[0] = "0";
     //_Str_NoRep[1] = "1";
     //-------------------------------------------------------
     _Int_CodDes[0] = 0;
     _Int_CodDes[1] = 1;
     //-------------------------------------------------------
     _Str_Deshabilitar[0] = "0";
     //-------------------------------------------------------
     CONTROLES._Ctrl_Buscar._Ctrl_Controles            = _Ctrl_Controles;
     CONTROLES._Ctrl_Buscar._Str_Campos                = _Str_Campos;
     CONTROLES._Ctrl_Buscar._Str_Cadena_Consulta_Where = _Str_Where;
     CONTROLES._Ctrl_Buscar._Str_Deshabilitados        = _Str_Deshabilitar;
     CONTROLES._Ctrl_Buscar._Er_Control_Error          = _Er_Error;
     CONTROLES._Ctrl_Buscar._Dg_Datagrid               = _Dg_Grid;
     CONTROLES._Ctrl_Buscar._Tb_Tab = _Tb_Tab;
     CONTROLES._Ctrl_Buscar._Str_NoseDebeRepetir    = _Str_NoRep;
     CONTROLES._Ctrl_Buscar._Int_Codigo_Descripcion = _Int_CodDes;
     //CONTROLES._Ctrl_Buscar._Bl_Modifi = false;
     CONTROLES._Ctrl_Buscar._Int_Foco           = 0;
     CONTROLES._Ctrl_Buscar._Bl_Especial        = false;
     CONTROLES._Ctrl_Buscar._txt_ExistForm.Text = "";
     CONTROLES._Ctrl_Buscar._txt_ExistForm.Text = "Abierto";
     if (_Str_MyProceso == "M")
     {
         CONTROLES._Ctrl_Buscar._Bl_Modifi     = true;
         CONTROLES._Ctrl_Buscar._txt_text.Text = "";
         CONTROLES._Ctrl_Buscar._txt_text.Text = "ctypcompro='" + _Txt_Id.Text + "'";
     }
     else
     {
         CONTROLES._Ctrl_Buscar._Bl_Modifi = false;
     }
     CLASES._Cls_Varios_Metodos _Cls_CL = new CLASES._Cls_Varios_Metodos(_Ctrl_Controles);
     _Cls_CL._Mtd_Foco();
     _Mtd_BotonesMenu();
 }
Example #5
0
 private void Frm_FIND_Load(object sender, EventArgs e)
 {
     _Cb_Opt.Items.AddRange(_Str_CamposFiltroName);
     _Dt_Desde.Value    = CLASES._Cls_Varios_Metodos._Mtd_SQLGetDate();
     _Dt_Fecha.Value    = CLASES._Cls_Varios_Metodos._Mtd_SQLGetDate();
     _Dt_Hasta.Value    = CLASES._Cls_Varios_Metodos._Mtd_SQLGetDate();
     _Dt_Hasta.MinDate  = CLASES._Cls_Varios_Metodos._Mtd_SQLGetDate();
     _Ctrl_Controles[0] = _Txt_Valor;
     _Ctrl_Controles[1] = _Txt_Desde;
     _Ctrl_Controles[2] = _Txt_Hasta;
     CLASES._Cls_Varios_Metodos _Cls_CL = new CLASES._Cls_Varios_Metodos(_Ctrl_Controles);
     _Cls_CL._Mtd_Foco();
 }
Example #6
0
 private void Frm_Formulas_Activated(object sender, EventArgs e)
 {
     CONTROLES._Ctrl_Buscar._frm_Formulario = this;
     CONTROLES._Ctrl_Buscar._Tb_Tab         = _Tb_Tab;
     //-------------------------------------------------------
     _Ctrl_Controles[0] = _Txt_cidproceso;
     _Ctrl_Controles[1] = _Txt_cdescripcion;
     _Ctrl_Controles[2] = _Txt_formula;
     _Ctrl_Controles[3] = _Txt_Alic;
     // CONTROLES._Ctrl_Buscar._Er_Control_Error = _Er_Error;
     _Mtd_BotonesMenu();
     CLASES._Cls_Varios_Metodos _Cls_CL = new CLASES._Cls_Varios_Metodos(_Ctrl_Controles);
     _Cls_CL._Mtd_Foco();
 }