コード例 #1
0
 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;
 }
コード例 #2
0
 protected void DDLSuperZone_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (DDLSuperZone.SelectedIndex != 0)
     {
         Bind_DDL_Zone();
         DDLZone.Focus();
     }
 }
コード例 #3
0
    protected void DDLZone_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (DDLZone.SelectedIndex == 0)
        {
            DDLZone.Focus();

            Bind_DDL_ZoneCust();
        }
    }
コード例 #4
0
 protected void DDLZone_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (DDLZone.SelectedIndex == 0)
     {
         MessageBox("Select SuperZone");
         DDLZone.Focus();
         // SalesanalysisReportview.ReportSource = null;
         //  DDLZone.SelectedValue = null;
     }
 }
コード例 #5
0
 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();
     }
 }
コード例 #6
0
    protected void DDLZone_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (DDLZone.SelectedIndex == 0)
        {
            // MessageBox("Select SuperZone");

            DDLZone.Focus();

            //  DDLZone.SelectedValue = null;
        }
    }
コード例 #7
0
    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
            {
            }
        }
    }
コード例 #8
0
 protected void DDLSuperZone_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (DDLSuperZone.SelectedIndex == 0)
     {
         DDLSuperZone.Focus();
         DDLZone.Items.Clear();
     }
     else
     {
         Bind_DDL_Zone();
         DDLZone.Focus();
     }
 }
コード例 #9
0
 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();
     }
 }
コード例 #10
0
 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();
     }
 }
コード例 #11
0
 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();
     }
 }
コード例 #12
0
 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();
     }
 }
コード例 #13
0
 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();
     }
 }
コード例 #14
0
 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();
     }
 }
コード例 #15
0
 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();
     }
 }
コード例 #16
0
 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();
     }
 }
コード例 #17
0
 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();
 }