protected void iBtnTemplete_Click(object sender, ImageClickEventArgs e) { int cnt = ugrdKPIPool.Rows.Count; string kpi_pool_id_list = string.Empty; for (int i = 0; i < cnt; i++) { UltraGridRow row = ugrdKPIPool.Rows[i]; TemplatedColumn selchk = (TemplatedColumn)row.Band.Columns.FromKey("selchk"); CheckBox cBox = (CheckBox)((CellItem)selchk.CellItems[row.BandIndex]).FindControl("cBox"); if (cBox.Checked) { kpi_pool_id_list += "," + DataTypeUtility.GetValue(row.Cells.FromKey("KPI_POOL_REF_ID").Value); } } if (kpi_pool_id_list.Length > 0) { BizUtility.KPI_POOL_LIST = kpi_pool_id_list.Remove(0, 1); } string url = "BSC0301M4.aspx"; string str = string.Format("gfOpenWindow('{0}', 800, 400, false, false, '_bk');", url); ltrScript.Text = JSHelper.GetSclipt(str); }
private void DoDeleting() { MicroBSC.Integration.BSC.Biz.Biz_Bsc_Kpi_Pool_Templete bizBscKpiPoolTemplete = new MicroBSC.Integration.BSC.Biz.Biz_Bsc_Kpi_Pool_Templete(); string msg = bizBscKpiPoolTemplete.RemoveData_DB(txtKpiPoolTempleteID.Text); if (msg.Equals("")) { DoBinding(); ltrScript.Text = JSHelper.GetSclipt("alert('정상 처리 되었습니다.');opener.location.href=opener.document.location;"); } else { ltrScript.Text = JSHelper.GetAlertScript(msg); } }
protected void iBtnConfirmOpinion_Click(object sender, ImageClickEventArgs e) { double total = 0.0; //정성평가 점수 string point_list = string.Empty; //정성평가 질의 평가 결과 for (int i = 0; i < ugrdQuestionList.Rows.Count; i++) { double weight = DataTypeUtility.GetToDouble(ugrdQuestionList.Rows[i].Cells.FromKey("WEIGHT").Value) * 0.01; double point = DataTypeUtility.GetToDouble(ugrdQuestionList.Rows[i].Cells.FromKey("POINT").Value); string point_text = DataTypeUtility.GetValue(ugrdQuestionList.Rows[i].Cells.FromKey("POINT").Text); point_list += ";" + point_text; double result = weight * point; total += result; } if (point_list.Length > 2) { point_list = point_list.Remove(0, 1); } string grid_id = IFROMKEY.Split(';')[0]; string col_final_score = IFROMKEY.Split(';')[1]; string col_score_ori_list = IFROMKEY.Split(';')[2]; string col_grade_pop = IFROMKEY.Split(';')[3]; string jscript = JSHelper.GetSclipt(string.Format("doSettingValueInCell('{0}', '{1}', '{2}', '{3}', '{4}', '{5}','{6}');" , grid_id , col_final_score , col_score_ori_list , col_grade_pop , IROW_NO , total , point_list)); ltrScript.Text = jscript; }
private void DoUpdating() { MicroBSC.Integration.BSC.Biz.Biz_Bsc_Kpi_Pool_Templete bizBscKpiPoolTemplete = new MicroBSC.Integration.BSC.Biz.Biz_Bsc_Kpi_Pool_Templete(); string msg = bizBscKpiPoolTemplete.ModifyData_DB(txtKpiPoolTempleteID.Text , txtKpiPoolTempleteName.Text , txtKpiPoolTempleteNote.Text , DateTime.Now , this.gUserInfo.Emp_Ref_ID); if (msg.Equals("")) { DoBinding(); ltrScript.Text = JSHelper.GetSclipt("alert('정상 처리 되었습니다.');opener.location.href=opener.document.location;"); } else { ltrScript.Text = JSHelper.GetAlertScript(msg); } }
private void DoSaving() { MicroBSC.Integration.BSC.Biz.Biz_Bsc_Kpi_Pool_Ver bizBscKpiPoolVer = new MicroBSC.Integration.BSC.Biz.Biz_Bsc_Kpi_Pool_Ver(); string msg = bizBscKpiPoolVer.AddData_DB(txtKpiPoolVerName.Text , txtKpiPoolVerNote.Text , DateTime.Now , this.gUserInfo.Emp_Ref_ID); if (msg.Equals("")) { DoBinding(); //ltrScript.Text = JSHelper.GetAlertScript("정상 처리 되었습니다.", false); ltrScript.Text = JSHelper.GetSclipt("alert('정상 처리 되었습니다.');opener.location.href=opener.document.location;"); } else { ltrScript.Text = JSHelper.GetAlertScript(msg); } }
protected void btnMapEdit_Click(object sender, EventArgs e) { int rows = ugrdStgList.Rows.Count; if (rows > 0) { for (int i = 0; i < rows; i++) { UltraGridRow row = ugrdStgList.Rows[i]; TemplatedColumn selchk = (TemplatedColumn)row.Band.Columns.FromKey("selchk"); CheckBox cBox = (CheckBox)((CellItem)selchk.CellItems[row.BandIndex]).FindControl("cBox"); if (cBox.Checked) { int stg_ref_id = DataTypeUtility.GetToInt32(row.Cells.FromKey("STG_REF_ID").Value); int view_ref_id = DataTypeUtility.GetToInt32(row.Cells.FromKey("VIEW_REF_ID").Value); new MicroBSC.Integration.BSC.Biz.Biz_Bsc_Kpi_Pool().KpiPoolMapEdit(stg_ref_id, view_ref_id); } } ltrScript.Text = JSHelper.GetSclipt("변경 되었습니다."); SetStgGrid(); } //new MicroBSC.Integration.BSC.Biz.Biz_Bsc_Kpi_Pool().KpiPoolMapEdit(1, 1); }