Beispiel #1
0
    private void InsertUpdateDeptInfo()
    {
        if (hdfDeptRefId.Value.Trim() == "" || txtDeptName.Text.Trim() == "")
        {
            ltrScript.Text = JSHelper.GetAlertScript("부서를 선택해주십시오.", false);
            return;
        }

        this.SetParameter();

        Biz_ComDeptInfo objDept = new Biz_ComDeptInfo();
        int             intRtn  = objDept.UpdateData(_idept_ref_id
                                                     , _iup_dept_id
                                                     , 0
                                                     , _idept_name
                                                     , _idept_code //_idept_ref_id.ToString(),
                                                     , 1
                                                     , _idept_type
                                                     , _isort_order
                                                     , _idept_desc
                                                     , gUserInfo.Emp_Ref_ID);

        WebCommon.FillComDeptTree(TreeView1);
        TreeView1.ExpandAll();
        SetButtons();
    }
Beispiel #2
0
    private void SetFormData(int iDeptId)
    {
        Biz_ComDeptInfo objDept = new Biz_ComDeptInfo(iDeptId);

        hdfDeptRefId.Value        = objDept.Idept_ref_id.ToString();
        txtDeptName.Text          = objDept.Idept_name;
        hdfUpDeptRefId.Value      = objDept.Iup_dept_id.ToString();
        txtUpDeptName.Text        = objDept.Iup_dept_name;
        ddlDeptType.SelectedValue = objDept.Idept_type.ToString();
        txtSortOrder.Text         = objDept.Isort_order.ToString();
        chkUseYn.Checked          = objDept.Idept_flag;
        txtCreateDate.Text        = objDept.Create_date.ToString();
        hdfDeptLevel.Value        = objDept.Idept_level.ToString();

        /* 2011-02-22 수정 : 부서코드를 표시하도록 수정 */
        txtDeptCode.Text = objDept.Idept_code;
        /* 2011-02-22 완료 ******************************/
    }
Beispiel #3
0
    private void AddDeptNode(string strGubun)
    {
        if (hdfDeptRefId.Value.Trim() == "" || txtDeptName.Text.Trim() == "")
        {
            ltrScript.Text = JSHelper.GetAlertScript("부서를 선택해주십시오.", false);
            return;
        }

        if (strGubun == "BROTHER" && (hdfUpDeptRefId.Value.Trim() == "" || txtUpDeptName.Text.Trim() == ""))
        {
            ltrScript.Text = JSHelper.GetAlertScript("최상위 레벨이므로 동위레벨등록을 할수 없습니다.", false);
            return;
        }

        this.SetParameter();
        if (strGubun == "CHILD")
        {
            _iup_dept_id = _idept_ref_id;
        }

        _idept_ref_id = -1;
        Biz_ComDeptInfo objDept = new Biz_ComDeptInfo();
        int             intRtn  = objDept.InsertData(_iup_dept_id, 0, _idept_name, "", 1, _idept_type, _isort_order, _idept_desc, gUserInfo.Emp_Ref_ID);

        if (objDept.Transaction_Result == "Y")
        {
            hdfDeptRefId.Value = objDept.Idept_ref_id.ToString();
        }

        TreeNode cTrn = new TreeNode(_idept_name);

        if (strGubun == "CHILD")
        {
            TreeView1.SelectedNode.ChildNodes.Add(cTrn);
        }
        else
        {
            TreeView1.SelectedNode.Parent.ChildNodes.Add(cTrn);
        }

        cTrn.Select();
    }
Beispiel #4
0
    /// <summary>
    /// 초기 폼 데이터 설정
    /// </summary>
    private void SetKpiInfo()
    {
        if (this.IEstTermRefID > 0 && this.IKpiRefID > 0)
        {
            Biz_Bsc_Kpi_Info objKPI  = new Biz_Bsc_Kpi_Info(this.IEstTermRefID, this.IKpiRefID);
            Biz_ComDeptInfo  objDept = new Biz_ComDeptInfo();
            TermInfos        objEst  = new TermInfos(this.IEstTermRefID);
            lblKpiName.Text    = objKPI.Ikpi_name;
            lblWriterName.Text = gUserInfo.Emp_Name;
            lblTMCode.Text     = objEst.Estterm_name + "(" + this.IYMD + ")";

            if (this.IType == "U" && this.IListRefID > 0)
            {
                Biz_Bsc_Communication_List objList = new Biz_Bsc_Communication_List(this.IListRefID);
                txtSubject.Text     = objList.Ititle;
                txtContent.Value    = objList.Idetails;
                ltrContent.Text     = objList.Idetails;
                txtReceiver.Text    = objList.Iarr_receiver_id;
                hdfReceiver.Value   = objList.Iarr_receiver_id;
                lblReadCount.Text   = objList.Iread_count.ToString();
                hAttachNo.Value     = objList.Iattach_no;
                lblCreateDate.Text  = objList.Create_date.ToLongDateString();
                lblWriterName.Text  = objList.Iowner_emp_name;
                chkMailSend.Checked = (objList.Iis_send_mail == "Y") ? true : false;
                chkPublicYN.Checked = (objList.Iis_open_list == "Y") ? true : false;

                int intLoginID = gUserInfo.Emp_Ref_ID;
                int intRtnRow  = 0;

                // 작성자와 로긴한 사용자가 같을경우 즉, 자기글일경우
                if (intLoginID == objList.Iowner_emp_id)
                {
                    this.IisOwner             = "Y";
                    this.leftLayer.Visible    = false;
                    this.txtContent.Visible   = true;
                    this.iBtnFeedback.Visible = false;
                    this.iBtnDelete.Visible   = true;
                    this.iBtnDownload.Visible = false;
                    this.iBtnUpload.Visible   = true;
                }
                else
                {
                    this.IisOwner             = "N";
                    this.leftLayer.Visible    = true;
                    this.txtContent.Visible   = false;
                    this.iBtnFeedback.Visible = true;
                    this.iBtnModify.Visible   = false;
                    this.iBtnFindEmp.Visible  = false;
                    this.iBtnDelete.Visible   = false;
                    this.iBtnDownload.Visible = (objList.Iattach_no.Trim() == "") ? false : true;
                    this.iBtnUpload.Visible   = false;
                    this.chkPublicYN.Enabled  = false;
                    this.chkMailSend.Enabled  = false;

                    intRtnRow = objList.AddClickCount(this.IListRefID, intLoginID);

                    Biz_Bsc_Communication_User objUser = new Biz_Bsc_Communication_User(this.IListRefID, intLoginID);
                    if (objUser.Iread_yn == "N")
                    {
                        intRtnRow = objUser.UpdateData(this.IListRefID, intLoginID, "Y", intLoginID);
                    }
                }
            }
            else if (this.IType == "A")
            {
                this.leftLayer.Visible    = false;
                this.txtContent.Visible   = true;
                this.iBtnDownload.Visible = false;
                this.iBtnUpload.Visible   = true;
            }
            else
            {
                this.leftLayer.Visible  = true;
                this.txtContent.Visible = false;
            }
        }
    }