Beispiel #1
0
    public void DeleteData()
    {
        double LOID;
        ArrayList arrLOID = new ArrayList();
        BasketSearchFlow csFlow = new BasketSearchFlow();
        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, "·Ó¡ÒÃź¢éÍÁÙÅ¡ÃÐàªéÒàÃÕºÃéÍÂ");
            SearchBasket();
        }
        else
            Appz.ClientAlert(Page, csFlow.ErrorMessage);
    }
Beispiel #2
0
 private void SearchBasket()
 {
     BasketSearchFlow csFlow = new BasketSearchFlow();
     ArrayList zArr = csFlow.GetSearchBasket(GetSearchData());
     gvResult.DataSource = zArr;
     gvResult.DataBind();
 }