Ejemplo n.º 1
0
 public void BindSuperZone()
 {
     DDLsuperzone.DataSource = SuperZone.GetSuperzonemaster();
     DDLsuperzone.DataBind();
     DDLsuperzone.Items.Insert(0, new ListItem("-Select SuperZone-", "0"));
     DDLzone.Items.Clear();
     DDLzone.Items.Insert(0, new ListItem("-Select Zone-", "0"));
 }
Ejemplo n.º 2
0
    public DataView BindGvSuperZoneDetail()
    {
        DataTable dt = new DataTable();

        dt = SuperZone.GetSuperzonemaster();
        DataView dv = new DataView(dt);

        return(dv);
    }
    private void fillzones()
    {
        DDLsuperzone.DataSource = SuperZone.GetSuperzonemaster();
        DDLsuperzone.DataBind();
        DDLsuperzone.Items.Insert(0, new ListItem("--Select SuperZone--", "0"));
        ddLStates.DataSource = Destination.GetDestination(flag);
        ddLStates.DataBind();
        ddLStates.Items.Insert(0, new ListItem("--Select State--", "0"));

        ddlCity.Items.Insert(0, new ListItem("--Select City--", "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();
            }
            //Response.Write(strFY);
        }

        if (!Page.IsPostBack)
        {
            DDLsuperzone.Focus();
            DDLsuperzone.DataSource = SuperZone.GetSuperzonemaster();
            DDLsuperzone.DataBind();
            DDLsuperzone.Items.Insert(0, new ListItem("-- Select SuperZone --", "0"));
        }
        if (IsPostBack)
        {
            if (txtfromDate.Text.Trim() != "" && txtToDate.Text.Trim() != "")
            {
                string from = txtfromDate.Text.Split('/')[1] + "/" + txtfromDate.Text.Split('/')[0] + "/" + txtfromDate.Text.Split('/')[2];
                string To   = txtToDate.Text.Split('/')[1] + "/" + txtToDate.Text.Split('/')[0] + "/" + txtToDate.Text.Split('/')[2];
                fdate = Convert.ToDateTime(from);
                tdate = Convert.ToDateTime(To);

                if (rdbselect.SelectedValue == "summary")
                {
                    ShowDetails1();
                }
                else
                {
                    ShowDetails();
                }
            }
            else
            {
                //MessageBox("Select Date");
            }
        }
    }
    private void fillzones()
    {
        DDLsuperzone.DataSource = SuperZone.GetSuperzonemaster();
        DDLsuperzone.DataBind();
        DDLsuperzone.Items.Insert(0, new ListItem("--Select SuperZone--", "0"));
        ddLStates.DataSource = Destination.GetDestination(flag);
        ddLStates.DataBind();
        ddLStates.Items.Insert(0, new ListItem("--Select State--", "0"));

        ddlCity.Items.Insert(0, new ListItem("--Select City--", "0"));


        DDLCC.DataSource = CustCategory.GetCustomerCategoryMaster("adminCCM");
        DDLCC.DataBind();
        DDLCC.Items.Insert(0, new ListItem("--Select Category--", "0"));
        DDLCSC.Items.Insert(0, new ListItem("--Select Sub Category--", "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)
        {
            DDLsuperzone.Focus();
            DDLsuperzone.DataSource = SuperZone.GetSuperzonemaster();
            DDLsuperzone.DataBind();
            DDLsuperzone.Items.Insert(0, new ListItem("-- Select SuperZone --", "0"));
            BindCustCategory();
            txtfromDate.Text = Session["FromDate"].ToString();
            txtToDate.Text   = Session["ToDate"].ToString();
        }
        if (IsPostBack)
        {
            if (txtfromDate.Text.Trim() != "" && txtToDate.Text.Trim() != "")
            {
                string from = txtfromDate.Text.Split('/')[1] + "/" + txtfromDate.Text.Split('/')[0] + "/" + txtfromDate.Text.Split('/')[2];
                string To   = txtToDate.Text.Split('/')[1] + "/" + txtToDate.Text.Split('/')[0] + "/" + txtToDate.Text.Split('/')[2];
                fdate = Convert.ToDateTime(from);
                tdate = Convert.ToDateTime(To);


                ShowDetails1();
            }
            else
            {
            }
        }
    }
Ejemplo n.º 7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["FY"] != null)
        {
            strFY = Session["FY"].ToString();
        }
        else
        {
            Session.Clear();
        }
        //Response.Write(strFY);



        if (!Page.IsPostBack)
        {
            DDLsuperzone.Focus();
            DDLsuperzone.DataSource = SuperZone.GetSuperzonemaster();
            DDLsuperzone.DataBind();
            DDLsuperzone.Items.Insert(0, new ListItem("-- Select SuperZone --", "0"));
        }
    }
Ejemplo n.º 8
0
 public void GetSuperZone()
 {
     usergrid.DataSource = SuperZone.GetSuperzonemaster();
     usergrid.DataBind();
 }