Esempio n. 1
0
    private void BindComTypeInfo()
    {
        int sDEPT_REF_ID = (hdfDeptID.Value == "") ? 0 : int.Parse(hdfDeptID.Value);

        MicroBSC.Biz.Common.Biz.Biz_DeptTypeInfo biz = new MicroBSC.Biz.Common.Biz.Biz_DeptTypeInfo();
        DataSet ds = biz.GetDeptTypeSortList(IEstTermRefID, sDEPT_REF_ID);

        ddlComTypeInfo.Items.Clear();

        ddlComTypeInfo.DataSource = ds;

        ddlComTypeInfo.DataTextField  = "TYPE_NAME";
        ddlComTypeInfo.DataValueField = "TYPE_REF_ID";

        ddlComTypeInfo.DataBind();
    }
Esempio n. 2
0
    protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
    {
        MicroBSC.Biz.Common.Biz.Biz_DeptTypeInfo biz = new MicroBSC.Biz.Common.Biz.Biz_DeptTypeInfo();
        DataSet ds = biz.GetDeptTypeSortList(int.Parse(Request["estterm_ref_id"]), int.Parse(TreeView1.SelectedNode.Value));

        int rowcount = ds.Tables[0].Rows.Count;

        if (rowcount == 0)
        {
            PageUtility.ExecuteScript("alert('비교 대상이 될수 없는 최하위 조직입니다\\n상위 조식을 선택하세요');");
        }
        else
        {
            Response.Write("<script type='text/javascript'>\r\n");
            Response.Write("opener.document.getElementById('hdfDeptID').value='" + TreeView1.SelectedNode.Value + "';\r\n");
            Response.Write("opener.document.getElementById('txtDeptName').value='" + TreeView1.SelectedNode.Text + "';\r\n");
            Response.Write("opener.__doPostBack('lBtnReload','');\r\n");
            //Response.Write("alert('" + TreeView1.SelectedNode.Value + "');\r\n");
            Response.Write("self.close();\r\n");
            Response.Write("</script>\r\n");
        }
    }
Esempio n. 3
0
    private void BindComTypeInfo()
    {
        int sDEPT_REF_ID = int.Parse(hdfDeptID.Value);

        est_term_id = int.Parse(this.ddlEstTermInfo.SelectedValue);

        MicroBSC.Biz.Common.Biz.Biz_DeptTypeInfo biz = new MicroBSC.Biz.Common.Biz.Biz_DeptTypeInfo();
        DataSet ds = biz.GetDeptTypeSortList(est_term_id, sDEPT_REF_ID);

        ddlComTypeInfo.Items.Clear();

        ddlComTypeInfo.DataSource = ds;

        //임원,부분 제거
        ds.Tables[0].Rows.Remove(ds.Tables[0].Rows[0]);
        ds.Tables[0].Rows.Remove(ds.Tables[0].Rows[0]);

        this.hdfDept_Type_Flag.Value = ds.Tables[0].Rows.Count.ToString();

        ddlComTypeInfo.DataTextField  = "TYPE_NAME";
        ddlComTypeInfo.DataValueField = "TYPE_REF_ID";

        ddlComTypeInfo.DataBind();
    }