コード例 #1
0
        //protected void Limpiar_DataTable()
        //{
        //    ViewState["dt"] = null;
        //    this.gr_dato.DataSource = null;
        //    this.gr_dato.DataBind();
        //}

        protected void dl_familia_SelectedIndexChanged(object sender, EventArgs e)
        {
            FuncionGlobal.comboProductobyfamilia(this.dl_producto, Convert.ToInt16(this.dl_familia.SelectedValue));

            FuncionGlobal.comboProductobyfamilia(this.dl_producto_cambio, Convert.ToInt16(this.dl_familia.SelectedValue));

            FuncionGlobal.combonominabyfamilia(this.dpl_nomina, Convert.ToInt32(this.dl_familia.SelectedValue));
            FuncionGlobal.combonominabyfamilia(this.dl_nomina, Convert.ToInt32(this.dl_familia.SelectedValue));
            if (this.dl_familia.SelectedValue == "0")
            {
                this.pnl_nomina.Style.Add("display", "none");
                this.pnl_flujo.Style.Add("display", "none");
            }
            else
            {
                this.pnl_nomina.Style.Add("display", "inline");
                this.pnl_flujo.Style.Add("display", "inline");
            }

            FuncionGlobal.comboEstadoByFamilia(this.dpl_estado, Convert.ToInt32(this.dl_familia.SelectedValue));
            FuncionGlobal.comboEstadoByFamilia(this.dl_estado, Convert.ToInt32(this.dl_familia.SelectedValue));

            //this.Limpiar_DataTable();

            this.pnl_acciones.Style.Add("display", "none");
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string id_estado_str;

            id_estado_str = FuncionGlobal.FuctionDesEncriptar(Request.QueryString["codigo_estado"].ToString());
            id_estado     = Convert.ToInt16(id_estado_str);

            string id_familia_str;

            id_familia_str = FuncionGlobal.FuctionDesEncriptar(Request.QueryString["id_familia"].ToString());
            id_familia     = Convert.ToInt16(id_familia_str);

            string nombre_familia = (Request.QueryString["nombre_familia"].ToString());

            if (!IsPostBack)
            {
                this.lbl_familia.Text = nombre_familia.Trim();
                this.lbl_estado.Text  = new EstadotipooperacionBC().getestadobycodigoestado(id_estado).Descripcion.Trim();

                getComportamiento();

                FuncionGlobal.comboEstadoByFamilia(this.dpl_origen, id_familia);
                FuncionGlobal.comboEstadoByFamilia(this.dpl_final, id_familia);
            }
        }
コード例 #3
0
        protected void gr_dato_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType != DataControlRowType.DataRow)
            {
                return;
            }
            var dlEstados = (DropDownList)e.Row.FindControl("dlEstados");

            FuncionGlobal.comboEstadoByFamilia(dlEstados, Convert.ToInt32(dlFamilia.SelectedValue));
            dlEstados.SelectedValue = gr_documentos.DataKeys[e.Row.RowIndex]["codigoSiguienteEstado"].ToString();
        }
コード例 #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     GetMensajeAnalisis();
     if (IsPostBack)
     {
         return;
     }
     txtDesde.Text = DateTime.Today.ToShortDateString();
     txtHasta.Text = DateTime.Today.ToShortDateString();
     FuncionGlobal.comboEstadoByFamilia(dlEstado, 21);
     GetAutos();
     GetCav();
     GetCavMultas();
 }
コード例 #5
0
        protected void dl_familia_SelectedIndexChanged(object sender, EventArgs e)
        {
            FuncionGlobal.comboProductobyfamilia(this.dl_producto, Convert.ToInt16(this.dl_familia.SelectedValue));
            this.pnl_flujo.Visible  = true;
            this.dpl_estado.Visible = true;
            this.pnl_flujo.Style.Add("display", "inline");
            FuncionGlobal.comboEstadoByFamilia(this.dpl_estado, Convert.ToInt16(this.dl_familia.SelectedValue.Trim()));

            //this.rb_semaforo.Items.FindByText("rojo").Attributes.CssStyle.Add("style:", "color: black;font-weight:bold;");
            //this.rb_semaforo.Items.FindByText("verde").Attributes.CssStyle.Add("style", "background: red;");
            //this.rb_semaforo.Items.FindByText("amarilo").Attributes.CssStyle.Add("style", "background: white;");

            //this.rb_semaforo.Items.FindByText("verde").Attributes.CssStyle.Add("style", "background: green;");
            //this.rb_semaforo.Items.FindByText("amarillo").Attributes.CssStyle.Add("style", "background: white;");
        }
コード例 #6
0
        protected void gr_dato_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                EstadoTipoOperacion mestado = new EstadoTipoOperacion();
                mestado.Codigo_estado = 0;
                mestado.Descripcion   = "Seleccionar";

                List <EstadoTipoOperacion> lestado = new EstadotipooperacionBC().getEstadoByFamilia(id_fam);

                lestado.Add(mestado);


                DropDownList dl2 = (DropDownList)e.Row.FindControl("dl_estado");

                dl2.DataSource     = lestado;
                dl2.DataValueField = "codigo_estado";
                dl2.DataTextField  = "descripcion";
                dl2.DataBind();
                //dl2.SelectedValue = "0";



                GastosComunes gastos = new GastosComunes();
                gastos.Id_tipogasto = 0;
                gastos.Descripcion  = "seleccionar";
                List <GastosComunes> lgastos = new GastosComunesBC().getallGastosComunes(id_fam);
                lgastos.Add(gastos);
                DropDownList dl = (DropDownList)e.Row.FindControl("dl_gasto");

                dl.DataSource     = lgastos;
                dl.DataValueField = "id_tipogasto";
                dl.DataTextField  = "descripcion";
                dl.DataBind();

                //dl.SelectedValue = "0";
                FuncionGlobal.comboEstadoByFamilia(estado_dl, id_fam);
                FuncionGlobal.Combogasto(gasto_dl, id_fam);

                dl.SelectedValue  = gr_dato.DataKeys[e.Row.RowIndex].Values[1].ToString();
                dl2.SelectedValue = gr_dato.DataKeys[e.Row.RowIndex].Values[0].ToString();
            }
        }
コード例 #7
0
 protected void dlFamilia_SelectedIndexChanged(object sender, EventArgs e)
 {
     FuncionGlobal.comboProductobyfamilia(dl_producto, Convert.ToInt16(dlFamilia.SelectedValue));
     FuncionGlobal.comboEstadoByFamilia(this.dpl_estado, Convert.ToInt32(this.dlFamilia.SelectedValue));
 }