예제 #1
0
 private void SearchCustomer()
 {
     CustomerSearchFlow csFlow = new CustomerSearchFlow();
     ArrayList zArr = csFlow.GetSearchCustomer(GetSearchData());
     gvResult.DataSource = zArr;
     gvResult.DataBind();
 }
예제 #2
0
    public void DeleteData()
    {
        double LOID;
        ArrayList arrLOID = new ArrayList();
        CustomerSearchFlow csFlow = new CustomerSearchFlow();
        bool ret = true;
      
        for (int i = 0; i < gvResult.Rows.Count; i++)
        {
            CheckBox chkItem = (CheckBox)gvResult.Rows[i].Cells[0].FindControl("chkItem");
            if (chkItem.Checked == true)
            {
                LOID = Convert.ToDouble(gvResult.Rows[i].Cells[1].Text);
                arrLOID.Add(LOID);
            }
        }
        if (arrLOID.Count != 0)
        {
            ret = csFlow.DeleteData(arrLOID);
        }

        if (ret == true)
        {
            Appz.ClientAlert(Page, "·Ó¡ÒÃź¢éÍÁÙÅÅÙ¡¤éÒàÃÕºÃéÍÂ");
            SearchCustomer();
        } 
        else
            Appz.ClientAlert(Page, csFlow.ErrorMessage);       
    }