示例#1
0
        protected void CarGrid_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            int carId = 0;

            if (e.CommandName == "EditGrid")
            {
                PanelGrid.Visible  = false;
                TrUserType.Visible = false;
                carId = Convert.ToInt32(e.CommandArgument);

                lblmsg.Text         = "";
                PanelCarAdd.Visible = true;

                Function_LoadCarrierData(carId);
                Session["CarId"] = carId;
            }

            if (e.CommandName == "DeleteGrid")
            {
                carId = Convert.ToInt32(e.CommandArgument);
                Function_DeleteCarrier(carId);
            }
            else if (e.CommandName == "Filter")
            {
                Function_LoadCarGrid();
            }
        }
示例#2
0
        protected void ProblemStatementsGrid_OnItemCommand(Object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            Telerik.Web.UI.RadGrid grid = (Telerik.Web.UI.RadGrid)sender;

            Telerik.Web.UI.GridDataItem item = (Telerik.Web.UI.GridDataItem)e.Item;

            Mercury.Server.Application.MemberCaseModificationResponse response;

            Int64 memberCaseProblemCarePlanId = 0;


            switch (e.CommandName)
            {
            case "DeleteProblemStatement":

                memberCaseProblemCarePlanId = Convert.ToInt64(item.GetDataKeyValue("Id"));

                response = MercuryApplication.MemberCase_DeleteProblemStatement(Case, memberCaseProblemCarePlanId);

                Case = new Client.Core.Individual.Case.MemberCase(MercuryApplication, response.MemberCase);

                if (response.HasException)
                {
                    ExceptionMessage = response.Exception.Message;
                }

                break;
            }

            return;
        }
示例#3
0
    protected void rgSite_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
    {
        try
        {
            if (e.CommandName == "UpdateRow")
            {
                Session["RSN"] = e.CommandArgument.ToString();


                DataSet dsGetSite = sqlobj.ExecuteSP("SP_GetSitelkup", new SqlParameter()
                {
                    ParameterName = "@RSN", SqlDbType = SqlDbType.BigInt, Value = Session["RSN"].ToString()
                });


                if (dsGetSite.Tables[0].Rows.Count > 0)
                {
                    txtSiteName.Text       = dsGetSite.Tables[0].Rows[0]["SiteName"].ToString();
                    txtdesc.Text           = dsGetSite.Tables[0].Rows[0]["Description"].ToString();
                    ddlVilla.SelectedValue = dsGetSite.Tables[0].Rows[0]["IsVilla"].ToString();

                    btnSave.Visible   = false;
                    btnUpdate.Visible = true;
                }

                dsGetSite.Dispose();
            }
        }
        catch (Exception ex)
        {
            WebMsgBox.Show(ex.Message);
        }
    }
示例#4
0
        protected void GrdPatientLabs_DeleteCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            if (e.Item is Telerik.Web.UI.GridEditableItem)
            {
                try
                {
                    Telerik.Web.UI.GridEditableItem editedItem = e.Item as Telerik.Web.UI.GridEditableItem;
                    var ObjId = editedItem.GetDataKeyValue("Id");

                    int Id = ObjId != null ? (int)ObjId : 0;

                    Data.DataProvider.Instance().DeleteLaboratory(Id);

                    DisplayAlert("El exámen de laboratorio fue eliminado correctamente", "Eliminar Exámen", "Info");
                    GrdPatientLabs.Rebind();
                    GrdLabDetails.Rebind();
                    TxtObservation.Text = string.Empty;
                }
                catch (Exception ex)
                {
                    e.Canceled = true;

                    DisplayAlert(ex);
                }
            }
        }
