Exemple #1
0
    private void DoBindingDept()
    {
        MicroBSC.Biz.Common.Biz.Biz_ComDeptInfo bizComDeptInfo = new MicroBSC.Biz.Common.Biz.Biz_ComDeptInfo();

        DataTable dtComDeptInfo = bizComDeptInfo.GetAllList().Tables[0];

        UltraWebGrid1.DataSource = dtComDeptInfo;
        UltraWebGrid1.DataBind();
    }
Exemple #2
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);
        }
    }
Exemple #3
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();
        }
    }