예제 #1
0
    /// <summary>
    /// 실적마감율 세팅, 결재할 문서, 커뮤니케이션 문서 존재하는지여부
    /// 공지사항 존재여부
    /// </summary>
    private void SetGlobalStatus()
    {
        MicroBSC.Estimation.Dac.TermInfos    objTermYY = new MicroBSC.Estimation.Dac.TermInfos();
        MicroBSC.BSC.Biz.Biz_Bsc_Term_Detail objTerm   = new MicroBSC.BSC.Biz.Biz_Bsc_Term_Detail();

        int    intEstTerm = objTermYY.GetOpenEstTermID();
        string sFinishMon = objTerm.GetReleasedMonth();

        lblFinishMonth.Text = sFinishMon.Substring(0, 4) + "/" + sFinishMon.Substring(4, 2);

        //실적마감율 세팅
        Biz_lib_MenuControl biz = new Biz_lib_MenuControl();

        lblFinishRate.Text = biz.GetFinishRate(intEstTerm, sFinishMon).ToString();

        // 커뮤니케이션 리스트가 있는지?
        Biz_Bsc_Communication_User objUser = new Biz_Bsc_Communication_User();

        iBtnCommunication.Src = (objUser.GetIsNewListPerUser(this.ILogInUserId)) ? "~/images/NHIT/btn_top_02.gif" : "~/images/NHIT/btn_top_02.gif";//있음:없음

        // 결재할 문서가 있는지?
        //Biz_Bsc_Kpi_Result objBSC = new Biz_Bsc_Kpi_Result();
        //iBtnConfirm.Src = (objBSC.GetIsNewDraftPerUser(intEstTerm, sFinishMon, this.ILogInUserId)) ? "~/images/btn/top_bu_k01_b.gif" : "~/images/btn/top_bu_k01.gif";
        Biz_Com_Approval_Prc objBSC = new Biz_Com_Approval_Prc();
        DataSet rDs = objBSC.GetToDraftList(this.ILogInUserId, "");

        if (rDs.Tables.Count > 0)
        {
            iBtnConfirm.Src = (rDs.Tables[0].Rows.Count > 0) ? "~/images/NHIT/btn_top_01.gif" : "~/images/NHIT/btn_top_01.gif";//있음:없음
        }
        else
        {
            iBtnConfirm.Src = "~/images/NHIT/btn_top_01.gif";
        }


        // 공지사항이 있는지 또는 읽었는지
        Biz_Bsc_Communication_Notice objNot = new Biz_Bsc_Communication_Notice();

        this.IisHaveNoticeYN = (objNot.GetCurrentNotice() ? "Y" : "N");

        string strCookieKey = "NOTICE_" + objNot.Inotice_ref_id.ToString();

        if (Request.Cookies[strCookieKey] != null)
        {
            DateTime dtCookieDate = Convert.ToDateTime(Server.HtmlEncode(Request.Cookies[strCookieKey].Expires.ToShortTimeString()));
            if (dtCookieDate < DateTime.Now)
            {
                this.IisHaveNoticeYN = "N";
            }
        }

        // 회사 이미지로고 세팅
        tblTopMenu.Style.Add(HtmlTextWriterStyle.BackgroundImage, ConfigurationManager.AppSettings["TopMenuLogo.ImageUrl"].ToString());
        imgBottomCopy.ImageUrl = ConfigurationManager.AppSettings["BottomPageCopy.ImageUrl"].ToString();
    }
예제 #2
0
    private void SetPageData()
    {
        MicroBSC.Estimation.Dac.TermInfos objTERM = new MicroBSC.Estimation.Dac.TermInfos(this.IEstTermRefID);
        this.IEstTermRefIDName = Convert.ToString(objTERM.Estterm_name);

        Biz_Bsc_Work_Info objWorkInfo = new Biz_Bsc_Work_Info(this.IEstTermRefID, this.IEstDeptRefID, this.IWorkRefID);

        this.IWorkRefIDName = Convert.ToString(objWorkInfo.Iwork_name);

        this.txtEstTermRefId.Text = this.IEstTermRefIDName;
        this.txtWorkName.Text     = this.IWorkRefIDName;

        SetFormData();
    }
예제 #3
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;
        }
    }
