protected void txtMatCode_TextChanged(object sender, Telerik.Web.UI.AutoCompleteTextEventArgs e) { if (txtMatCode.Text != "") { txtMatDescr.Text = WebTools.GetExpr("MAT_DESCR", "PIP_MAT_STOCK", " WHERE MAT_CODE1='" + txtMatCode.Text + "'"); string sub_con_id = WebTools.GetExpr("SC_ID", "PIP_MAT_ISSUE_ADD", " WHERE ADD_ISSUE_ID='" + Request.QueryString["ADD_ISSUE_ID"] + "'"); txtAvlQty.Text = WebTools.GetExpr("BAL_QTY", "VIEW_ITEM_REP_A", " WHERE MAT_CODE1='" + txtMatCode.Text + "' and sub_con_id = '" + sub_con_id + "'"); } }
protected void txtAutoMatCode_TextChanged(object sender, Telerik.Web.UI.AutoCompleteTextEventArgs e) { HiddenMatID.Value = WebTools.GetExpr("MAT_ID", "PIP_MAT_STOCK", " WHERE MAT_CODE1='" + txtAutoMatCode.Entries[0].Text + "'"); txtReqQty.Text = WebTools.GetExpr("BAL_ISSUE", "VIEW_BULK_PAINT_ISSUE_BAL", " WHERE PAINT_ID='" + HiddenPaintID.Value + "' AND MAT_ID = '" + HiddenMatID.Value + "'"); string item_nam = WebTools.GetExpr("ITEM_NAM", "VIEW_STOCK", " WHERE MAT_ID = '" + HiddenMatID.Value + "'"); if (item_nam.ToUpper() == "PIPE" || item_nam.ToUpper() == "PIPES") { txtPipePiece.Enabled = true; } else { txtPipePiece.Enabled = false; } }
protected void RadAutoCompleteBox_TextChanged(object sender, Telerik.Web.UI.AutoCompleteTextEventArgs e) { lblProducto.Text = ""; lblError.Text = ""; try { if (RadAutoCompleteBox.Text != "") { string[] argumentos = RadAutoCompleteBox.Text.ToString().Split(new char[] { '/' }); string[] producto = argumentos[1].Trim().Split(new char[] { ';' }); Producto produc = new Producto(); produc.NombrePorducto = producto[0].Trim(); produc.ClaveProducto = Convert.ToString(argumentos[0].Trim()); object[] valor = produc.obtieneProducto(); if (Convert.ToBoolean(valor[0])) { if (Convert.ToString(valor[1]) != "") { int pv; try { pv = Convert.ToInt32(Request.QueryString["p"]); } catch (Exception) { pv = 0; } if (pv != 0) { string idProducto = Convert.ToString(argumentos[0].Trim()); string categoria = datos.obtieneDescCategoriaProducto(idProducto); if (categoria != "") { lblIdArticulo.Text = idProducto; lblCategoria.Text = categoria; produc.Isla = pv; produc.existeIsla(); lblProducto.Text = Convert.ToString(argumentos[1].Trim()); txtCantidad.Focus(); } else { lblError.Text = "Su sesión a caducado por favor vuelva a ingresar"; } } else { lblError.Text = "Su sesión a caducado por favor vuelva a ingresar"; } } else { lblProducto.Text = "El producto no existe"; RadAutoCompleteBox.Focus(); } } else { lblProducto.Text = ""; lblError.Text = Convert.ToString(valor[1]); RadAutoCompleteBox.Focus(); } } else { lblProducto.Text = ""; RadAutoCompleteBox.Focus(); } } catch (Exception ex) { lblProducto.Text = ""; lblError.Text = ex.Message; } }
protected void txtAutoIsome_TextChanged(object sender, Telerik.Web.UI.AutoCompleteTextEventArgs e) { HiddenIsoID.Value = WebTools.GetExpr("ISO_ID", "PIP_ISOMETRIC", " WHERE ISO_TITLE1='" + txtAutoIsome.Text + "'"); }
protected void txtSch_TextChanged(object sender, Telerik.Web.UI.AutoCompleteTextEventArgs e) { }