Exemplo n.º 1
0
    // protected void test()
    // {

    // }

    protected void ddlbusiness_SelectedIndexChanged(object sender, EventArgs e)
    {
        clsjobfunction objjobfunction = new clsjobfunction();

        objjobfunction.comid = Session["Comid"].ToString();

        objjobfunction.Whid = Convert.ToInt32(ddlbusiness.SelectedValue);
        DataTable dt = new DataTable();

        dt = objjobfunction.selec_deprdes();

        if (dt.Rows.Count > 0)
        {
            ddldepartdesg.DataSource     = dt;
            ddldepartdesg.DataTextField  = "name";
            ddldepartdesg.DataValueField = "DesignationMasterId";
            ddldepartdesg.DataBind();
        }
        else
        {
            ddldepartdesg.Items.Clear();
        }
        //     ddlbusiness.Items.Insert(0, "All");
        //     ddlbusiness.Items[0].Value = "0";

        filljobfuncat();
        filljobfunsubcat();
    }
Exemplo n.º 2
0
    protected void filldesignation()
    {
        clsjobfunction objjobfunction = new clsjobfunction();

        objjobfunction.comid = Session["Comid"].ToString();
        objjobfunction.Whid  = Convert.ToInt32(ddlbusiness.SelectedValue);
        //  objjobfunction.DeptID = Convert.ToInt32(ddlbusiness.SelectedValue);
        DataTable dt = new DataTable();

        dt = objjobfunction.selec_deprdes();

        if (dt.Rows.Count > 0)
        {
            ddldepartdesg.DataSource     = dt;
            ddldepartdesg.DataTextField  = "name";
            ddldepartdesg.DataValueField = "DesignationMasterId";
            ddldepartdesg.DataBind();
        }
        //    ddldepartdesg.Items.Insert(0, "-Select-");
        //    ddldepartdesg.SelectedItem.Value = "0";
    }