Example #1
0
    protected void Btn_CancelChange_Click(object sender, EventArgs e)
    {
        TextBox_ChanLabelName.Text   = "";
        TextBox_ChanLabelPro.Text    = "";
        TextBox_ChanLabelWu.Text     = "";
        TextBox_ChanLabelWuName.Text = "";

        Panel_ChangeLabel.Visible = false;
        UpdatePanel_ChangeLabel.Update();
    }
Example #2
0
    protected void Btn_ChangeLabel_Click(object sender, EventArgs e)
    {
        Guid   CRMCBTD_ID      = new Guid(Session["ChangeLabel_id"].ToString());
        Guid   CRMCIF_ID       = new Guid(Session["ClientLabel_id"].ToString());
        string ChanLabelPro    = TextBox_ChanLabelPro.Text.Trim().ToString();
        string ChanLabelWu     = TextBox_ChanLabelWu.Text.Trim().ToString();
        string ChanLabelWuName = TextBox_ChanLabelWuName.Text.Trim().ToString();

        PCI.Proc_U_CRMCustomerBinTagDetail(CRMCBTD_ID, ChanLabelPro, ChanLabelWu, ChanLabelWuName);
        GridView_ClientLabel.DataSource = PCI.SList_CRMCustomerBinTagDetail(CRMCIF_ID);
        GridView_ClientLabel.DataBind();


        Panel_UpdatePanel_ClientLabel.Visible = true;
        Panel_ChangeLabel.Visible             = false;
        UpdatePanel_ChangeLabel.Update();
        ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('修改成功!')", true);
        UpdatePanel_ClientLabel.Update();
    }
Example #3
0
    }  //读取go前textbox,导航到指定页面

    protected void GridView_ClientLabel_RowCommand(object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "bianji")
        {
            GridViewRow row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;
            GridView_ClientLabel.SelectedIndex = row.RowIndex;
            GridView_ClientLabel.SelectedIndex = -1;
            string Label_id   = e.CommandArgument.ToString();
            Guid   contact_id = new Guid(Label_id);
            Session["ChangeLabel_id"]    = e.CommandArgument.ToString();
            TextBox_ChanLabelName.Text   = row.Cells[1].Text.Trim().ToString();
            TextBox_ChanLabelPro.Text    = row.Cells[2].Text.Trim().ToString();
            TextBox_ChanLabelWu.Text     = row.Cells[3].Text.Trim().ToString();
            TextBox_ChanLabelWuName.Text = row.Cells[4].Text.Trim().ToString();

            Panel_ChangeLabel.Visible = true;
            UpdatePanel_ChangeLabel.Update();
        }

        else
        if (e.CommandName == "shanchu")
        {
            GridViewRow row = ((LinkButton)e.CommandSource).Parent.Parent as GridViewRow;
            GridView_ClientLabel.SelectedIndex = row.RowIndex;
            string label_id   = e.CommandArgument.ToString();
            Guid   CRMCBTD_ID = new Guid(label_id);

            PCI.Proc_D_CRMCustomerBinTagDetail(CRMCBTD_ID);
            Guid CRMCIF_ID = new Guid(Session["ClientLabel_id"].ToString());
            GridView_ClientLabel.DataSource = PCI.SList_CRMCustomerBinTagDetail(CRMCIF_ID);
            GridView_ClientLabel.DataBind();
            Panel_UpdatePanel_ClientLabel.Visible = true;
            Panel_ChangeLabel.Visible             = false;
            UpdatePanel_ChangeLabel.Update();
            ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('删除成功!')", true);
            UpdatePanel_ClientLabel.Update();
        }
    }