예제 #4
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.IEstTermName = Convert.ToString(objTERM.Estterm_name);

        //평가조직 트리 구성
        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.IEstDeptRefID       = (trvEstDept.SelectedNode == null) ? 0 : int.Parse(trvEstDept.SelectedNode.Value);
            this.txtEstDeptName.Text = (trvEstDept.SelectedNode == null) ? "" : trvEstDept.SelectedNode.Text;
            this.IEstDeptName        = (trvEstDept.SelectedNode == null) ? "" : trvEstDept.SelectedNode.Text;

            this.SetFormData();
        }
        else
        {
            this.IEstDeptRefID   = 0;
            this.IMapVersionID   = 0;
            this.IStgRefID       = 0;
            this.IKpiRefID       = 0;
            this.IWorkRefID      = 0;
            this.IExecRefID      = 0;
            this.IEstDeptName    = "";
            this.IMapVersionName = "";
            this.IStgName        = "";
            this.IKpiName        = "";
            this.IWorkName       = "";
            this.IExecName       = "";
            this.ugrdMapSKIE.Clear();
            this.trvStgMap.Nodes.Clear();
        }
    }
예제 #5
0
    private void InitControlValue()
    {
        string sUrl = HttpContext.Current.Request.Url.AbsolutePath;

        // ERRORINFO.ASPX는 쿼리스트링이 고정되지 않은 페이지 이므로 예외처리한다. (해당페이지 권한시 FULL_PATH로 처리되므로 무한루프일수 있다.)
        //if (sUrl.Substring(sUrl.LastIndexOf("/") + 1).ToUpper() != "ERRORINFO.ASPX")
        //    sUrl = HttpContext.Current.Request.Url.PathAndQuery;

        lblEmpName.Text = gUserInfo.Emp_Name;

        #region KPI실적 마감월, 마감율 셋팅
        MicroBSC.Estimation.Dac.TermInfos    objTermYY = new MicroBSC.Estimation.Dac.TermInfos();
        MicroBSC.BSC.Biz.Biz_Bsc_Term_Detail objTerm   = new MicroBSC.BSC.Biz.Biz_Bsc_Term_Detail();

        int    intEstTerm = objTermYY.GetOpenEstTermID();
        string sFinishMon = objTerm.GetReleasedMonth();
        lblFinishMonth.Text = sFinishMon.Substring(0, 4) + "/" + sFinishMon.Substring(4, 2);

        //실적마감율 세팅
        Biz_lib_MenuControl biz = new Biz_lib_MenuControl();
        lblFinishRate.Text = biz.GetFinishRate(intEstTerm, sFinishMon).ToString();

        #endregion
    }
