コード例 #1
0
        private void InicializaControles()
        {
            BaseForm.IniciaFecDesdeHasta(deFechaEmision, deFechaVencimiento, 0);

            List <BESearchLookUpEdit> lstSLUEMoneda = new List <BESearchLookUpEdit>();

            lstSLUEMoneda.AddRange(new BESearchLookUpEdit[]
            {
                new BESearchLookUpEdit {
                    fieldName = "EPI_INT_IDMONEDA", caption = "Id"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_NOMBRE", caption = "Descripcion"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_SIMBOLO", caption = "Simbolo"
                }
            });

            BaseForm.CargarSearchLookUpEdit(searchLookUpMoneda, BLMoneda.ListarMoneda(0, ""), lstSLUEMoneda);


            List <BESearchLookUpEdit> lstSLUETipoPago = new List <BESearchLookUpEdit>();

            lstSLUETipoPago.AddRange(new BESearchLookUpEdit[] {
                new BESearchLookUpEdit {
                    fieldName = "EPI_INT_IDGENERICA", caption = "Id"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_CAMPO2", caption = "Descripcion"
                }
            });
            BaseForm.CargarSearchLookUpEdit(searchLookUpTipoPago, BLGenerica.ListarGenerica(eTblGen.TIPOPAGO.ToString()), lstSLUETipoPago);

            List <BESearchLookUpEdit> lstSLUEImpuesto = new List <BESearchLookUpEdit>();

            lstSLUEImpuesto.AddRange(new BESearchLookUpEdit[] {
                new BESearchLookUpEdit {
                    fieldName = "EPI_INT_IDIMPUESTO", caption = "Id"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_NOMBRE", caption = "Descripcion"
                }
            });
            BaseForm.CargarRepositoryItemSearchLookUpEdit(repositoryItemSearchLookUpEdit1, BLImpuesto.ListarImpuesto(0, ""), lstSLUEImpuesto);

            List <BESearchLookUpEdit> lstSLUECliente = new List <BESearchLookUpEdit>();

            lstSLUECliente.AddRange(new BESearchLookUpEdit[] {
                new BESearchLookUpEdit {
                    fieldName = "EPI_INT_IDENTIDAD", caption = "Id"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_RAZONSOCIAL2", caption = "Descripcion"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_RAZONSOCIAL1", caption = "Descripcion2"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_DIRECCION", caption = "Descripcion2"
                }
            });
            BaseForm.CargarSearchLookUpEdit(searchLookUpCliente, BLEntidad.GetListEntidadPorTipo(0, Convert.ToInt32(eTipoEntidad.Cliente), 0, 0), lstSLUECliente);

            List <BESearchLookUpEdit> lstSLUETipoDocumentoContable = new List <BESearchLookUpEdit>();

            lstSLUETipoDocumentoContable.AddRange(new BESearchLookUpEdit[] {
                new BESearchLookUpEdit {
                    fieldName = "EPI_INT_IDTIPODOCUMENTOCONTABLE", caption = "Id"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_NOMBREDOCUMENTO", caption = "Descripcion"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_INT_IDTIPODOCUMENTOCONTABLESERIES", caption = "Descripcion"
                }
            });
            BaseForm.CargarSearchLookUpEdit(searchLookUpTipoDocumento, BLTipoDocumentoContable.GetTipoDocumentoContablePreferida(), lstSLUETipoDocumentoContable);
        }
