protected void iBtnConfirm_Click(object sender, ImageClickEventArgs e) { CheckBox chk; UltraGridRow row; TemplatedColumn col; bool isOK = false; string isSuccessed = "0"; bool isFirst = true; string emp_ref_id_arr = ""; for (int i = 0; i < ugrdTargetUser.Rows.Count; i++) { row = ugrdTargetUser.Rows[i]; col = (TemplatedColumn)row.Band.Columns.FromKey("selchk"); chk = (CheckBox)((CellItem)col.CellItems[row.BandIndex]).FindControl("cBox"); if (isFirst) { isFirst = false; } else { emp_ref_id_arr += ";"; } emp_ref_id_arr += string.Format("{0}({1})" , row.Cells.FromKey("EMP_REF_ID").Value.ToString() , row.Cells.FromKey("EMP_NAME").Value.ToString()); } ltrScript.Text = JSHelper.GetBlankScript(string.Format("opener.document.getElementById('txtReceiver').value = '{0}';opener.document.getElementById('hdfReceiver').value = '{0}';window.close();", emp_ref_id_arr)); }
public static void PopupPage(Literal ltrScript , string url , int width , int height , string window_name) { string script = string.Format("gfOpenWindow('{0}', {1}, {2}, false, false, 'pop_up');", url, width, height); ltrScript.Text = JSHelper.GetBlankScript(script); }
private void View(string tabKey) { if (EST_ID.Equals("")) { ltrScript.Text = JSHelper.GetAlertScript("평가가 선택되지 않았습니다."); return; } if (hdfWeightType.Value.Equals("")) { ltrScript.Text = JSHelper.GetAlertScript("평가에 따른 가중치가 설정되어 있지 않습니다."); return; } if (hdfScaleType.Value.Equals("")) { ltrScript.Text = JSHelper.GetAlertScript("평가에 따른 평가방법이 설정되어 있지 않습니다."); return; } if (tabKey.Equals("1")) { ibnEst1.ImageUrl = "../images/btn/btn1Down.gif"; ibnEst2.ImageUrl = "../images/btn/btn2Up.gif"; ibnEst3.ImageUrl = "../images/btn/btn3Up.gif"; } else if (tabKey.Equals("2")) { ibnEst1.ImageUrl = "../images/btn/btn1Up.gif"; ibnEst2.ImageUrl = "../images/btn/btn2Down.gif"; ibnEst3.ImageUrl = "../images/btn/btn3Up.gif"; } else if (tabKey.Equals("3")) { ibnEst1.ImageUrl = "../images/btn/btn1Up.gif"; ibnEst2.ImageUrl = "../images/btn/btn2Up.gif"; ibnEst3.ImageUrl = "../images/btn/btn3Down.gif"; } else { return; } string strTarget = string.Format("EST04010{0}.aspx" + GetTabParam(), tabKey); ltrTabPage.Text = JSHelper.GetBlankScript(string.Format("ifmContent.location.href = '{0}';", strTarget)); }
public void UpdateMidCategoyInfo() { if (this.IcategoryTopRefID < 1) { ltrScript.Text = JSHelper.GetBlankScript("상위분류를 선택해주십시오"); } MicroBSC.BSC.Biz.Biz_Bsc_Kpi_Category_Mid objMid = new MicroBSC.BSC.Biz.Biz_Bsc_Kpi_Category_Mid(); int intRtn = objMid.UpdateData (this.IcategoryTopRefID , this.IcategoryMidRefID , txtMidCatName.Text , txtMidCatDesc.Text , (chkMidUseYn.Checked) ? "Y" : "N" , gUserInfo.Emp_Ref_ID ); if (objMid.Transaction_Result == "Y") { this.SetCategoryMidGrid(); } }
protected void ddlStep_SelectedIndexChanged(object sender, EventArgs e) { DoBindingPreviousStepQeustion(); ltrScript.Text = JSHelper.GetBlankScript("document.getElementById('tdPreviousStep').style.display = 'block'"); ltrScript.Text += JSHelper.GetBlankScript("document.getElementById('ddlStep').style.display = 'block'"); }
protected void ltnCancel_Click(object sender, EventArgs e) { ltrScript_PostBack.Text = JSHelper.GetBlankScript("location.replace('usr_stg_map.aspx'+location.search);"); }