Example #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        DataTable dt  = new Biz_Usr_Est_Dept_info().GetDeptInfo_Depth();
        DataTable dt1 = new Biz_Usr_Est_Dept_info().GetDeptInfo_DepthRow();

        rowCount = dt.Rows.Count;
        for (int i = 0; i < dt.Rows.Count; i++)
        {
            if (dt1.Rows[i]["DEPT_LEVEL"].ToString() == "1")
            {
                Html = string.Format("<div class='dept' onclick=\"fnClick('{0}', '{1}', this);\">{2}</div>"
                                     , dt1.Rows[i]["DEPT_LEVEL"]
                                     , dt1.Rows[i]["DEPT_REF_ID"]
                                     , dt1.Rows[i]["DEPT_NAME"]);
            }
        }
    }
Example #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        string dept_id = Request["upId"];
        string depth   = Request["level"];

        if (dept_id != null && depth != null && dept_id != "" && depth != "")
        {
            DataTable dt1 = new Biz_Usr_Est_Dept_info().GetDeptInfo_DepthRow(int.Parse(dept_id));
            if (dt1.Rows.Count > 0)
            {
                rpList.DataSource = dt1;
                rpList.DataBind();
                divMessage.Visible = false;
                rpList.Visible     = true;
            }
            else
            {
                divMessage.Visible = true;
                rpList.Visible     = false;
            }
        }
    }