示例#5
0
        protected void grdConfirmation_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            if (e.CommandName == "ShowReport")
            {
                StiWebViewer1.ResetReport();
                //DTO.University.Graduate.GraduateFormsDTO GFD = new DTO.University.Graduate.GraduateFormsDTO();


                StiReport rpt         = new StiReport();
                string[]  arg         = e.CommandArgument.ToString().Split(',');
                int       inquiryId   = Convert.ToInt32(arg[0]);
                int       inquiryType = Convert.ToInt32(arg[1]);
                string    stcode      = arg[2].ToString();
                //GFD.stCode = stcode;
                //var dr = gBsn.getCourseReportInfo(GFD);

                rpt.Load(Server.MapPath("../Reports/TaeedTahsili.mrt"));
                rpt.Dictionary.Databases.Clear();
                rpt.Dictionary.Databases.Add(new StiSqlDatabase("Connection1", CB.SupplementaryReportConnection.ToString()));
                rpt.Compile();
                rpt.CompiledReport.DataSources["Graduate.SP_getFormTaeedieTahsili"].Parameters["@stcode"].ParameterValue    = stcode;
                rpt.CompiledReport.DataSources["Graduate.SP_getFormTaeedieTahsili"].Parameters["@Type"].ParameterValue      = inquiryType;
                rpt.CompiledReport.DataSources["Graduate.SP_getFormTaeedieTahsili"].Parameters["@InquiryID"].ParameterValue = inquiryId;
                rpt.CompiledReport.DataSources["[dbo].[SP_GetStudentPic]"].Parameters["@stcode"].ParameterValue             = stcode;
                //rpt.RegData(dr);
                StiWebViewer1.Visible = true;
                StiWebViewer1.Report  = rpt;
            }
        }
 protected void grdProfessors_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
 {
     if (e.CommandArgument.ToString() != "" && e.CommandName == "showDetail")
     {
         Response.Redirect("ShowDetailInfo.aspx?ID=" + int.Parse(e.CommandArgument.ToString()));
     }
 }
示例#7
0
    protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
    {
        string f = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["MID"].ToString();
        int    z = int.Parse(f);

        load(z);
    }
        protected void RoutingRulesGrid_OnDeleteCommand(Object sender, Telerik.Web.UI.GridCommandEventArgs eventArgs)
        {
            Int32 deleteIndex = eventArgs.Item.DataSetIndex;

            routingRule.Rules.RemoveAt(deleteIndex);


            SortedList <Int32, Client.Core.Work.RoutingRuleDefinition> newRules = new SortedList <int, Mercury.Client.Core.Work.RoutingRuleDefinition> ();

            Int32 newSequence = 0;

            foreach (Int32 currentSequence in routingRule.Rules.Keys)
            {
                newSequence = newSequence + 1;

                newRules.Add(newSequence, routingRule.Rules[currentSequence].Copy());

                newRules[newSequence].Sequence = newSequence;
            }

            routingRule.Rules = newRules;


            InitializeRoutingRulesGrid();

            return;
        }
示例#9
0
        protected void RadGrid_parametros_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
        {
            iidcompany = Convert.ToInt32(this.Session["companyid"].ToString());
            sidcanal   = this.Session["Canal"].ToString();
            if (e.CommandName == "BUSCAR")
            {
                Label lbl_id_año         = (Label)e.Item.FindControl("lbl_id_año");
                Label lbl_id_mes         = (Label)e.Item.FindControl("lbl_id_mes");
                Label lbl_id_periodo     = (Label)e.Item.FindControl("lbl_id_periodo");
                Label lbl_id_oficina     = (Label)e.Item.FindControl("lbl_id_oficina");
                Label lbl_id_tipoReporte = (Label)e.Item.FindControl("lbl_id_tipoReporte");


                crearXML(iidcompany, sidcanal, lbl_id_tipoReporte.Text.Trim(), lbl_id_oficina.Text.Trim(), lbl_id_año.Text.Trim(), lbl_id_mes.Text.Trim());
            }
            if (e.CommandName == "ELIMINAR")
            {
                Label lbl_id = (Label)e.Item.FindControl("lbl_id");

                string path = Server.MapPath("~/parametros.xml");
                Reportes_parametros oReportes_parametros = new Reportes_parametros();
                oReportes_parametros.Id = Convert.ToInt32(lbl_id.Text);



                Reportes_parametrosToXml oReportes_parametrosToXml = new Reportes_parametrosToXml();

                oReportes_parametrosToXml.DeleteElement(oReportes_parametros, path);
            }
        }
 protected void grd_EmailStatus_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
 {
     if (e.CommandName == "NewRequest")
     {
         Response.Redirect("CreateEmail.aspx");
     }
 }