예제 #6
0
    private void InitControlValue()
    {
        string pathAndQuery = HttpContext.Current.Request.Url.PathAndQuery;
        string sUrl         = HttpContext.Current.Request.Url.AbsolutePath;

        // ERRORINFO.ASPX는 쿼리스트링이 고정되지 않은 페이지 이므로 예외처리한다. (해당페이지 권한시 FULL_PATH로 처리되므로 무한루프일수 있다.)
        //if (sUrl.Substring(sUrl.LastIndexOf("/") + 1).ToUpper() != "ERRORINFO.ASPX")
        //    sUrl = HttpContext.Current.Request.Url.PathAndQuery;

        lblEmpName.Text = gUserInfo.Emp_Name;
        tblTopMenu.Style.Add(HtmlTextWriterStyle.BackgroundImage, ConfigurationManager.AppSettings["TopMenuLogo.ImageUrl"].ToString());


        MicroBSC.Estimation.Dac.TermInfos    objTermYY = new MicroBSC.Estimation.Dac.TermInfos();
        MicroBSC.BSC.Biz.Biz_Bsc_Term_Detail objTerm   = new MicroBSC.BSC.Biz.Biz_Bsc_Term_Detail();

        int    intEstTerm = objTermYY.GetOpenEstTermID();
        string sFinishMon = objTerm.GetReleasedMonth();


        #region KPI실적 마감월 셋팅
        lblFinishMonth.Text = sFinishMon.Substring(0, 4) + "/" + sFinishMon.Substring(4, 2);
        #endregion

        #region KPI실적 마감율 셋팅
        Biz_lib_MenuControl biz = new Biz_lib_MenuControl();
        lblFinishRate.Text = biz.GetFinishRate(intEstTerm, sFinishMon).ToString();
        #endregion

        #region 커뮤니케이션 리스트가 있는지?
        MicroBSC.BSC.Biz.Biz_Bsc_Communication_User objUser = new MicroBSC.BSC.Biz.Biz_Bsc_Communication_User();
        iBtnCommunication.Src = (objUser.GetIsNewListPerUser(this.ILogInUserId)) ? "~/images/btn/top_bu_k02_b.gif" : "~/images/btn/top_bu_k02.gif";

        // 결재할 문서가 있는지?
        //Biz_Bsc_Kpi_Result objBSC = new Biz_Bsc_Kpi_Result();
        //iBtnConfirm.Src = (objBSC.GetIsNewDraftPerUser(intEstTerm, sFinishMon, this.ILogInUserId)) ? "~/images/btn/top_bu_k01_b.gif" : "~/images/btn/top_bu_k01.gif";
        Biz_Com_Approval_Prc objBSC = new Biz_Com_Approval_Prc();
        DataSet rDs = objBSC.GetToDraftList(this.ILogInUserId, "");
        if (rDs.Tables.Count > 0)
        {
            iBtnConfirm.Src = (rDs.Tables[0].Rows.Count > 0) ? "~/images/btn/top_bu_k01_b.gif" : "~/images/btn/top_bu_k01.gif";
        }
        else
        {
            iBtnConfirm.Src = "~/images/btn/top_bu_k01.gif";
        }


        // 공지사항이 있는지 또는 읽었는지
        MicroBSC.BSC.Biz.Biz_Bsc_Communication_Notice objNot = new MicroBSC.BSC.Biz.Biz_Bsc_Communication_Notice();
        this.IisHaveNoticeYN = (objNot.GetCurrentNotice() ? "Y" : "N");

        string strCookieKey = "NOTICE_" + objNot.Inotice_ref_id.ToString();
        if (Request.Cookies[strCookieKey] != null)
        {
            DateTime dtCookieDate = Convert.ToDateTime(Server.HtmlEncode(Request.Cookies[strCookieKey].Expires.ToShortTimeString()));
            if (dtCookieDate < DateTime.Now)
            {
                this.IisHaveNoticeYN = "N";
            }
        }

        #endregion

        #region 타이틀 셋팅
        if (sUrl.Substring(sUrl.LastIndexOf("/") + 1).ToUpper() != "EST110104.ASPX" &&
            sUrl.Substring(sUrl.LastIndexOf("/") + 1).ToUpper() != "EST110104_01.ASPX")
        {
            lblTitle.Text = biz.GetMenuTitle(pathAndQuery);
        }
        else
        {
            lblTitle.Text = biz.GetMenuTitle(sUrl);
        }

        if (lblTitle.Text.Trim().Equals(""))
        {
            imgTitle.Visible = false;
        }
        #endregion
    }
