예제 #1
0
        public void addToExpense(REntity rEntity)
        {
            var receiptId = Request.QueryString["ReceiptId"];

            rEntity.ReceiptID = Convert.ToInt32(receiptId);
            receiptBusiness.addToExpense(rEntity);
            receiptImage.ImageUrl     = "~/Receipt/" + rEntity.ReceiptPath;
            receiptEntity.ReceiptPath = rEntity.ReceiptPath;
            receiptBusiness.deleteData(rEntity);
        }
        public void onRowCommand(object sender, GridViewCommandEventArgs e)
        {
            int id = Convert.ToInt32(e.CommandArgument);

            if (e.CommandName == "DeleteCommand")
            {
                rEntity.ReceiptID = id;
                receiptBusiness.deleteData(rEntity);
                gridData();
            }
        }