예제 #1
0
        private void PopulateGrid()
        {
            _dsSubTipoDocumento = SubTipoDocumentoDAC.GetData(-1, -1);

            _dtSubTipoDocumento         = _dsSubTipoDocumento.Tables[0];
            this.gridControl.DataSource = null;
            this.gridControl.DataSource = _dtSubTipoDocumento;

            PopulateData();
        }
예제 #2
0
 private void slkupTipo_EditValueChanged(object sender, EventArgs e)
 {
     if (this.slkupTipo.EditValue != null && this.slkupTipo.EditValue.ToString() != "")
     {
         int iIDTipo = Convert.ToInt32(this.slkupTipo.EditValue);
         Util.Util.ConfigLookupEdit(this.slkupSubTipo, SubTipoDocumentoDAC.GetData(iIDTipo, -1).Tables["Data"], "Descr", "IDTipo");
         Util.Util.ConfigLookupEditSetViewColumns(this.slkupSubTipo, "[{'ColumnCaption':'Tipo','ColumnField':'SubTipo','width':30},{'ColumnCaption':'Descripcion','ColumnField':'Descr','width':70}]");
         this.slkupSubTipo.Enabled = true;
     }
     else
     {
         this.slkupSubTipo.Enabled = false;
     }
 }
예제 #3
0
        private void CargarCatalogos()
        {
            this.slkupTipoDocumento.Properties.DataSource    = TipoDocumentoDAC.GetData(-1).Tables[0];
            this.slkupTipoDocumento.Properties.ValueMember   = "IDTipo";
            this.slkupTipoDocumento.Properties.DisplayMember = "Descr";

            this.slkSubTipoDocumento.Properties.DataSource    = SubTipoDocumentoDAC.GetData(-1, -1).Tables[0];
            this.slkSubTipoDocumento.Properties.ValueMember   = "IDTipo";
            this.slkSubTipoDocumento.Properties.DisplayMember = "Descr";

            this.slkupRuc.Properties.DataSource    = RucDAC.GetData(-1).Tables[0];
            this.slkupRuc.Properties.ValueMember   = "IDRuc";
            this.slkupRuc.Properties.DisplayMember = "Descr";
        }