//确定按钮
 protected void ImgBtnQd_Click(object sender, ImageClickEventArgs e)
 {
     //添加操作
     if (Request.QueryString["Cusid"] == null)
     {
         int cut = cus.InsertCustomer(GetText());
         if (cut > 0)//判断添加是否完成
         {
             lblMess.Text = "添加成功!";
             ClearText();
         }
         else
         {
             lblMess.Text = "添加失败!";
         }
     }
     //修改操作
     else
     {
         int Cusid = Convert.ToInt32(Request.QueryString["Cusid"]);
         int cut   = cus.UpdateCustomerByCusId(Cusid, GetText());
         if (cut > 0)//判断修改是否完成
         {
             //修改成功后,跳转到查询页面
             Response.Redirect("~/Customers/SelectCustomers.aspx");
         }
         else
         {
             lblMess.Text = "修改失败!";
         }
     }
 }