Exemplo n.º 1
0
    private void DeleteWorkInfo()
    {
        if (!this.CheckFormData())
        {
            return;
        }

        this.IType = "D";
        MicroBSC.BSC.Biz.Biz_Bsc_Work_Info objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Work_Info();
        objBSC.Iestterm_ref_id  = this.IEstterm_Ref_ID;
        objBSC.Iest_dept_ref_id = this.IEst_Dept_Ref_ID;
        objBSC.Iwork_ref_id     = this.IWork_Ref_ID;
        objBSC.Itxr_user        = gUserInfo.Emp_Ref_ID;

        int intRtn = objBSC.DeleteData(objBSC.Iestterm_ref_id,
                                       objBSC.Iest_dept_ref_id,
                                       objBSC.Iwork_ref_id,
                                       objBSC.Itxr_user);

        if (objBSC.Transaction_Result == "Y")
        {
            //            this.TxrWorkPoolQuestion();
            ltrScript.Text = JSHelper.GetAlertOpenerControlCallBackScript(objBSC.Transaction_Message, this.ICCB1, true);
        }
        else
        {
            ltrScript.Text = JSHelper.GetAlertScript(objBSC.Transaction_Message, false);
            this.IType     = "U";
        }
    }
Exemplo n.º 2
0
    private void ReCompleteWorkInfo()
    {
        if (!this.CheckFormData())
        {
            return;
        }

        this.IType = "RC";
        MicroBSC.BSC.Biz.Biz_Bsc_Work_Info objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Work_Info();
        objBSC.Iestterm_ref_id  = this.IEstterm_Ref_ID;
        objBSC.Iest_dept_ref_id = this.IEst_Dept_Ref_ID;
        objBSC.Iwork_ref_id     = this.IWork_Ref_ID;
        objBSC.Itxr_user        = gUserInfo.Emp_Ref_ID;

        int intRtn = objBSC.ReCompleteData(objBSC.Iestterm_ref_id,
                                           objBSC.Iest_dept_ref_id,
                                           objBSC.Iwork_ref_id,
                                           objBSC.Itxr_user);

        ltrScript.Text = JSHelper.GetAlertScript(objBSC.Transaction_Message, false);

        if (objBSC.Transaction_Result == "Y")
        {
            this.IEstterm_Ref_ID  = objBSC.Iestterm_ref_id;
            this.IEst_Dept_Ref_ID = objBSC.Iest_dept_ref_id;
            this.IWork_Ref_ID     = objBSC.Iwork_ref_id;

            this.IType = "U";
            this.SetFormData();
            this.SetButton();
        }
    }
Exemplo n.º 3
0
    private void UpdateWorkInfo()
    {
        if (!this.CheckFormData())
        {
            return;
        }

        MicroBSC.BSC.Biz.Biz_Bsc_Work_Info objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Work_Info();
        objBSC.Iestterm_ref_id   = this.IEstterm_Ref_ID;
        objBSC.Iest_dept_ref_id  = this.IEst_Dept_Ref_ID;
        objBSC.Iwork_ref_id      = this.IWork_Ref_ID;
        objBSC.Iwork_pool_ref_id = Convert.ToInt32(this.IWork_Pool_Ref_ID);// this.IWork_Pool_Ref_ID;
        objBSC.Iwork_code        = txtWorkCode.Text.Trim();
        objBSC.Iwork_name        = txtWorkName.Text.Trim();
        objBSC.Iwork_desc        = txtWorkDesc.Value;
        objBSC.Iwork_emp_id      = Convert.ToInt32((this.hdfWorkEmpId.Value == "") ? "0" : this.hdfWorkEmpId.Value);
        objBSC.Iwork_priority    = PageUtility.GetByValueDropDownList(ddlWorkPriority, "");
        objBSC.Iwork_type        = PageUtility.GetByValueDropDownList(ddlWorkType, "");
        objBSC.Iwork_issue       = txtWorkIssue.Text;
        objBSC.Iadd_file         = this.IAdd_File;
        objBSC.Iapp_ref_id       = this.IApp_Ref_ID;
        objBSC.Iuse_yn           = (this.chkUseYN.Checked) ? "Y" : "N";
        objBSC.Icomplete_yn      = (this.chkCompleteYN.Checked) ? "Y" : "N";
        objBSC.Itxr_user         = gUserInfo.Emp_Ref_ID;

        int intRtn = objBSC.UpdateData(objBSC.Iestterm_ref_id,
                                       objBSC.Iest_dept_ref_id,
                                       objBSC.Iwork_ref_id,
                                       objBSC.Iwork_pool_ref_id,
                                       objBSC.Iwork_code,
                                       objBSC.Iwork_name,
                                       objBSC.Iwork_desc,
                                       objBSC.Iwork_emp_id,
                                       objBSC.Iwork_priority,
                                       objBSC.Iwork_type,
                                       objBSC.Iwork_issue,
                                       objBSC.Iadd_file,
                                       objBSC.Iapp_ref_id,
                                       objBSC.Iuse_yn,
                                       objBSC.Icomplete_yn,
                                       objBSC.Itxr_user);

        //중점과제 사용여부를 "N"으로 변경하면 관련 실행과제의 사용여부도 "N"으로 변경. "Y"로 변경시 개별 수정
        if (!this.chkUseYN.Checked)
        {
            this.UnUsedWorkExec();
        }

        ltrScript.Text = JSHelper.GetAlertScript(objBSC.Transaction_Message, false);
        if (objBSC.Transaction_Result == "Y")
        {
            this.IEstterm_Ref_ID  = objBSC.Iestterm_ref_id;
            this.IEst_Dept_Ref_ID = objBSC.Iest_dept_ref_id;
            this.IWork_Ref_ID     = objBSC.Iwork_ref_id;

            this.IType = "U";
            this.SetFormData();
            this.SetButton();
        }
    }
Exemplo n.º 4
0
    protected void imgWorkCodeSearch_Click(object sender, ImageClickEventArgs e)
    {
        MicroBSC.BSC.Biz.Biz_Bsc_Work_Info objBSC = new MicroBSC.BSC.Biz.Biz_Bsc_Work_Info();
        DataSet ds = objBSC.GetWorkCode(this.IEstterm_Ref_ID, this.txtWorkCode.Text);

        if (ds.Tables[0].Rows.Count > 0)
        {
            ltrScript.Text       = JSHelper.GetAlertScript("코드가 중복되었습니다. 다른 코드를 사용하세요", false);
            hdfchkWorkCode.Value = "";

            txtWorkCode.Text = "";
            txtWorkCode.Focus();
        }
        else
        {
            ltrScript.Text       = JSHelper.GetAlertScript("중복확인 완료. 입력 가능합니다.", false);
            hdfchkWorkCode.Value = "*";
        }
    }
Exemplo n.º 5
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);
        }
    }
Exemplo n.º 6
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();
        }
    }