コード例 #2
0
        private void InicializaControles()
        {
            List <BESearchLookUpEdit> lstSLUEUnidadMedida = new List <BESearchLookUpEdit>();

            lstSLUEUnidadMedida.AddRange(new BESearchLookUpEdit[] {
                new BESearchLookUpEdit {
                    fieldName = "EPI_INT_IDUNIDADMEDIDA", caption = "Id"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_DESCRIPCION", caption = "Descripcion"
                }
            });
            BaseForm.CargarSearchLookUpEdit(searchLookUpUnidadMedida, BLUnidadMedida.ListarUnidadMedida(0, ""), lstSLUEUnidadMedida);

            List <BESearchLookUpEdit> lstSLUEImpuesto = new List <BESearchLookUpEdit>();

            lstSLUEImpuesto.AddRange(new BESearchLookUpEdit[] {
                new BESearchLookUpEdit {
                    fieldName = "EPI_INT_IDIMPUESTO", caption = "Id"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_NOMBRE", caption = "Descripcion"
                }
            });
            BaseForm.CargarSearchLookUpEdit(searchLookUpImpuesto, BLImpuesto.ListarImpuesto(0, ""), lstSLUEImpuesto);


            List <BESearchLookUpEdit> lstSLUEMoneda = new List <BESearchLookUpEdit>();

            lstSLUEMoneda.AddRange(new BESearchLookUpEdit[]
            {
                new BESearchLookUpEdit {
                    fieldName = "EPI_INT_IDMONEDA", caption = "Id"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_NOMBRE", caption = "Descripcion"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_SIMBOLO", caption = "Simbolo"
                }
            });

            BaseForm.CargarSearchLookUpEdit(searchLookUpMonedaCompra, BLMoneda.ListarMoneda(0, ""), lstSLUEMoneda);

            List <BESearchLookUpEdit> lstSLUEProcedencia = new List <BESearchLookUpEdit>();

            lstSLUEProcedencia.AddRange(new BESearchLookUpEdit[] {
                new BESearchLookUpEdit {
                    fieldName = "EPI_INT_IDGENERICA", caption = "Id"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_CAMPO2", caption = "Descripcion"
                }
            });
            BaseForm.CargarSearchLookUpEdit(searchLookUpProcedencia, BLGenerica.ListarGenerica(eTblGen.PROCEDENCIA.ToString()), lstSLUEProcedencia);


            List <BESearchLookUpEdit> lstSLUEMarca = new List <BESearchLookUpEdit>();

            lstSLUEMarca.AddRange(new BESearchLookUpEdit[] {
                new BESearchLookUpEdit {
                    fieldName = "EPI_INT_IDMARCA", caption = "Id"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_DESCRIPCION", caption = "Descripcion"
                }
            });
            BaseForm.CargarSearchLookUpEdit(searchLookUpMarca, BLMarca.ListarMarca(0, ""), lstSLUEMarca);


            List <BESearchLookUpEdit> lstSLUETipoExistencia = new List <BESearchLookUpEdit>();

            lstSLUETipoExistencia.AddRange(new BESearchLookUpEdit[] {
                new BESearchLookUpEdit {
                    fieldName = "EPI_INT_IDTIPOEXISTENCIA", caption = "Id"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_DESCRIPCION", caption = "Descripcion"
                }
            });
            BaseForm.CargarSearchLookUpEdit(searchLookUpTipoExistencia, BLTipoExistencia.ListarTipoExistencia(0, ""), lstSLUETipoExistencia);

            List <BESearchLookUpEdit> lstSLUETipoUso = new List <BESearchLookUpEdit>();

            lstSLUETipoUso.AddRange(new BESearchLookUpEdit[] {
                new BESearchLookUpEdit {
                    fieldName = "EPI_INT_IDGENERICA", caption = "Id"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_CAMPO2", caption = "Descripcion"
                }
            });
            BaseForm.CargarSearchLookUpEdit(searchLookUpTipoUso, BLGenerica.ListarGenerica(eTblGen.TIPOUSO.ToString()), lstSLUETipoUso);


            List <BESearchLookUpEdit> lstSLUECategoria = new List <BESearchLookUpEdit>();

            lstSLUECategoria.AddRange(new BESearchLookUpEdit[] {
                new BESearchLookUpEdit {
                    fieldName = "EPI_INT_IDCATEGORIA", caption = "Id"
                },
                new BESearchLookUpEdit {
                    fieldName = "EPI_VCH_DESCRIPCION", caption = "Descripcion"
                }
            });
            BaseForm.CargarSearchLookUpEdit(searchLookUpCategoria, BLCategoria.ListarCategoria(0, ""), lstSLUECategoria);
        }