示例#11
0
        protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            string id = e.CommandArgument.ToString();

            if (e.CommandName == "Delete")//删除数据
            {
                Users_Bll.DeleteList(id);
                if (Appraise_Bll.GetRecordCount("UserID='" + id + "'") != 0)
                {
                    Appraise_Bll.DeleteList2(id);
                }
                if (ShoppingCart_Bll.GetRecordCount("UserID='" + id + "'") != 0)
                {
                    ShoppingCart_Bll.DeleteList2(id);
                }
                if (OrderDetail_Bll.GetRecordCount("UserID='" + id + "'") != 0)
                {
                    OrderDetail_Bll.DeleteList2(id);
                }
                if (Orders_Bll.GetRecordCount("UserID='" + id + "'") != 0)
                {
                    Orders_Bll.DeleteList2(id);
                }
                RadGrid1.Rebind();
            }
        }
示例#12
0
 protected void grdEntidade_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
 {
     if (e.CommandName == "RowDblClick")
     {
         Response.Redirect("EntidadeCad.aspx?entidadeID=" + e.Item.OwnerTableView.DataKeyValues[int.Parse(e.CommandArgument.ToString())]["EntidadeID"].ToString(), true);
     }
 }
        protected void gvComments_DeleteCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            DataTable objDT = (DataTable)ViewState["ALERTS"];

            if (e.CommandName == "DELETE")
            {
                for (int i = 0; i < objDT.Rows.Count; i++)
                {
                    if (e.CommandArgument.ToString() == objDT.Rows[i][0].ToString())
                    {
                        objDT.Rows.RemoveAt(i);
                        objDT.AcceptChanges();
                        BECommon objBECommon = new BECommon();
                        BCommon  objBCommon  = new BCommon();
                        objBECommon.IntTransID   = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString()));
                        objBECommon.intTypeID    = 0;
                        objBECommon.intCommentID = Convert.ToInt32(e.CommandArgument);
                        objBECommon.StrComments  = string.Empty;
                        objBCommon.BDeleteUpdateAlerts(objBECommon);
                    }
                    ViewState["ALERTS"]   = objDT;
                    gvComments.DataSource = objDT;
                    gvComments.DataBind();
                }
            }
        }