예제 #7
0
    private void SetFormData()
    {
        if (this.IType != "A")
        {
            MicroBSC.BSC.Biz.Biz_Bsc_Work_Exec objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Work_Exec(this.IEstterm_Ref_ID, this.IEst_Dept_Ref_ID, this.IWork_Ref_ID, this.IExec_Ref_ID);

            this.IEstterm_Ref_ID = objBSC.Iestterm_ref_id;

            this.IEstterm_Ref_ID_Name = objBSC.Iestterm_ref_id_name;
            txtEstTermRefIdName.Text  = objBSC.Iestterm_ref_id_name;

            this.IEst_Dept_Ref_ID = objBSC.Iest_dept_ref_id;

            this.IEst_Dept_Ref_ID_Name = objBSC.Iest_dept_ref_id_name;
            txtEstDeptRefIdName.Text   = objBSC.Iest_dept_ref_id_name;

            this.IWork_Ref_ID = objBSC.Iwork_ref_id;


            txtWorkRefIdName.Text = objBSC.Iwork_ref_id_name;
            this.IWork_Name       = objBSC.Iwork_ref_id_name;
            txtWorkCode.Text      = objBSC.Iwork_code;

            IExec_Ref_ID       = objBSC.Iexec_ref_id;
            hdfExecRefID.Value = Convert.ToString(objBSC.Iexec_ref_id);

            this.IExec_Code  = objBSC.Iexec_code;
            txtExecCode.Text = objBSC.Iexec_code;

            txtExecName.Text = objBSC.Iexec_name;
            txtExecDesc.Text = objBSC.Iexec_desc;

            this.IExec_Emp_Dept_ID = objBSC.Iexec_emp_id_dept_id;
            hdfExecEmpDeptId.Value = Convert.ToString(objBSC.Iexec_emp_id_dept_id);

            this.IExec_Emp_Dept_Id_Name = objBSC.Iexec_emp_id_dept_id_name;
            txtExecEmpDeptIdName.Text   = objBSC.Iexec_emp_id_dept_id_name;

            this.IExec_Emp_ID  = objBSC.Iexec_emp_id;
            hdfExecEmpId.Value = Convert.ToString(objBSC.Iexec_emp_id);

            this.IExec_Emp_Id_Name = objBSC.Iexec_emp_id_name;
            txtExecEmpIdName.Text  = objBSC.Iexec_emp_id_name;

            txtExecIssue.Text = objBSC.Iexec_issue;
            this.IAdd_File    = objBSC.Iadd_file;
            this.hdfTargetReasonFile.Value = objBSC.Iadd_file;

            this.IApp_Ref_ID            = objBSC.Iapp_ref_id;
            this.IUse_YN                = objBSC.Iuse_yn;
            this.chkUseYN.Checked       = (objBSC.Iuse_yn == "Y") ? true : false;
            this.IComplete_YN           = objBSC.Icomplete_yn;
            this.chkCompleteYN.Checked  = (objBSC.Icomplete_yn == "Y") ? true : false;
            iBtnTargetFile_Down.Visible = (objBSC.Iadd_file == "") ? false : true;
            if (objBSC.Iadd_file == "")
            {
            }
            else
            {
                SearchAddFile();
            }
            setWorkTaskList(this.IExec_Ref_ID);
            setWorkItemList(this.IExec_Ref_ID);

            if (this.chkCompleteYN.Checked == true)
            {
                this.ugrdWorkTaskList.DisplayLayout.ReadOnly = ReadOnly.LevelZero;
                this.ugrdWorkItemList.DisplayLayout.ReadOnly = ReadOnly.LevelZero;
            }
            else
            {
                this.ugrdWorkTaskList.DisplayLayout.ReadOnly = ReadOnly.NotSet;
                this.ugrdWorkItemList.DisplayLayout.ReadOnly = ReadOnly.NotSet;
            }
        }
        else
        {
            MicroBSC.Estimation.Dac.TermInfos objTERM = new MicroBSC.Estimation.Dac.TermInfos(this.IEstterm_Ref_ID);
            txtEstTermRefIdName.Text = Convert.ToString(objTERM.Estterm_name);
            MicroBSC.Biz.Common.Biz.Biz_ComDeptInfo objDEPT = new MicroBSC.Biz.Common.Biz.Biz_ComDeptInfo(this.IEst_Dept_Ref_ID);
            txtEstDeptRefIdName.Text = Convert.ToString(objDEPT.Idept_name);
            MicroBSC.BSC.Biz.Biz_Bsc_Work_Info objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Work_Info(this.IEstterm_Ref_ID, this.IEst_Dept_Ref_ID, this.IWork_Ref_ID);
            txtWorkCode.Text = objBSC.Iwork_code;

            txtWorkRefIdName.Text       = objBSC.Iwork_name;
            txtWorkEmp.Text             = objBSC.Iwork_emp_id_name;
            this.chkUseYN.Checked       = true;
            this.chkCompleteYN.Checked  = false;
            iBtnTargetFile_Down.Visible = false;
            lbFileList.Items.Clear();

            setWorkTaskList(0);
            setWorkItemList(0);


            //ddlKpiCategoryTop_SelectedIndexChanged(null, null);
        }
    }
