Example #1
0
    /// <summary>
    /// 函数名:GridViewShowErrorOptionList_RowCommand
    /// 作用:GridView命令自定义响应函数
    /// 作者:bush2582
    /// </summary>
    /// <param name="sender"></param>
    /// <param name="e"></param>
    protected void GridViewShowErrorOptionList_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        //翻页响应
        if (base.Page_Turning(GridViewShowErrorOptionList, e, this.GridViewShowErrorOptionList.PageIndex, "ASP_Pager_Text") == true)
        {
            Is_Search();
        }

        if (e.CommandName == "Check_Detail")//
        {
            GridViewRow row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;
            GridViewShowErrorOptionList.SelectedIndex = row.RowIndex;
            GridViewShowErrorOptionList.EditIndex     = -1;
            string[] al = e.CommandArgument.ToString().Split(new char[] { ',' });
            this.Label_PTP.Text     = al[1];
            this.Label1.Text        = al[0];
            Panel_Parameter.Visible = true;
            databind_detail();
            GridView_Parameter.SelectedIndex = -1;
            GridView_Parameter.EditIndex     = -1;
            GridView_Parameter.PageIndex     = 0;
            Panel_ADD_ErrorOption.Visible    = false;
            UpdatePanel_ADD_ErrorOption.Update();

            UpdatePanel_Parameter.Update();
            Panel_AddPS.Visible = false;
            UpdatePanel_AddPS.Update();
        }
    }
Example #2
0
 /// <summary>
 /// 函数名:GridViewShowErrorOptionList_PageIndexChanging
 /// 作用:GridView分页响应函数
 /// 作者:bush2582
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void GridViewShowErrorOptionList_PageIndexChanging(object sender, GridViewPageEventArgs e)
 {
     IntCurrentPageIndex           = GridViewShowErrorOptionList.PageIndex;//获取当前的页面在第几页保存下来
     Panel_ADD_ErrorOption.Visible = false;
     UpdatePanel_ADD_ErrorOption.Update();
     Panel_Parameter.Visible = false;
     UpdatePanel_Parameter.Update();
     Panel_AddPS.Visible = false;
     UpdatePanel_AddPS.Update();
 }
Example #3
0
 /// <summary>
 /// 函数名:Asp_Input_Btn_Reset_Click
 /// 作用:重置页面的参数
 /// 作者:bush2582
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Asp_Input_Btn_Reset_Click(object sender, EventArgs e)
 {
     base.Bind_Updata(this.GridViewShowErrorOptionList, mProSeriesInfo_ProErrorTypeL.SList_ProErrorSeries(), UpdatePanel_List_ErrorOption);
     this.Asp_Input_Search_text.Text = "";
     Panel_ADD_ErrorOption.Visible   = false;
     UpdatePanel_ADD_ErrorOption.Update();
     Panel_Parameter.Visible = false;
     UpdatePanel_Parameter.Update();
     Panel_AddPS.Visible = false;
     UpdatePanel_AddPS.Update();
 }
Example #4
0
 /// <summary>
 /// 函数:GridViewShowErrorOptionList_RowEditing
 /// 作用:在点击编辑后显示更新和取消按键
 /// 作者:bush2582
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void GridViewShowErrorOptionList_RowEditing(object sender, GridViewEditEventArgs e)
 {
     this.GridViewShowErrorOptionList.EditIndex = e.NewEditIndex;
     Is_Search();
     Panel_ADD_ErrorOption.Visible = false;
     UpdatePanel_ADD_ErrorOption.Update();
     Panel_Parameter.Visible = false;
     UpdatePanel_Parameter.Update();
     Panel_AddPS.Visible = false;
     UpdatePanel_AddPS.Update();
 }
Example #5
0
 /// <summary>
 /// 函数名:Asp_Input_Btn_Search_Click
 /// 作用:模糊查询按键的响应函数
 /// 作者:bush2582
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected void Asp_Input_Btn_Search_Click(object sender, EventArgs e)
 {
     if (this.Asp_Input_Search_text.Text.ToString() != "")                                                                     //保证模糊查询的字段不为空
     {
         this.GridViewShowErrorOptionList.PageIndex = 0;                                                                       //在检索的模式下,要在检索之后,让列表框返回去到第一页,从头开始显示检索到的东西
         base.Bind_Updata(this.GridViewShowErrorOptionList,
                          mProSeriesInfo_ProErrorTypeL.S_SearchErrorOption(this.Asp_Input_Search_text.Text.ToString().Trim()), //调用BLL层进行模糊查询
                          UpdatePanel_List_ErrorOption);
         BlInto_S_Search = true;
     }
     else
     {
         ScriptManager.RegisterStartupScript(this.Page, typeof(Page), "alert", "alert('请填写查询的条件!')", true);
     }
     Panel_ADD_ErrorOption.Visible = false;
     UpdatePanel_ADD_ErrorOption.Update();
     Panel_Parameter.Visible = false;
     UpdatePanel_Parameter.Update();
     Panel_AddPS.Visible = false;
     UpdatePanel_AddPS.Update();
 }