示例#14
0
 private void GrdDetalle_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
 {
     if (e.CommandName == "CmdEditar")
     {
         DataSet dsClinica = ClClinica.Get_Clinca(Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["ClinicaId"]));
         TxtClinicaId.Text         = dsClinica.Tables["Datos"].Rows[0]["ClinicaId"].ToString();
         TxtNombre.Value           = dsClinica.Tables["Datos"].Rows[0]["Nombre"].ToString();
         TxtDireccion.Value        = dsClinica.Tables["Datos"].Rows[0]["Direccion"].ToString();
         CboPais.SelectedValue     = dsClinica.Tables["Datos"].Rows[0]["PaisId"].ToString();
         CboPais.SelectedItem.Text = dsClinica.Tables["Datos"].Rows[0]["Pais"].ToString();
         CboDepartamento.ClearSelection();
         CboMunicipio.ClearSelection();
         CboDepartamento.Items.Clear();
         CboMunicipio.Items.Clear();
         ClUtilitarios.Fill_DropDownAsp(ClCatalogos.Catalogo_Departamento(Session["Idioma"].ToString(), Convert.ToInt32(CboPais.SelectedValue)), CboDepartamento, "Id", "Datos");
         ClUtilitarios.AgregarSeleccioneCombo(CboDepartamento, ClTraductor.BuscaString(Session["Idioma"].ToString(), "49"), Session["Idioma"].ToString());
         CboDepartamento.SelectedValue     = dsClinica.Tables["Datos"].Rows[0]["DepartamentoId"].ToString();
         CboDepartamento.SelectedItem.Text = dsClinica.Tables["Datos"].Rows[0]["Departamento"].ToString();
         CboMunicipio.ClearSelection();
         CboMunicipio.Items.Clear();
         ClUtilitarios.Fill_DropDownAsp(ClCatalogos.Catalogo_Municipio(Session["Idioma"].ToString(), Convert.ToInt32(CboDepartamento.SelectedValue)), CboMunicipio, "Id", "Datos");
         ClUtilitarios.AgregarSeleccioneCombo(CboMunicipio, ClTraductor.BuscaString(Session["Idioma"].ToString(), "50"), Session["Idioma"].ToString());
         CboMunicipio.SelectedValue     = dsClinica.Tables["Datos"].Rows[0]["MunicipioId"].ToString();
         CboMunicipio.SelectedItem.Text = dsClinica.Tables["Datos"].Rows[0]["Municipio"].ToString();
         TxtTelCasa.Value = dsClinica.Tables["Datos"].Rows[0]["Telefono"].ToString();
         dsClinica.Clear();
         BtnGrabar.Visible = true;
     }
 }
        protected void RadGrid_parametros_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
        {
            if (e.CommandName == "BUSCAR")
            {
                Label lbl_id_año           = (Label)e.Item.FindControl("lbl_id_año");
                Label lbl_id_mes           = (Label)e.Item.FindControl("lbl_id_mes");
                Label lbl_id_periodo       = (Label)e.Item.FindControl("lbl_id_periodo");
                Label lbl_id_oficina       = (Label)e.Item.FindControl("lbl_id_oficina");
                Label lbl_id_categoria     = (Label)e.Item.FindControl("lbl_id_categoria");
                Label lbl_id_tipoactividad = (Label)e.Item.FindControl("lbl_id_tipoactividad");


                cargar_gvCompetencia(lbl_id_tipoactividad.Text.Trim(), lbl_id_año.Text.Trim(), lbl_id_mes.Text.Trim(), lbl_id_oficina.Text.Trim(), lbl_id_categoria.Text.Trim());
            }
            if (e.CommandName == "ELIMINAR")
            {
                Label lbl_id = (Label)e.Item.FindControl("lbl_id");

                string path = Server.MapPath("~/parametros.xml");
                Reportes_parametros oReportes_parametros = new Reportes_parametros();
                oReportes_parametros.Id = Convert.ToInt32(lbl_id.Text);



                Reportes_parametrosToXml oReportes_parametrosToXml = new Reportes_parametrosToXml();

                oReportes_parametrosToXml.DeleteElement(oReportes_parametros, path);
            }
        }
示例#16
0
        protected void WorkflowParametersGrid_OnItemCommand(Object sender, Telerik.Web.UI.GridCommandEventArgs eventArgs)
        {
            switch (eventArgs.CommandName)
            {
            case Telerik.Web.UI.RadGrid.EditCommandName:

                String parameterName = (String)((Telerik.Web.UI.GridEditableItem)eventArgs.Item).OwnerTableView.DataKeyValues[eventArgs.Item.ItemIndex]["ParameterName"];

                Mercury.Server.Application.ActionParameter workflowParameter = MercuryApplication.CopyActionParameter(workflow.WorkflowParameters[parameterName]);


                WorkflowParameterName.Text = parameterName;

                WorkflowParameterDataType.SelectedValue = ((Int32)workflow.WorkflowParameters[parameterName].DataType).ToString();


                eventArgs.Canceled = true;

                break;
            }

            InitializeParametersPage();

            WorkflowParametersGrid.SelectedIndexes.Add(eventArgs.Item.ItemIndex);

            return;
        }
 protected void rgvQuestions_DeleteCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
 {
     if (eb.DeletePollQuestion(Convert.ToInt32(e.CommandArgument.ToString())))
     {
         rgvQuestions.Rebind();
     }
 }
