Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            TreeView1.Nodes.Clear();
            WebCommon.SetEstTermDropDownList(ddlEstTermInfo);
            WebCommon.SetEstDeptGroupDropDownList(ddlDeptGroup, ":: 선택 ::", "0", true);

            TreeView1.Nodes.Clear();
            WebCommon.FillEstMappingTree(TreeView1, PageUtility.GetIntByValueDropDownList(ddlEstTermInfo));
            //WebCommon.FillEstTree(TreeView1, PageUtility.GetIntByValueDropDownList(ddlEstTermInfo));
            TreeView1.ExpandAll();

            if (ddlEstTermInfo.Items.Count > 0)
            {
                WebCommon.FillComDeptTree(TreeView2);
            }

            WebCommon.SetEstTermDropDownList(ddlEstTermInfo2);
            DoSetPossibleCopay();
        }

        ESTTERM_REF_ID = PageUtility.GetByValueDropDownList(ddlEstTermInfo);
        Literal1.Text  = "";

        // //체크인-체크아웃 활성화
        //MenuControl1.IsCheckInOutVisible = true;
        //MenuControl1.SetCheckInOutBuuton(tbSetup
        //                                        , btnIn
        //                                        , btnOut
        //                                        );
    }
Exemplo n.º 2
0
    /// <summary>
    /// 최초기안상태일경우 원문문서 읽어오고 조직정보,결재선 세팅
    /// </summary>
    public void SetFirstDraftStatus()
    {
        WebCommon.FillComDeptTree(trvDept);

        string strTitle = "";
        Biz_Com_Approval_Info objApp = new Biz_Com_Approval_Info();
        bool blnRtn = objApp.GetOriDocTitle(this.IBiz_Type, Request.Params, out strTitle);

        if (blnRtn)
        {
            txtTitle.Text = strTitle;
            if (this.IBiz_Type == Biz_Type.biz_type_kpi_rstbatch || this.IBiz_Type == Biz_Type.biz_type_target_resultbatch)
            {
                lblAppTitle.Text = strTitle;
            }
        }
        else
        {
            ltrScript.Text = JSHelper.GetAlertScript("결재원문을 알수 없습니다.", true);
            return;
        }
        //http://localhost:3184/_common/Draft/DOC0601S1.aspx?ESTTERM_REF_ID=1000&KPI_REF_ID=1044,1038&APP_CCB=lBtnReload2&BIZ_TYPE=KDB
        string strHtml = Server.HtmlDecode(Biz_Com_Approval_Info.GetHtmlSource(this.GetQueryString()));
        string strPos  = "{^0^}";
        int    iSPos   = strHtml.IndexOf(strPos) + strPos.Length;
        int    iEPos   = strHtml.LastIndexOf(strPos);

        divArea_M.InnerHtml = strHtml.Substring(iSPos, iEPos - iSPos);
    }
Exemplo n.º 3
0
    public void InitForm()
    {
        WebCommon.FillComDeptTree(trvDept);
        Biz_Prj_Info objPrj = new Biz_Prj_Info(this.IKey);

        this.txtTitle.Text = "[" + Biz_Type.biz_type_prm_doc_name + "]" + objPrj.IPrj_Name;
    }
Exemplo n.º 4
0
    /// <summary>
    /// 최초기안상태일경우 원문문서 읽어오고 조직정보,결재선 세팅
    /// </summary>
    public void SetFirstDraftStatus()
    {
        WebCommon.FillComDeptTree(trvDept);

        string strTitle = "";
        Biz_Com_Approval_Info objApp = new Biz_Com_Approval_Info();
        bool blnRtn = objApp.GetOriDocTitle(this.IBiz_Type, Request.Params, out strTitle);

        if (blnRtn)
        {
            txtTitle.Text = strTitle;
        }
        else
        {
            ltrScript.Text = JSHelper.GetAlertScript("결재원문을 알수 없습니다.", true);
            return;
        }

        string strHtml = Server.HtmlDecode(Biz_Com_Approval_Info.GetHtmlSource(this.GetQueryString()));
        string strPos  = "{^0^}";
        int    iSPos   = strHtml.IndexOf(strPos) + strPos.Length;
        int    iEPos   = strHtml.LastIndexOf(strPos);

        divArea_M.InnerHtml = strHtml.Substring(iSPos, iEPos - iSPos);
    }
