protected void Page_Load(object sender, EventArgs e) { try { Session["Respuesta"] = false; //[TODO: Hacer mensaje de confirmación que se muestra una sola vez, al querer eliminar algo en control ABM] this.tipo = typeof(Entidades.Entity_concepto); this.Titulo = "Conceptos de facturacion"; // Datagrid Storer st = new Storer(typeof(Entidades.Entity_concepto)); st.ObjectToSqlDataSource(ref SqlDataSource1); OnShow(); Store1.DataBind(); //ComboBox tipoCombo = typeof(Entidades.Entity_tasaiva); ComboBoxObjetos.Width = ComboBoxObjetos.Width; ValoresCombo = new SqlValor[] { new SqlValor("empresa_idempresa", ModuloSoporte.Global.CodEmpresa) }; OnShowComboBox(); } catch (Exception ex) { UIHelper.MostrarExcepcionSimple(ex, "Error"); } }
protected void Page_Load(object sender, EventArgs e) { try { Session["Respuesta"] = false; //[TODO: Hacer mensaje de confirmación que se muestra una sola vez, al querer eliminar algo en control ABM] this.tipo = typeof(Entidades.Entity_causasEmision); this.Titulo = "Causas de emision"; Valores = new SqlValor[] { new SqlValor("empresa_idempresa", Global.CodEmpresa) }; // Datagrid Storer st = new Storer(typeof(Entidades.Entity_causasEmision)); st.ObjectToSqlDataSource(ref SqlDataSource1); OnShow(); } catch (Exception ex) { UIHelper.MostrarExcepcionSimple(ex, "Error"); } }
protected void Page_Load(object sender, EventArgs e) { if (Session[var] == null || Session[var].ToString().Equals("")) { if (!X.IsAjaxRequest) { PrepararClienteCompensacion.PrepararCliente(var, "CompensacionComprobante.aspx", this); Response.Redirect("PrepararClienteCompensacion.aspx"); } } var codCliente = (int)Session[var]; this.Tipo = typeof(Entity_comprobanteVenta); Valores = new SqlValor[] { new SqlValor("habilitado", 1), new SqlValor("empresa_idempresa", ContabilidadGlobal.Admin.CodEmpresa), new SqlValor("cliente_codCliente",codCliente) }; // Datagrid Storer st = new Storer(typeof(Entidades.Entity_comprobanteVenta)); st.ObjectToSqlDataSource(ref SqlDataSource1); OnShow(); Store1.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { try { Session["Respuesta"] = false; //[TODO: Hacer mensaje de confirmación que se muestra una sola vez, al querer eliminar algo en control ABM] this.tipo = typeof(Entidades.Entity_comprobanteVenta); this.Titulo = "Lista de Comprobantes Habilitados"; Valores = new SqlValor[] { new SqlValor("habilitado", 1), new SqlValor("empresa_idempresa", 1) }; // Datagrid Storer st = new Storer(typeof(Entidades.Entity_comprobanteVenta)); st.ObjectToSqlDataSource(ref SqlDataSource1); OnShow(); Store1.DataBind(); } catch (Exception ex) { UIHelper.MostrarExcepcionSimple(ex, "Error"); } }
private SqlHelper(Type tipo, SqlValor[] valores) : base(tipo) { Identificadores.Clear(); Atributos.Clear(); if (valores != null) { foreach (SqlValor v in valores) { this.valores[v.Nombre] = v.Valor; } } }
public static SqlHelper Generar(Armador arm, SqlValor[] valores) { SqlHelper sql = new SqlHelper(arm.Tipo, valores); sql.Nombre = arm.Nombre; foreach (Atributos a in arm.Atributos) { sql.Agregar(a); } foreach (Atributos a in arm.Identificadores) { sql.Identificadores.Add(a); } sql.ProcesarAtributos(); return sql; }
public static SqlHelper Generar(Type t, SqlValor [] valores) { ArmadorFactory af = new ArmadorFactory(null); return Generar(af.CreateFromClass(t), valores); }