コード例 #1
0
ファイル: ClientBasic.aspx.cs プロジェクト: qimengcheng/xi
    }  //读取go前textbox,导航到指定页面

    #endregion

    #region 客户类别表后台
    protected void GridView_ClientSort_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "Change1")
        {
            GridViewRow row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;
            GridView_Region.SelectedIndex = row.RowIndex;
            GridView_Region.SelectedIndex = -1;
            string Sort_id = e.CommandArgument.ToString();
            Guid   sort_id = new Guid(Sort_id);
            Session["sort_id"]          = e.CommandArgument.ToString();
            Panel_ChangeSort.Visible    = true;
            TextBox_ChanSort.Text       = row.Cells[1].Text.Trim().ToString();
            TextBox_ChanSortDetail.Text = row.Cells[2].Text.Trim().ToString().Replace(" ", "");
            UpdatePanel_ChangeSort.Update();

            return;
        }
        else
        if (e.CommandName == "dele")
        {
            GridViewRow row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;
            GridView_Region.SelectedIndex = row.RowIndex;
            GridView_Region.SelectedIndex = -1;
            string Sort_id = e.CommandArgument.ToString();
            Guid   sort_id = new Guid(Sort_id);
            PCB.D_CRMCustomerSortBasicData(sort_id);
            GridView_ClientSort.DataSource = PCB.SList_CRMCustomerSortBasicData();
            GridView_ClientSort.DataBind();
            UpdatePanel_ClientSort.Update();
            ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('删除成功!')", true);
            return;
        }
    }
コード例 #2
0
ファイル: ClientBasic.aspx.cs プロジェクト: qimengcheng/xi
    protected void Btn_ChanSortName_Click(object sender, EventArgs e)//确认修改客户类别
    {
        Guid   id     = new Guid(Session["sort_id"].ToString());
        string name   = TextBox_ChanSort.Text.Trim().ToString();
        string detail = TextBox_ChanSortDetail.Text.Trim().ToString();

        PCB.U_CRMCustomerSortBasicData(id, name, detail);
        GridView_ClientSort.DataSource = PCB.SList_CRMCustomerSortBasicData();
        GridView_ClientSort.DataBind();
        UpdatePanel_ClientSort.Update();
        ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('修改成功!')", true);
        Panel_ChangeSort.Visible = false;
        UpdatePanel_ChangeSort.Update();
        return;
    }
コード例 #3
0
ファイル: ClientBasic.aspx.cs プロジェクト: qimengcheng/xi
 protected void Btn_ChanSortDeta_Click(object sender, EventArgs e)//取消新增客户类别
 {
     Panel_ChangeSort.Visible = false;
     UpdatePanel_ChangeSort.Update();
 }