Пример #1
0
    protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
    {
        MicroBSC.Estimation.Dac.DeptInfos dept = new MicroBSC.Estimation.Dac.DeptInfos();
        string deptid   = TreeView1.SelectedNode.Value;
        string deptname = TreeView1.SelectedNode.Text;

        ltrEstDeptID.Text = deptid;
        int est_dept_group_id = 0;

        if (tdEstDeptGroup.Visible == false)
        {
            tdEstDeptGroup.Visible = true;
        }

        ltrEstDeptPath.Text = WebCommon.GetEstParentTreeText(TreeView1);

        ListItem listItem = ddlDeptGroup.Items.FindByValue(est_dept_group_id.ToString());

        ddlDeptGroup.ClearSelection();

        if (listItem != null)
        {
            listItem.Selected = true;
        }
        else
        {
            ddlDeptGroup.Items.FindByValue(Convert.ToString(0)).Selected = true;
        }
    }
Пример #2
0
 protected void ddlEstDept_SelectedIndexChanged(object sender, EventArgs e)
 {
     this.IEstDeptRefID = PageUtility.GetIntByValueDropDownList(ddlEstDept);
     MicroBSC.Estimation.Dac.DeptInfos objDEPT = new MicroBSC.Estimation.Dac.DeptInfos(this.IEstDeptRefID);
     this.IEstDeptRefIDName = Convert.ToString(objDEPT.Dept_Name);
     SetFormData();
 }
Пример #3
0
    protected void btnIn_Click(object sender, ImageClickEventArgs e)
    {
        if (ltrEstDeptPath.Text.Equals(String.Empty))
        {
            Literal1.Text = JSHelper.GetAlertScript("평가 부서를 선택해 주세요.", false);
            return;
        }

        if (ltrDeptPath.Text.Equals(String.Empty))
        {
            Literal1.Text = JSHelper.GetAlertScript("인사 부서를 선택해 주세요.", false);
            return;
        }

        if (ddlDeptGroup.SelectedValue.Equals("0"))
        {
            Literal1.Text = JSHelper.GetAlertScript("부분을 선택해주세요.", false);
            return;
        }

        MicroBSC.Estimation.Dac.DeptInfos dept = new MicroBSC.Estimation.Dac.DeptInfos();
        dept.MappingEstDept_Dept_ID(PageUtility.GetIntByValueDropDownList(ddlEstTermInfo), int.Parse(ltrEstDeptID.Text), int.Parse(ltrDeptID.Text), int.Parse(ddlDeptGroup.SelectedValue));
        TreeView1.Nodes.Clear();
        WebCommon.FillEstMappingTree(TreeView1, PageUtility.GetIntByValueDropDownList(ddlEstTermInfo));
        TreeView1.ExpandAll();
    }
Пример #4
0
 protected void Page_PreRender(object sender, EventArgs e)
 {
     if (txtDropDown.Text.Equals(""))
     {
         DeptInfos deptInfo = new DeptInfos(EST_DEPT_REF_ID);
         txtDropDown.Text = deptInfo.Dept_Name;
     }
 }
Пример #5
0
    private void TopEstDeptInfo()
    {
        this.SetParameter();

        MicroBSC.Estimation.Dac.DeptInfos objEst2 = new MicroBSC.Estimation.Dac.DeptInfos(this.IEstDeptID);
        this.txtDeptName.Text = objEst2.Dept_Name;

        BindComTypeInfo();
    }
Пример #6
0
    private void TopEstDeptInfo()
    {
        this.SetParameter();

        //장성민 Dac을 직접호출 추후 수정필수
        MicroBSC.Estimation.Dac.DeptInfos objEst = new MicroBSC.Estimation.Dac.DeptInfos();
        this.IEstDeptID = objEst.GetRootEstDeptID(this.IEstTermRefID);
        hdfDeptID.Value = this.IEstDeptID.ToString();
        MicroBSC.Estimation.Dac.DeptInfos objEst2 = new MicroBSC.Estimation.Dac.DeptInfos(this.IEstDeptID);
        this.txtDeptName.Text = objEst2.Dept_Name;

        BindComTypeInfo();
    }
