/// <summary> /// Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering. /// </summary> protected override void CreateChildControls() { try { strCurrentSiteUrl = HttpContext.Current.Request.Url.ToString(); objRadWindowManager = new RadWindowManager(); objRadWindowManager.ID = "objRadWindowManager"; objRadWindow = new RadWindow(); objRadWindow.ID = "objRadWindow"; objRadWindow.Behaviors = WindowBehaviors.Move | WindowBehaviors.Close | WindowBehaviors.Resize| WindowBehaviors.Maximize| WindowBehaviors.Minimize; objRadWindow.OnClientClose = "OnClientClose"; objRadWindow.OnClientCommand = "OnClientCommand"; objRadWindow.DestroyOnClose = false; objRadWindow.AutoSize = false; objRadWindow.VisibleTitlebar = true; objRadWindow.VisibleStatusbar = false; objRadWindow.Opacity = 100; objRadWindowManager.Windows.Add(objRadWindow); this.Controls.Add(objRadWindowManager); } catch (Exception ex) { CommonUtility.HandleException(strCurrentSiteUrl,ex); } }
protected void btn_Select_Click(object sender, EventArgs e) { if (ddl_CodeGroup.SelectedValue == null) { ddl_CodeGroup.SelectedValue = "0"; } if (ddl_CodeDras.SelectedValue == null) { ddl_CodeDras.SelectedValue = "0"; } if (ddl_Term.SelectedValue == null) { ddl_Term.SelectedValue = "0"; } Session["page"] = 2; //Response.Redirect("SearchProfByParams.aspx?"+"Term"+"="+ddl_Term.SelectedValue+"&"+"Lesson"+"="+ddl_CodeDras.SelectedValue+"&"+"Departman"+"="+ddl_CodeGroup.SelectedValue); RadWindowManager windowManager = new RadWindowManager(); RadWindow widnow1 = new RadWindow(); // Set the window properties widnow1.NavigateUrl = ("../../../university/Faculty/CMS/SearchProfByParams.aspx?" + "Term" + "=" + ddl_Term.SelectedValue + "&" + "Lesson" + "=" + ddl_CodeDras.SelectedValue + "&" + "Departman" + "=" + ddl_CodeGroup.SelectedValue); widnow1.ID = "RadWindow1"; widnow1.VisibleOnPageLoad = true; // Set this property to True for showing window from code widnow1.Height = 600; widnow1.Width = 1200; windowManager.Windows.Add(widnow1); windowManager.Height = 600; windowManager.Width = 1200; ContentPlaceHolder mpContentPlaceHolder; mpContentPlaceHolder = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1"); mpContentPlaceHolder.Controls.Add(widnow1); }
protected void SSN_TextChanged(object sender, EventArgs e) { string Member_ID = Repository.Members.checkExistingMemberbySSN(SSN.Text); if (Member_ID != "0") { Repository.Struct.CheckMember memberinfo = Repository.Members.Members_Prepopulate(Member_ID, MemberID, firstname, lastname, SSN, DOB, Genderoption, Pri_Address, Pri_City, Pri_State, Pri_Zip, Pri_Zip_Plus4, Sec_Address, Sec_City, Sec_State, Sec_Zip, Sec_Zip_Plus4, Pri_Phone, Pri_Fax, Pri_Email, Sec_Phone, Sec_Fax, Sec_Email, OrigHiredDate); if (!memberinfo.IsActive) { Session["Rid"] = Member_ID; } else { SSN.Text = ""; string msg = "<table>"; msg += "<tr><td><strong><u>Member Exist!</u></strong></td></tr>"; msg += "<tr><td><strong>MemberID</strong>: <h6>" + memberinfo.MemberID + "</h6></td></tr>"; msg += "<tr><td><strong>Name</strong>: <h6>" + memberinfo.Name + "</h6></td></tr>"; msg += "<tr><td><strong>Shop</strong>: <h6>" + memberinfo.Shop + "</h6></td></tr>"; msg += "<tr><td><strong>HiredOn</strong>: <h6>" + memberinfo.HiredDate + "</h6></td></tr></table>"; RadWindowManager.RadAlert(msg, 300, 200, "My Alert", ""); Session["Rid"] = 0; } } else //RadWindowManager.RadAlert("Member not Available!", 300, 150, "My Alert", "callBackFn"); { firstname.Focus(); } }
public void action() { bool hasValue = false; bool hasAffValue = false; hasValue = DOB.SelectedDate.HasValue; string strDOB = (hasValue ? DOB.SelectedDate.Value.ToShortDateString() : null); hasValue = false; hasValue = Hireddate.SelectedDate.HasValue; string strhireddate = (hasValue ? Hireddate.SelectedDate.Value.ToShortDateString() : null); Repository.Struct.SpResultset resultset = Repository.Members.Members_Update(Session["Rid"].ToString(), MemberID.Text, firstname.Text.ToUpper(), lastname.Text.ToUpper(), initial.Text.ToUpper(), SSN.Text, strDOB, Genderoption.SelectedValue.ToString(), Pri_Address.Text.ToUpper(), Pri_City.Text.ToUpper(), Pri_State.Text.ToUpper(), Pri_Zip.Text, Pri_Zip_Plus4.Text, Sec_Address.Text, Sec_City.Text , Sec_State.Text, Sec_Zip.Text, Sec_Zip_Plus4.Text, Pri_Phone.Text, Pri_Fax.Text, Pri_Email.Text, Sec_Phone.Text, Sec_Fax.Text, Sec_Email.Text, Pri_Extn.Text, Sec_Extn.Text, strhireddate); if (resultset.Isresult) { hasValue = false; hasValue = Hireddate.SelectedDate.HasValue; strhireddate = (hasValue ? Hireddate.SelectedDate.Value.ToShortDateString() : null); hasAffValue = AffDate.SelectedDate.HasValue; string strAffdate = (hasAffValue ? AffDate.SelectedDate.Value.ToShortDateString() : null); resultset = Repository.Members.Update_Members_shop(Session["Mid"].ToString(), Session["Rid"].ToString(), Drp_shop.SelectedValue.ToString(), strhireddate, strAffdate); if (resultset.Isresult) { refresh("Shop"); refresh("Type"); RadWindowManager.RadAlert("Information Saved!", 300, 150, "Alert", ""); SSNGrid.Rebind(); } } }
protected void btn_tab5_Click(object sender, EventArgs e) { if (Session["Mid"] != null && Session["Mid"].ToString() != "0") { bool @Contribution = false; bool @AuthorizationLetter = false; string path = Server.MapPath("~/Common/Resource/Docs/Authorization/"); if (Authorize.Checked) { @Contribution = true; } if (lblAletter.Text == "True") { @AuthorizationLetter = true; lbtnletter.Visible = true; } if (Authorizationuploader.HasFile) { @AuthorizationLetter = upload(Authorizationuploader, path, Session["Mid"].ToString()); } Repository.Struct.SpResultset resultset = Repository.Members.Add_upload(Session["Mid"].ToString(), @Contribution, @AuthorizationLetter, false, false); if (resultset.Isresult) { refresh("Authorization"); RadWindowManager.RadAlert("Information Saved!", 300, 150, "Alert", ""); } // RadWindowManager.RadAlert("No Benefits Selected with Eligibility!", 300, 150, "My Alert", "callBackFn"); //Repository.Redirector.Redirect("~/Common/Members/Edit.aspx?Rid=" + Session["Rid"] + "&Mid=" + Session["Mid"]); } }
public static void MensajeDB(RadWindowManager pWindow, string pMensaje, E_TIPO_RESPUESTA_DB pTipoMensaje, int pAncho = 400, int pAlto = 150, string pCallBackFunction = "closeWindow") { string vUrlImage = "/Assets/images/"; switch (pTipoMensaje) { case E_TIPO_RESPUESTA_DB.SUCCESSFUL: vUrlImage += "Exito.png"; break; case E_TIPO_RESPUESTA_DB.WARNING: vUrlImage += "Advertencia.png"; break; case E_TIPO_RESPUESTA_DB.ERROR: vUrlImage += "Error.png"; pCallBackFunction = null; break; case E_TIPO_RESPUESTA_DB.WARNING_WITH_FUNCTION: vUrlImage += "Advertencia.png"; break; default: break; } pWindow.RadConfirm(pMensaje.Replace("'", "\""), pCallBackFunction, pAncho, pAlto, null, "Aviso", vUrlImage); }
public static void Show(RadWindowManager wacRadWindowManager, string message, int iCode, AlertLevel messageLevel) { string messageLevelUrl = string.Empty; string messageType = string.Empty; switch (messageLevel) { case AlertLevel.INFORMATION: messageLevelUrl = "/images/Information32.png"; messageType = "Informational Message"; break; case AlertLevel.WARNING: messageLevelUrl = "/images/Warning32.png"; messageType = "Warning"; break; case AlertLevel.ERROR: messageLevelUrl = "/images/ErrorExclaimination32.png"; messageType = "Error"; break; default: messageLevelUrl = null; break; } string cleanMessage = MessageBuilder(message, iCode); wacRadWindowManager.RadAlert(cleanMessage, 600, 150, messageType, null, messageLevelUrl); }
protected void btn_tab1_Click(object sender, EventArgs e) { bool hasValue = false; hasValue = LPD.SelectedDate.HasValue; string strLPD = (hasValue ? LPD.SelectedDate.Value.ToShortDateString() : null); hasValue = LPH.SelectedDate.HasValue; string strLPH = (hasValue ? LPH.SelectedDate.Value.ToShortDateString() : null); hasValue = Contract_Start.SelectedDate.HasValue; string strContract_Start = (hasValue ? Contract_Start.SelectedDate.Value.ToShortDateString() : null); hasValue = Contract_End.SelectedDate.HasValue; string strContract_End = (hasValue ? Contract_End.SelectedDate.Value.ToShortDateString() : null); if (Session["Sid"] != null && Session["Sid"].ToString() != "0") { Repository.Struct.SpResultset resultset = Repository.Shops.Shops_Update(Session["Sid"].ToString(), ShopID.Text, Name.Text.ToUpper(), Pri_Address.Text.ToUpper(), Pri_City.Text.ToUpper(), Pri_State.Text.ToUpper(), Pri_Zip.Text, Pri_Zip_Plus4.Text, Sec_Address.Text.ToUpper(), Sec_City.Text.ToUpper(), Sec_State.Text.ToUpper(), Sec_Zip.Text, Sec_Zip_Plus4.Text, Pri_Phone.Text, Pri_Fax.Text, Pri_Email.Text, Sec_Phone.Text, Sec_Fax.Text, Sec_Email.Text, Convert.ToInt32(DelegateID.SelectedValue.ToString()), OLPD.Text, OLPH.Text, strLPD, strLPH, strContract_Start, strContract_End, Pri_Extn.Text, Sec_Extn.Text); if (resultset.Isresult) { RadWindowManager.RadAlert("Information Saved!", 300, 150, "Alert", ""); } //RadTabStrip1.Tabs[1].Selected = true; //RadMultiPage1.PageViews[1].Selected = true; } }
protected void btn_tab4_Click(object sender, EventArgs e) { if (Session["Sid"] != null && Session["Sid"].ToString() != "0") { //update Benefit type Repository.Shops.UpdateBenefitType(BenefitType.SelectedValue.ToString(), Session["Sid"].ToString()); if (BenefitType.SelectedValue.ToString() != "0") { string Shops_Benefits = InsXMLBenefit(); if (Shops_Benefits != "") { Repository.Struct.SpResultset resultset = Repository.Shops.InsertBenefit(Shops_Benefits, Session["Sid"].ToString()); if (resultset.Isresult) { RadWindowManager.RadAlert("Information Saved!", 300, 150, "Alert", ""); } } else { Repository.Shops.NoBenefit(Session["Sid"].ToString()); RadWindowManager.RadAlert("Information Saved!", 300, 150, "Alert", ""); } } else { Repository.Shops.NoBenefit(Session["Sid"].ToString()); RadWindowManager.RadAlert("Information Saved!", 300, 150, "Alert", ""); } Benefits.Rebind(); } //RadTabStrip1.Tabs[4].Selected = true; //RadMultiPage1.PageViews[4].Selected = true; }
public static void VisibleOnPageLoadAllWindows(RadWindowManager rdwm, bool visible) { foreach (RadWindow rdw in rdwm.Windows) { rdw.VisibleOnPageLoad = visible; rdw.DestroyOnClose = true; } }
//protected void grdCheckOutList_RowDataBound(object sender, GridViewRowEventArgs e) //{ // if (e.Row.RowType == DataControlRowType.DataRow) // { // DataRowView rowView = (DataRowView)e.Row.DataItem; // int nextstatus = Convert.ToInt32(ViewState["status"]); // int reqType = Convert.ToInt32(rowView["RequestTypeID"]); // string stcode = rowView["StCode"].ToString(); // if (nextstatus == (int)CheckOutStatusEnum.EnserafReqStatus.refah_ok) // { // Button btnPrintVezaratLoan = (Button)e.Row.FindControl("btnPrintVezaratLoan"); // (grd_CheckOutList.MasterTableView.GetColumn("prtloan") as GridTemplateColumn).Visible = tr; // ((DataControlField)grdCheckOutList.Columns.Cast<DataControlField>().Where(fld => fld.HeaderText == "چاپ گواهی بدهی وام وزارت علوم").SingleOrDefault()).Visible = true; // if (rowView["LoanStatus"].ToString() == "True") // { // btnPrintVezaratLoan.Enabled = true; // } // } // else // { // ((DataControlField)grdCheckOutList.Columns.Cast<DataControlField>().Where(fld => fld.HeaderText == "چاپ گواهی بدهی وام وزارت علوم").SingleOrDefault()).Visible = false; // } // if (nextstatus == (int)CheckOutStatusEnum.EnserafReqStatus.maali_ok) // { // ((DataControlField)grdCheckOutList.Columns.Cast<DataControlField>().Where(fld => fld.HeaderText == "چاپ اطلاعات حساب").SingleOrDefault()).Visible = true; // ((DataControlField)grdCheckOutList.Columns.Cast<DataControlField>().Where(fld => fld.HeaderText == "ساعات حضور دانشجو در ترم جاری").SingleOrDefault()).Visible = true; // ((DataControlField)grdCheckOutList.Columns.Cast<DataControlField>().Where(fld => fld.HeaderText == "تاریخ انتخاب واحد").SingleOrDefault()).Visible = true; // Label lblHozoorHour = (Label)e.Row.FindControl("lblHozoorHour"); // Label lblDateSabt = (Label)e.Row.FindControl("lblEntekhabVahedDate"); // if (reqType == 14 || reqType == 16) // { // lblDateSabt.Text = rowView["datesabtv"].ToString(); // DataTable dt = StudentBusiness.GetTotalTimeInAllClassesByStcode(stcode, "Class"); // if (dt.Rows.Count > 0) // { // lblHozoorHour.Text = dt.Rows[0]["SumOfTime"].ToString(); // } // else // { // lblHozoorHour.Text = "صفر ساعت"; // } // } // else // { // lblHozoorHour.Text = "-"; // } // } // else // { // ((DataControlField)grdCheckOutList.Columns.Cast<DataControlField>().Where(fld => fld.HeaderText == "چاپ اطلاعات حساب").SingleOrDefault()).Visible = false; // } // } //} protected void grdCheckOutList_RowCommand(object sender, GridViewCommandEventArgs e) { int reqID = Convert.ToInt32(e.CommandArgument); userID = Session[sessionNames.userID_Karbar] as string; userRole = Convert.ToInt32(ViewState["userRole"]); int status = Convert.ToInt32(ViewState["status"]); string msg = ""; if (e.CommandName == "print") { RadWindowManager windowManager = new RadWindowManager(); RadWindow window1 = new RadWindow(); // Set the window properties window1.NavigateUrl = "CheckOutPrintPopUp.aspx?r=" + e.CommandArgument.ToString() + "&s=" + status; window1.ID = "RadWindow1"; windowManager.Width = System.Web.UI.WebControls.Unit.Pixel(500); windowManager.Height = System.Web.UI.WebControls.Unit.Pixel(400); window1.VisibleOnPageLoad = true; // Set this property to True for showing window from code windowManager.Windows.Add(window1); this.parent.Controls.Add(window1); business.UpdatePrintStatus(reqID); } if (e.CommandName == "printBedehi") { RadWindowManager windowManager = new RadWindowManager(); RadWindow window2 = new RadWindow(); // Set the window properties window2.NavigateUrl = "CheckOutPrintGovahiBedehiPopUp.aspx?r=" + e.CommandArgument.ToString() + "&s=" + status; window2.ID = "RadWindow2"; windowManager.Width = System.Web.UI.WebControls.Unit.Pixel(500); windowManager.Height = System.Web.UI.WebControls.Unit.Pixel(400); window2.VisibleOnPageLoad = true; // Set this property to True for showing window from code windowManager.Windows.Add(window2); this.parent.Controls.Add(window2); business.UpdatePrintStatus(reqID); } if (e.CommandName == "printAcountInfo") { RadWindowManager windowManager = new RadWindowManager(); RadWindow window3 = new RadWindow(); // Set the window properties window3.NavigateUrl = "CheckOutPrintBankAcountInfo.aspx?r=" + e.CommandArgument.ToString() + "&s=" + status; window3.ID = "RadWindow3"; windowManager.Width = System.Web.UI.WebControls.Unit.Pixel(500); windowManager.Height = System.Web.UI.WebControls.Unit.Pixel(400); window3.VisibleOnPageLoad = true; // Set this property to True for showing window from code windowManager.Windows.Add(window3); this.parent.Controls.Add(window3); business.UpdatePrintStatus(reqID); } if (msg != null) { lblMessage.Text = msg; lblMessage.Visible = true; } BindGrid(status, false); }
public static void controlOpenedWindows(RadWindowManager rdwn, Page page) { foreach (RadWindow rdw in rdwn.Windows) { if (page.Session[rdw.ID] == null) { rdw.VisibleOnPageLoad = false; } } }
protected void btn_Select_Click(object sender, EventArgs e) { if (ddl_Term.SelectedValue == null) { ddl_Term.SelectedValue = "0"; } if (ddl_GroupOstad.SelectedValue == null) { ddl_GroupOstad.SelectedValue = "0"; } if (ddl_Daneshkade.SelectedValue == null) { ddl_Daneshkade.SelectedValue = "0"; } if (txt_AzJobrani.Text == string.Empty) { txt_AzJobrani.Text = "0"; } if (txt_ToJobrani.Text == string.Empty) { txt_ToJobrani.Text = "0"; } if (txt_FromDate.Text == string.Empty) { txt_FromDate.Text = "0"; } if (txt_ToDate.Text == string.Empty) { txt_ToDate.Text = "0"; } if (txt_NumberAbsence.Text == string.Empty) { txt_NumberAbsence.Text = "0"; } Session["page"] = 5; //Response.Redirect("SearchProfByParams.aspx?"+"Term"+"="+ddl_Term.SelectedValue+"&"+"Departman"+"="+ddl_GroupOstad.SelectedValue +"&"+"Daneshkade"+"="+ ddl_Daneshkade.SelectedValue +"&"+"AzJ"+"="+txt_AzJobrani.Text+"&"+"TaJ"+"="+txt_ToJobrani.Text+"&"+"AzD"+"="+txt_FromDate.Text+"&"+"TaD"+"="+txt_ToDate.Text+"&"+"NumberAbsence"+"="+txt_NumberAbsence.Text); RadWindowManager windowManager = new RadWindowManager(); RadWindow widnow1 = new RadWindow(); // Set the window properties widnow1.NavigateUrl = ("../../../university/Faculty/CMS/SearchProfByParams.aspx?" + "Term" + "=" + ddl_Term.SelectedValue + "&" + "Departman" + "=" + ddl_GroupOstad.SelectedValue + "&" + "Daneshkade" + "=" + ddl_Daneshkade.SelectedValue + "&" + "AzJ" + "=" + txt_AzJobrani.Text + "&" + "TaJ" + "=" + txt_ToJobrani.Text + "&" + "AzD" + "=" + txt_FromDate.Text + "&" + "TaD" + "=" + txt_ToDate.Text + "&" + "NumberAbsence" + "=" + txt_NumberAbsence.Text); widnow1.ID = "RadWindow1"; widnow1.VisibleOnPageLoad = true; // Set this property to True for showing window from code widnow1.Height = 600; widnow1.Width = 1200; windowManager.Windows.Add(widnow1); windowManager.Height = 600; windowManager.Width = 1200; ContentPlaceHolder mpContentPlaceHolder; mpContentPlaceHolder = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1"); mpContentPlaceHolder.Controls.Add(widnow1); }
protected void changePass_ServerClick(object sender, EventArgs e) { RadWindowManager windowManager = new RadWindowManager(); RadWindow widnow1 = new RadWindow(); widnow1.NavigateUrl = "../../../CommonUI/ChangePassword.aspx"; widnow1.ID = "RadWindow1"; widnow1.VisibleOnPageLoad = true; windowManager.Windows.Add(widnow1); this.form1.Controls.Add(widnow1); }
public static void RaiseMessage(RadWindowManager radWindowManager, string msg, string System, string Page, string Method, string Message, string title, int width = 350, int height = 150, string callBackFnName = "") { // Update the error to database //LogUIError(System, Page, Method, Message.Trim(), msg); //PD: To use this method, RadWindowManager must be present in your page... // Display the msg to screen msg = GetJavaSafeString(msg); radWindowManager.RadAlert(msg, width, height, title, callBackFnName); }
protected void btn_changePassword_Click(object sender, EventArgs e) { RadWindowManager windowManager = new RadWindowManager(); RadWindow widnow1 = new RadWindow(); // Set the window properties widnow1.NavigateUrl = "../../../CommonUI/ChangePassword.aspx"; widnow1.ID = "RadWindow1"; widnow1.VisibleOnPageLoad = true; // Set this property to True for showing window from code windowManager.Windows.Add(widnow1); this.form1.Controls.Add(widnow1); }
protected void btn_stCode_Click(object sender, EventArgs e) { if (txt_stCode.Text == null || txt_stCode.Text == string.Empty) { txt_stCode.Text = "0"; } if (txt_TarikhSodor.Text == null || txt_TarikhSodor.Text == string.Empty) { txt_TarikhSodor.Text = "0"; } if (txt_SalVorod.Text == null || txt_SalVorod.Text == string.Empty) { txt_SalVorod.Text = "0"; } if (lbl_CtrlCheck.Text != string.Empty) { lbl_CtrlCheck.Text = string.Empty; } if (chk_ControlCheck.Checked == true) { lbl_CtrlCheck.Text = "1"; } else { lbl_CtrlCheck.Text = "0"; } if (txt_Semat.Text == null || txt_Semat.Text == string.Empty) { txt_Semat.Text = "0"; } if (txt_FamilySemat.Text == null || txt_FamilySemat.Text == string.Empty) { txt_FamilySemat.Text = "0"; } Session["Page"] = 3; RadWindowManager windowManager = new RadWindowManager(); RadWindow widnow1 = new RadWindow(); // Set the window properties widnow1.NavigateUrl = ("../../../university/Students/CMS/SearchOfStudent.aspx?" + "Degree" + "=" + ddl_Degree.SelectedValue + "&" + "Field" + "=" + ddl_Field.SelectedValue + "&" + "Sex" + "=" + ddl_Sex.SelectedValue + "&" + "Daneshkade" + "=" + ddl_Daneshkade.SelectedValue + "&" + "Education" + "=" + ddl_Dorpar.SelectedValue + "&" + "SalVorod" + "=" + txt_SalVorod.Text + "&" + "Semat" + "=" + txt_Semat.Text + "&" + "FamilySemat" + "=" + txt_FamilySemat.Text + "&" + "TarikhSodor" + "=" + txt_TarikhSodor.Text + "&" + "Term" + "=" + ddl_Term.SelectedValue); widnow1.ID = "RadWindow1"; widnow1.VisibleOnPageLoad = true; // Set this property to True for showing window from code widnow1.Height = 600; widnow1.Width = 1100; windowManager.Windows.Add(widnow1); windowManager.Height = 600; windowManager.Width = 1100; ContentPlaceHolder mpContentPlaceHolder; mpContentPlaceHolder = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1"); mpContentPlaceHolder.Controls.Add(widnow1); }
protected void btn_ShowStCode_Click(object sender, EventArgs e) { if (ddl_Term.SelectedValue == null) { ddl_Term.SelectedValue = "0"; } if (ddl_Degree.SelectedValue == null) { ddl_Degree.SelectedValue = "0"; } if (ddl_Sex.SelectedValue == null) { ddl_Sex.SelectedValue = "0"; } if (txt_SalVorud.Text == null || txt_SalVorud.Text == "") { txt_SalVorud.Text = "0"; } if (ddl_Education.SelectedValue == null) { ddl_Education.SelectedValue = "0"; } if (ddl_Field.SelectedValue == null) { ddl_Field.SelectedValue = "0"; } //if (LDD.salvorud == null) //{ // LDD.salvorud = "0"; //} Session["Page"] = 1; //Response.Redirect("RegistrationOfStudent.aspx?" + "Degree" + "=" + ddl_Degree.SelectedValue + "&" + "Field" + "=" + ddl_Field.SelectedValue + "&" + "Education" + "=" + ddl_Education.SelectedValue + "&" + "Sex" + "=" + ddl_Sex.SelectedValue + "&" + "salvorud" + "=" + txt_SalVorud.Text); RadWindowManager windowManager = new RadWindowManager(); RadWindow widnow1 = new RadWindow(); // Set the window properties widnow1.NavigateUrl = ("../../../university/Education/CMS/SearchOfStudent.aspx?" + "Degree" + "=" + ddl_Degree.SelectedValue + "&" + "Field" + "=" + ddl_Field.SelectedValue + "&" + "Education" + "=" + ddl_Education.SelectedValue + "&" + "Sex" + "=" + ddl_Sex.SelectedValue + "&" + "salvorud" + "=" + txt_SalVorud.Text); widnow1.ID = "RadWindow1"; widnow1.VisibleOnPageLoad = true; // Set this property to True for showing window from code widnow1.Height = 600; widnow1.Width = 1100; windowManager.Windows.Add(widnow1); windowManager.Height = 600; windowManager.Width = 1100; ContentPlaceHolder mpContentPlaceHolder; mpContentPlaceHolder = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1"); mpContentPlaceHolder.Controls.Add(widnow1); }
protected void EnvioMensaje(string Text, int Tipo, RadWindowManager pObjControl) { if (Tipo == 1) //error { pObjControl.RadAlert(Text, 330, 180, "Error", null, null); } else if (Tipo == 2) //exito { pObjControl.RadAlert(Text, 330, 180, "Realizado", null, null); } else { pObjControl.RadAlert(Text, 330, 180, "Alerta", null, null); } }
protected void btn_TraceMessage_Click(object sender, EventArgs e) { RadWindowManager windowManager = new RadWindowManager(); RadWindow widnow1 = new RadWindow(); // Set the window properties widnow1.NavigateUrl = "../../../CommonUI/TraceMessage.aspx"; widnow1.ID = "RadWindow1"; widnow1.VisibleOnPageLoad = true; // Set this property to True for showing window from code widnow1.Height = 400; widnow1.Width = 600; windowManager.Windows.Add(widnow1); windowManager.Height = 600; windowManager.Width = 800; this.form1.Controls.Add(widnow1); }
private void lanzarVentana() { RadWindowManager manejadorVentanas = new RadWindowManager(); RadWindow ventanaRoles = new RadWindow(); ventanaRoles.NavigateUrl = "Roles.aspx"; ventanaRoles.ID = "ventanaRoles"; ventanaRoles.VisibleOnPageLoad = true; // Set this property to True for showing window from code ventanaRoles.Title = "Escoja un rol"; ventanaRoles.CssClass = "text-center"; ventanaRoles.Behaviors = WindowBehaviors.None; ventanaRoles.InitialBehaviors = WindowBehaviors.Resize; ventanaRoles.Modal = true; ventanaRoles.CenterIfModal = true; manejadorVentanas.Windows.Add(ventanaRoles); this.form1.Controls.Add(ventanaRoles); }
protected void grd_ExamPlace_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { if (e.CommandName == "Edits") { RadWindowManager windowManager = new RadWindowManager(); RadWindow widnow1 = new RadWindow(); widnow1.NavigateUrl = "../CMS/EditExamPlace.aspx?params=" + e.CommandArgument.ToString(); widnow1.ID = "RadWindow1"; windowManager.Width = System.Web.UI.WebControls.Unit.Pixel(800); windowManager.Height = System.Web.UI.WebControls.Unit.Pixel(400); widnow1.VisibleOnPageLoad = true; windowManager.Windows.Add(widnow1); ContentPlaceHolder mpContentPlaceHolder; mpContentPlaceHolder = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1"); mpContentPlaceHolder.Controls.Add(widnow1); } }
public RadWindowManager LoadRadWindow() { RadWindowManager oRdWinManager = new RadWindowManager(); oRdWinManager.ID = "oRdWindowManager"; RadWindow oRdWindow = new RadWindow(); oRdWindow.ID = "oRdWindow"; oRdWindow.Width = 800; oRdWindow.Height = 600; oRdWindow.Behaviors = WindowBehaviors.Close; oRdWinManager.Windows.Add(oRdWindow); if (!string.IsNullOrEmpty(HttpContext.Current.Application["WinRadSkin"].ToString())) { oRdWinManager.Skin = HttpContext.Current.Application["WinRadSkin"].ToString(); } return(oRdWinManager); }
protected void btn_Select_Click(object sender, EventArgs e) { if (txt_FromDate.Text == "") { txt_FromDate.Text = "13 / / "; } if (txt_ToDate.Text == "") { txt_ToDate.Text = "13 / / "; } RMD.FromDate = txt_FromDate.Text; RMD.ToDate = txt_ToDate.Text; if (ddl_Term.SelectedValue == null) { ddl_Term.SelectedValue = "0"; } if (txt_ToDate.Text == string.Empty) { txt_ToDate.Text = "0"; } if (txt_FromDate.Text == string.Empty) { txt_FromDate.Text = "0"; } Session["page"] = 4; //Response.Redirect("SearchProfByParams.aspx?" + "Term" + "=" + RMD.Term + "&" + "ToDate" + "=" + txt_ToDate.Text + "&" + "FromDate" + "=" + txt_FromDate.Text); RadWindowManager windowManager = new RadWindowManager(); RadWindow widnow1 = new RadWindow(); // Set the window properties widnow1.NavigateUrl = ("../../../university/Faculty/CMS/SearchProfByParams.aspx?" + "Term" + "=" + ddl_Term.SelectedValue + "&" + "ToDate" + "=" + txt_ToDate.Text + "&" + "FromDate" + "=" + txt_FromDate.Text); widnow1.ID = "RadWindow1"; widnow1.VisibleOnPageLoad = true; // Set this property to True for showing window from code widnow1.Height = 600; widnow1.Width = 1200; windowManager.Windows.Add(widnow1); windowManager.Height = 600; windowManager.Width = 1200; ContentPlaceHolder mpContentPlaceHolder; mpContentPlaceHolder = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1"); mpContentPlaceHolder.Controls.Add(widnow1); }
public void OpenRadWindow(RadWindowManager RadWinMan, RadWindow RadWin, Button sBnttonID, string sNavigateUrl, string sTaitle, string ReturnElementID, string clientFormID) { //RadWindow RadWin = new RadWindow(); // RadWinMan.Windows.Add(RadWin); RadWin.NavigateUrl = sNavigateUrl; RadWin.OpenerElementID = sBnttonID.ClientID; //sBnttonID; RadWin.VisibleOnPageLoad = true; RadWin.Title = sTaitle; RadWin.Width = Unit.Parse("340"); RadWin.Height = Unit.Parse("220"); RadWin.ReloadOnShow = false; //RadWin.Left = Unit.Parse("300"); //RadWin.Top = Unit.Parse("0"); //RadWin.Animation = WindowAnimation.Fade; RadWin.Modal = true; RadWin.OffsetElementID = ReturnElementID; //"RadDateInput1"; //RadWin.VisibleTitlebar = true; RadWin.InitialBehaviors = WindowBehaviors.Close; RadWin.Behaviors = WindowBehaviors.Close; if (clientFormID.Length > 0) { RadWin.ID = clientFormID; RadWin.ClientCallBackFunction = "CallBackFunctionUC"; } else { RadWin.ClientCallBackFunction = "CallBackFunction"; } RadWin.Overlay = true; // RadWin.ID = "RadWin_" + sTaitle; RadWin.VisibleStatusbar = false; RadWin.Skin = "Office2007"; RadWin.DestroyOnClose = true; RadWin.ReloadOnShow = true; // RadWin.Attributes.Add("sql", sSql); //RadWindowManager RadWinMan=new RadWindowManager(); RadWinMan.Windows.Add(RadWin); RadWinMan.Title = sTaitle; }
protected void DataGrid_DeleteCommand(object sender, GridCommandEventArgs e) { var editableItem = ((GridEditableItem)e.Item); var taskID = (int)editableItem.GetDataKeyValue("Task_ID"); if (staff.Status_ID.Equals((int)Config.StaffStatus.OnJob) || staff.Status_ID.Equals((int)Config.StaffStatus.Active)) { dh.DeleteTaskByID(taskID); TaskVO task = dh.GetTaskByID(taskID); WebHelper.CreateTaskLog(task); DataGrid.MasterTableView.Rebind(); } else { RadWindowManager.RadAlert("目前状态不能撤销任务", 300, 200, "操作结果", null); } }
protected void btn_tab1_Click(object sender, EventArgs e) { if (lblSSNState.Text == "True") { if (SSNlbl_hidden.Text != SSN.Text) { string Member_ID = Repository.Members.checkExistingMemberbySSN(SSN.Text); if (Member_ID != "0") { Repository.Struct.CheckMember memberinfo = Repository.Members.Members_Prepopulate(Member_ID, MemberID, firstname, lastname, SSN, DOB, Genderoption, Pri_Address, Pri_City, Pri_State, Pri_Zip, Pri_Zip_Plus4, Sec_Address, Sec_City, Sec_State, Sec_Zip, Sec_Zip_Plus4, Pri_Phone, Pri_Fax, Pri_Email, Sec_Phone, Sec_Fax, Sec_Email, OrigHiredDate); if (!memberinfo.IsActive) { } else { SSN.Text = SSNlbl_hidden.Text; string msg = "<table>"; msg += "<tr><td><strong><u>SSN Exist!</u></strong></td></tr>"; msg += "<tr><td><strong>MemberID</strong>: <h6>" + memberinfo.MemberID + "</h6></td></tr>"; msg += "<tr><td><strong>Name</strong>: <h6>" + memberinfo.Name + "</h6></td></tr>"; msg += "<tr><td><strong>Shop</strong>: <h6>" + memberinfo.Shop + "</h6></td></tr>"; msg += "<tr><td><strong>HiredOn</strong>: <h6>" + memberinfo.HiredDate + "</h6></td></tr></table>"; RadWindowManager.RadAlert(msg, 300, 200, "My Alert", ""); } } else { action(); } } else { action(); } } //RadTabStrip1.Tabs[1].Selected = true; //RadMultiPage1.PageViews[1].Selected = true; }
protected void btnAddPoll_Click(object sender, EventArgs e) { RadWindowManager rwmAddPoll = new RadWindowManager(); RadWindow editPollWindow = new RadWindow(); editPollWindow.NavigateUrl = "../CMS/AddOrUpdatePoll.aspx"; editPollWindow.ReloadOnShow = true; editPollWindow.ID = "RadWindow3"; editPollWindow.DestroyOnClose = true; editPollWindow.ShowContentDuringLoad = false; editPollWindow.ReloadOnShow = true; rwmAddPoll.Width = Unit.Pixel(800); rwmAddPoll.Height = Unit.Pixel(500); editPollWindow.VisibleOnPageLoad = true; rwmAddPoll.Windows.Add(editPollWindow); ContentPlaceHolder editPollContentPlaceHolder; editPollContentPlaceHolder = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1"); editPollContentPlaceHolder.Controls.Add(editPollWindow); }
protected void btn_Click_Click(object sender, EventArgs e) { Session["page"] = "2"; RadWindowManager windowManager = new RadWindowManager(); RadWindow widnow1 = new RadWindow(); // Set the window properties widnow1.NavigateUrl = ("../../../university/Students/CMS/SearchOfStudent.aspx?" + "Field" + "=" + ddl_Field.SelectedValue + "&" + "Degree" + "=" + ddl_Degree.SelectedValue + "&" + "Education" + "=" + ddl_Dorpar.SelectedValue + "&" + "Sex" + "=" + ddl_Sex.SelectedValue + "&" + "StatusStu" + "=" + ddl_VaziatStu.SelectedValue); widnow1.ID = "RadWindow1"; widnow1.VisibleOnPageLoad = true; // Set this property to True for showing window from code widnow1.Height = 600; widnow1.Width = 1100; windowManager.Windows.Add(widnow1); windowManager.Height = 600; windowManager.Width = 1100; ContentPlaceHolder mpContentPlaceHolder; mpContentPlaceHolder = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1"); mpContentPlaceHolder.Controls.Add(widnow1); }
protected void rgvResult_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e) { switch (e.CommandName) { case "ShowDetails": RadWindowManager editPollWindowManager = new RadWindowManager(); RadWindow editPollWindow = new RadWindow(); var args = e.CommandArgument.ToString().Split(new string[] { "%%%" }, StringSplitOptions.None); editPollWindow.NavigateUrl = "../CMS/ShowPollAnswerDetails.aspx?cid=" + args[0] + "&t=" + args[1]; editPollWindow.ID = "RadWindow1"; editPollWindowManager.Width = System.Web.UI.WebControls.Unit.Pixel(800); editPollWindowManager.Height = System.Web.UI.WebControls.Unit.Pixel(500); editPollWindow.VisibleOnPageLoad = true; editPollWindowManager.Windows.Add(editPollWindow); ContentPlaceHolder editPollContentPlaceHolder; editPollContentPlaceHolder = (ContentPlaceHolder)Page.Master.FindControl("ContentPlaceHolder1"); editPollContentPlaceHolder.Controls.Add(editPollWindow); break; } }
public static void Show(string message, int iCode) { //string cleanMessage = MessageBuilder(message, iCode); Page page = HttpContext.Current.CurrentHandler as Page; RadWindowManager wacRadWindowManager = null; if (page.Master == null) { wacRadWindowManager = (RadWindowManager)page.FindControl("WacRadWindowManager"); } else { wacRadWindowManager = (RadWindowManager)page.Master.FindControl("WacRadWindowManager"); } Show(wacRadWindowManager, message, iCode); //string script = "<script type=\"text/javascript\">alert('" + cleanMessage + "');</script>"; //if (page != null) //{ // ScriptManager.RegisterClientScriptBlock(page, typeof(WACAlert), "alert", script, false); //} }