protected void ibnSave_Click(object sender, ImageClickEventArgs e) { string pos_id = txtPosID.Text.Trim(); string pos_name = txtPosName.Text.Trim(); Biz_Positions positions = new Biz_Positions("EST_POSITION_" + hdfPosInfoID.Value, hdfPosInfoID.Value); if (PageWriteMode == WriteMode.New) { bool bDuplicate = positions.IsExist(pos_id); if (bDuplicate == true) { ltrScript.Text = JSHelper.GetAlertScript("중복되었습니다.", false); return; } bool bResult = positions.AddPositions(pos_id , pos_name , DateTime.Now , EMP_REF_ID); if (bResult == true) { DetailGridBinding(hdfPosInfoID.Value); InitForm(); } else { ltrScript.Text = JSHelper.GetAlertBackScript("등록되지 않았습니다."); return; } } else if (PageWriteMode == WriteMode.Modify) { bool bIsExist = positions.IsExist(pos_id); if (bIsExist == false) { ltrScript.Text = JSHelper.GetAlertScript("해당 자료가 없습니다.", false); return; } bool bResult = positions.ModifyPositions(pos_id , pos_name , DateTime.Now , EMP_REF_ID); if (bResult == true) { DetailGridBinding(hdfPosInfoID.Value); InitForm(); } else { ltrScript.Text = JSHelper.GetAlertBackScript("수정되지 않았습니다."); return; } } }
protected void ibnDelete_Click(object sender, ImageClickEventArgs e) { string strPos_id = hdfPosID.Value.Trim(); Biz_Positions positions = new Biz_Positions("EST_POSITION_" + hdfPosInfoID.Value, hdfPosInfoID.Value); bool bIsExist = positions.IsExist(strPos_id); if (bIsExist == false) { ltrScript.Text = JSHelper.GetAlertScript("해당 자료가 없습니다.", false); return; } bool bResult = positions.RemovePositions(strPos_id); if (bResult) { DetailGridBinding(hdfPosInfoID.Value); InitForm(); } else { ltrScript.Text = JSHelper.GetAlertBackScript("삭제되지 않았습니다."); return; } }
/// <summary> /// 전략맵트리 변경시 설정 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void trvStgMap_SelectedNodeChanged(object sender, EventArgs e) { if (this.IType == "A") { ltrScript.Text = JSHelper.GetAlertBackScript("전략맵 정보가 저장되지 않았습니다. 먼저 전략맵정보를 저장해 주십시오"); return; } this.SetFormType(); }
protected void iBtnSearch_Click(object sender, ImageClickEventArgs e) { if (this.hdfDeptID.Value == "" || this.txtDeptName.Text == "") { ltrScript.Text = JSHelper.GetAlertBackScript("조직을 선택해주십시오"); return; } this.SetScoreGrid(); }
protected void ibnSave_Click(object sender, ImageClickEventArgs e) { string strIdxs = UltraGridUtility.GetCheckBoxValues(UltraWebGrid3 , "CHK_BOX" , "cBox" , "POS_BIZ_ID"); string[] pos_biz_ids = strIdxs.Substring(0, strIdxs.Length - 1).Split(';'); Biz_PositionKindBizMaps positionKindBizMap = new Biz_PositionKindBizMaps(); DataTable dataTable = positionKindBizMap.GetDataTableSchema(); DataRow row = null; for (int i = 0; i < pos_biz_ids.Length; i++) { DataRow dataRow = dataTable.NewRow(); dataRow["POS_KND_ID"] = this.hdfPoskndID.Value; dataRow["POS_BIZ_ID"] = pos_biz_ids[i].ToString(); dataRow["DATE"] = DateTime.Now; dataRow["USER"] = gUserInfo.Emp_Ref_ID; dataTable.Rows.Add(dataRow); } bool bResult = positionKindBizMap.ModifyPosKndBizMap(this.hdfPoskndID.Value, dataTable); if (bResult) { SelectBizGridBinding(hdfPoskndID.Value); KndBizMapGridBinding(); } else { ltrScript.Text = JSHelper.GetAlertBackScript("수정되지 않았습니다."); return; } }
protected void ibtnDataMove_Click(object sender, ImageClickEventArgs e) { string strIdxs = UltraGridUtility.GetCheckBoxValues(UltraWebGrid1 , "CHK_BOX" , "cBox" , "POS_ID"); string strNotInIdxs = GetNotInIdxs(strIdxs); Biz_PositionInfos positionInfo = new Biz_PositionInfos(); bool bResult = positionInfo.ModifyPositionID(strNotInIdxs , DateTime.Now , EMP_REF_ID); if (bResult) { DetailGridBinding(hdfPosInfoID.Value); } else { ltrScript.Text = JSHelper.GetAlertBackScript("등록되지 않았습니다."); return; } }
protected void ibnDelete_Click(object sender, ImageClickEventArgs e) { string est_sche_id = hdfEstScheId.Value.Trim(); if (est_sche_id.Length == 0) { ltrScript.Text = JSHelper.GetAlertScript("선택된 일정 ID가 없습니다."); return; } Biz_ScheInfos scheInfos = new Biz_ScheInfos(); bool bResult = scheInfos.RemoveScheInfo(COMP_ID, est_sche_id); if (bResult == true) { BindGrid(COMP_ID); ButtonStatusByInit(); } else { ltrScript.Text = JSHelper.GetAlertBackScript("삭제되지 않았습니다."); return; } }
protected void ibnSave_Click(object sender, ImageClickEventArgs e) { string est_sche_id = txtEstScheID.Text.Trim(); if (est_sche_id.Length == 0) { est_sche_id = hdfEstScheId.Value.Trim(); } string up_est_sche_id = hdfUpEstScheID.Value.Trim(); string est_sche_name = txtEstScheName.Text.Trim(); string est_sche_desc = txtEstScheDesc.Text.Trim(); int sort_order = DataTypeUtility.GetToInt32(txtSortOrder.Text); string est_id = hdfEstID.Value.Trim(); Biz_ScheInfos scheInfos = new Biz_ScheInfos(); if (PageWriteMode == WriteMode.New) { bool bDuplicate = scheInfos.IsExist(COMP_ID, est_sche_id); if (bDuplicate == true) { ltrScript.Text = JSHelper.GetAlertScript("존재하는 일정 ID가 있습니다.", false); return; } bool bResult = scheInfos.AddScheInfo(COMP_ID , est_sche_id , up_est_sche_id , est_sche_name , est_sche_desc , sort_order , est_id , DateTime.Now , gUserInfo.Emp_Ref_ID ); if (bResult == true) { ltrScript.Text = JSHelper.GetAlertScript("정상적으로 저장되었습니다."); BindGrid(COMP_ID); ButtonStatusByInit(); } else { ltrScript.Text = JSHelper.GetAlertScript("처리 중 오류가 발생하였습니다."); return; } } else if (PageWriteMode == WriteMode.Modify) { bool bIsExist = scheInfos.IsExist(COMP_ID, est_sche_id); if (bIsExist == false) { ltrScript.Text = JSHelper.GetAlertScript("해당 자료가 없습니다."); return; } bool bResult = scheInfos.ModifyScheInfo(COMP_ID , est_sche_id , up_est_sche_id , est_sche_name , est_sche_desc , sort_order , est_id , DateTime.Now , gUserInfo.Emp_Ref_ID ); if (bResult == true) { ltrScript.Text = JSHelper.GetAlertScript("정상적으로 수정되었습니다."); BindGrid(COMP_ID); ButtonStatusByInit(); } else { ltrScript.Text = JSHelper.GetAlertBackScript("수정되지 않았습니다."); return; } } }
protected void Page_Load(object sender, EventArgs e) { ltrScript.Text = ""; SetQueryStringData(); if (EST_DEPT_REF_ID == 0) { Biz_EstDeptOrgDetails estDeptOrgDetail = new Biz_EstDeptOrgDetails(); EST_DEPT_REF_ID = estDeptOrgDetail.GetEstDeptRefID(ESTTERM_REF_ID, EMP_REF_ID); if (EST_DEPT_REF_ID < 1) { this.Page.ClientScript.RegisterClientScriptBlock(typeof(string), "noAccess", JSHelper.GetAlertBackScript("권한이 없습니다.")); } } if (!IsPostBack) { WebCommon.FillEstTree(trvEstDept, ESTTERM_REF_ID, EMP_REF_ID); WebCommon.SetTermMonthDropDownList(ddlMonthInfo, ESTTERM_REF_ID); txtDeptID.Text = EST_DEPT_REF_ID.ToString(); WebCommon.SetExternalScoreCheckBox(chkApplyExtScore, ESTTERM_REF_ID); chkApplyExtScore.Checked = this.IExtKpiYN; if (this.IYmd != "") { PageUtility.FindByValueDropDownList(ddlMonthInfo, this.IYmd); } ViewKPI = true; SetCtrlSetting(ESTTERM_REF_ID , int.Parse(txtDeptID.Text) , PageUtility.GetIntByValueDropDownList(ddlMonthInfo)); this.SetKpiSignalMaster(); } }