private void BindingData(int comp_id, string est_id, int estterm_ref_id) { if (est_id.Equals("")) { ltrScript.Text = JSHelper.GetAlertScript("평가를 선택하세요."); return; } DropDownListCommom.BindEstTermSub(ddlEstTermSubID, comp_id, est_id, ""); DropDownListCommom.BindEstTermStep(ddlEstTermStepID, comp_id, est_id); Biz_EstInfos estInfo = new Biz_EstInfos(comp_id, est_id); if (!estInfo.IsExists(comp_id, est_id)) { ltrScript.Text = JSHelper.GetAlertScript("선택된 회사의 평가정보가 없습니다."); return; } if (ddlEstTermRefID.Items.Count > 0) { TreeViewCommom.BindDept(TreeView1); } }
protected void Page_Load(object sender, EventArgs e) { COMP_ID = GetRequestByInt("COMP_ID"); REL_GRP_ID = GetRequest("REL_GRP_ID"); EST_ID = GetRequest("EST_ID"); ESTTERM_REF_ID = GetRequestByInt("ESTTERM_REF_ID"); ESTTERM_STEP_ID = BizUtility.GetEstTermStepIDByMergeYN(COMP_ID); SENTENCE = BizUtility.GetRelGroupWhereString(COMP_ID , EST_ID , ESTTERM_REF_ID , REL_GRP_ID , "TM"); if (!Page.IsPostBack) { Biz_EstInfos estInfo = new Biz_EstInfos(COMP_ID, EST_ID); OwnerTypeMode = BizUtility.GetOwnerType(estInfo.Owner_Type); DropDownListCommom.BindEstTermSubByYearYN(ddlEstTermSubID, COMP_ID, ""); GridBinding(WebUtility.GetIntByValueDropDownList(ddlEstTermSubID), OwnerTypeMode); } ESTTERM_SUB_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermSubID); ltrScript.Text = ""; }
private bool CheckValidation(Literal ltrMsg) { Biz_EstInfos estInfo = new Biz_EstInfos(COMP_ID, EST_ID); OwnerType ownerType = BizUtility.GetEnumByOwnerType(estInfo.Owner_Type); if (ownerType != OwnerType.Dept) { ltrMsg.Text = JSHelper.GetAlertScript("현재 평가는 부서평가가 아니기 때문에 부서점수 수기 할당이 불가능 합니다.", true); return(false); } //bool isJobOK = EstJobUtility.SetConfirmButtonVisible( COMP_ID // , EST_ID // , ESTTERM_REF_ID // , ESTTERM_SUB_ID // , ESTTERM_STEP_ID // , EST_JOB_ID // , ibnConfirmAssingDeptPoint // , null // , "Y" // , DateTime.Now // , EMP_REF_ID // , ltrMsg); //if(!isJobOK) //{ // return false; //} return(true); }
private void SetWeightType(int comp_id, string est_id) { Biz_EstInfos estInfos = new Biz_EstInfos(comp_id, est_id); hdfWeightType.Value = estInfos.Weight_Type; hdfScaleType.Value = estInfos.Scale_Type; }
private bool CheckValidation(Literal ltrMsg) { Biz_EstInfos estInfo = new Biz_EstInfos(COMP_ID, EST_ID); OwnerType ownerType = BizUtility.GetEnumByOwnerType(estInfo.Owner_Type); if (ownerType != OwnerType.Dept) { ltrMsg.Text = JSHelper.GetAlertScript("현재 평가는 부서평가가 아니기 때문에 의견상신 담당자를 선택할 수 없습니다."); return(false); } if (estInfo.Tgt_Opinion_YN.Equals("N")) { ltrMsg.Text = JSHelper.GetAlertScript("현재 평가는 의견상신을 하지 않는 평가입니다."); return(false); } if (!estInfo.Status_Style_ID.Equals("0002")) { ltrMsg.Text = JSHelper.GetAlertScript("현재 평가는 5단계(의견상신)이 아닙니다."); return(false); } return(true); }
/// <summary> /// 평가차수의 총가중치 합 반환 /// </summary> /// <param name="est_id"></param> /// <returns></returns> public static double GetTotalWeightEstTermStep(int comp_id, string est_id) { Biz_EstInfos estInfo = new Biz_EstInfos(comp_id, est_id); Biz_TermStepEstMaps estterm = new Biz_TermStepEstMaps(); DataTable dataTable = estterm.GetTermStepEstMap(comp_id, est_id).Tables[0]; double total = 0; foreach (DataRow dataRow in dataTable.Rows) { // 상향평가가 아닌 가중치만 더한다. if (!DataTypeUtility.GetYNToBoolean(DataTypeUtility.GetValue(dataRow["FIXED_WEIGHT_YN"]))) { total += DataTypeUtility.GetToDouble(dataRow["WEIGHT"]); } } // 만약 상향평가일 경우 고정가중치를 더해준다. if (DataTypeUtility.GetYNToBoolean(estInfo.Fixed_Weight_Use_YN)) { total += DataTypeUtility.GetToDouble(estInfo.Fixed_Weight); } if (total == 0) { return(100); } return(total); }
protected void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e) { DataRowView dr = (DataRowView)e.Data; DataSet ds = questionEstMaps.GetQuestionEstMap("", dr["Q_OBJ_ID"].ToString()); string returnEstID = ""; string est_names = ""; Biz_EstInfos estInfo = null; foreach (DataRow row in ds.Tables[0].Rows) { estInfo = new Biz_EstInfos(COMP_ID, row["EST_ID"].ToString()); returnEstID += row["EST_ID"].ToString() + ","; est_names += estInfo.Est_Name + ","; } returnEstID = returnEstID.Substring(0, returnEstID.LastIndexOf(",")); est_names = est_names.Substring(0, est_names.LastIndexOf(",")); e.Row.Cells.FromKey("Q_OBJ_NAME").Value = string.Format("<a href=\"#null\" onclick=\"GetQuestionObjects('{0}','{1}','{2}','{3}','{4}','{5}');\">{3}</a>" , returnEstID , est_names , dr["Q_OBJ_ID"] , dr["Q_OBJ_NAME"] , dr["Q_OBJ_TITLE"] , dr["Q_OBJ_PREFACE"] ); }
private void BindingGrid(int comp_id, string est_id, int estterm_ref_id, int estterm_sub_id) { int tgt_emp_id = 0; Biz_EstInfos estInfo = new Biz_EstInfos(comp_id, est_id); OwnerTypeMode = BizUtility.GetOwnerType(estInfo.Owner_Type); if (OwnerTypeMode == OwnerType.Dept) { UltraWebGrid1.DisplayLayout.Bands[0].Columns.FromKey("TGT_EMP_NAME").Hidden = true; UltraWebGrid1.DisplayLayout.Bands[0].Columns.FromKey("TGT_POS_CLS_NAME").Hidden = true; UltraWebGrid1.DisplayLayout.Bands[0].Columns.FromKey("TGT_POS_DUT_NAME").Hidden = true; UltraWebGrid1.DisplayLayout.Bands[0].Columns.FromKey("TGT_POS_GRP_NAME").Hidden = true; UltraWebGrid1.DisplayLayout.Bands[0].Columns.FromKey("TGT_POS_RNK_NAME").Hidden = true; UltraWebGrid1.DisplayLayout.Bands[0].Columns.FromKey("TGT_POS_KND_NAME").Hidden = true; } Biz_EmpEstTargetMaps empEstTgtMap = new Biz_EmpEstTargetMaps(); DataSet ds = empEstTgtMap.GetEmpEstTargetMap(comp_id , est_id , estterm_ref_id , estterm_sub_id , 0 , 0 , 0 , 0 , tgt_emp_id , OwnerTypeMode); UltraWebGrid1.DataSource = ds; UltraWebGrid1.DataBind(); lblRowCount.Text = ds.Tables[0].Rows.Count.ToString(); }
protected void Page_Load(object sender, EventArgs e) { ltrScript.Text = ""; if (!IsPostBack) { Biz_EstInfos estInfo = new Biz_EstInfos(COMP_ID, EST_ID); Biz_TermInfos termInfo = new Biz_TermInfos(ESTTERM_REF_ID); Biz_TermSubs termSubInfo = new Biz_TermSubs(COMP_ID, ESTTERM_SUB_ID); ESTTERM_STEP_ID = 2; Biz_EmpInfos empInfo = new Biz_EmpInfos(TGT_EMP_ID); Biz_Com_Dept_Info deptInfo = new Biz_Com_Dept_Info(TGT_DEPT_ID); Biz_PositionClasses clsInfo = new Biz_PositionClasses(empInfo.Position_Class_Code); this.lblEstTerm.Text = string.Format("{0}({1})", DataTypeUtility.GetString(termInfo.EstTerm_Name), DataTypeUtility.GetString(termSubInfo.EstTerm_Sub_Name)); this.lblEstName.Text = DataTypeUtility.GetString(estInfo.Est_Name); this.lblEstEmp.Text = string.Format("{1}({0})", DataTypeUtility.GetString(deptInfo.DEPT_NAME), DataTypeUtility.GetString(empInfo.Emp_Name)); this.lblEstEmpClass.Text = DataTypeUtility.GetString(clsInfo.Pos_Cls_Name); txtConsult.ToolbarStartExpanded = false; bindData(); } setSaveBtn(); }
private void Binding(int comp_id, string est_id) { Biz_EstInfos estInfo = new Biz_EstInfos(comp_id, est_id); if (!estInfo.IsExists(comp_id, est_id)) { ltrScript.Text = JSHelper.GetAlertScript("선택된 회사의 평가정보가 없습니다."); ClearValueControls(); return; } if (estInfo.Owner_Type.Equals("D")) { OwnerTypeMode = OwnerType.Dept; lblTitle1.Text = "질의 응답 부서 리스트"; // 질의 응답 부서 리스트 //imgTitle.ImageUrl = "../images/title/ta_t16.gif"; UltraWebGrid2.DisplayLayout.Bands[0].Columns.FromKey("DEPT_NAME").Width = Unit.Pixel(300); UltraWebGrid2.DisplayLayout.Bands[0].Columns.FromKey("DEPT_NAME").Hidden = false; UltraWebGrid2.DisplayLayout.Bands[0].Columns.FromKey("EMP_NAME").Hidden = true; UltraWebGrid2.DisplayLayout.Bands[0].Columns.FromKey("POS_CLS_NAME").Hidden = true; UltraWebGrid2.DisplayLayout.Bands[0].Columns.FromKey("POS_RNK_NAME").Hidden = true; UltraWebGrid2.DisplayLayout.Bands[0].Columns.FromKey("POS_DUT_NAME").Hidden = true; UltraWebGrid2.DisplayLayout.Bands[0].Columns.FromKey("POS_GRP_NAME").Hidden = true; } else { OwnerTypeMode = OwnerType.Emp_User; lblTitle1.Text = "질의 응답 사원 리스트"; // 질의 응답 사원 리스트 //imgTitle.ImageUrl = "../images/title/ta_t17.gif"; UltraWebGrid2.DisplayLayout.Bands[0].Columns.FromKey("DEPT_NAME").Width = Unit.Pixel(200); UltraWebGrid2.DisplayLayout.Bands[0].Columns.FromKey("DEPT_NAME").Hidden = false; UltraWebGrid2.DisplayLayout.Bands[0].Columns.FromKey("EMP_NAME").Hidden = false; UltraWebGrid2.DisplayLayout.Bands[0].Columns.FromKey("POS_CLS_NAME").Hidden = false; UltraWebGrid2.DisplayLayout.Bands[0].Columns.FromKey("POS_RNK_NAME").Hidden = false; UltraWebGrid2.DisplayLayout.Bands[0].Columns.FromKey("POS_DUT_NAME").Hidden = false; UltraWebGrid2.DisplayLayout.Bands[0].Columns.FromKey("POS_GRP_NAME").Hidden = false; } UltraGridUtility.VisiblePosColumn(UltraWebGrid2.DisplayLayout.Bands[0].Columns); DropDownListCommom.BindEstTermSub(ddlEstTermSubID, comp_id, est_id, ""); DropDownListCommom.BindEstTermStep(ddlEstTermStepID, comp_id, est_id); BindQuestionGrid(); EstJobUtility.SetConfirmButtonVisible(COMP_ID , EST_ID , ESTTERM_REF_ID , ESTTERM_SUB_ID , ESTTERM_STEP_ID , EST_JOB_ID , ibnConfirm , ibnConfirmCancel); //imgQDeptEmpMap.Visible = true; }
protected void ugrdEEP_BeginExport(object sender, BeginExportEventArgs e) { Biz_EstInfos bizEstInfo = new Biz_EstInfos(this.ICOMP_ID, this.IEST_ID); e.CurrentWorksheet.Rows[0].Cells[0].Value = "평가기간 : " + ddlEstTermRefID.SelectedItem.Text; e.CurrentWorksheet.Rows[1].Cells[0].Value = "평가명 : " + bizEstInfo.Est_Name; //e.CurrentWorksheet.Rows[0].Cells[0].CellFormat.Font.Color = System.Drawing.Color.Crimson; }
private void BindGrid(string est_id) { UltraWebGrid1.DataSource = questionObjects.GetQuestionObjects(est_id); UltraWebGrid1.DataBind(); Biz_EstInfos estInfo = new Biz_EstInfos(COMP_ID, est_id); Biz_QuestionPageStyles qPageStyle = new Biz_QuestionPageStyles(estInfo.Q_Style_ID); hdfQStylePageName.Value = qPageStyle.Question_Style_Page_Name; }
private void BindingPosBizByTgt() { Biz_EstInfos estInfo = new Biz_EstInfos(COMP_ID, EST_ID); Biz_QuestionPageStyles pageStyle = new Biz_QuestionPageStyles(estInfo.Q_Style_ID); QUESTION_PAGE_NAME = pageStyle.Question_Style_Page_Name; Biz_EmpPositionBizMaps empPosBizMap = new Biz_EmpPositionBizMaps(); DT_TGT_EMP_POS_BIZ = empPosBizMap.GetPosBizMap(0).Tables[0]; }
protected void ibnSearch_Click(object sender, ImageClickEventArgs e) { Biz_EstInfos estInfo = new Biz_EstInfos(COMP_ID, EST_ID); if (estInfo.Q_Tgt_Pos_Biz_Use_YN.Equals("N")) { ltrScript.Text = JSHelper.GetAlertScript("현재 평가는 직무평가가 아닙니다."); return; } BindGrid(COMP_ID, EST_ID, TreeView1.SelectedValue); }
private bool CheckValidation(Literal ltrMsg) { Biz_EstInfos estInfo = new Biz_EstInfos(COMP_ID, EST_ID); OwnerType ownerType = BizUtility.GetEnumByOwnerType(estInfo.Owner_Type); if (ownerType != OwnerType.Emp_User) { ltrMsg.Text = JSHelper.GetAlertScript("현재 평가는 사원평가가 아니기 때문에 사원평가점수 수기 할당이 불가능 합니다.", true); return(false); } return(true); }
private bool Check_EST() { Biz_EstInfos objEstInfo = new Biz_EstInfos(COMP_ID, EST_ID); if (objEstInfo.Est_Style_ID == "PRJ") { return(true); } else { return(false); } }
protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e) { hdfEstID.Value = TreeView1.SelectedValue; BindGrid(COMP_ID, hdfEstID.Value, SCALE_ID); Biz_EstInfos estInfo = new Biz_EstInfos(COMP_ID, hdfEstID.Value); if (estInfo.Grade_Confirm_YN.Equals("N")) { ltrScript.Text = JSHelper.GetAlertScript("평가등급을 확정하는 평가에서만 등급 범위 설정이 필요합니다."); return; } }
private void CheckPosGrid(int comp_id, string est_id) { Biz_EstInfos estInfo = new Biz_EstInfos(comp_id, est_id); OwnerTypeMode = BizUtility.GetOwnerType(estInfo.Owner_Type); if (OwnerTypeMode == OwnerType.Dept) { uwgRelGrpPosInfo.Visible = false; uwgRelGrpPosData.Visible = false; trRelPos.Visible = false; trRelPosData.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { COMP_ID = WebUtility.GetRequestByInt("COMP_ID"); EST_ID = WebUtility.GetRequest("EST_ID"); ESTTERM_REF_ID = WebUtility.GetRequestByInt("ESTTERM_REF_ID"); SCALE_TYPE = WebUtility.GetRequest("SCALE_TYPE"); if (!Page.IsPostBack) { EST_JOB_ID = "JOB_14"; DropDownListCommom.BindEstScaleInfo(ddlScaleIDAll, COMP_ID); DropDownListCommom.BindScale(ddlScaleID, COMP_ID); Biz_EstInfos estInfo = new Biz_EstInfos(COMP_ID, EST_ID); if (estInfo.Grade_Confirm_YN.Equals("Y")) { tblCtrls1.Visible = true; tblCtrls2.Visible = true; View(COMP_ID); ibnSaveAll.Attributes.Add("onclick", "return confirm( '설정된 평가방법으로 저장하시겠습니까?' )"); ibnSave.Attributes.Add("onclick", "return confirm( '저장하시겠습니까?' )"); ibnConfirm.Attributes.Add("onclick", "return confirm('설정한 평가방법을 확정하시겠습니까?')"); ibnConfirmCancel.Attributes.Add("onclick", "return confirm('확정을 취소하시겠습니까?')"); ibnSavePosAll.Attributes.Add("onclick", "return confirm('현재 설정을 모든 부서에 적용하시겠습니까?')"); ibnRemove.Attributes.Add("onclick", "return confirm('삭제하시겠습니까?')"); ibnSave.Attributes.Add("onclick", "return confirm('저장하시겠습니까?')"); ibnSave3.Attributes.Add("onclick", "return confirm('저장하시겠습니까?')"); ibnInit2.Attributes.Add("onclick", "return confirm('선택된 부서를 초기화 하시겠습니까?')"); } else { tblCtrls1.Visible = false; tblCtrls2.Visible = false; ltrScript.Text = JSHelper.GetAlertScript("등급확정이 아닌 평가에서는 평가방식 설정이 요구되지 않습니다."); return; } } Biz_Positions positions = new Biz_Positions(); dtPositionAll = positions.GetPositionAll(); ltrScript.Text = ""; }
private void Binding(int comp_id, string est_id) { Biz_EstInfos estInfo = new Biz_EstInfos(comp_id, est_id); if (!estInfo.IsExists(comp_id, est_id)) { ltrScript.Text = JSHelper.GetAlertScript("선택된 회사의 평가정보가 없습니다."); ClearValueControls(); return; } DropDownListCommom.BindEstTermSub(ddlEstTermSubID, comp_id, est_id, ""); DropDownListCommom.BindEstTermStep(ddlEstTermStepID, comp_id, est_id); BindQuestionGrid(); this.pnlPrj.Visible = true; }
/// <summary> /// 평가유형 /// </summary> /// <param name="ddl"></param> /// <param name="style_id"></param> public static void BindEstStyle(DropDownList ddl, int comp_id, string est_style_id) { Biz_EstInfos bizEstInfos = new Biz_EstInfos(); DataTable dtEstInfos = bizEstInfos.GetEstInfo(comp_id, "").Tables[0]; DataRow[] rows = dtEstInfos.Select(string.Format(" EST_STYLE_ID = '{0}' ", est_style_id), " EST_NAME "); if (rows.Length > 0) { foreach (DataRow row in rows) { ddl.Items.Add(new ListItem(DataTypeUtility.GetValue(row["EST_NAME"]), DataTypeUtility.GetValue(row["EST_ID"]))); } } else { ddl.Items.Insert(0, new ListItem("-", "-")); } }
protected void itnDelete_Click(object sender, ImageClickEventArgs e) { string strEstID = hdfEstID.Value.Trim(); Biz_EstInfos estInfo = new Biz_EstInfos(); bool bResult = estInfo.RemoveEstInfoRemoveMaps(COMP_ID, strEstID); if (bResult) { ltrScript.Text = JSHelper.GetAlertScript("정상적으로 삭제되었습니다.", false); GridBinding(COMP_ID); ButtonStatusInit(); ClearValueControls(); } else { ltrScript.Text = JSHelper.GetAlertScript("삭제될 대상이 선택되지 않았습니다."); return; } }
protected void ibtnCheckID_Click(object sender, ImageClickEventArgs e) { string est_id = txtEstID.Text.Trim(); if (est_id.Length == 0) { ltrScript.Text = JSHelper.GetAlertScript("평가 ID를 입력해주세요."); return; } Biz_EstInfos estInfo = new Biz_EstInfos(); bool bDuplicate = estInfo.IsExists(COMP_ID, est_id); if (bDuplicate) { ltrScript.Text = JSHelper.GetAlertScript("존재하는 평가 ID 입니다."); } else { ltrScript.Text = JSHelper.GetAlertScript("사용 가능한 평가 ID 입니다."); } }
private void ViewOne(int comp_id, string est_sche_id) { Biz_ScheInfos scheInfos = new Biz_ScheInfos(comp_id, est_sche_id); Biz_ScheInfos scheInfos_up = null; if (!scheInfos.Up_Est_Sche_ID.Equals("")) { scheInfos_up = new Biz_ScheInfos(comp_id, scheInfos.Up_Est_Sche_ID); txtUpEstScheID.Text = scheInfos_up.Est_Sche_Name; } txtEstScheID.Text = scheInfos.Est_Sche_ID; txtEstScheName.Text = scheInfos.Est_Sche_Name; hdfUpEstScheID.Value = scheInfos.Up_Est_Sche_ID; hdfEstID.Value = scheInfos.Est_ID; txtEstScheDesc.Text = scheInfos.Est_Sche_Desc; txtSortOrder.Text = scheInfos.Sort_Order.ToString(); Biz_EstInfos estInfos = new Biz_EstInfos(comp_id, scheInfos.Est_ID); txtEstID.Text = estInfos.Est_Name; DropDownListCommom.BindEstJobMapNotIn(ddlEstJobID, COMP_ID, hdfEstID.Value, true); }
public static void BindEst(TreeView treeView , bool isCheckBox , TreeNodeSelectAction treeNodeSelectAction , string checkedValues , int comp_id) { string valueStr = "EST_ID"; string up_valueStr = "UP_EST_ID"; string textStr = "EST_NAME"; string iconStr = "EST_STYLE_ID"; string imageUrlDir = "../images/dept_icon/"; bool isExtended = true; DataTable dataTable = null; // 부모 페이지에서 값이 수정되었을 경우를 위해서 체크박스에 대한 값을 처리하기 // 위해서 추가 되는 부분 if (isCheckBox && (checkedValues != null || checkedValues == "")) { dataTable = new DataTable(); DataRow dr = null; dataTable.Columns.Add("VALUE", typeof(string)); dataTable.Columns.Add("OK_YN", typeof(string)); string[] values = checkedValues.Split(','); foreach (string val in values) { dr = dataTable.NewRow(); dr["VALUE"] = val; dr["OK_YN"] = "N"; dataTable.Rows.Add(dr); } } Biz_EstInfos estInfos = new Biz_EstInfos(); DataSet ds = estInfos.GetEstInfos(comp_id); ds.Relations.Add("NodeRelation" , ds.Tables[0].Columns[valueStr] , ds.Tables[0].Columns[up_valueStr] , false); treeView.Nodes.Clear(); foreach (DataRow dbRow in ds.Tables[0].Rows) { if (dbRow[up_valueStr] == DBNull.Value) { TreeNode rootNode = CreateNode(dbRow[valueStr].ToString() , dbRow[textStr].ToString() , imageUrlDir + string.Format("blue/{0}.gif", GetFirtChar(dbRow[iconStr].ToString(), "E")) , isExtended , treeNodeSelectAction , isCheckBox); if (isCheckBox && (checkedValues != null || checkedValues == "")) { TreeNodeCheck(rootNode, dataTable); } treeView.Nodes.Add(rootNode); PopulateEstTree(dbRow, rootNode, valueStr, textStr, imageUrlDir, iconStr, treeNodeSelectAction, isExtended, isCheckBox, dataTable); } } }
/// <summary> /// 그리드 바인딩 메소드 /// </summary> /// <param name="comp_id"></param> /// <param name="est_id"></param> /// <param name="estterm_ref_id"></param> /// <param name="estterm_sub_id"></param> /// <param name="estterm_step_id"></param> private void GridBidingData(int comp_id , string est_id , int estterm_ref_id , int estterm_sub_id , int estterm_step_id , int est_emp_id , bool isAll) { Biz_EstInfos estInfo = new Biz_EstInfos(comp_id, est_id); if (!estInfo.IsExists(comp_id, est_id)) { ltrScript.Text = JSHelper.GetAlertScript("선택된 회사의 평가정보가 없습니다."); return; } DropDownListCommom.BindEstTermSub(ddlEstTermSubID, comp_id, est_id, ""); DropDownListCommom.BindEstTermStep(ddlEstTermStepID, comp_id, est_id); // 처음 실행될때 if (estterm_sub_id.Equals(0)) { ESTTERM_SUB_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermSubID); } // 만약 주기가 년간일 경우 if (YEAR_YN.Equals("Y")) { ESTTERM_SUB_ID = BizUtility.GetEstTermSubIDByYearYN(COMP_ID); } // 만약 차수가 합산일 경우 if (MERGE_YN.Equals("Y")) { ESTTERM_STEP_ID = BizUtility.GetEstTermStepIDByMergeYN(COMP_ID); } else { // 만약 모든 차수를 보여 줘야하는 경우 if (ESTTERM_STEP_ALL_USE_YN.Equals("Y")) { ESTTERM_STEP_ID = 0; ddlEstTermStepID.Visible = false; } } WebUtility.FindByValueDropDownList(ddlEstTermRefID, estterm_ref_id); if (ddlEstTermSubID.Visible) { WebUtility.FindByValueDropDownList(ddlEstTermSubID, estterm_sub_id); } if (ddlEstTermStepID.Visible) { WebUtility.FindByValueDropDownList(ddlEstTermStepID, estterm_step_id); } // 상태 html HtmlScriptCommon.CreateStatusHtmlTable(tblViewStatus, est_id); Biz_Prj_Data objPrjData = new Biz_Prj_Data(); if (isAll) { est_emp_id = 0; } DataTable dt = objPrjData.GetPrjData(comp_id , est_id , estterm_ref_id , estterm_sub_id , estterm_step_id , 0 , est_emp_id , 0 , YEAR_YN , MERGE_YN).Tables[0]; UltraWebGrid1.Clear(); UltraWebGrid1.DataSource = dt; UltraWebGrid1.DataBind(); lblRowCount.Text = dt.Rows.Count.ToString(); }
private void BindingData(int comp_id , string est_id , int estterm_ref_id , int estterm_sub_id , int estterm_step_id , string graphType , BiasType dataType) { Biz_EstInfos estInfo = new Biz_EstInfos(comp_id, est_id); if (!estInfo.IsExists(comp_id, est_id)) { ltrScript.Text = JSHelper.GetAlertScript("선택된 회사의 평가정보가 없습니다."); return; } DropDownListCommom.BindEstTermSub(ddlEstTermSubID, comp_id, est_id, ""); DropDownListCommom.BindEstTermStep(ddlEstTermStepID, comp_id, est_id); // 처음 실행될때 if (estterm_sub_id.Equals(0)) { ESTTERM_SUB_ID = WebUtility.GetIntByValueDropDownList(ddlEstTermSubID); } // 만약 주기가 년간일 경우 if (YEAR_YN.Equals("Y")) { ESTTERM_SUB_ID = BizUtility.GetEstTermSubIDByYearYN(COMP_ID); } // 만약 차수가 합산일 경우 if (MERGE_YN.Equals("Y")) { ESTTERM_STEP_ID = BizUtility.GetEstTermStepIDByMergeYN(COMP_ID); } else { // 만약 모든 차수를 보여 줘야하는 경우 if (ESTTERM_STEP_ALL_USE_YN.Equals("Y")) { ESTTERM_STEP_ID = 0; ddlEstTermStepID.Visible = false; } } WebUtility.FindByValueDropDownList(ddlEstTermRefID, estterm_ref_id); if (ddlEstTermSubID.Visible) { WebUtility.FindByValueDropDownList(ddlEstTermSubID, estterm_sub_id); } if (ddlEstTermStepID.Visible) { WebUtility.FindByValueDropDownList(ddlEstTermStepID, estterm_step_id); } if (estInfo.Owner_Type.Equals("D")) { OwnerTypeMode = OwnerType.Dept; } else { OwnerTypeMode = OwnerType.Emp_User; } ScaleTypeMode = estInfo.Scale_Type; WeightTypeMode = estInfo.Weight_Type; if (estInfo.Bias_YN.Equals("Y")) { BiasYN = YesNo.Yes; } else { BiasYN = YesNo.No; } if (estInfo.Grade_Confirm_YN.Equals("Y")) { GradeConfirmYN = YesNo.Yes; } else { GradeConfirmYN = YesNo.No; } Biz_Datas est_data = new Biz_Datas(); int est_emp_id = 0;; int tgt_dept_id = 0; int tgt_emp_id = 0; if (OwnerTypeMode == OwnerType.Dept) { if (EST_TGT_TYPE.Equals("EST")) { est_emp_id = EMP_REF_ID; tgt_dept_id = 0; tgt_emp_id = 0; } else if (EST_TGT_TYPE.Equals("TGT")) { est_emp_id = 0; tgt_dept_id = BizUtility.GetDeptID(EMP_REF_ID); tgt_emp_id = -1; } } else if (OwnerTypeMode == OwnerType.Emp_User) { if (EST_TGT_TYPE.Equals("EST")) { est_emp_id = EMP_REF_ID; tgt_dept_id = 0; tgt_emp_id = 0; } else if (EST_TGT_TYPE.Equals("TGT")) { est_emp_id = 0; tgt_dept_id = 0; tgt_emp_id = EMP_REF_ID; } } if (OwnerTypeMode == OwnerType.Dept && COL_DEPT_TO_EMP_DATA.Equals("Y")) { OwnerTypeMode = OwnerType.Emp_User; } else if (OwnerTypeMode == OwnerType.Emp_User && COL_DEPT_TO_EMP_DATA.Equals("Y")) { OwnerTypeMode = OwnerType.Dept; } if (estInfo.Bias_Dept_Use_YN.Equals("Y")) { tdBiasDept.Visible = true; } else { tdBiasDept.Visible = false; hdfEstDept.Value = ""; } BindChart(COMP_ID , EST_ID , ESTTERM_REF_ID , ESTTERM_SUB_ID , ESTTERM_STEP_ID , GraphType , DataType , DEPT_VALUES); }
/// <summary> /// 평가 페이지에서 EST_ID에 따라서 컬럼을 동적으로 생성한다. /// </summary> /// <param name="ultraWebGrid"></param> /// <param name="est_id"></param> /// <param name="default_index_count"></param> /// <param name="dataTable"></param> public static void CreateColumns(UltraWebGrid ultraWebGrid , int comp_id , string est_id , int default_index_count , out DataTable dataTable , string owner_type , string[] est_job_ids , string dept_column_no_use_yn) { Biz_ColumnInfos columnInfo = new Biz_ColumnInfos(); Biz_EstInfos estInfo = new Biz_EstInfos(comp_id, est_id); dataTable = columnInfo.GetColumnInfo(comp_id, est_id).Tables[0]; DataRow dataRow = null; UltraGridColumn ultraGridCol = null; int i = 0; owner_type = estInfo.Owner_Type; Biz_JobColumnMaps jobColumnMap = new Biz_JobColumnMaps(); DataTable dtColumnMap = null; Biz_PositionInfos positionInfo = new Biz_PositionInfos(); DataTable dtPosNotUse = positionInfo.GetPositionInfoByUseYN("N").Tables[0]; foreach (string est_job_id in est_job_ids) { if (dtColumnMap == null) { dtColumnMap = jobColumnMap.GetJobColumnMap(comp_id , est_id , est_job_id).Tables[0]; } else { dtColumnMap.Merge(dtColumnMap); } } for (int j = ultraWebGrid.Bands[0].Columns.Count; j > default_index_count; j--) { ultraWebGrid.Bands[0].Columns.RemoveAt(j - 1); ultraWebGrid.DisplayLayout.Bands[0].HeaderLayout.RemoveAt(j - 1); } for (; i < dataTable.Rows.Count; i++) { dataRow = dataTable.Rows[i]; //--------------------- 일반 컬럼일 경우 if (dataRow["COL_STYLE_ID"].ToString().Equals("NML")) { ultraGridCol = new UltraGridColumn(); ultraWebGrid.Bands[0].Columns.Add(ultraGridCol); ultraGridCol.Header.Caption = dataRow["CAPTION"].ToString(); ultraGridCol.Header.Column.Width = (dataRow["WIDTH"] == DBNull.Value) ? 100 : DataTypeUtility.GetToInt32(dataRow["WIDTH"]); ultraGridCol.Header.Column.Key = dataRow["COL_KEY"].ToString(); if (DataTypeUtility.GetYNToBoolean(dataRow["DEFAULT_VALUE_YN"].ToString()) == false) { ultraGridCol.Header.Column.BaseColumnName = dataRow["COL_KEY"].ToString(); } ultraGridCol.Header.RowLayoutColumnInfo.OriginX = i + default_index_count + -1; ultraGridCol.CellStyle.HorizontalAlign = UltraGridUtility.GetHorizontalAlign(dataRow["HALIGN"]); ultraGridCol.DataType = dataRow["DATA_TYPE"].ToString(); ultraGridCol.Hidden = !DataTypeUtility.GetYNToBoolean(dataRow["VISIBLE_YN"].ToString()); if (DataTypeUtility.GetYNToBoolean(dataRow["BACK_COLOR_YN"].ToString())) { if (dataRow["BACK_COLOR"] != DBNull.Value || dataRow["BACK_COLOR"].ToString().Trim().Equals("")) { ultraGridCol.CellStyle.BackColor = Color.FromName(dataRow["BACK_COLOR"].ToString()); } } if (DataTypeUtility.GetYNToBoolean(dataRow["FORMAT_YN"].ToString())) { if (dataRow["FORMAT"] != DBNull.Value || dataRow["FORMAT"].ToString().Trim().Equals("")) { ultraGridCol.Format = dataRow["FORMAT"].ToString(); } } if (DataTypeUtility.GetYNToBoolean(dataRow["FORMULA_YN"].ToString())) { if (dataRow["FORMULA_YN"] != DBNull.Value || dataRow["FORMULA_YN"].ToString().Trim().Equals("")) { ultraGridCol.Format = dataRow["FORMULA"].ToString(); } } if (DataTypeUtility.GetYNToBoolean(dataRow["DEFAULT_VALUE_YN"].ToString())) { if (dataRow["DEFAULT_VALUE_YN"] != DBNull.Value || dataRow["DEFAULT_VALUE_YN"].ToString().Trim().Equals("")) { ultraGridCol.NullText = WebUtility.GetHtmlEncodeChar(dataRow["DEFAULT_VALUE"].ToString()); } } // 평가 주체가 부서인경우 (사원컬럼이면 보이기를 숨김으로 한다) if (owner_type.Equals("D") && dept_column_no_use_yn.Equals("N")) { if (dataRow["COL_EMP_VISIBLE_YN"].ToString().Equals("Y")) { ultraGridCol.Hidden = true; } } else if (owner_type.Equals("P") && dept_column_no_use_yn.Equals("Y")) { if (dataRow["COL_EMP_VISIBLE_YN"].ToString().Equals("Y")) { ultraGridCol.Hidden = true; } } VisiblePosColumn(dtPosNotUse, ultraGridCol, dataRow["COL_KEY"].ToString()); } //--------------------- 존재하는 컬럼일 경우 else if (dataRow["COL_STYLE_ID"].ToString().Equals("BLK")) { try { ultraWebGrid.Bands[0].Columns.FromKey(dataRow["COL_KEY"].ToString()).Hidden = !DataTypeUtility.GetYNToBoolean(dataRow["VISIBLE_YN"].ToString()); } catch { } } //--------------------- 업무관련 컬럼 else if (dataRow["COL_STYLE_ID"].ToString().Equals("BIZ")) { ultraGridCol = new UltraGridColumn(); ultraWebGrid.Bands[0].Columns.Add(ultraGridCol); ultraGridCol.Header.Caption = dataRow["CAPTION"].ToString(); ultraGridCol.Header.Column.Width = (dataRow["WIDTH"] == DBNull.Value) ? 100 : DataTypeUtility.GetToInt32(dataRow["WIDTH"]); ultraGridCol.Header.Column.Key = dataRow["COL_KEY"].ToString(); if (DataTypeUtility.GetYNToBoolean(dataRow["DEFAULT_VALUE_YN"].ToString()) == false) { ultraGridCol.Header.Column.BaseColumnName = dataRow["COL_KEY"].ToString(); } ultraGridCol.Header.RowLayoutColumnInfo.OriginX = i + default_index_count + -1; ultraGridCol.CellStyle.HorizontalAlign = UltraGridUtility.GetHorizontalAlign(dataRow["HALIGN"]); ultraGridCol.DataType = dataRow["DATA_TYPE"].ToString(); // 미리 숨김을 함 ultraGridCol.Hidden = true; if (DataTypeUtility.GetYNToBoolean(dataRow["BACK_COLOR_YN"].ToString())) { if (dataRow["BACK_COLOR"] != DBNull.Value || dataRow["BACK_COLOR"].ToString().Trim().Equals("")) { ultraGridCol.CellStyle.BackColor = Color.FromName(dataRow["BACK_COLOR"].ToString()); } } if (DataTypeUtility.GetYNToBoolean(dataRow["FORMAT_YN"].ToString())) { if (dataRow["FORMAT"] != DBNull.Value || dataRow["FORMAT"].ToString().Trim().Equals("")) { ultraGridCol.Format = dataRow["FORMAT"].ToString(); } } if (DataTypeUtility.GetYNToBoolean(dataRow["FORMULA_YN"].ToString())) { if (dataRow["FORMULA_YN"] != DBNull.Value || dataRow["FORMULA_YN"].ToString().Trim().Equals("")) { ultraGridCol.Format = dataRow["FORMULA_YN"].ToString(); } } if (DataTypeUtility.GetYNToBoolean(dataRow["DEFAULT_VALUE_YN"].ToString())) { if (dataRow["DEFAULT_VALUE_YN"] != DBNull.Value || dataRow["DEFAULT_VALUE_YN"].ToString().Trim().Equals("")) { ultraGridCol.NullText = WebUtility.GetHtmlEncodeChar(dataRow["DEFAULT_VALUE"].ToString()); } } // COL_KEY 와 EST_JOB_ID 간에 매핑에 따라 보여주기 여부 처리 foreach (DataRow drColMap in dtColumnMap.Rows) { if (ultraGridCol.Hidden == true) { if (drColMap["COL_KEY"].ToString() == dataRow["COL_KEY"].ToString()) { ultraGridCol.Hidden = false; break; } } } if (ultraGridCol.Hidden == false) { ultraGridCol.Hidden = !DataTypeUtility.GetYNToBoolean(dataRow["VISIBLE_YN"].ToString()); } // 평가 주체가 부서인경우 (사원컬럼이면 보이기를 숨김으로 한다) if (owner_type.Equals("D") && dept_column_no_use_yn.Equals("N")) { if (dataRow["COL_EMP_VISIBLE_YN"].ToString().Equals("Y")) { ultraGridCol.Hidden = true; } } else if (owner_type.Equals("P") && dept_column_no_use_yn.Equals("Y")) { if (dataRow["COL_EMP_VISIBLE_YN"].ToString().Equals("Y")) { ultraGridCol.Hidden = true; } } VisiblePosColumn(dtPosNotUse, ultraGridCol, dataRow["COL_KEY"].ToString()); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { quizWeight = new DataTable(); } COMP_ID = WebUtility.GetRequestByInt("COMP_ID"); EST_ID = WebUtility.GetRequest("EST_ID"); ESTTERM_REF_ID = WebUtility.GetRequestByInt("ESTTERM_REF_ID"); ESTTERM_SUB_ID = WebUtility.GetRequestByInt("ESTTERM_SUB_ID"); ESTTERM_STEP_ID = WebUtility.GetRequestByInt("ESTTERM_STEP_ID"); EST_DEPT_ID = WebUtility.GetRequestByInt("EST_DEPT_ID"); EST_EMP_ID = WebUtility.GetRequestByInt("EST_EMP_ID"); PRJ_REF_ID = WebUtility.GetRequestByInt("PRJ_REF_ID"); EST_TGT_TYPE = WebUtility.GetRequest("EST_TGT_TYPE", "EST"); TGT_DEPT_ID = WebUtility.GetRequestByInt("TGT_DEPT_ID", 0); TGT_EMP_ID = WebUtility.GetRequestByInt("TGT_EMP_ID", 0); READ_ONLY_YN = WebUtility.GetRequest("READ_ONLY_YN", "N"); _estInfos = new Biz_EstInfos(COMP_ID, EST_ID); _q_item_desc_use_yn = _estInfos.Q_Item_Desc_Use_YN; //PRJ_TYPE Biz_Prj_Info objPrjInfo = new Biz_Prj_Info(PRJ_REF_ID); PRJ_TYPE = objPrjInfo.IPrj_Type; if (READ_ONLY_YN.Equals("N")) { Biz_TermInfos termInfos = new Biz_TermInfos(ESTTERM_REF_ID); Biz_TermSubs termSubs = new Biz_TermSubs(COMP_ID, ESTTERM_SUB_ID); Biz_TermSteps termSteps = new Biz_TermSteps(COMP_ID, ESTTERM_STEP_ID); Biz_EmpInfos estEmpInfos = new Biz_EmpInfos(EST_EMP_ID); Biz_EmpInfos tgtEmpInfos = new Biz_EmpInfos(TGT_EMP_ID); //Biz_DeptInfos estDeptInfo = new Biz_DeptInfos(EST_DEPT_ID); MicroBSC.Integration.COM.Biz.Biz_Com_Dept_Info bizComDeptInfo = new MicroBSC.Integration.COM.Biz.Biz_Com_Dept_Info(EST_DEPT_ID); MicroBSC.Integration.COM.Biz.Biz_Com_Dept_Info tgtDeptInfo = new MicroBSC.Integration.COM.Biz.Biz_Com_Dept_Info(TGT_DEPT_ID); //Biz_Prj_Data data = new Biz_Prj_Data(COMP_ID // , EST_ID // , ESTTERM_REF_ID // , ESTTERM_SUB_ID // , ESTTERM_STEP_ID // , EST_DEPT_ID // , EST_EMP_ID // , PRJ_REF_ID); _status_style_id = _estInfos.Status_Style_ID; Biz_Prj_QuestionPrjMap objQuestionPrjMap = new Biz_Prj_QuestionPrjMap(COMP_ID , ESTTERM_REF_ID , ESTTERM_SUB_ID , 0 , EST_ID , "" , PRJ_REF_ID); if (objQuestionPrjMap.Q_Obj_ID == null) { ltrScript.Text = JSHelper.GetAlertScript("프로젝트사업명에 대한 평가질의서가 매핑되지 않았습니다.", true); return; } // 창을 띄은 사람이 평가자 인지 체크 if (EST_EMP_ID == EMP_REF_ID) { _status_id = "P"; ibnSaveEst.Visible = true; } //else //{ // ibnSaveEst.Visible = false; // // 롤에 따른 버튼 권한이 있는지 확인 // //BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnSaveEst); //} Q_OBJ_ID = objQuestionPrjMap.Q_Obj_ID; EST_NAME = _estInfos.Est_Name; ESTTERM_REF_NAME = termInfos.EstTerm_Name; ESTTERM_SUB_NAME = termSubs.EstTerm_Sub_Name; ESTTERM_STEP_NAME = termSteps.EstTerm_Step_Name; EST_EMP_NAME = estEmpInfos.Emp_Name; EST_DEPT_NAME = bizComDeptInfo.DEPT_NAME; //estDeptInfo.Dept_Name; TGT_EMP_NAME = tgtEmpInfos.Emp_Name; TGT_DEPT_NAME = tgtDeptInfo.DEPT_NAME; //tgtDeptInfo.Dept_Name; PRJ_NAME = objPrjInfo.IPrj_Name; PRJ_CODE = objPrjInfo.IPrj_Code; } else { Q_OBJ_ID = WebUtility.GetRequest("Q_OBJ_ID"); ibnSaveEst.Visible = false; } if (!Page.IsPostBack) { SetLabelText(); //임의수정 Biz_Prj_Data bizPrjData = new Biz_Prj_Data(); DataTable dt = bizPrjData.GetPrjData(COMP_ID, EST_ID, ESTTERM_REF_ID, ESTTERM_SUB_ID, ESTTERM_STEP_ID, EST_DEPT_ID, EST_EMP_ID, TGT_DEPT_ID, TGT_EMP_ID, PRJ_REF_ID, "", "").Tables[0]; string Status_ID = ""; if (dt != null && dt.Rows.Count > 0) { Status_ID = dt.Rows[0]["STATUS_ID"].ToString(); } if (Status_ID.Equals("E")) { ibnSaveEst.Visible = false; } DataListBinding(dt); ibnSaveEst.Attributes.Add("onclick", "if(confirm('평가내용을 저장하시겠습니까?')) return ConfirmQuesiton();else return false;"); } ltrScript.Text = ""; }
protected void Page_Load(object sender, EventArgs e) { COMP_ID = WebUtility.GetRequestByInt("COMP_ID"); EST_ID = WebUtility.GetRequest("EST_ID"); ESTTERM_REF_ID = WebUtility.GetRequestByInt("ESTTERM_REF_ID"); ESTTERM_SUB_ID = WebUtility.GetRequestByInt("ESTTERM_SUB_ID"); ESTTERM_STEP_ID = WebUtility.GetRequestByInt("ESTTERM_STEP_ID"); EST_DEPT_ID = WebUtility.GetRequestByInt("EST_DEPT_ID"); EST_EMP_ID = WebUtility.GetRequestByInt("EST_EMP_ID"); TGT_DEPT_ID = WebUtility.GetRequestByInt("TGT_DEPT_ID"); TGT_EMP_ID = WebUtility.GetRequestByInt("TGT_EMP_ID"); EST_TGT_TYPE = WebUtility.GetRequest("EST_TGT_TYPE", "EST"); READ_ONLY_YN = WebUtility.GetRequest("READ_ONLY_YN", "N"); _estInfos = new Biz_EstInfos(COMP_ID, EST_ID); _q_item_desc_use_yn = _estInfos.Q_Item_Desc_Use_YN; _tgt_opinion_yn = _estInfos.Tgt_Opinion_YN; _feedback_yn = _estInfos.FeedBack_YN; _tgt_send_type = BizUtility.GetTgtSendType(_tgt_opinion_yn, _feedback_yn); _tgt_pos_biz_use_yn = _estInfos.Q_Tgt_Pos_Biz_Use_YN; if (!Page.IsPostBack) { //이전평가차수질의지내용보기가 설정되어있고, 현재차수가 1차수이상일때만 divPreviousControl.Visible = false; Biz_EstInfos bizEstInfo = new Biz_EstInfos(COMP_ID, EST_ID); if (bizEstInfo.Question_Previous_Step_YN.Trim() == "Y" && ESTTERM_STEP_ID > 2) { Biz_TermStepEstMaps bizTermStepEstMap = new Biz_TermStepEstMaps(); DataSet dsTermStepMap = bizTermStepEstMap.GetTermStepEstMap(COMP_ID, EST_ID); if (dsTermStepMap.Tables[0].Rows.Count > 0) { if (dsTermStepMap.Tables[0].Select(string.Format("ESTTERM_STEP_ID > 1 AND ESTTERM_STEP_ID < {0}", ESTTERM_STEP_ID)).Length > 0) { this.IPREVIOUS_STEP_VISIBLE = true; DataRow[] drArr = dsTermStepMap.Tables[0].Select(string.Format("ESTTERM_STEP_ID > 1 AND ESTTERM_STEP_ID < {0}", ESTTERM_STEP_ID), "ESTTERM_STEP_ID ASC"); for (int i = 0; i < drArr.Length; i++) { ddlStep.Items.Insert(i, new ListItem(drArr[i]["ESTTERM_STEP_NAME"].ToString(), drArr[i]["ESTTERM_STEP_ID"].ToString())); } ddlStep.SelectedIndex = ddlStep.Items.Count - 1; //this.IESTTERM_STEP_PREVIOUS_SELECT = WebUtility.GetIntByValueDropDownList(ddlStep); divPreviousControl.Visible = true; } } } } if (READ_ONLY_YN.Equals("N")) { Biz_TermInfos termInfos = new Biz_TermInfos(ESTTERM_REF_ID); Biz_TermSubs termSubs = new Biz_TermSubs(COMP_ID, ESTTERM_SUB_ID); Biz_TermSteps termSteps = new Biz_TermSteps(COMP_ID, ESTTERM_STEP_ID); Biz_EmpInfos estEmpInfos = new Biz_EmpInfos(EST_EMP_ID); Biz_EmpInfos tgtEmpInfos = new Biz_EmpInfos(TGT_EMP_ID); Biz_DeptInfos estDeptInfo = new Biz_DeptInfos(EST_DEPT_ID); Biz_DeptInfos tgtDeptInfo = new Biz_DeptInfos(TGT_DEPT_ID); Biz_Datas data = new Biz_Datas(COMP_ID , EST_ID , ESTTERM_REF_ID , ESTTERM_SUB_ID , ESTTERM_STEP_ID , EST_DEPT_ID , EST_EMP_ID , TGT_DEPT_ID , TGT_EMP_ID); _status_style_id = _estInfos.Status_Style_ID; Biz_QuestionDeptEmpMaps questionDeptEmpMaps = new Biz_QuestionDeptEmpMaps(COMP_ID , ESTTERM_REF_ID , ESTTERM_SUB_ID , 0 , EST_ID , "" , TGT_DEPT_ID , TGT_EMP_ID , _estInfos.Owner_Type); if (_tgt_pos_biz_use_yn.Equals("N")) { if (questionDeptEmpMaps.Q_Obj_ID == null) { ltrScript.Text = JSHelper.GetAlertScript("피평가자(부서)에 대한 평가질의서가 매핑되지 않았습니다. 성과평가 관리자에게 문의하세요.", true); return; } } else { } // 의견상신 : X, 피드백 : O if (_tgt_send_type.Equals("FBK")) { if (EST_TGT_TYPE.Equals("EST")) { _status_id = "O"; ibnSaveOpinion.Visible = false; ibnFeedbackAgree.Visible = false; ibnFeedbackReject.Visible = false; // 창을 띄은 사람이 평가자 인지 체크 if (EST_EMP_ID == EMP_REF_ID) { ibnSaveEst.Visible = true; } else { ibnSaveEst.Visible = false; // 롤에 따른 버튼 권한이 있는지 확인 BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnSaveEst); } } else if (EST_TGT_TYPE.Equals("TGT")) { _status_id = "P"; ibnSaveEst.Visible = false; ibnSaveOpinion.Visible = false; // 창을 띄은 사람이 피평가자 인지 체크 if (TGT_EMP_ID == EMP_REF_ID) { ibnFeedbackAgree.Visible = true; ibnFeedbackReject.Visible = true; } else { ibnFeedbackAgree.Visible = false; ibnFeedbackReject.Visible = false; // 롤에 따른 버튼 권한이 있는지 확인 BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnFeedbackAgree); BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnFeedbackReject); } if (!_status_style_id.Equals("0003")) { ltrScript.Text = JSHelper.GetAlertScript("피드백 5단계 평가으로 설정되어야 합니다.", true); return; } } } else // 그외 사항에서는 { if (EST_TGT_TYPE.Equals("EST")) { _status_id = "P"; ibnSaveOpinion.Visible = false; ibnFeedbackAgree.Visible = false; ibnFeedbackReject.Visible = false; // 창을 띄은 사람이 평가자 인지 체크 if (EST_EMP_ID == EMP_REF_ID) { ibnSaveEst.Visible = true; } else { ibnSaveEst.Visible = false; // 롤에 따른 버튼 권한이 있는지 확인 BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnSaveEst); } } else if (EST_TGT_TYPE.Equals("TGT")) { _status_id = "O"; ibnSaveEst.Visible = false; ibnFeedbackAgree.Visible = false; ibnFeedbackReject.Visible = false; // 창을 띄은 사람이 피평가자 인지 체크 if (TGT_EMP_ID == EMP_REF_ID) { ibnSaveOpinion.Visible = true; } else { ibnSaveOpinion.Visible = false; // 롤에 따른 버튼 권한이 있는지 확인 BizUtility.SetButtonVisibleCommandNameByRolID(EMP_REF_ID, ibnSaveOpinion); } if (!_status_style_id.Equals("0002")) { ltrScript.Text = JSHelper.GetAlertScript("의견상신 5단계 평가으로 설정되어야 합니다.", true); return; } } } if (_tgt_send_type.Equals("FBK")) { if (data.Status_ID.Equals("E")) { ibnSaveEst.Visible = false; ibnSaveOpinion.Visible = false; ibnFeedbackAgree.Visible = false; ibnFeedbackReject.Visible = false; } if (data.Status_ID.Equals("C")) { ibnSaveEst.Visible = false; } } else { if (data.Status_ID.Equals("E")) { ibnSaveEst.Visible = false; ibnSaveOpinion.Visible = false; ibnFeedbackAgree.Visible = false; ibnFeedbackReject.Visible = false; } } Q_OBJ_ID = questionDeptEmpMaps.Q_Obj_ID; EST_NAME = _estInfos.Est_Name; ESTTERM_REF_NAME = termInfos.EstTerm_Name; ESTTERM_SUB_NAME = termSubs.EstTerm_Sub_Name; ESTTERM_STEP_NAME = termSteps.EstTerm_Step_Name; EST_EMP_NAME = estEmpInfos.Emp_Name; TGT_EMP_NAME = tgtEmpInfos.Emp_Name; EST_DEPT_NAME = estDeptInfo.Dept_Name; TGT_DEPT_NAME = tgtDeptInfo.Dept_Name; } else { Q_OBJ_ID = WebUtility.GetRequest("Q_OBJ_ID"); ibnSaveEst.Visible = false; ibnSaveOpinion.Visible = false; ibnFeedbackAgree.Visible = false; ibnFeedbackReject.Visible = false; } if (!Page.IsPostBack) { DataListBinding(); DoBindingPreviousStepQeustion(); ibnSaveEst.Attributes.Add("onclick", "if(confirm('평가내용을 저장하시겠습니까?')) return ConfirmQuesiton();else return false;"); ibnSaveOpinion.Attributes.Add("onclick", "return confirm('평가자에게 의견을 상신하시겠습니까?');"); ibnFeedbackAgree.Attributes.Add("onclick", "return confirm('평가질의에 동의하십니까?');"); ibnFeedbackReject.Attributes.Add("onclick", "return confirm('평가질의에 거절하십니까?');"); } ltrScript.Text = ""; }