protected void btn_baja_tag_Click(object sender, EventArgs e) { if (this.txt_solicitud.Text != "" && this.txt_patente.Text != "") { string add = new Codigo_TAGBC().add_Control_TAG(this.txt_patente.Text, Convert.ToInt32(this.txt_solicitud.Text), "0",(string)(Session["usrname"])); if (add != "OK") { FuncionGlobal.alerta_updatepanel(add, Page, up_grilla); return; } else { FuncionGlobal.alerta_updatepanel("Devolucion de TAG cargado con exito", this.Page, this.up_grilla); } } if (this.txt_solicitud.Text == "" && this.txt_patente.Text != "") { TipoOperacion tip = new TipooperacionBC().getTipooperacion("DTAG"); this.btn_baja_tag.Attributes.Add("onclick", "javascript:window.showModalDialog('" + tip.Url_operacion + "fDded4a93u2d" + "&id_cliente=" + FuncionGlobal.FuctionEncriptar(usu.Cliente.Id_cliente.ToString()) + "&ventatipo=" + "" + "&patente=" + this.txt_patente.Text + "','_blank','" + tip.Tamano + "')"); } }
protected void Page_Load(object sender, EventArgs e) { List <Codigo_TAG> lPais = new Codigo_TAGBC().GetCodigosActivos(0); this.lbl_stock.Text = "Stock TAG " + lPais.Count.ToString(); this.gr_dato.DataSource = lPais; this.gr_dato.DataBind(); }
protected void txt_codigo_TextChanged(object sender, EventArgs e) { if (this.txt_codigo.Text != "") { string add = new Codigo_TAGBC().add_Codigo_TAG(this.txt_codigo.Text.Trim()); } List <Codigo_TAG> lPais = new Codigo_TAGBC().GetCodigosActivos(0); this.lbl_stock.Text = "Stock TAG " + lPais.Count.ToString(); this.gr_dato.DataSource = lPais; this.gr_dato.DataBind(); }
protected void btn_carga_tag_Click(object sender, EventArgs e) { if (this.txt_solicitud.Text != "" && this.txt_patente.Text != "") { string add = new Codigo_TAGBC().add_Control_TAG(this.txt_patente.Text, Convert.ToInt32(this.txt_solicitud.Text), "1", (string)(Session["usrname"])); if (add.Trim() != "OK" && add.Trim() != "") { FuncionGlobal.alerta_updatepanel(add, Page, up_grilla); return; } else { FuncionGlobal.alerta_updatepanel("Control de TAG cargado con exito", this.Page, this.up_grilla); } } else { FuncionGlobal.alerta_updatepanel("Falta colocar Nº Op. AGP y Patente", this.Page, this.up_grilla); } }