protected void Btn_newSort_Click(object sender, EventArgs e)//新增客户类别 { TextBox_Sortname.Text = ""; TextBox_SortDetail.Text = ""; Panel_NewSort.Visible = true; UpdatePanel_NewSort.Update(); }
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; }
protected void Btn_CancelSort_Click(object sender, EventArgs e)//取消新增客户类别 { Panel_NewSort.Visible = false; UpdatePanel_NewSort.Update(); }