예제 #8
0
    private void SetFormData()
    {
        MicroBSC.Biz.Common.Biz.Biz_Com_Code_Info objCode = new MicroBSC.Biz.Common.Biz.Biz_Com_Code_Info();
        objCode.GetProjectPriority(ddlWorkPriority, 0, false, 100);
        objCode.GetProjectType(ddlWorkType, 0, false, 100);

        if (this.IType != "A")
        {
            MicroBSC.BSC.Biz.Biz_Bsc_Work_Info objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Work_Info(this.IEstterm_Ref_ID, this.IEst_Dept_Ref_ID, this.IWork_Ref_ID);

            this.IEstterm_Ref_ID = objBSC.Iestterm_ref_id;

            this.IEstterm_Ref_Id_Name = objBSC.Iestterm_ref_id_name;
            txtEstTermRefId.Text      = objBSC.Iestterm_ref_id_name;

            this.IEst_Dept_Ref_ID = objBSC.Iest_dept_ref_id;

            this.IEst_Dept_Ref_Id_Name = objBSC.Iest_dept_ref_id_name;
            txtEstDeptRefId.Text       = objBSC.Iest_dept_ref_id_name;

            this.IWork_Ref_ID = objBSC.Iwork_ref_id;

            this.IWork_Pool_Ref_ID = objBSC.Iwork_pool_ref_id;
            hdfWorkPoolRefId.Value = Convert.ToString(objBSC.Iwork_pool_ref_id);

            txtWorkCode.Text = objBSC.Iwork_code;
            txtWorkName.Text = objBSC.Iwork_name;

            txtWorkDesc.Value     = objBSC.Iwork_desc;
            spnWorkDesc.InnerHtml = objBSC.Iwork_desc;

            this.IWork_Emp_Dept_ID = objBSC.Iwork_emp_id_dept_id;
            hdfWorkEmpDeptId.Value = Convert.ToString(objBSC.Iwork_emp_id_dept_id);

            this.IWork_Emp_Dept_ID_Name = objBSC.Iwork_emp_id_dept_id_name;
            hdfWorkEmpDeptIdName.Value  = objBSC.Iwork_emp_id_dept_id_name;

            this.IWork_Emp_ID  = objBSC.Iwork_emp_id;
            hdfWorkEmpId.Value = Convert.ToString(objBSC.Iwork_emp_id);

            this.IWork_Emp_ID_Name = objBSC.Iwork_emp_id_name;
            txtWorkEmpIdName.Text  = objBSC.Iwork_emp_id_name;

            PageUtility.FindByValueDropDownList(ddlWorkType, objBSC.Iwork_type);
            PageUtility.FindByValueDropDownList(ddlWorkPriority, objBSC.Iwork_priority);
            txtWorkIssue.Text = objBSC.Iwork_issue;
            this.IAdd_File    = objBSC.Iadd_file;
            this.hdfTargetReasonFile.Value = objBSC.Iadd_file;
            this.IApp_Ref_ID      = objBSC.Iapp_ref_id;
            this.IUse_YN          = (objBSC.Iuse_yn == "Y") ? true : false;
            this.chkUseYN.Checked = (objBSC.Iuse_yn == "Y") ? true : false;
            if (objBSC.Iuse_yn == "Y")
            {
                //2012.01.02 박효동 : 허성덕과장요청으로 사용안함에 대하여 각종 컨트롤 잠금
                ddlWorkPriority.Enabled = ddlWorkType.Enabled = true;
                txtWorkIssue.ReadOnly   = false;
            }
            else
            {
                //2012.01.02 박효동 : 허성덕과장요청으로 사용안함에 대하여 각종 컨트롤 잠금
                ddlWorkPriority.Enabled = ddlWorkType.Enabled = false;
                txtWorkIssue.ReadOnly   = true;
            }
            this.chkCompleteYN.Checked = (objBSC.Icomplete_yn == "Y") ? true : false;


            if (objBSC.Iadd_file == "")
            {
            }
            else
            {
                SearchAddFile();
            }
        }
        else
        {
            MicroBSC.Estimation.Dac.TermInfos objTERM = new MicroBSC.Estimation.Dac.TermInfos(this.IEstterm_Ref_ID);
            txtEstTermRefId.Text = Convert.ToString(objTERM.Estterm_name);
            MicroBSC.Biz.Common.Biz.Biz_ComDeptInfo objDEPT = new MicroBSC.Biz.Common.Biz.Biz_ComDeptInfo(this.IEst_Dept_Ref_ID);
            txtEstDeptRefId.Text = Convert.ToString(objDEPT.Idept_name);
            //ddlKpiCategoryTop_SelectedIndexChanged(null, null);
            this.chkUseYN.Checked       = true;
            iBtnTargetFile_Down.Visible = false;
            lbFileList.Items.Clear();
        }
    }
예제 #9
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();
    }