示例#1
0
 protected void Btn_newSort_Click(object sender, EventArgs e)//新增客户类别
 {
     TextBox_Sortname.Text   = "";
     TextBox_SortDetail.Text = "";
     Panel_NewSort.Visible   = true;
     UpdatePanel_NewSort.Update();
 }
示例#2
0
    protected void Btn_NewSortOk_Click(object sender, EventArgs e)//新增客户类别
    {
        string name   = TextBox_Sortname.Text.Trim().ToString();
        string detail = TextBox_SortDetail.Text.Trim().ToString();

        PCB.I_CRMCustomerSortBasicData(name, detail);
        GridView_ClientSort.DataSource = PCB.SList_CRMCustomerSortBasicData();
        GridView_ClientSort.DataBind();
        UpdatePanel_ClientSort.Update();


        ScriptManager.RegisterStartupScript(Page, typeof(Page), "alert", "alert('新增成功!')", true);
        Panel_NewSort.Visible = false;
        UpdatePanel_NewSort.Update();
        return;
    }
示例#3
0
 protected void Btn_CancelSort_Click(object sender, EventArgs e)//取消新增客户类别
 {
     Panel_NewSort.Visible = false;
     UpdatePanel_NewSort.Update();
 }