public void Bind_DDL_Zone() { DDLZone.DataSource = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(ddlsuperzoneid.SelectedValue.ToString()), "Zone"); DDLZone.DataBind(); DDLZone.Items.Insert(0, new ListItem("-Select Zone-", "0")); DDLZone.Focus(); DDLZone.TabIndex = 2; }
protected void DDLSuperZone_SelectedIndexChanged(object sender, EventArgs e) { if (DDLSuperZone.SelectedIndex != 0) { Bind_DDL_Zone(); DDLZone.Focus(); } }
protected void DDLZone_SelectedIndexChanged(object sender, EventArgs e) { if (DDLZone.SelectedIndex == 0) { DDLZone.Focus(); Bind_DDL_ZoneCust(); } }
protected void DDLZone_SelectedIndexChanged(object sender, EventArgs e) { if (DDLZone.SelectedIndex == 0) { MessageBox("Select SuperZone"); DDLZone.Focus(); // SalesanalysisReportview.ReportSource = null; // DDLZone.SelectedValue = null; } }
public void Bind_DDL_Zone() { DDLZone.Items.Clear(); if (DDLSuperZone.SelectedIndex != 0) { DDLZone.DataSource = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(DDLSuperZone.SelectedValue.ToString()), "Zone"); DDLZone.DataBind(); DDLZone.Items.Insert(0, new ListItem("-All Zone-", "0")); DDLZone.Focus(); } }
protected void DDLZone_SelectedIndexChanged(object sender, EventArgs e) { if (DDLZone.SelectedIndex == 0) { // MessageBox("Select SuperZone"); DDLZone.Focus(); // DDLZone.SelectedValue = null; } }
public void SaveAreaZoneMaster() { if (DDLSuperZone.SelectedIndex == 0) { MessageBox("Select SuperZone"); DDLSuperZone.Focus(); } if (DDLZone.SelectedIndex == 0) { MessageBox("Select Zone"); DDLZone.Focus(); } else { AreaZoneMaster _ObjAreaZoneMaster = new AreaZoneMaster(); _ObjAreaZoneMaster.AreaZoneID = Convert.ToInt32(lblID.Text); _ObjAreaZoneMaster.AreaZoneCode = txtAreaZoneCode.Text.Trim(); _ObjAreaZoneMaster.AreaZoneName = txtAreaZoneName.Text.Trim(); _ObjAreaZoneMaster.ZoneID = Convert.ToInt32(DDLZone.SelectedItem.Value.ToString()); _ObjAreaZoneMaster.IsActive = Chekacv.Checked; try { _ObjAreaZoneMaster.Save(); MessageBox("Record saved successfully"); grdAreaZoneDetails.DataSource = BindAreaZoneDetail(); grdAreaZoneDetails.DataBind(); if (btnSave.Text == "Update") { pnlAreaZoneDetails.Visible = true; PnlAreaZone.Visible = false; btnSave.Visible = false; btnSave.Text = "Save"; txtAreaZoneCode.Enabled = true; filter.Visible = true; } else { PnlAreaZone.Visible = true; pnlAreaZoneDetails.Visible = false; txtAreaZoneCode.Text = ""; txtAreaZoneName.Text = ""; DDLSuperZone.SelectedValue = null; DDLZone.Items.Clear(); //DDLZone.SelectedValue = null; Bind_DDL_SuperZone(); } } catch { } } }
protected void DDLSuperZone_SelectedIndexChanged(object sender, EventArgs e) { if (DDLSuperZone.SelectedIndex == 0) { DDLSuperZone.Focus(); DDLZone.Items.Clear(); } else { Bind_DDL_Zone(); DDLZone.Focus(); } }
protected void DDLZone_SelectedIndexChanged(object sender, EventArgs e) { if (DDLZone.SelectedIndex == 0) { DDLZone.Focus(); Bind_DDL_Zone(); // Bind_DDL_SuperZone(); } else { Bind_DDL_AreaZone(); DDLAreaZone.Focus(); } }
protected void DDLZone_SelectedIndexChanged(object sender, EventArgs e) { if (DDLZone.SelectedIndex == 0) { DDLZone.Focus(); ddlCustmore.Items.Clear(); ddlCustmore.Items.Insert(0, new ListItem("-All Customer-", "0")); } else { Bind_DDL_Customer(); ddlCustmore.Focus(); } }
protected void DDLSuperZone_SelectedIndexChanged(object sender, EventArgs e) { if (DDLSuperZone.SelectedIndex == 0) { DDLSuperZone.Focus(); DDLZone.Items.Clear(); DDLZone.Items.Insert(0, new ListItem("--All--", "0")); } else { Bind_DDL_Zone(); DDLZone.Focus(); } }
protected void DDLZone_SelectedIndexChanged(object sender, EventArgs e) { if (DDLZone.SelectedIndex == 0) { DDLZone.Focus(); ddlCustmore.Items.Clear(); Bind_DDL_ZoneCust(); } else { Bind_DDL_Customer(); ddlCustmore.Focus(); } }
protected void DDLZone_SelectedIndexChanged(object sender, EventArgs e) { if (DDLZone.SelectedIndex == 0) { // MessageBox("Select SuperZone"); DDLZone.Focus(); DDLCustomer.Items.Clear(); // DDLZone.SelectedValue = null; } else { BindCustomer(); DDLCustomer.Focus(); } }
protected void DDLSuperZone_SelectedIndexChanged(object sender, EventArgs e) { if (DDLSuperZone.SelectedIndex == 0) { DDLSuperZone.Focus(); DDLZone.Items.Clear(); Bind_DDL_SuperZone(); } else { Bind_DDL_Zone(); //rdbAll.Checked = false; //rdbAmount.Checked = false; DDLZone.Focus(); } }
protected void DDLZone_SelectedIndexChanged(object sender, EventArgs e) { if (DDLZone.SelectedIndex == 0) { // MessageBox("Select SuperZone"); //lblzselect.Visible = false; DDLZone.Focus(); lblsdzselect.Text = "Selected : " + ddlSDZone.SelectedItem.Text.ToString() + " : " + DDLSuperZone.SelectedItem.Text.ToString(); // DDLZone.SelectedValue = null; } else { // lblzselect.Visible = true; lblsdzselect.Text = "Selected : " + ddlSDZone.SelectedItem.Text.ToString() + " : " + DDLSuperZone.SelectedItem.Text.ToString() + " : " + DDLZone.SelectedItem.Text.ToString(); txtaddname.Focus(); } }
protected void DDLSuperZone_SelectedIndexChanged(object sender, EventArgs e) { if (DDLSuperZone.SelectedIndex == 0) { DDLSuperZone.Focus(); //lblszselect.Visible = false; DDLZone.Items.Clear(); DDLZone.Items.Insert(0, new ListItem("--Select Zone--", "0")); lblsdzselect.Text = "Selected : " + ddlSDZone.SelectedItem.Text.ToString(); } else { Bind_DDL_Zone(); //lblszselect.Visible = true; lblsdzselect.Text = "Selected : " + ddlSDZone.SelectedItem.Text.ToString() + " : " + DDLSuperZone.SelectedItem.Text.ToString(); DDLZone.Focus(); } }
public void Bind_DDL_Zone() { DDLZone.Items.Clear(); ddlCustmore.Items.Clear(); if (DDLSuperZone.SelectedIndex > 0) { DDLZone.DataSource = Masters.Get_AreaZone_Zone_SuperZone(Convert.ToInt32(DDLSuperZone.SelectedValue.ToString()), "Zone"); DDLZone.DataBind(); DDLZone.Focus(); DDLZone.Items.Insert(0, new ListItem("-All Zone-", "0")); ddlCustmore.Items.Insert(0, new ListItem("-All Customer-", "0")); } else { DDLZone.Items.Insert(0, new ListItem("-<Select SuperZone-", "0")); ddlCustmore.Items.Insert(0, new ListItem("-<Select SuperZone-", "0")); } customerDisabled(); }