Пример #1
0
 public void SetView()
 {
     if (Request.QueryString["a"] != null)
     {
         if (Request.QueryString["a"] == "a")
         {
             DDLScheme.Focus();
             lblID.Text       = "0";
             Panel1.Visible   = true;
             Panel2.Visible   = false;
             btn_Save.Visible = true;
         }
         else
         if (Request.QueryString["a"] == "v")
         {
             Panel1.Visible   = false;
             Panel2.Visible   = true;
             btn_Save.Visible = false;
             BindDetail();
         }
     }
 }
Пример #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["FY"] != null)
        {
            // strChetanaCompanyName = Session["ChetanaCompanyName"].ToString();
            strFY = Session["FY"].ToString();
        }
        else
        {
            Session.Clear();
        }
        //Response.Write(strFY);


        if (!Page.IsPostBack)
        {
            DDLScheme.DataSource = Masterofmaster.Get_MasterOfMaster_ByGroup("Scheme").Tables[0];
            DDLScheme.DataBind();
            DDLScheme.Items.Insert(0, new ListItem("--Select Scheme--", "0"));
            SetView();
        }
    }
    //public void Bind_DDL_ZoneCust()
    //{
    //    DDLZone.DataSource = Masters.Get_AreaZone_Zone_SuperZone(0, "Zone");
    //    DDLZone.DataBind();
    //    DDLZone.Items.Insert(0, new ListItem("-Select Zone-", "0"));
    //    ddlCustmore.Items.Insert(0, new ListItem("-Select Customer-", "0"));
    //}
    //public void Bind_DDL_Customer()
    //{
    //    ddlCustmore.DataSource = Masters.Idv_Chetana_Get_ZoneCustomer(Convert.ToInt32(DDLZone.SelectedValue.ToString()));
    //    ddlCustmore.DataBind();
    //    ddlCustmore.Items.Insert(0, new ListItem("-Select Customer-", "0"));
    //}

    public void Bind_DDl_Scheme()
    {
        DDLScheme.DataSource = Masterofmaster.Get_MasterOfMaster_ByGroup("Scheme").Tables[0];
        DDLScheme.DataBind();
        DDLScheme.Items.Insert(0, new ListItem("--Select Scheme--", "0"));
    }