示例#18
0
        protected void EntityContactHistoryGrid_OnItemCommand(Object sender, Telerik.Web.UI.GridCommandEventArgs eventArgs)
        {
            if (MercuryApplication == null)
            {
                return;
            }

            String hrefLocation = String.Empty;

            switch (eventArgs.CommandName)
            {
            case "Contact":

                hrefLocation = "/Application/Actions/Contact.aspx?EntityId=" + Entity.Id.ToString();

                Response.Redirect(hrefLocation, true);

                break;

            default:

                System.Diagnostics.Debug.WriteLine("EntityContactHistoryGrid_OnItemCommand: " + eventArgs.CommandSource + " " + eventArgs.CommandName + " (" + eventArgs.CommandArgument + ")");

                break;
            }

            return;
        }
示例#19
0
        protected void CorrespondenceContentGrid_OnDeleteCommand(Object sender, Telerik.Web.UI.GridCommandEventArgs eventArgs)
        {
            Int32 deleteIndex = eventArgs.Item.DataSetIndex;

            correspondence.Content.RemoveAt(deleteIndex);


            SortedList <Int32, Client.Core.Reference.CorrespondenceContent> newContent = new SortedList <Int32, Mercury.Client.Core.Reference.CorrespondenceContent> ();

            Int32 newSequence = 0;

            foreach (Int32 currentSequence in correspondence.Content.Keys)
            {
                newSequence = newSequence + 1;

                newContent.Add(newSequence, correspondence.Content[currentSequence].Copy());

                newContent[newSequence].ContentSequence = newSequence;
            }

            correspondence.Content = newContent;


            InitializeCorrespondenceContentGrid();

            return;
        }
示例#20
0
 protected void gvRules_DeleteCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
 {
     if (e.CommandName == "Delete")
     {
         string    strID = e.CommandArgument.ToString();
         DataTable objDT;
         if (Session["DT_Rules"] != null)
         {
             objDT = (DataTable)Session["DT_Rules"];
             for (int i = 0; i < objDT.Rows.Count; i++)
             {
                 if (objDT.Rows[i][0].ToString() == strID)
                 {
                     objDT.Rows.Remove(objDT.Rows[i]);
                     objDT.AcceptChanges();
                     break;
                 }
             }
             for (int i = 0; i < objDT.Rows.Count; i++)
             {
                 objDT.Rows[i][0] = i.ToString();
                 objDT.Rows[i][1] = "Note " + (i + 1).ToString();
             }
             Session["DT_Rules"] = objDT;
             gvRules.Rebind();
         }
     }
 }
        /// <summary>
        /// Redirect to the edit template window
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void grdTemplates_EditCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            int    TemplateID = Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex][SexyContent.TemplateID]);
            string EditUrl    = ModuleContext.NavigateUrl(TabId, SexyContent.ControlKeys.EditTemplate.ToString(), true, "mid" + "=" + ModuleId.ToString() + "&" + SexyContent.TemplateID + "=" + TemplateID.ToString() + "&" + SexyContent.AppIDString + "=" + AppId.ToString());

            Response.Redirect(EditUrl);
        }
        /// <summary>
        /// GridView DeleteCommand, deletes the template that caused the command
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void grdTemplates_DeleteCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            int TemplateID = Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex][SexyContent.TemplateID]);

            SexyUncached.TemplateContext.DeleteTemplate(TemplateID, UserId);
            BindGrdTemplates();
        }