Exemplo n.º 5
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();
    }
Exemplo n.º 6
0
    protected void itnDelete_Click(object sender, ImageClickEventArgs e)
    {
        DeptInfos dept = new DeptInfos();

        if (TreeView1.SelectedValue.Equals(""))
        {
            return;
        }

        bool isOK = dept.RemoveDeptinfo(int.Parse(TreeView1.SelectedValue));

        if (!isOK)
        {
            ltrScript.Text = JSHelper.GetAlertScript("소속되어 있는 부서나 사원이 있습니다. 확인 후 삭제 해주세요.", false);
            return;
        }
        else
        {
            WebCommon.FillComDeptTree(TreeView1);
            TreeView1.ExpandAll();
            SetButtons();

            ltrScript.Text = JSHelper.GetAlertScript("정상적으로 삭제되었습니다.", false);
            return;
        }
    }
Exemplo n.º 7
0
    // 동위레벨 추가
    protected void iBtnAddBrother_Click(object sender, ImageClickEventArgs e)
    {
        this.AddDeptNode("BROTHER");

        WebCommon.FillComDeptTree(TreeView1);
        TreeView1.ExpandAll();
        SetButtons();
    }
Exemplo n.º 8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         //WebCommon.FillComDeptTree(TreeView1);
         WebCommon.FillComDeptTree(TreeView1);
     }
 }
Exemplo n.º 9
0
    protected void iBtnAddChild_Click(object sender, ImageClickEventArgs e)
    {
        ltrScript.Text = "";
        this.AddDeptNode("CHILD");

        WebCommon.FillComDeptTree(TreeView1);
        TreeView1.ExpandAll();
        SetButtons();
    }
Exemplo n.º 10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            WebCommon.FillComDeptTree(TreeView2);
            iBtnCheck.Attributes.Add("onclick", "return selectChkBox(" + TreeView2.ClientID.Replace('$', '_') + ")");
        }

        ltrScript.Text = "";
    }
Exemplo n.º 11
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            WebCommon.FillComDeptTree(TreeView1);
            WebCommon.FillComDeptTree(TreeView2);
        }

        Literal1.Text = "";
    }
Exemplo n.º 12
0
    protected void Page_Load(object sender, EventArgs e)
    {
        DEPT_ID_field   = WebUtility.GetRequest("DEPT_ID", "");
        DEPT_NAME_field = WebUtility.GetRequest("DEPT_NAME", "");

        if (!Page.IsPostBack)
        {
            WebCommon.FillComDeptTree(TreeView1);
            //WebCommon.FillComDeptTree(TreeView1);
        }
    }
Exemplo n.º 13
0
    private void SetPageData()
    {
        //WebCommon.FillEstTree(TreeView1, intEstTermID, gUserInfo.Emp_Ref_ID);
        WebCommon.FillComDeptTree(TreeView1);

        if (DEPT_ID.Trim().Length > 0)
        {
            TreeView1.Enabled = false;
            SelectTreeNodeByValue(TreeView1.Nodes[0].ChildNodes, DEPT_ID);
            doBind_Emp(DEPT_ID);
        }
    }
Exemplo n.º 14
0
 private void SetInitForm()
 {
     WebCommon.FillComDeptTree(trvComDept);
     if (this.IType == "A")
     {
         //return CreateUserTable();
     }
     else if (this.IType == "U")
     {
         ugrdTargetUser.DataSource = ModifyUserTable(GetRequest("RECEIVER_ARR"));
         ugrdTargetUser.DataBind();
     }
     else
     {
         //return CreateUserTable();
     }
 }
