protected void ddlGroup_SelectedIndexChanged(object sender, EventArgs e) { try { if (ddlGroup.SelectedIndex != 0) { int code = Converter.GetInteger(ddlGroup.SelectedValue); A2ZGROUPDTO getDTO = (A2ZGROUPDTO.GetInformation(code)); if (getDTO.GrpCode > 0) { txtGrpCode.Text = Converter.GetString(getDTO.GrpCode); hdnGrpCode.Text = Converter.GetString(getDTO.GrpCode); SubGroupDropdown(); txtSubGrpDescription.Focus(); clearInfo(); } } } catch (Exception ex) { throw ex; } }
protected void txtGrpCode_TextChanged(object sender, EventArgs e) { try { if (txtGrpCode.Text != string.Empty) { int code = Converter.GetInteger(txtGrpCode.Text); A2ZGROUPDTO getDTO = (A2ZGROUPDTO.GetInformation(code)); if (getDTO.GrpCode > 0) { ddlGroup.SelectedValue = Converter.GetString(getDTO.GrpCode); hdnGrpCode.Text = Converter.GetString(getDTO.GrpCode); clearInfo(); SubGroupDropdown(); txtSubGrpDescription.Focus(); } else { txtGrpCode.Text = string.Empty; txtGrpCode.Focus(); ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Invalid Group Code');", true); return; } } } catch (Exception ex) { throw ex; } }
protected void ddlGroup_SelectedIndexChanged(object sender, EventArgs e) { try { if (ddlGroup.SelectedValue != "-Select-") { SubgroupDropdown(); int code = Converter.GetInteger(ddlGroup.SelectedValue); A2ZGROUPDTO getDTO = (A2ZGROUPDTO.GetInformation(code)); if (getDTO.GrpCode > 0) { txtGrpCode.Text = Converter.GetString(getDTO.GrpCode); hdnGrpCode.Text = Converter.GetString(getDTO.GrpCode); } } else { txtGrpCode.Text = string.Empty; } } catch (Exception ex) { throw ex; } }
protected void ddlGroup_SelectedIndexChanged(object sender, EventArgs e) { if (ddlGroup.SelectedValue == "-Select-") { clearInfo(); ddlGroup.Focus(); } try { if (ddlGroup.SelectedValue != "-Select-") { int code = Converter.GetInteger(ddlGroup.SelectedValue); A2ZGROUPDTO getDTO = (A2ZGROUPDTO.GetInformation(code)); if (getDTO.GrpCode > 0) { hdnGrpCode.Text = Converter.GetString(getDTO.GrpCode); txtDescription.Text = Converter.GetString(getDTO.GrpDescription); txtDescription.Focus(); BtnSubmit.Visible = false; BtnUpdate.Visible = true; } } } catch (Exception ex) { throw ex; } }
protected void ddlGroup_SelectedIndexChanged(object sender, EventArgs e) { try { if (ddlGroup.SelectedValue != "-Select-") { //ddlItemType.SelectedIndex = 0; //ddlItemNo.SelectedIndex = 0; BtnSubmit.Visible = true; BtnUpdate.Visible = false; ddlUnitMeasure.SelectedIndex = 0; txtItemDesc.Text = string.Empty; txtReorderLvl.Text = string.Empty; SubgroupDropdown(); int code = Converter.GetInteger(ddlGroup.SelectedValue); A2ZGROUPDTO getDTO = (A2ZGROUPDTO.GetInformation(code)); if (getDTO.GrpCode > 0) { txtGrpCode.Text = Converter.GetString(getDTO.GrpCode); hdnGrpCode.Text = Converter.GetString(getDTO.GrpCode); } } else { txtGrpCode.Text = string.Empty; } } catch (Exception ex) { throw ex; } }