Пример #7
0
    private void SetPageData()
    {
        if (!IsPostBack)
        {
            //평기기간(년)리스트
            WebCommon.SetEstTermDropDownList(ddlEstTermInfo);
        }

        this.IEstTermRefID = PageUtility.GetIntByValueDropDownList(ddlEstTermInfo);
        MicroBSC.Estimation.Dac.TermInfos objTERM = new MicroBSC.Estimation.Dac.TermInfos(this.IEstTermRefID);
        this.IEstTermRefIDName = Convert.ToString(objTERM.Estterm_name);

        int intEstTermId = (ddlEstTermInfo.Items.Count > 0) ? int.Parse(ddlEstTermInfo.SelectedValue) : 0;

        if (User.IsInRole(ROLE_ADMIN))
        {
            WebCommon.SetEstDeptDropDownList(ddlEstDept, intEstTermId, true);
        }
        else
        {
            WebCommon.SetEstDeptDropDownList(ddlEstDept, intEstTermId, false, gUserInfo.Emp_Ref_ID);
        }

        this.IEstDeptRefID = PageUtility.GetIntByValueDropDownList(ddlEstDept);

        if (ddlEstDept.Items.Count > 0)
        {
            MicroBSC.Estimation.Dac.DeptInfos objDEPT = new MicroBSC.Estimation.Dac.DeptInfos(this.IEstDeptRefID);
            this.IEstDeptRefIDName = Convert.ToString(objDEPT.Dept_Name);
            SetFormData();
        }
        else
        {
            this.txtWorkEmpIDName.Text = "";
            this.txtWorkCode.Text      = "";
            this.txtWorkName.Text      = "";
            this.IEstDeptRefID         = 0;
            this.IWorkRefID            = 0;
            this.IExecRefID            = 0;
            this.ITaskRefID            = 0;
            this.IItemRefID            = 0;
            this.pnlInfoBtn.Visible    = false;
            this.pnlExecBtn.Visible    = false;
        }
    }
Пример #8
0
    private void CreateDataGrid()
    {
        TemplateColumn templeatCol = null;

        DeptInfos deptInfo = new DeptInfos();

        dsDept = deptInfo.GetEstDeptListByLevel(int.Parse(DeptID));

        foreach (DataRow dr in dsDept.Tables[0].Rows)
        {
            /* 2011-08-29 수정 : DataGrid에서 UltraDataGrid로 변환으로 변경 필요
             * templeatCol                             = new TemplateColumn();
             * templeatCol.HeaderTemplate              = new DGridTemplete(ListItemType.Header, dr["DEPT_NAME"].ToString(), "");
             * templeatCol.HeaderStyle.HorizontalAlign = HorizontalAlign.Center;
             * templeatCol.ItemTemplate                = new DGridTemplete(ListItemType.Item, "C_" + dr["EST_DEPT_REF_ID"].ToString());
             * templeatCol.ItemStyle.HorizontalAlign   = HorizontalAlign.Center;
             * DataGrid1.Columns.Add(templeatCol);
             */
            Infragistics.WebUI.UltraWebGrid.TemplatedColumn tempCol = new Infragistics.WebUI.UltraWebGrid.TemplatedColumn();
            DataGrid1.Bands[0].Columns.Add(tempCol);
        }
    }
Пример #9
0
    private void SavePDTData()
    {
        Biz_PDTAndAHPStgEstDeptDatas pDTAndAHPStgEstDeptDatas = new Biz_PDTAndAHPStgEstDeptDatas();

        DataTable stgdData = new DataTable();
        DataRow   dr       = null;

        stgdData.Columns.Add("STG_REF_ID", typeof(int));
        stgdData.Columns.Add("UP_STG_ID", typeof(int));
        stgdData.Columns.Add("STG_MAP_YN", typeof(string));
        stgdData.Columns.Add("F_YN", typeof(string));
        stgdData.Columns.Add("C_YN", typeof(string));
        stgdData.Columns.Add("P_YN", typeof(string));
        stgdData.Columns.Add("L_YN", typeof(string));

        /* 2011-08-29 수정 : Grid에서 UltraWebGrid로 변경에 따른 수정 필요
         * foreach (DataGridItem item in DataGrid1.Items)
         * {
         *  dr                  = stgdData.NewRow();
         *  dr["STG_REF_ID"]    = (item.Cells[0].FindControl("lblStgRefID") as Label).Text;
         *  dr["UP_STG_ID"]     = 0;
         *  dr["STG_MAP_YN"]    = ((item.Cells[1].FindControl("cBoxStgMap") as CheckBox).Checked) ? "Y":"N";
         *  dr["F_YN"]          = ((item.Cells[2].FindControl("cBoxF") as CheckBox).Checked)? "Y":"N";
         *  dr["C_YN"]          = ((item.Cells[2].FindControl("cBoxC") as CheckBox).Checked)? "Y":"N";
         *  dr["P_YN"]          = ((item.Cells[2].FindControl("cBoxP") as CheckBox).Checked)? "Y":"N";
         *  dr["L_YN"]          = ((item.Cells[2].FindControl("cBoxL") as CheckBox).Checked)? "Y":"N";
         *  stgdData.Rows.Add(dr);
         * }
         */

        DataTable estDeptData = new DataTable();

        estDeptData.Columns.Add("EST_DEPT_REF_ID", typeof(int));
        estDeptData.Columns.Add("STG_REF_ID", typeof(int));
        estDeptData.Columns.Add("CHECK_YN", typeof(string));

        DeptInfos deptInfo = new DeptInfos();

        if (txtDeptID.Text != "")
        {
            DataSet ds = deptInfo.GetEstDeptListByLevel(int.Parse(txtDeptID.Text));

            foreach (DataRow deptRow in ds.Tables[0].Rows)
            {
                /* 2011-08-29 수정 : Grid에서 UltraWebGrid로 변경에 따른 수정 필요
                 * foreach (DataGridItem item in DataGrid1.Items)
                 * {
                 *  CheckBox cBox_YN = item.FindControl("C_" + deptRow["EST_DEPT_REF_ID"].ToString()) as CheckBox;
                 *
                 *  if (cBox_YN != null)
                 *  {
                 *      dr                      = estDeptData.NewRow();
                 *      dr["EST_DEPT_REF_ID"]   = deptRow["EST_DEPT_REF_ID"].ToString();
                 *      dr["STG_REF_ID"]        = (item.Cells[0].FindControl("lblStgRefID") as Label).Text;
                 *      dr["CHECK_YN"]          = (cBox_YN.Checked) ? "Y" : "N";
                 *      dr["CHECK_YN"]          = (!cBox_YN.Visible) ? "N" : dr["CHECK_YN"].ToString();
                 *      estDeptData.Rows.Add(dr);
                 *  }
                 * }
                 */
            }
        }
        else
        {
        }

        bool isOK = pDTAndAHPStgEstDeptDatas.AddPDTAndAHPStgEstDeptDatas(PageUtility.GetIntByValueDropDownList(ddlStgVersion)
                                                                         , PageUtility.GetIntByValueDropDownList(ddlEstTermInfo)
                                                                         , stgdData
                                                                         , estDeptData
                                                                         , int.Parse(DeptID)
                                                                         , EMP_REF_ID);



        if (isOK)
        {
            ltrScript.Text = JSHelper.GetAlertScript("정상적으로 등록되었습니다.", false);
        }
        else
        {
            ltrScript.Text = JSHelper.GetAlertScript("처리 중 오류가 발생하였습니다.", false);
        }
    }