示例#23
0
        protected void RadGrid1_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            if (e.CommandName == "ResetPassword")
            {
                int employeeID = Convert.ToInt32(e.CommandArgument);
                try
                {
                    var emp = EmployeeService.GetEmployee(employeeID);
                    SecurityService.ResetPassword(employeeID);

                    ClientScript.RegisterStartupScript(this.GetType(),
                                                       "alert",
                                                       String.Format("alert('Password for user name {0} has been reset to default password.');",
                                                                     emp.UserName),
                                                       true);
                }
                catch (Exception ex)
                {
                    ClientScript.RegisterStartupScript(this.GetType(),
                                                       "error",
                                                       ex.Message,
                                                       true);
                }
            }
        }
 protected void grd_Student_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
 {
     if (e.CommandName == "Select")
     {
         Session["stcode"] = e.CommandArgument;
         ClientScript.RegisterStartupScript(Page.GetType(), "Select", "CloseAndRebind();", true);
     }
 }
 protected void grd_Payment_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
 {
     if (e.CommandName == "estelam")
     {
         int result;
         lbl_Estelam.Text = Pb.PaymentStatusInquery(long.Parse(e.CommandArgument.ToString()), out result);
     }
 }
示例#26
0
        protected void WorkflowPermissionsGrid_OnDeleteCommand(Object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            workflow.Permissions.RemoveAt(e.Item.ItemIndex);

            InitializePermissionsPage();

            return;
        }
 protected void RadGrid1_EditCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
 {
     if (!WebTools.UserInRole("ADMIN"))
     {
         Master.ShowWarn("Access Denied!");
         e.Canceled = true;
     }
 }
 protected void grdMaster_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
 {
     if (e.CommandName == "EditRow")
     {
         mvwForm.SetActiveView(viwAddEdit);
         RowID = Convert.ToInt32(e.CommandArgument);
         LoadData();
     }
 }
示例#29
0
        protected void GrdPatientLabs_InsertCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            if (e.Item is Telerik.Web.UI.GridEditableItem)
            {
                try
                {
                    if (string.IsNullOrEmpty(CmbPatientsLabs.SelectedValue))
                    {
                        DisplayAlert("Debe seleccionar un paciente primero.", "Alerta", "Alert");
                        e.Canceled = true;
                        return;
                    }

                    Telerik.Web.UI.GridEditableItem editedItem = e.Item as Telerik.Web.UI.GridEditableItem;
                    int    PatientId = int.Parse(CmbPatientsLabs.SelectedValue);
                    int    DoctorId  = 0;
                    int    Id        = 0;
                    string LabName   = string.Empty;

                    System.Collections.Hashtable newValues = new System.Collections.Hashtable();
                    e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem);

                    foreach (System.Collections.DictionaryEntry item in newValues)
                    {
                        switch (item.Key.ToString())
                        {
                        case "DoctorId":
                            DoctorId = item.Value != null?int.Parse(item.Value.ToString()) : 0;

                            break;

                        case "LabName":
                            LabName = item.Value.ToString();
                            break;
                        }
                    }

                    if (string.IsNullOrEmpty(CmbPatientsLabs.SelectedValue))
                    {
                        DisplayAlert("Debe seleccionar un doctor.", "Alerta", "Alert");
                        return;
                    }

                    Id = Data.DataProvider.Instance().SetLaboratory(PatientId, DoctorId, LabName, string.Empty, UserId);
                    GrdPatientLabs.Rebind();
                    RowIndex            = 0;
                    TxtObservation.Text = string.Empty;
                    DisplayAlert("Laboratorio creado correctamente, puede proceder a agregar los detalles del mismo.", "Laboratorio Creado", "Info");
                }
                catch (Exception ex)
                {
                    e.Canceled = true;

                    DisplayAlert(ex);
                }
            }
        }
 /// <summary>
 /// grid按钮点击
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void cgrdDeclarationList_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
 {
     if (e.Item is Telerik.Web.UI.GridDataItem)
     {
         //对属性SchoolId赋值,用于跨页面传值
         Telerik.Web.UI.GridDataItem item = e.Item as Telerik.Web.UI.GridDataItem;
         SchoolId = item["SchoolId"].Text;
     }
 }