本文整理汇总了C#中Soft.Win.FrmSelectedEntity类的典型用法代码示例。如果您正苦于以下问题:C# FrmSelectedEntity类的具体用法?C# FrmSelectedEntity怎么用?C# FrmSelectedEntity使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FrmSelectedEntity类属于Soft.Win命名空间,在下文中一共展示了FrmSelectedEntity类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ssPerfil_Search
private void ssPerfil_Search(object sender, EventArgs e)
{
if (UIActualizando) { return; }
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
Usuario.Perfil = (Perfil)FrmSeleccionar.GetSelectedEntity(typeof(Perfil), "Perfil");
Mostrar();
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:7,代码来源:FrmUsuario.cs
示例2: ssEmpresa_Search
private void ssEmpresa_Search(object sender, EventArgs e)
{
if (UIActualizando) { return; }
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
Usuario.Empresa = (Empresa)FrmSeleccionar.GetSelectedEntity(typeof(Empresa), "Empresa");
Mostrar();
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:7,代码来源:FrmUsuario.cs
示例3: busAlmacen_Search
private void busAlmacen_Search(object sender, EventArgs e)
{
FrmSelectedEntity FrmSeleccionarPanel = new FrmSelectedEntity();
this.TipoDocumentoInventario.Almacen = (Almacen)FrmSeleccionarPanel.GetSelectedEntity(typeof(Almacen), "Almacen");
if (this.TipoDocumentoInventario.Almacen != null)
{
busAlmacen.Text = this.TipoDocumentoInventario.Almacen.Nombre;
busAlmacen.Enabled = true;
}
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:10,代码来源:FrmTipoDocumentoInventario.cs
示例4: busDistrito_Search
private void busDistrito_Search(object sender, EventArgs e)
{
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
String Filtro = String.Format(" IDProvincia = '{0}' AND Nombre LIKE '{1}%'", Item.Provincia.ID,busDistrito.Text);
Item.Distrito = (Distrito)FrmSeleccionar.GetSelectedEntity(typeof(Distrito), "Distrito", Filtro);
if (Item.Distrito != null)
{
busDistrito.Text = (Item.Distrito != null) ? Item.Distrito.Nombre : "";
}
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:10,代码来源:FrmSeleccionarDireccion.cs
示例5: busProvincia_Search
private void busProvincia_Search(object sender, EventArgs e)
{
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
String Filtro = String.Format (" IDDepartamento = '{0}' AND Nombre LIKE '{1}%'",Item.Departamento.ID,busProvincia.Text);
Item.Provincia = (Provincia)FrmSeleccionar.GetSelectedEntity(typeof(Provincia), "Provincia", Filtro);
if (Item.Provincia != null)
{
busProvincia.Text = (Item.Provincia != null) ? Item.Provincia.Nombre : "";
}
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:10,代码来源:FrmSeleccionarDireccion.cs
示例6: busDepartamento_Search
private void busDepartamento_Search(object sender, EventArgs e)
{
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
String Filtro = String.Format(" Nombre LIKE '{0}%'",busDepartamento.Text);
Item.Departamento = (Departamento)FrmSeleccionar.GetSelectedEntity(typeof(Departamento), "Departamento", Filtro);
if (Item.Departamento != null)
{
busDepartamento.Text = (Item.Departamento != null) ? Item.Departamento.Nombre : "";
}
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:10,代码来源:FrmSeleccionarDireccion.cs
示例7: ssMoneda_Search
private void ssMoneda_Search(object sender, EventArgs e)
{
try
{
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
Caja.Moneda = (Moneda)FrmSeleccionar.GetSelectedEntity(typeof(Moneda), "Moneda");
Mostrar();
}
catch (Exception ex)
{
SoftException.Control(ex);
}
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:13,代码来源:FrmCaja.cs
示例8: busDepartamento_Search
private void busDepartamento_Search(object sender, EventArgs e)
{
try
{
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
String Filtro = String.Format(" Nombre LIKE '{0}%'", busDepartamento.Text);
itemSalidaCaja.DepartamentoOrigen = (Departamento)FrmSeleccionar.GetSelectedEntity(typeof(Departamento), "Departamento", Filtro);
Mostrar(this.itemSalidaCaja);
}
catch (Exception ex)
{
SoftException.Control(ex);
}
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:14,代码来源:FrmSeleccionarDireccion.cs
示例9: busProvincia_Search
private void busProvincia_Search(object sender, EventArgs e)
{
try
{
if (itemSalidaCaja.DepartamentoOrigen == null)
{
throw new Exception("Debe de seleccionar un departamento...");
}
else
{
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
String Filtro = String.Format(" IDDepartamento = '{0}' AND Nombre LIKE '{1}%'", itemSalidaCaja.DepartamentoOrigen.ID, busProvincia.Text);
itemSalidaCaja.ProvinciaOrigen = (Provincia)FrmSeleccionar.GetSelectedEntity(typeof(Provincia), "Provincia", Filtro);
Mostrar(this.itemSalidaCaja);
}
}
catch (Exception ex)
{
SoftException.Control(ex);
}
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:21,代码来源:FrmSeleccionarDireccion.cs
示例10: ssTipoDocumento_Search
private void ssTipoDocumento_Search(object sender, EventArgs e)
{
try
{
if (ActualizandoIU) { return; }
InfoAsistente.Presupuesto = (Presupuesto)HelperNHibernate.GetEntityByID("Presupuesto", Presupuesto.ID);
InfoAsistente.Cliente = InfoAsistente.Presupuesto.Cliente;
InfoAsistente.FechaCreacion = InfoAsistente.Presupuesto.FechaCreacion;
udtFechaCreacion.Value = InfoAsistente.Presupuesto.FechaCreacion;
FrmSelectedEntity FrmSeleccionarTipoDocumento = new FrmSelectedEntity();
InfoAsistente.TipoDocumento = (TipoOrdenProduccion)FrmSeleccionarTipoDocumento.GetSelectedEntity(typeof(TipoOrdenProduccion), "Tipo Orden de Producción");
if (InfoAsistente.TipoDocumento != null)
{
ssTipoDocumento.Text = InfoAsistente.TipoDocumento.Nombre;
InfoAsistente.Responsable = FrmMain.ObtenerResponsable();
ssReponsable.Text = (InfoAsistente.Responsable != null) ? InfoAsistente.Responsable.Nombre : "";
}
Mostrar();
}
catch (Exception ex)
{
SoftException.Control(ex);
}
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:24,代码来源:FrmAsistenteGeneracionOPdesdePresupuesto.cs
示例11: ssRelacionMedidas_Search
private void ssRelacionMedidas_Search(object sender, EventArgs e)
{
if (ItemPlantilla == null) { return; }
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
ItemPlantilla.RelacionMedidas = (RelacionMedidas)FrmSeleccionar.GetSelectedEntity(typeof(RelacionMedidas), "Relación Medidas");
ssRelacionMedidas.Text = (ItemPlantilla.RelacionMedidas != null) ? ItemPlantilla.RelacionMedidas.Nombre : "";
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:7,代码来源:FrmPlantilla.cs
示例12: ssTipoUnidad_Search
private void ssTipoUnidad_Search(object sender, EventArgs e)
{
if (ItemPlantilla == null) { return; }
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
ItemPlantilla.TipoUnidad = (TipoUnidad)FrmSeleccionar.GetSelectedEntity(typeof(TipoUnidad), "Tipo Unidad");
ssTipoUnidad.Text = (ItemPlantilla.TipoUnidad != null) ? ItemPlantilla.TipoUnidad.Nombre : "";
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:7,代码来源:FrmPlantilla.cs
示例13: ubNuevo_Click
private void ubNuevo_Click(object sender, EventArgs e)
{
if (ItemPlantilla == null) { return; }
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
String Filtro = "ID NOT IN (";
String IDs = "";
foreach (ItemPlantillaServicio Item in ItemPlantilla.Servicios)
{
IDs = IDs + "'" + Item.Servicio.ID + "',";
}
Filtro = (IDs.Length > 0) ? Filtro + IDs.Substring(0, IDs.Length - 1) + ") AND EsServicio = 1" : " EsServicio = 1";
Existencia Existencia = (Existencia)FrmSeleccionar.GetSelectedEntity(typeof(Existencia), "Existencia", Filtro);
if (Existencia != null)
{
Existencia ExistenciaCompleta = (Existencia)HelperNHibernate.GetEntityByID("Existencia",Existencia.ID);
UltraGridRow Row = ugServicios.DisplayLayout.Bands[0].AddNew();
Row.Tag = ItemPlantilla.CrearServicio(ExistenciaCompleta);
MostrarServicio(Row);
}
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:21,代码来源:FrmPlantilla.cs
示例14: busVendedor_Search
private void busVendedor_Search(object sender, EventArgs e)
{
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
SocioNegocioCliente clliente = SocioNegocio.Clientes.First();
clliente.SocioNegocioEmpleado = (SocioNegocioEmpleado)FrmSeleccionar.GetSelectedEntity(typeof(SocioNegocioEmpleado), "Vendedor");
MostrarCliente();
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:7,代码来源:FrmSocioNegocio.cs
示例15: busArea_Search
private void busArea_Search(object sender, EventArgs e)
{
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
SocioNegocioEmpleado empleado = SocioNegocio.Empleados.First();
empleado.Area = (Area)FrmSeleccionar.GetSelectedEntity(typeof(Area), "Area");
MostrarEmpleado();
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:7,代码来源:FrmSocioNegocio.cs
示例16: btnAgregarBancos_Click
private void btnAgregarBancos_Click(object sender, EventArgs e)
{
FrmSelectedEntity FrmSeleccionarPanel = new FrmSelectedEntity();
String Filtro = "ID NOT IN (";
String IDs = "";
foreach (ItemSocioNegocioBanco Item in SocioNegocio.Bancos) { IDs = IDs + "'" + Item.Banco.ID + "',"; }
if (IDs.Length > 0) { Filtro = Filtro + IDs.Substring(0, IDs.Length - 1) + ")"; }
else { Filtro = ""; }
Banco Banco = (Banco)FrmSeleccionarPanel.GetSelectedEntity(typeof(Banco), "Banco", Filtro);
if (Banco != null)
{
UltraGridRow Row = GrillaBancos.DisplayLayout.Bands[0].AddNew();
Row.Tag = this.SocioNegocio.AddItemBanco();
ItemSocioNegocioBanco Item = (ItemSocioNegocioBanco)Row.Tag;
Item.Banco = Banco;
MostrarBanco(Row);
}
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:18,代码来源:FrmSocioNegocio.cs
示例17: ssReporte_Search
private void ssReporte_Search(object sender, EventArgs e)
{
try
{
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
TipoCaja.Reporte = (Soft.Reporte.Entidades.Reporte)FrmSeleccionar.GetSelectedEntity(typeof(Soft.Reporte.Entidades.Reporte), "Reporte");
ssReporte.Text = (TipoCaja.Reporte != null) ? TipoCaja.Reporte.Nombre : "";
}
catch (Exception ex)
{
SoftException.Control(ex);
}
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:13,代码来源:FrmTipoCaja.cs
示例18: ssOperacion_Search
private void ssOperacion_Search(object sender, EventArgs e)
{
if (ItemPlantilla == null) { return; }
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
ItemPlantilla.Operacion = (Existencia)FrmSeleccionar.GetSelectedEntity(typeof(Existencia), "Existencia"," EsServicio = 1");
ssOperacion.Text = (ItemPlantilla.Operacion != null) ? ItemPlantilla.Operacion.Nombre : "";
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:7,代码来源:FrmPlantilla.cs
示例19: ssMaterial_Search
private void ssMaterial_Search(object sender, EventArgs e)
{
if (ItemPlantilla == null) { return; }
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
ItemPlantilla.Material = (Existencia)FrmSeleccionar.GetSelectedEntity(typeof(Existencia), "Existencia"," EsInventariable = 1");
ssMaterial.Text = (ItemPlantilla.Material != null) ? ItemPlantilla.Material.Nombre : "";
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:7,代码来源:FrmPlantilla.cs
示例20: ubAgregar_Click
private void ubAgregar_Click(object sender, EventArgs e)
{
try
{
if (ConsolidadoOp.TipoDocumento == null)
{
throw new Exception("Debe elegir un tipo de Documento");
}
if (ConsolidadoOp.Cliente == null)
{
throw new Exception("Debe seleccionar un Cliente");
}
Collection OrdenesProduccion = new Collection();
FrmSelectedEntity FrmSeleccionar = new FrmSelectedEntity();
String Filtro = ConsolidadoOp.ObtenerFiltroOPs();
Filtro = (Filtro.Length > 0) ? String.Format(" ID NOT IN ({0}) AND IDCliente = '{1}'", Filtro, ConsolidadoOp.Cliente.ID) : String.Format(" IDCliente = '{0}'", ConsolidadoOp.Cliente.ID);
OrdenesProduccion = FrmSeleccionar.GetSelectedsEntities(typeof(OrdenProduccion), "Selección de Ordenes de Produccion Consolidado", Filtro);
foreach (OrdenProduccion Item in OrdenesProduccion)
{
ConsolidadoOp.AddItem(Item);
}
MostrarItems(true);
}
catch (Exception ex)
{
SoftException.Control(ex);
}
}
开发者ID:eldersontc,项目名称:soft-erp,代码行数:35,代码来源:FrmConsolidadoOp.cs
注:本文中的Soft.Win.FrmSelectedEntity类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论