Exemplo n.º 15
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            //WebCommon.FillComDeptTree(TreeView1);
            WebCommon.FillComDeptTree(TreeView1);

            if (WebUtility.GetRequest("mode").Equals("New"))
            {
                pnlNew.Visible    = true;
                pnlRename.Visible = false;
                pnlMove.Visible   = false;
                pnlRemove.Visible = false;
                iBtnSave.ImageUrl = "~/images/btn/b_156.gif";
            }
            else if (WebUtility.GetRequest("mode").Equals("Rename"))
            {
                pnlNew.Visible    = false;
                pnlRename.Visible = true;
                pnlMove.Visible   = false;
                pnlRemove.Visible = false;
                iBtnSave.ImageUrl = "~/images/btn/b_002.gif";
            }
            else if (WebUtility.GetRequest("mode").Equals("Move"))
            {
                pnlNew.Visible    = false;
                pnlRename.Visible = false;
                pnlMove.Visible   = true;
                pnlRemove.Visible = false;
                iBtnSave.ImageUrl = "~/images/btn/b_002.gif";
            }
            else if (WebUtility.GetRequest("mode").Equals("Remove"))
            {
                pnlNew.Visible    = false;
                pnlRename.Visible = false;
                pnlMove.Visible   = false;
                pnlRemove.Visible = true;
                iBtnSave.ImageUrl = "~/images/btn/b_006.gif";
            }
        }

        Literal1.Text = "";
    }
Exemplo n.º 16
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            WebCommon.FillComDeptTree(TreeView1);
            WebCommon.SetDeptTypeDropDownList(ddlDeptType, false);

            hImgNew.Visible    = false;
            ibtnDelete.Visible = false;

            ibtnDelete.Attributes.Add("onclick", "return confirm('정말 사원을 삭제하시겠습니까?');");
            ibtnRollback.Attributes.Add("onclick", "return confirm('선택한 사원을 다시 사용하시겠습니까?');");
            ibnUpdatePos.Attributes.Add("onclick", "return confirm('평가데이터에 현재 인사데이터의 직급,직책으로 업데이트 하시겠습니까?');");
            ibnUpdateDpt.Attributes.Add("onclick", "return confirm('평가데이터에 현재 인사데이터의 부서로로 업데이트 하시겠습니까?');");
        }

        txtSearch.Attributes["onkeypress"] = "if (event.keyCode==13) {" + Page.GetPostBackEventReference(ibtnSearch) + ";return false;}";

        Literal1.Text  = "";
        ltrScript.Text = "";
    }
Exemplo n.º 17
0
    protected void Page_Load(object sender, EventArgs e)
    {
        SetAllTimeTop();

        if (!Page.IsPostBack)
        {
            //WebCommon.FillComDeptTree(TreeView1);
            WebCommon.FillComDeptTree(TreeView1);

            SetBizTypeName();

            if (WebUtility.GetRequest("mode").Equals("New"))
            {
                ltrEmpButton.Text = "<a href='#null' onclick=\"gfOpenWindow('ctl2203.aspx', 700, 400);\"><img src=\"../images/btn/b_008.gif\" align=\"middle\" border=\"0\"/></a>";
            }
            else
            {
                DataLoad();
            }
        }
        SetAllTimeBottom();
    }
Exemplo n.º 18
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ltrScript.Text = "";
        if (!IsPostBack)
        {
            WebCommon.FillComDeptTree(trvDept);
            trvDept.Attributes.Add("onclick", "visibleLoading();");

            Biz_Com_Code_Info objCode = new Biz_Com_Code_Info();
            DataSet           rDs     = objCode.GetApprovalBizType(0);

            ddlWorkType.DataValueField = "ETC_CODE";
            ddlWorkType.DataTextField  = "CODE_NAME";
            ddlWorkType.DataSource     = rDs;
            ddlWorkType.DataBind();

            ddlWorkType.Items.Insert(0, new ListItem(":: 선택 ::", ""));

            this.Page.Form.Style.Add("height", "100%");

            //ibtnAdd1.Enabled = ibtnAdd2.Enabled = ibtnAdd3.Enabled = ibtnDel1.Enabled = ibtnDel2.Enabled = ibtnDel3.Enabled = false;
        }
        DoHiddenLoading();
    }
Exemplo n.º 19
0
 private void SetPageData()
 {
     //WebCommon.FillEstTree(TreeView1, intEstTermID, gUserInfo.Emp_Ref_ID);
     WebCommon.FillComDeptTree(TreeView1);
 }
Exemplo n.º 20
0
 private void InitControlValue()
 {
     WebCommon.FillComDeptTree(trvComDept);
     WebCommon.SetEstTermDropDownList(ddlEstTerm);
     this.SetEstGroupGrid();
 }
Exemplo n.º 21
0
 private void SetPageData()
 {
     WebCommon.FillComDeptTree(TreeView1);
 }