Esempio n. 1
0
 public void BindSDZone()
 {
     DDLSDZone.DataSource = Masters.Get_AreaZone_Zone_SuperZone(0, "SDZone");
     DDLSDZone.DataBind();
     DDLSDZone.Focus();
     DDLSuperZone.Items.Clear();
     DDLSDZone.Items.Insert(0, new ListItem("-Select Super Duper Zone-", "0"));
     DDLSuperZone.Items.Insert(0, new ListItem("-Select Super Zone-", "0"));
 }
Esempio n. 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Session["ChetanaCompanyName"] != null)
     {
         if (Session["FY"] != null)
         {
             strChetanaCompanyName = Session["ChetanaCompanyName"].ToString();
             strFY = Session["FY"].ToString();
         }
         else
         {
             Session.Clear();
         }
     }
     if (!Page.IsPostBack)
     {
         BindSDZone();
         Bind_DDL_Zone();
         DDLSDZone.Focus();
     }
     if (Page.IsPostBack)
     {
         if (Convert.ToInt32(DDLSuperZone.SelectedValue.ToString()) != Convert.ToInt32("0"))
         {
             BindReport();
             //rdbAll.Checked = false;
             //rdbAmount.Checked = false;
             //txtAmount.Text = "";
             //txtAmount.Visible = false;
         }
         //else if (rdbAmount.Checked == true)
         //{
         //    if (txtAmount.Text != "")
         //    {
         //        DDLSuperZone.SelectedValue = "0";
         //        DDLZone.SelectedValue = "0";
         //        BindReport();
         //    }
         //    else
         //    {
         //        DDLSuperZone.SelectedValue = "0";
         //        DDLZone.SelectedValue = "0";
         //    }
         //}
         //else if (Convert.ToInt32(DDLZone.SelectedValue.ToString()) != Convert.ToInt32("0"))
         //{
         //    BindReport();
         //}
         //else if (rdbAll.Checked == true)
         //{
         //    DDLSuperZone.SelectedValue = "0";
         //    DDLZone.SelectedValue = "0";
         //    BindReport();
         //}
     }
 }