Пример #10
0
    private void SetPageData()
    {
        if (!IsPostBack)
        {
            MicroBSC.Estimation.Dac.TermInfos objTERM = new MicroBSC.Estimation.Dac.TermInfos(this.IEstTermRefID);
            this.IEstTermName   = Convert.ToString(objTERM.Estterm_name);
            txtEsttermName.Text = this.IEstTermName;

            MicroBSC.Estimation.Dac.DeptInfos objDEPT = new MicroBSC.Estimation.Dac.DeptInfos(this.IEstDeptRefID1);
            this.IEstDeptName1   = Convert.ToString(objDEPT.Dept_Name);
            txtEstDeptName1.Text = this.IEstDeptName1;

            this.SetMapVersion();
            this.SetMapInfo(true);

            pnlWorkExec.Visible = false;
            pnlWorkInfo.Visible = false;
        }


        //평가조직 트리 구성
        //WebCommon.FillEstTree(trvEstDept, this.IEstTermRefID, gUserInfo.Emp_Ref_ID);
        WebCommon.FillEstTree(trvEstDept, this.IEstTermRefID);
        trvEstDept.ExpandAll();

        if (trvEstDept.Nodes.Count > 0)
        {
            trvEstDept.Nodes[0].Select();
            this.IEstDeptRefID2       = (trvEstDept.SelectedNode == null) ? 0 : int.Parse(trvEstDept.SelectedNode.Value);
            this.txtEstDeptName2.Text = (trvEstDept.SelectedNode == null) ? "" : trvEstDept.SelectedNode.Text;
            this.IEstDeptName2        = (trvEstDept.SelectedNode == null) ? "" : trvEstDept.SelectedNode.Text;

            pnlWorkInfo.Visible = false;
            pnlWorkExec.Visible = false;

            SetWorkInfoList();

            //this.SetFormData();
        }
        else
        {
            this.IStgRefID            = 0;
            this.IKpiRefID            = 0;
            this.IWorkRefID           = 0;
            this.IExecRefID           = 0;
            this.IEstDeptRefID2       = 0;
            this.IEstDeptName2        = "";
            this.txtEstDeptName2.Text = "";
            this.IStgName             = "";
            this.IKpiName             = "";
            this.IWorkName            = "";
            this.IExecName            = "";
            this.ugrdWorkInfoList.Clear();
            this.ugrdWorkExecList.Clear();
            this.trvEstDept.Nodes.Clear();
        }

        //Response.Write("IEstTermRefID = "+IEstTermRefID +"<br>");
        //Response.Write("IEstDeptRefID1 = "+IEstDeptRefID1 +"<br>");
        //Response.Write("IEstDeptRefID2 = "+IEstDeptRefID2+"<br>");
        //Response.End();
    }